Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / liblock / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
64ff59ba 3# Generated by GNU Autoconf 2.61 for liblock 0.60.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
64ff59ba 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
64ff59ba 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
64ff59ba 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
64ff59ba 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
64ff59ba 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
64ff59ba 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
64ff59ba 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
64ff59ba 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
64ff59ba 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
64ff59ba 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
64ff59ba 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
64ff59ba 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='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>
64ff59ba 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
64ff59ba 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
64ff59ba 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
64ff59ba 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
64ff59ba 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
64ff59ba 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
64ff59ba 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
64ff59ba 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
64ff59ba 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847LN_S
848build
849build_cpu
850build_vendor
851build_os
852host
853host_cpu
854host_vendor
855host_os
856SED
857GREP
858EGREP
859ECHO
860AR
861RANLIB
862CPP
863CXX
864CXXFLAGS
865ac_ct_CXX
866CXXDEPMODE
867am__fastdepCXX_TRUE
868am__fastdepCXX_FALSE
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874USE_FCNTL_TRUE
875USE_FCNTL_FALSE
876USE_FLOCK_TRUE
877USE_FLOCK_FALSE
878USE_LOCKF_TRUE
879USE_LOCKF_FALSE
880HAVE_SGML_TRUE
881HAVE_SGML_FALSE
882LIBOBJS
883LTLIBOBJS'
d9898ee8 884ac_subst_files=''
64ff59ba 885 ac_precious_vars='build_alias
886host_alias
887target_alias
888CC
889CFLAGS
890LDFLAGS
891LIBS
892CPPFLAGS
893CPP
894CXX
895CXXFLAGS
896CCC
897CXXCPP
898F77
899FFLAGS'
900
d9898ee8 901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 927# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
64ff59ba 931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
d9898ee8 933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
d9898ee8 936includedir='${prefix}/include'
937oldincludedir='/usr/include'
64ff59ba 938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
d9898ee8 947
948ac_prev=
64ff59ba 949ac_dashdash=
d9898ee8 950for ac_option
951do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
64ff59ba 954 eval $ac_prev=\$ac_option
d9898ee8 955 ac_prev=
956 continue
957 fi
958
64ff59ba 959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
d9898ee8 963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
64ff59ba 966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
d9898ee8 969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
64ff59ba 990 -datadir | --datadir | --datadi | --datad)
d9898ee8 991 ac_prev=datadir ;;
64ff59ba 992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 993 datadir=$ac_optarg ;;
994
64ff59ba 995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
d9898ee8 1002 -disable-* | --disable-*)
1003 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
64ff59ba 1005 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1006 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007 { (exit 1); exit 1; }; }
64ff59ba 1008 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009 eval enable_$ac_feature=no ;;
1010
1011 -docdir | --docdir | --docdi | --doc | --do)
1012 ac_prev=docdir ;;
1013 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014 docdir=$ac_optarg ;;
1015
1016 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017 ac_prev=dvidir ;;
1018 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019 dvidir=$ac_optarg ;;
d9898ee8 1020
1021 -enable-* | --enable-*)
1022 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023 # Reject names that are not valid shell variable names.
64ff59ba 1024 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1025 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026 { (exit 1); exit 1; }; }
64ff59ba 1027 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1029
1030 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032 | --exec | --exe | --ex)
1033 ac_prev=exec_prefix ;;
1034 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036 | --exec=* | --exe=* | --ex=*)
1037 exec_prefix=$ac_optarg ;;
1038
1039 -gas | --gas | --ga | --g)
1040 # Obsolete; use --with-gas.
1041 with_gas=yes ;;
1042
1043 -help | --help | --hel | --he | -h)
1044 ac_init_help=long ;;
1045 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046 ac_init_help=recursive ;;
1047 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048 ac_init_help=short ;;
1049
1050 -host | --host | --hos | --ho)
1051 ac_prev=host_alias ;;
1052 -host=* | --host=* | --hos=* | --ho=*)
1053 host_alias=$ac_optarg ;;
1054
64ff59ba 1055 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 ac_prev=htmldir ;;
1057 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 | --ht=*)
1059 htmldir=$ac_optarg ;;
1060
d9898ee8 1061 -includedir | --includedir | --includedi | --included | --include \
1062 | --includ | --inclu | --incl | --inc)
1063 ac_prev=includedir ;;
1064 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065 | --includ=* | --inclu=* | --incl=* | --inc=*)
1066 includedir=$ac_optarg ;;
1067
1068 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 ac_prev=infodir ;;
1070 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071 infodir=$ac_optarg ;;
1072
1073 -libdir | --libdir | --libdi | --libd)
1074 ac_prev=libdir ;;
1075 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076 libdir=$ac_optarg ;;
1077
1078 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079 | --libexe | --libex | --libe)
1080 ac_prev=libexecdir ;;
1081 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082 | --libexe=* | --libex=* | --libe=*)
1083 libexecdir=$ac_optarg ;;
1084
64ff59ba 1085 -localedir | --localedir | --localedi | --localed | --locale)
1086 ac_prev=localedir ;;
1087 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088 localedir=$ac_optarg ;;
1089
d9898ee8 1090 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1091 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1092 ac_prev=localstatedir ;;
1093 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1094 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1095 localstatedir=$ac_optarg ;;
1096
1097 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 ac_prev=mandir ;;
1099 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100 mandir=$ac_optarg ;;
1101
1102 -nfp | --nfp | --nf)
1103 # Obsolete; use --without-fp.
1104 with_fp=no ;;
1105
1106 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107 | --no-cr | --no-c | -n)
1108 no_create=yes ;;
1109
1110 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112 no_recursion=yes ;;
1113
1114 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116 | --oldin | --oldi | --old | --ol | --o)
1117 ac_prev=oldincludedir ;;
1118 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121 oldincludedir=$ac_optarg ;;
1122
1123 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 ac_prev=prefix ;;
1125 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126 prefix=$ac_optarg ;;
1127
1128 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129 | --program-pre | --program-pr | --program-p)
1130 ac_prev=program_prefix ;;
1131 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133 program_prefix=$ac_optarg ;;
1134
1135 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136 | --program-suf | --program-su | --program-s)
1137 ac_prev=program_suffix ;;
1138 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140 program_suffix=$ac_optarg ;;
1141
1142 -program-transform-name | --program-transform-name \
1143 | --program-transform-nam | --program-transform-na \
1144 | --program-transform-n | --program-transform- \
1145 | --program-transform | --program-transfor \
1146 | --program-transfo | --program-transf \
1147 | --program-trans | --program-tran \
1148 | --progr-tra | --program-tr | --program-t)
1149 ac_prev=program_transform_name ;;
1150 -program-transform-name=* | --program-transform-name=* \
1151 | --program-transform-nam=* | --program-transform-na=* \
1152 | --program-transform-n=* | --program-transform-=* \
1153 | --program-transform=* | --program-transfor=* \
1154 | --program-transfo=* | --program-transf=* \
1155 | --program-trans=* | --program-tran=* \
1156 | --progr-tra=* | --program-tr=* | --program-t=*)
1157 program_transform_name=$ac_optarg ;;
1158
64ff59ba 1159 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 ac_prev=pdfdir ;;
1161 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162 pdfdir=$ac_optarg ;;
1163
1164 -psdir | --psdir | --psdi | --psd | --ps)
1165 ac_prev=psdir ;;
1166 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167 psdir=$ac_optarg ;;
1168
d9898ee8 1169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170 | -silent | --silent | --silen | --sile | --sil)
1171 silent=yes ;;
1172
1173 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174 ac_prev=sbindir ;;
1175 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176 | --sbi=* | --sb=*)
1177 sbindir=$ac_optarg ;;
1178
1179 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181 | --sharedst | --shareds | --shared | --share | --shar \
1182 | --sha | --sh)
1183 ac_prev=sharedstatedir ;;
1184 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187 | --sha=* | --sh=*)
1188 sharedstatedir=$ac_optarg ;;
1189
1190 -site | --site | --sit)
1191 ac_prev=site ;;
1192 -site=* | --site=* | --sit=*)
1193 site=$ac_optarg ;;
1194
1195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196 ac_prev=srcdir ;;
1197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198 srcdir=$ac_optarg ;;
1199
1200 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201 | --syscon | --sysco | --sysc | --sys | --sy)
1202 ac_prev=sysconfdir ;;
1203 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205 sysconfdir=$ac_optarg ;;
1206
1207 -target | --target | --targe | --targ | --tar | --ta | --t)
1208 ac_prev=target_alias ;;
1209 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210 target_alias=$ac_optarg ;;
1211
1212 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213 verbose=yes ;;
1214
1215 -version | --version | --versio | --versi | --vers | -V)
1216 ac_init_version=: ;;
1217
1218 -with-* | --with-*)
1219 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220 # Reject names that are not valid shell variable names.
64ff59ba 1221 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1222 { echo "$as_me: error: invalid package name: $ac_package" >&2
1223 { (exit 1); exit 1; }; }
64ff59ba 1224 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1226
1227 -without-* | --without-*)
1228 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
64ff59ba 1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
64ff59ba 1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=no ;;
d9898ee8 1235
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1239
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1246
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1253
1254 -*) { echo "$as_me: error: unrecognized option: $ac_option
1255Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1257 ;;
1258
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
64ff59ba 1265 eval $ac_envvar=\$ac_optarg
d9898ee8 1266 export $ac_envvar ;;
1267
1268 *)
1269 # FIXME: should be removed in autoconf 3.0.
1270 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274 ;;
1275
1276 esac
1277done
1278
1279if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1283fi
1284
64ff59ba 1285# Be sure to have absolute directory names.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
d9898ee8 1290do
64ff59ba 1291 eval ac_val=\$$ac_var
d9898ee8 1292 case $ac_val in
64ff59ba 1293 [\\/$]* | ?:[\\/]* ) continue;;
1294 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1295 esac
64ff59ba 1296 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297 { (exit 1); exit 1; }; }
d9898ee8 1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309 if test "x$build_alias" = x; then
1310 cross_compiling=maybe
1311 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312 If a cross compiler is detected then cross compile mode will be used." >&2
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
64ff59ba 1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 { echo "$as_me: error: Working directory cannot be determined" >&2
1328 { (exit 1); exit 1; }; }
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 { echo "$as_me: error: pwd does not report name of working directory" >&2
1331 { (exit 1); exit 1; }; }
1332
1333
d9898ee8 1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
64ff59ba 1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$0" : 'X\(//\)[^/]' \| \
1341 X"$0" : 'X\(//\)$' \| \
64ff59ba 1342 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1343echo X"$0" |
64ff59ba 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
d9898ee8 1361 srcdir=$ac_confdir
64ff59ba 1362 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1363 srcdir=..
1364 fi
1365else
1366 ac_srcdir_defaulted=no
1367fi
64ff59ba 1368if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1371 { (exit 1); exit 1; }; }
d9898ee8 1372fi
64ff59ba 1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1376 { (exit 1); exit 1; }; }
64ff59ba 1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
d9898ee8 1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402\`configure' configures liblock 0.60 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
d9898ee8 1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/liblock]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1455_ACEOF
1456
1457 cat <<\_ACEOF
1458
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of liblock 0.60:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476Optional Features:
1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1479 --disable-dependency-tracking speeds up one-time build
1480 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486
1487Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1491 --with-pic try to use only PIC/non-PIC objects [default=use
1492 both]
64ff59ba 1493 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1494
1495
1496Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
64ff59ba 1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
d9898ee8 1504 CPP C preprocessor
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1510
1511Use these variables to override the choices made by `configure' or to help
1512it to find libraries and programs with nonstandard names/locations.
1513
1514Report bugs to <courier-users@lists.sourceforge.net>.
1515_ACEOF
64ff59ba 1516ac_status=$?
d9898ee8 1517fi
1518
1519if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
d9898ee8 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1522 test -d "$ac_dir" || continue
d9898ee8 1523 ac_builddir=.
1524
64ff59ba 1525case "$ac_dir" in
1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527*)
d9898ee8 1528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1529 # A ".." for each directory in $ac_dir_suffix.
1530 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1531 case $ac_top_builddir_sub in
1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 esac ;;
1535esac
1536ac_abs_top_builddir=$ac_pwd
1537ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538# for backward compatibility:
1539ac_top_builddir=$ac_top_build_prefix
d9898ee8 1540
1541case $srcdir in
64ff59ba 1542 .) # We are building in place.
d9898ee8 1543 ac_srcdir=.
64ff59ba 1544 ac_top_srcdir=$ac_top_builddir_sub
1545 ac_abs_top_srcdir=$ac_pwd ;;
1546 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1547 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1548 ac_top_srcdir=$srcdir
1549 ac_abs_top_srcdir=$srcdir ;;
1550 *) # Relative name.
1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552 ac_top_srcdir=$ac_top_build_prefix$srcdir
1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1554esac
64ff59ba 1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557 cd "$ac_dir" || { ac_status=$?; continue; }
1558 # Check for guested configure.
1559 if test -f "$ac_srcdir/configure.gnu"; then
1560 echo &&
1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562 elif test -f "$ac_srcdir/configure"; then
1563 echo &&
1564 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1565 else
1566 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1567 fi || ac_status=$?
1568 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1569 done
1570fi
1571
64ff59ba 1572test -n "$ac_init_help" && exit $ac_status
d9898ee8 1573if $ac_init_version; then
1574 cat <<\_ACEOF
1575liblock configure 0.60
64ff59ba 1576generated by GNU Autoconf 2.61
d9898ee8 1577
64ff59ba 1578Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15792002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1580This configure script is free software; the Free Software Foundation
1581gives unlimited permission to copy, distribute and modify it.
1582_ACEOF
64ff59ba 1583 exit
d9898ee8 1584fi
64ff59ba 1585cat >config.log <<_ACEOF
d9898ee8 1586This file contains any messages produced by compilers while
1587running configure, to aid debugging if configure makes a mistake.
1588
1589It was created by liblock $as_me 0.60, which was
64ff59ba 1590generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1591
1592 $ $0 $@
1593
1594_ACEOF
64ff59ba 1595exec 5>>config.log
d9898ee8 1596{
1597cat <<_ASUNAME
1598## --------- ##
1599## Platform. ##
1600## --------- ##
1601
1602hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1603uname -m = `(uname -m) 2>/dev/null || echo unknown`
1604uname -r = `(uname -r) 2>/dev/null || echo unknown`
1605uname -s = `(uname -s) 2>/dev/null || echo unknown`
1606uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607
1608/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1609/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610
1611/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1612/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1613/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1614/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1615/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1616/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1617/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618
1619_ASUNAME
1620
1621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622for as_dir in $PATH
1623do
1624 IFS=$as_save_IFS
1625 test -z "$as_dir" && as_dir=.
1626 echo "PATH: $as_dir"
1627done
64ff59ba 1628IFS=$as_save_IFS
d9898ee8 1629
1630} >&5
1631
1632cat >&5 <<_ACEOF
1633
1634
1635## ----------- ##
1636## Core tests. ##
1637## ----------- ##
1638
1639_ACEOF
1640
1641
1642# Keep a trace of the command line.
1643# Strip out --no-create and --no-recursion so they do not pile up.
1644# Strip out --silent because we don't want to record it for future runs.
1645# Also quote any args containing shell meta-characters.
1646# Make two passes to allow for proper duplicate-argument suppression.
1647ac_configure_args=
1648ac_configure_args0=
1649ac_configure_args1=
d9898ee8 1650ac_must_keep_next=false
1651for ac_pass in 1 2
1652do
1653 for ac_arg
1654 do
1655 case $ac_arg in
1656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1658 | -silent | --silent | --silen | --sile | --sil)
1659 continue ;;
64ff59ba 1660 *\'*)
d9898ee8 1661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 esac
1663 case $ac_pass in
1664 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 2)
1666 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1667 if test $ac_must_keep_next = true; then
1668 ac_must_keep_next=false # Got value, back to normal.
1669 else
1670 case $ac_arg in
1671 *=* | --config-cache | -C | -disable-* | --disable-* \
1672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1674 | -with-* | --with-* | -without-* | --without-* | --x)
1675 case "$ac_configure_args0 " in
1676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 esac
1678 ;;
1679 -* ) ac_must_keep_next=true ;;
1680 esac
1681 fi
64ff59ba 1682 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1683 ;;
1684 esac
1685 done
1686done
1687$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1688$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689
1690# When interrupted or exit'd, cleanup temporary files, and complete
1691# config.log. We remove comments because anyway the quotes in there
1692# would cause problems or look ugly.
64ff59ba 1693# WARNING: Use '\'' to represent an apostrophe within the trap.
1694# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1695trap 'exit_status=$?
1696 # Save into config.log some information that might help in debugging.
1697 {
1698 echo
1699
1700 cat <<\_ASBOX
1701## ---------------- ##
1702## Cache variables. ##
1703## ---------------- ##
1704_ASBOX
1705 echo
1706 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1707(
1708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in #(
1711 *${as_nl}*)
1712 case $ac_var in #(
1713 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1714echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 esac
1716 case $ac_var in #(
1717 _ | IFS | as_nl) ;; #(
1718 *) $as_unset $ac_var ;;
1719 esac ;;
1720 esac
1721 done
d9898ee8 1722 (set) 2>&1 |
64ff59ba 1723 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1724 *${as_nl}ac_space=\ *)
d9898ee8 1725 sed -n \
64ff59ba 1726 "s/'\''/'\''\\\\'\'''\''/g;
1727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 ;; #(
d9898ee8 1729 *)
64ff59ba 1730 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1731 ;;
64ff59ba 1732 esac |
1733 sort
1734)
d9898ee8 1735 echo
1736
1737 cat <<\_ASBOX
1738## ----------------- ##
1739## Output variables. ##
1740## ----------------- ##
1741_ASBOX
1742 echo
1743 for ac_var in $ac_subst_vars
1744 do
64ff59ba 1745 eval ac_val=\$$ac_var
1746 case $ac_val in
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 esac
1749 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1750 done | sort
1751 echo
1752
1753 if test -n "$ac_subst_files"; then
1754 cat <<\_ASBOX
64ff59ba 1755## ------------------- ##
1756## File substitutions. ##
1757## ------------------- ##
d9898ee8 1758_ASBOX
1759 echo
1760 for ac_var in $ac_subst_files
1761 do
64ff59ba 1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1767 done | sort
1768 echo
1769 fi
1770
1771 if test -s confdefs.h; then
1772 cat <<\_ASBOX
1773## ----------- ##
1774## confdefs.h. ##
1775## ----------- ##
1776_ASBOX
1777 echo
64ff59ba 1778 cat confdefs.h
d9898ee8 1779 echo
1780 fi
1781 test "$ac_signal" != 0 &&
1782 echo "$as_me: caught signal $ac_signal"
1783 echo "$as_me: exit $exit_status"
1784 } >&5
64ff59ba 1785 rm -f core *.core core.conftest.* &&
1786 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1787 exit $exit_status
64ff59ba 1788' 0
d9898ee8 1789for ac_signal in 1 2 13 15; do
1790 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791done
1792ac_signal=0
1793
1794# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1795rm -f -r conftest* confdefs.h
d9898ee8 1796
1797# Predefined preprocessor variables.
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE_NAME "$PACKAGE_NAME"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_VERSION "$PACKAGE_VERSION"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_STRING "$PACKAGE_STRING"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821_ACEOF
1822
1823
1824# Let the site file select an alternate cache file if it wants to.
1825# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1826if test -n "$CONFIG_SITE"; then
1827 set x "$CONFIG_SITE"
1828elif test "x$prefix" != xNONE; then
1829 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830else
1831 set x "$ac_default_prefix/share/config.site" \
1832 "$ac_default_prefix/etc/config.site"
d9898ee8 1833fi
64ff59ba 1834shift
1835for ac_site_file
1836do
d9898ee8 1837 if test -r "$ac_site_file"; then
1838 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1839echo "$as_me: loading site script $ac_site_file" >&6;}
1840 sed 's/^/| /' "$ac_site_file" >&5
1841 . "$ac_site_file"
1842 fi
1843done
1844
1845if test -r "$cache_file"; then
1846 # Some versions of bash will fail to source /dev/null (special
1847 # files actually), so we avoid doing that.
1848 if test -f "$cache_file"; then
1849 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1850echo "$as_me: loading cache $cache_file" >&6;}
1851 case $cache_file in
64ff59ba 1852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1853 *) . "./$cache_file";;
d9898ee8 1854 esac
1855 fi
1856else
1857 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1858echo "$as_me: creating cache $cache_file" >&6;}
1859 >$cache_file
1860fi
1861
1862# Check that the precious variables saved in the cache have kept the same
1863# value.
1864ac_cache_corrupted=false
64ff59ba 1865for ac_var in $ac_precious_vars; do
d9898ee8 1866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1867 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1869 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1870 case $ac_old_set,$ac_new_set in
1871 set,)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1873echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,set)
1876 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1877echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1878 ac_cache_corrupted=: ;;
1879 ,);;
1880 *)
1881 if test "x$ac_old_val" != "x$ac_new_val"; then
1882 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1885echo "$as_me: former value: $ac_old_val" >&2;}
1886 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1887echo "$as_me: current value: $ac_new_val" >&2;}
1888 ac_cache_corrupted=:
1889 fi;;
1890 esac
1891 # Pass precious variables to config.status.
1892 if test "$ac_new_set" = set; then
1893 case $ac_new_val in
64ff59ba 1894 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1895 *) ac_arg=$ac_var=$ac_new_val ;;
1896 esac
1897 case " $ac_configure_args " in
1898 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1899 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 esac
1901 fi
1902done
1903if $ac_cache_corrupted; then
1904 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1905echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1906 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1907echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
d9898ee8 1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
64ff59ba 1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1940
1941
1942
1943>confdefs.h # Kill PACKAGE_ macros
1944
1945
64ff59ba 1946ac_config_headers="$ac_config_headers config.h"
1947
1948am__api_version='1.10'
d9898ee8 1949
d9898ee8 1950ac_aux_dir=
64ff59ba 1951for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1952 if test -f "$ac_dir/install-sh"; then
d9898ee8 1953 ac_aux_dir=$ac_dir
1954 ac_install_sh="$ac_aux_dir/install-sh -c"
1955 break
64ff59ba 1956 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1957 ac_aux_dir=$ac_dir
1958 ac_install_sh="$ac_aux_dir/install.sh -c"
1959 break
64ff59ba 1960 elif test -f "$ac_dir/shtool"; then
d9898ee8 1961 ac_aux_dir=$ac_dir
1962 ac_install_sh="$ac_aux_dir/shtool install -c"
1963 break
1964 fi
1965done
1966if test -z "$ac_aux_dir"; then
64ff59ba 1967 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1968echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1969 { (exit 1); exit 1; }; }
1970fi
64ff59ba 1971
1972# These three variables are undocumented and unsupported,
1973# and are intended to be withdrawn in a future Autoconf release.
1974# They can cause serious problems if a builder's source tree is in a directory
1975# whose full name contains unusual characters.
1976ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1977ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1978ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1979
d9898ee8 1980
1981# Find a good install program. We prefer a C program (faster),
1982# so one script is as good as another. But avoid the broken or
1983# incompatible versions:
1984# SysV /etc/install, /usr/sbin/install
1985# SunOS /usr/etc/install
1986# IRIX /sbin/install
1987# AIX /bin/install
1988# AmigaOS /C/install, which installs bootblocks on floppy discs
1989# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1990# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1991# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1992# OS/2's system install, which has a completely different semantic
1993# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 1994{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1995echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1996if test -z "$INSTALL"; then
1997if test "${ac_cv_path_install+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001for as_dir in $PATH
2002do
2003 IFS=$as_save_IFS
2004 test -z "$as_dir" && as_dir=.
2005 # Account for people who put trailing slashes in PATH elements.
2006case $as_dir/ in
2007 ./ | .// | /cC/* | \
2008 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2009 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2010 /usr/ucb/* ) ;;
2011 *)
2012 # OSF1 and SCO ODT 3.0 have their own names for install.
2013 # Don't use installbsd from OSF since it installs stuff as root
2014 # by default.
2015 for ac_prog in ginstall scoinst install; do
2016 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2017 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2018 if test $ac_prog = install &&
2019 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2020 # AIX install. It has an incompatible calling convention.
2021 :
2022 elif test $ac_prog = install &&
2023 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2024 # program-specific install script used by HP pwplus--don't use.
2025 :
2026 else
2027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2028 break 3
2029 fi
2030 fi
2031 done
2032 done
2033 ;;
2034esac
2035done
64ff59ba 2036IFS=$as_save_IFS
d9898ee8 2037
2038
2039fi
2040 if test "${ac_cv_path_install+set}" = set; then
2041 INSTALL=$ac_cv_path_install
2042 else
64ff59ba 2043 # As a last resort, use the slow shell script. Don't cache a
2044 # value for INSTALL within a source directory, because that will
d9898ee8 2045 # break other packages using the cache if that directory is
64ff59ba 2046 # removed, or if the value is a relative name.
d9898ee8 2047 INSTALL=$ac_install_sh
2048 fi
2049fi
64ff59ba 2050{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2051echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2052
2053# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2054# It thinks the first close brace ends the variable substitution.
2055test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2056
2057test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2058
2059test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2060
64ff59ba 2061{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2062echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2063# Just in case
2064sleep 1
2065echo timestamp > conftest.file
2066# Do `set' in a subshell so we don't clobber the current shell's
2067# arguments. Must try -L first in case configure is actually a
2068# symlink; some systems play weird games with the mod time of symlinks
2069# (eg FreeBSD returns the mod time of the symlink's containing
2070# directory).
2071if (
2072 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2073 if test "$*" = "X"; then
2074 # -L didn't work.
2075 set X `ls -t $srcdir/configure conftest.file`
2076 fi
2077 rm -f conftest.file
2078 if test "$*" != "X $srcdir/configure conftest.file" \
2079 && test "$*" != "X conftest.file $srcdir/configure"; then
2080
2081 # If neither matched, then we have a broken ls. This can happen
2082 # if, for instance, CONFIG_SHELL is bash and it inherits a
2083 # broken ls alias from the environment. This has actually
2084 # happened. Such a system could not be considered "sane".
2085 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2086alias in your environment" >&5
2087echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2088alias in your environment" >&2;}
2089 { (exit 1); exit 1; }; }
2090 fi
2091
2092 test "$2" = conftest.file
2093 )
2094then
2095 # Ok.
2096 :
2097else
2098 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2099Check your system clock" >&5
2100echo "$as_me: error: newly created file is older than distributed files!
2101Check your system clock" >&2;}
2102 { (exit 1); exit 1; }; }
2103fi
64ff59ba 2104{ echo "$as_me:$LINENO: result: yes" >&5
2105echo "${ECHO_T}yes" >&6; }
d9898ee8 2106test "$program_prefix" != NONE &&
64ff59ba 2107 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2108# Use a double $ so make ignores it.
2109test "$program_suffix" != NONE &&
64ff59ba 2110 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2111# Double any \ or $. echo might interpret backslashes.
2112# By default was `s,x,x', remove it if useless.
2113cat <<\_ACEOF >conftest.sed
2114s/[\\$]/&&/g;s/;s,x,x,$//
2115_ACEOF
2116program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2117rm -f conftest.sed
d9898ee8 2118
2119# expand $ac_aux_dir to an absolute path
2120am_aux_dir=`cd $ac_aux_dir && pwd`
2121
2122test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2123# Use eval to expand $SHELL
2124if eval "$MISSING --run true"; then
2125 am_missing_run="$MISSING --run "
2126else
2127 am_missing_run=
2128 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2129echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2130fi
2131
64ff59ba 2132{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2133echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2134if test -z "$MKDIR_P"; then
2135 if test "${ac_cv_path_mkdir+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137else
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2140do
2141 IFS=$as_save_IFS
2142 test -z "$as_dir" && as_dir=.
2143 for ac_prog in mkdir gmkdir; do
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2146 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2147 'mkdir (GNU coreutils) '* | \
2148 'mkdir (coreutils) '* | \
2149 'mkdir (fileutils) '4.1*)
2150 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2151 break 3;;
2152 esac
2153 done
2154 done
2155done
2156IFS=$as_save_IFS
2157
2158fi
2159
2160 if test "${ac_cv_path_mkdir+set}" = set; then
2161 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2162 else
64ff59ba 2163 # As a last resort, use the slow shell script. Don't cache a
2164 # value for MKDIR_P within a source directory, because that will
2165 # break other packages using the cache if that directory is
2166 # removed, or if the value is a relative name.
2167 test -d ./--version && rmdir ./--version
2168 MKDIR_P="$ac_install_sh -d"
d9898ee8 2169 fi
2170fi
64ff59ba 2171{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2172echo "${ECHO_T}$MKDIR_P" >&6; }
2173
2174mkdir_p="$MKDIR_P"
2175case $mkdir_p in
2176 [\\/$]* | ?:[\\/]*) ;;
2177 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2178esac
d9898ee8 2179
2180for ac_prog in gawk mawk nawk awk
2181do
2182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2183set dummy $ac_prog; ac_word=$2
64ff59ba 2184{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2186if test "${ac_cv_prog_AWK+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 if test -n "$AWK"; then
2190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2199 ac_cv_prog_AWK="$ac_prog"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203done
2204done
64ff59ba 2205IFS=$as_save_IFS
d9898ee8 2206
2207fi
2208fi
2209AWK=$ac_cv_prog_AWK
2210if test -n "$AWK"; then
64ff59ba 2211 { echo "$as_me:$LINENO: result: $AWK" >&5
2212echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2213else
64ff59ba 2214 { echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6; }
d9898ee8 2216fi
2217
64ff59ba 2218
d9898ee8 2219 test -n "$AWK" && break
2220done
2221
64ff59ba 2222{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2223echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2224set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2225if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
2228 cat >conftest.make <<\_ACEOF
64ff59ba 2229SHELL = /bin/sh
d9898ee8 2230all:
64ff59ba 2231 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2232_ACEOF
2233# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2234case `${MAKE-make} -f conftest.make 2>/dev/null` in
2235 *@@@%%%=?*=@@@%%%*)
2236 eval ac_cv_prog_make_${ac_make}_set=yes;;
2237 *)
2238 eval ac_cv_prog_make_${ac_make}_set=no;;
2239esac
d9898ee8 2240rm -f conftest.make
2241fi
64ff59ba 2242if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244echo "${ECHO_T}yes" >&6; }
d9898ee8 2245 SET_MAKE=
2246else
64ff59ba 2247 { echo "$as_me:$LINENO: result: no" >&5
2248echo "${ECHO_T}no" >&6; }
d9898ee8 2249 SET_MAKE="MAKE=${MAKE-make}"
2250fi
2251
2252rm -rf .tst 2>/dev/null
2253mkdir .tst 2>/dev/null
2254if test -d .tst; then
2255 am__leading_dot=.
2256else
2257 am__leading_dot=_
2258fi
2259rmdir .tst 2>/dev/null
2260
64ff59ba 2261if test "`cd $srcdir && pwd`" != "`pwd`"; then
2262 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2263 # is not polluted with repeated "-I."
2264 am__isrc=' -I$(srcdir)'
2265 # test to see if srcdir already configured
2266 if test -f $srcdir/config.status; then
2267 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2268echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2269 { (exit 1); exit 1; }; }
64ff59ba 2270 fi
d9898ee8 2271fi
2272
2273# test whether we have cygpath
2274if test -z "$CYGPATH_W"; then
2275 if (cygpath --version) >/dev/null 2>/dev/null; then
2276 CYGPATH_W='cygpath -w'
2277 else
2278 CYGPATH_W=echo
2279 fi
2280fi
2281
2282
2283# Define the identity of the package.
2284 PACKAGE='liblock'
2285 VERSION='0.60'
2286
2287
2288# Some tools Automake needs.
2289
2290ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2291
2292
2293AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2294
2295
2296AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2297
2298
2299AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2300
2301
2302MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2303
64ff59ba 2304install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2305
2306# Installed binaries are usually stripped using `strip' when the user
2307# run `make install-strip'. However `strip' might not be the right
2308# tool to use in cross-compilation environments, therefore Automake
2309# will honor the `STRIP' environment variable to overrule this program.
2310if test "$cross_compiling" != no; then
2311 if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2313set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2314{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2316if test "${ac_cv_prog_STRIP+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319 if test -n "$STRIP"; then
2320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2321else
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333done
2334done
64ff59ba 2335IFS=$as_save_IFS
d9898ee8 2336
2337fi
2338fi
2339STRIP=$ac_cv_prog_STRIP
2340if test -n "$STRIP"; then
64ff59ba 2341 { echo "$as_me:$LINENO: result: $STRIP" >&5
2342echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2343else
64ff59ba 2344 { echo "$as_me:$LINENO: result: no" >&5
2345echo "${ECHO_T}no" >&6; }
d9898ee8 2346fi
2347
64ff59ba 2348
d9898ee8 2349fi
2350if test -z "$ac_cv_prog_STRIP"; then
2351 ac_ct_STRIP=$STRIP
2352 # Extract the first word of "strip", so it can be a program name with args.
2353set dummy strip; ac_word=$2
64ff59ba 2354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2356if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358else
2359 if test -n "$ac_ct_STRIP"; then
2360 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2361else
2362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
2367 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2369 ac_cv_prog_ac_ct_STRIP="strip"
2370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 break 2
2372 fi
2373done
2374done
64ff59ba 2375IFS=$as_save_IFS
d9898ee8 2376
d9898ee8 2377fi
2378fi
2379ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2380if test -n "$ac_ct_STRIP"; then
64ff59ba 2381 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2382echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2383else
64ff59ba 2384 { echo "$as_me:$LINENO: result: no" >&5
2385echo "${ECHO_T}no" >&6; }
d9898ee8 2386fi
2387
64ff59ba 2388 if test "x$ac_ct_STRIP" = x; then
2389 STRIP=":"
2390 else
2391 case $cross_compiling:$ac_tool_warned in
2392yes:)
2393{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2394whose name does not start with the host triplet. If you think this
2395configuration is useful to you, please write to autoconf@gnu.org." >&5
2396echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2397whose name does not start with the host triplet. If you think this
2398configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2399ac_tool_warned=yes ;;
2400esac
2401 STRIP=$ac_ct_STRIP
2402 fi
d9898ee8 2403else
2404 STRIP="$ac_cv_prog_STRIP"
2405fi
2406
2407fi
64ff59ba 2408INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2409
2410# We need awk for the "check" target. The system "awk" is bad on
2411# some platforms.
2412# Always define AMTAR for backward compatibility.
2413
2414AMTAR=${AMTAR-"${am_missing_run}tar"}
2415
2416am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2417
2418
2419
2420
2421
2422
2423for ac_prog in gawk mawk nawk awk
2424do
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426set dummy $ac_prog; ac_word=$2
64ff59ba 2427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2429if test "${ac_cv_prog_AWK+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432 if test -n "$AWK"; then
2433 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438 IFS=$as_save_IFS
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2442 ac_cv_prog_AWK="$ac_prog"
2443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 break 2
2445 fi
2446done
2447done
64ff59ba 2448IFS=$as_save_IFS
d9898ee8 2449
2450fi
2451fi
2452AWK=$ac_cv_prog_AWK
2453if test -n "$AWK"; then
64ff59ba 2454 { echo "$as_me:$LINENO: result: $AWK" >&5
2455echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2456else
64ff59ba 2457 { echo "$as_me:$LINENO: result: no" >&5
2458echo "${ECHO_T}no" >&6; }
d9898ee8 2459fi
2460
64ff59ba 2461
d9898ee8 2462 test -n "$AWK" && break
2463done
2464
2465ac_ext=c
2466ac_cpp='$CPP $CPPFLAGS'
2467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470if test -n "$ac_tool_prefix"; then
2471 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2475if test "${ac_cv_prog_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484 IFS=$as_save_IFS
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2488 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 break 2
2491 fi
2492done
2493done
64ff59ba 2494IFS=$as_save_IFS
d9898ee8 2495
2496fi
2497fi
2498CC=$ac_cv_prog_CC
2499if test -n "$CC"; then
64ff59ba 2500 { echo "$as_me:$LINENO: result: $CC" >&5
2501echo "${ECHO_T}$CC" >&6; }
d9898ee8 2502else
64ff59ba 2503 { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
d9898ee8 2505fi
2506
64ff59ba 2507
d9898ee8 2508fi
2509if test -z "$ac_cv_prog_CC"; then
2510 ac_ct_CC=$CC
2511 # Extract the first word of "gcc", so it can be a program name with args.
2512set dummy gcc; ac_word=$2
64ff59ba 2513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518 if test -n "$ac_ct_CC"; then
2519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2528 ac_cv_prog_ac_ct_CC="gcc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532done
2533done
64ff59ba 2534IFS=$as_save_IFS
d9898ee8 2535
2536fi
2537fi
2538ac_ct_CC=$ac_cv_prog_ac_ct_CC
2539if test -n "$ac_ct_CC"; then
64ff59ba 2540 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2541echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2542else
64ff59ba 2543 { echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6; }
d9898ee8 2545fi
2546
64ff59ba 2547 if test "x$ac_ct_CC" = x; then
2548 CC=""
2549 else
2550 case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2553whose name does not start with the host triplet. If you think this
2554configuration is useful to you, please write to autoconf@gnu.org." >&5
2555echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2556whose name does not start with the host triplet. If you think this
2557configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558ac_tool_warned=yes ;;
2559esac
2560 CC=$ac_ct_CC
2561 fi
d9898ee8 2562else
2563 CC="$ac_cv_prog_CC"
2564fi
2565
2566if test -z "$CC"; then
64ff59ba 2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2569set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2572if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2585 ac_cv_prog_CC="${ac_tool_prefix}cc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2588 fi
2589done
2590done
64ff59ba 2591IFS=$as_save_IFS
d9898ee8 2592
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
64ff59ba 2597 { echo "$as_me:$LINENO: result: $CC" >&5
2598echo "${ECHO_T}$CC" >&6; }
d9898ee8 2599else
64ff59ba 2600 { echo "$as_me:$LINENO: result: no" >&5
2601echo "${ECHO_T}no" >&6; }
d9898ee8 2602fi
2603
d9898ee8 2604
64ff59ba 2605 fi
d9898ee8 2606fi
2607if test -z "$CC"; then
2608 # Extract the first word of "cc", so it can be a program name with args.
2609set dummy cc; ac_word=$2
64ff59ba 2610{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2612if test "${ac_cv_prog_CC+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617else
2618 ac_prog_rejected=no
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2627 ac_prog_rejected=yes
2628 continue
2629 fi
2630 ac_cv_prog_CC="cc"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
64ff59ba 2636IFS=$as_save_IFS
d9898ee8 2637
2638if test $ac_prog_rejected = yes; then
2639 # We found a bogon in the path, so make sure we never use it.
2640 set dummy $ac_cv_prog_CC
2641 shift
2642 if test $# != 0; then
2643 # We chose a different compiler from the bogus one.
2644 # However, it has the same basename, so the bogon will be chosen
2645 # first if we set CC to just the basename; use the full file name.
2646 shift
2647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2648 fi
2649fi
2650fi
2651fi
2652CC=$ac_cv_prog_CC
2653if test -n "$CC"; then
64ff59ba 2654 { echo "$as_me:$LINENO: result: $CC" >&5
2655echo "${ECHO_T}$CC" >&6; }
d9898ee8 2656else
64ff59ba 2657 { echo "$as_me:$LINENO: result: no" >&5
2658echo "${ECHO_T}no" >&6; }
d9898ee8 2659fi
2660
64ff59ba 2661
d9898ee8 2662fi
2663if test -z "$CC"; then
2664 if test -n "$ac_tool_prefix"; then
64ff59ba 2665 for ac_prog in cl.exe
d9898ee8 2666 do
2667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2668set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2671if test "${ac_cv_prog_CC+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
64ff59ba 2690IFS=$as_save_IFS
d9898ee8 2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
64ff59ba 2696 { echo "$as_me:$LINENO: result: $CC" >&5
2697echo "${ECHO_T}$CC" >&6; }
d9898ee8 2698else
64ff59ba 2699 { echo "$as_me:$LINENO: result: no" >&5
2700echo "${ECHO_T}no" >&6; }
d9898ee8 2701fi
2702
64ff59ba 2703
d9898ee8 2704 test -n "$CC" && break
2705 done
2706fi
2707if test -z "$CC"; then
2708 ac_ct_CC=$CC
64ff59ba 2709 for ac_prog in cl.exe
d9898ee8 2710do
2711 # Extract the first word of "$ac_prog", so it can be a program name with args.
2712set dummy $ac_prog; ac_word=$2
64ff59ba 2713{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2715if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717else
2718 if test -n "$ac_ct_CC"; then
2719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2728 ac_cv_prog_ac_ct_CC="$ac_prog"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733done
64ff59ba 2734IFS=$as_save_IFS
d9898ee8 2735
2736fi
2737fi
2738ac_ct_CC=$ac_cv_prog_ac_ct_CC
2739if test -n "$ac_ct_CC"; then
64ff59ba 2740 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2741echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2742else
64ff59ba 2743 { echo "$as_me:$LINENO: result: no" >&5
2744echo "${ECHO_T}no" >&6; }
d9898ee8 2745fi
2746
64ff59ba 2747
d9898ee8 2748 test -n "$ac_ct_CC" && break
2749done
2750
64ff59ba 2751 if test "x$ac_ct_CC" = x; then
2752 CC=""
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755yes:)
2756{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2757whose name does not start with the host triplet. If you think this
2758configuration is useful to you, please write to autoconf@gnu.org." >&5
2759echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2760whose name does not start with the host triplet. If you think this
2761configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2762ac_tool_warned=yes ;;
2763esac
2764 CC=$ac_ct_CC
2765 fi
d9898ee8 2766fi
2767
2768fi
2769
2770
2771test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2772See \`config.log' for more details." >&5
2773echo "$as_me: error: no acceptable C compiler found in \$PATH
2774See \`config.log' for more details." >&2;}
2775 { (exit 1); exit 1; }; }
2776
2777# Provide some information about the compiler.
64ff59ba 2778echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2779ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2780{ (ac_try="$ac_compiler --version >&5"
2781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }
64ff59ba 2790{ (ac_try="$ac_compiler -v >&5"
2791case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
2795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2797 ac_status=$?
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); }
64ff59ba 2800{ (ac_try="$ac_compiler -V >&5"
2801case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2807 ac_status=$?
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }
2810
2811cat >conftest.$ac_ext <<_ACEOF
2812/* confdefs.h. */
2813_ACEOF
2814cat confdefs.h >>conftest.$ac_ext
2815cat >>conftest.$ac_ext <<_ACEOF
2816/* end confdefs.h. */
2817
2818int
2819main ()
2820{
2821
2822 ;
2823 return 0;
2824}
2825_ACEOF
2826ac_clean_files_save=$ac_clean_files
2827ac_clean_files="$ac_clean_files a.out a.exe b.out"
2828# Try to create an executable without -o first, disregard a.out.
2829# It will help us diagnose broken compilers, and finding out an intuition
2830# of exeext.
64ff59ba 2831{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2832echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2833ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2834#
2835# List of possible output files, starting from the most likely.
2836# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2837# only as a last resort. b.out is created by i960 compilers.
2838ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2839#
2840# The IRIX 6 linker writes into existing files which may not be
2841# executable, retaining their permissions. Remove them first so a
2842# subsequent execution test works.
2843ac_rmfiles=
2844for ac_file in $ac_files
2845do
2846 case $ac_file in
2847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2848 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2849 esac
2850done
2851rm -f $ac_rmfiles
2852
2853if { (ac_try="$ac_link_default"
2854case "(($ac_try" in
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2857esac
2858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_link_default") 2>&5
d9898ee8 2860 ac_status=$?
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; then
64ff59ba 2863 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2864# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2865# in a Makefile. We should not override ac_cv_exeext if it was cached,
2866# so that the user can short-circuit this test for compilers unknown to
2867# Autoconf.
2868for ac_file in $ac_files ''
d9898ee8 2869do
2870 test -f "$ac_file" || continue
2871 case $ac_file in
64ff59ba 2872 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2873 ;;
2874 [ab].out )
2875 # We found the default executable, but exeext='' is most
2876 # certainly right.
2877 break;;
2878 *.* )
64ff59ba 2879 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2880 then :; else
2881 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2882 fi
2883 # We set ac_cv_exeext here because the later test for it is not
2884 # safe: cross compilers may not add the suffix if given an `-o'
2885 # argument, so we may need to know it at that point already.
2886 # Even if this section looks crufty: it has the advantage of
2887 # actually working.
d9898ee8 2888 break;;
2889 * )
2890 break;;
2891 esac
2892done
64ff59ba 2893test "$ac_cv_exeext" = no && ac_cv_exeext=
2894
d9898ee8 2895else
64ff59ba 2896 ac_file=''
2897fi
2898
2899{ echo "$as_me:$LINENO: result: $ac_file" >&5
2900echo "${ECHO_T}$ac_file" >&6; }
2901if test -z "$ac_file"; then
d9898ee8 2902 echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2906See \`config.log' for more details." >&5
2907echo "$as_me: error: C compiler cannot create executables
2908See \`config.log' for more details." >&2;}
2909 { (exit 77); exit 77; }; }
2910fi
2911
2912ac_exeext=$ac_cv_exeext
d9898ee8 2913
64ff59ba 2914# Check that the compiler produces executables we can run. If not, either
d9898ee8 2915# the compiler is broken, or we cross compile.
64ff59ba 2916{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2917echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2918# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2919# If not cross compiling, check that we can run a simple program.
2920if test "$cross_compiling" != yes; then
2921 if { ac_try='./$ac_file'
64ff59ba 2922 { (case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925esac
2926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_try") 2>&5
d9898ee8 2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2931 cross_compiling=no
2932 else
2933 if test "$cross_compiling" = maybe; then
2934 cross_compiling=yes
2935 else
2936 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2937If you meant to cross compile, use \`--host'.
2938See \`config.log' for more details." >&5
2939echo "$as_me: error: cannot run C compiled programs.
2940If you meant to cross compile, use \`--host'.
2941See \`config.log' for more details." >&2;}
2942 { (exit 1); exit 1; }; }
2943 fi
2944 fi
2945fi
64ff59ba 2946{ echo "$as_me:$LINENO: result: yes" >&5
2947echo "${ECHO_T}yes" >&6; }
d9898ee8 2948
2949rm -f a.out a.exe conftest$ac_cv_exeext b.out
2950ac_clean_files=$ac_clean_files_save
64ff59ba 2951# Check that the compiler produces executables we can run. If not, either
d9898ee8 2952# the compiler is broken, or we cross compile.
64ff59ba 2953{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2954echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2955{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2956echo "${ECHO_T}$cross_compiling" >&6; }
2957
2958{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2959echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2960if { (ac_try="$ac_link"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_link") 2>&5
d9898ee8 2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
2970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2972# work properly (i.e., refer to `conftest.exe'), while it won't with
2973# `rm'.
2974for ac_file in conftest.exe conftest conftest.*; do
2975 test -f "$ac_file" || continue
2976 case $ac_file in
64ff59ba 2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2979 break;;
2980 * ) break;;
2981 esac
2982done
2983else
2984 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2985See \`config.log' for more details." >&5
2986echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2987See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2989fi
2990
2991rm -f conftest$ac_cv_exeext
64ff59ba 2992{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2993echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2994
2995rm -f conftest.$ac_ext
2996EXEEXT=$ac_cv_exeext
2997ac_exeext=$EXEEXT
64ff59ba 2998{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2999echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3000if test "${ac_cv_objext+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3002else
3003 cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h. */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h. */
3009
3010int
3011main ()
3012{
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.o conftest.obj
64ff59ba 3019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>&5
d9898ee8 3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; then
64ff59ba 3029 for ac_file in conftest.o conftest.obj conftest.*; do
3030 test -f "$ac_file" || continue;
d9898ee8 3031 case $ac_file in
64ff59ba 3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3034 break;;
3035 esac
3036done
3037else
3038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3042See \`config.log' for more details." >&5
3043echo "$as_me: error: cannot compute suffix of object files: cannot compile
3044See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3046fi
3047
3048rm -f conftest.$ac_cv_objext conftest.$ac_ext
3049fi
64ff59ba 3050{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3051echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3052OBJEXT=$ac_cv_objext
3053ac_objext=$OBJEXT
64ff59ba 3054{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3055echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3056if test "${ac_cv_c_compiler_gnu+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059 cat >conftest.$ac_ext <<_ACEOF
3060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
3065
3066int
3067main ()
3068{
3069#ifndef __GNUC__
3070 choke me
3071#endif
3072
3073 ;
3074 return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext
64ff59ba 3078if { (ac_try="$ac_compile"
3079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
3083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
d9898ee8 3094 ac_compiler_gnu=yes
3095else
3096 echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
64ff59ba 3099 ac_compiler_gnu=no
d9898ee8 3100fi
64ff59ba 3101
3102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3103ac_cv_c_compiler_gnu=$ac_compiler_gnu
3104
3105fi
64ff59ba 3106{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3107echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3108GCC=`test $ac_compiler_gnu = yes && echo yes`
3109ac_test_CFLAGS=${CFLAGS+set}
3110ac_save_CFLAGS=$CFLAGS
64ff59ba 3111{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3112echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3113if test "${ac_cv_prog_cc_g+set}" = set; then
3114 echo $ECHO_N "(cached) $ECHO_C" >&6
3115else
64ff59ba 3116 ac_save_c_werror_flag=$ac_c_werror_flag
3117 ac_c_werror_flag=yes
3118 ac_cv_prog_cc_g=no
3119 CFLAGS="-g"
3120 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
64ff59ba 3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_cv_prog_cc_g=yes
3153else
3154 echo "$as_me: failed program was:" >&5
3155sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 CFLAGS=""
3158 cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h. */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h. */
3164
3165int
3166main ()
3167{
3168
3169 ;
3170 return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext
3174if { (ac_try="$ac_compile"
3175case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3181 ac_status=$?
64ff59ba 3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
d9898ee8 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 :
3191else
3192 echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3196 CFLAGS="-g"
3197 cat >conftest.$ac_ext <<_ACEOF
3198/* confdefs.h. */
3199_ACEOF
3200cat confdefs.h >>conftest.$ac_ext
3201cat >>conftest.$ac_ext <<_ACEOF
3202/* end confdefs.h. */
3203
3204int
3205main ()
3206{
3207
3208 ;
3209 return 0;
3210}
3211_ACEOF
3212rm -f conftest.$ac_objext
3213if { (ac_try="$ac_compile"
3214case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217esac
3218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3220 ac_status=$?
64ff59ba 3221 grep -v '^ *+' conftest.er1 >conftest.err
3222 rm -f conftest.er1
3223 cat conftest.err >&5
d9898ee8 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3225 (exit $ac_status); } && {
3226 test -z "$ac_c_werror_flag" ||
3227 test ! -s conftest.err
3228 } && test -s conftest.$ac_objext; then
d9898ee8 3229 ac_cv_prog_cc_g=yes
3230else
3231 echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
64ff59ba 3234
3235fi
3236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3241fi
64ff59ba 3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3245fi
64ff59ba 3246{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3247echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3248if test "$ac_test_CFLAGS" = set; then
3249 CFLAGS=$ac_save_CFLAGS
3250elif test $ac_cv_prog_cc_g = yes; then
3251 if test "$GCC" = yes; then
3252 CFLAGS="-g -O2"
3253 else
3254 CFLAGS="-g"
3255 fi
3256else
3257 if test "$GCC" = yes; then
3258 CFLAGS="-O2"
3259 else
3260 CFLAGS=
3261 fi
3262fi
64ff59ba 3263{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3264echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3265if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
64ff59ba 3268 ac_cv_prog_cc_c89=no
d9898ee8 3269ac_save_CC=$CC
3270cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h. */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h. */
3276#include <stdarg.h>
3277#include <stdio.h>
3278#include <sys/types.h>
3279#include <sys/stat.h>
3280/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3281struct buf { int x; };
3282FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283static char *e (p, i)
3284 char **p;
3285 int i;
3286{
3287 return p[i];
3288}
3289static char *f (char * (*g) (char **, int), char **p, ...)
3290{
3291 char *s;
3292 va_list v;
3293 va_start (v,p);
3294 s = g (p, va_arg (v,int));
3295 va_end (v);
3296 return s;
3297}
3298
3299/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3300 function prototypes and stuff, but not '\xHH' hex character constants.
3301 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3302 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3304 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3305 that's true only with -std. */
d9898ee8 3306int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3307
64ff59ba 3308/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3309 inside strings and character constants. */
3310#define FOO(x) 'x'
3311int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3312
d9898ee8 3313int test (int i, double x);
3314struct s1 {int (*f) (int a);};
3315struct s2 {int (*f) (double a);};
3316int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317int argc;
3318char **argv;
3319int
3320main ()
3321{
3322return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3323 ;
3324 return 0;
3325}
3326_ACEOF
64ff59ba 3327for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3328 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3329do
3330 CC="$ac_save_CC $ac_arg"
3331 rm -f conftest.$ac_objext
64ff59ba 3332if { (ac_try="$ac_compile"
3333case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3336esac
3337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3339 ac_status=$?
3340 grep -v '^ *+' conftest.er1 >conftest.err
3341 rm -f conftest.er1
3342 cat conftest.err >&5
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3344 (exit $ac_status); } && {
3345 test -z "$ac_c_werror_flag" ||
3346 test ! -s conftest.err
3347 } && test -s conftest.$ac_objext; then
3348 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3349else
3350 echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
64ff59ba 3353
d9898ee8 3354fi
64ff59ba 3355
3356rm -f core conftest.err conftest.$ac_objext
3357 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3358done
64ff59ba 3359rm -f conftest.$ac_ext
d9898ee8 3360CC=$ac_save_CC
3361
3362fi
64ff59ba 3363# AC_CACHE_VAL
3364case "x$ac_cv_prog_cc_c89" in
3365 x)
3366 { echo "$as_me:$LINENO: result: none needed" >&5
3367echo "${ECHO_T}none needed" >&6; } ;;
3368 xno)
3369 { echo "$as_me:$LINENO: result: unsupported" >&5
3370echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3371 *)
64ff59ba 3372 CC="$CC $ac_cv_prog_cc_c89"
3373 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3374echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3375esac
3376
d9898ee8 3377
d9898ee8 3378ac_ext=c
3379ac_cpp='$CPP $CPPFLAGS'
3380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383DEPDIR="${am__leading_dot}deps"
3384
64ff59ba 3385ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3386
3387
3388am_make=${MAKE-make}
3389cat > confinc << 'END'
3390am__doit:
3391 @echo done
3392.PHONY: am__doit
3393END
3394# If we don't find an include directive, just comment out the code.
64ff59ba 3395{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3396echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3397am__include="#"
3398am__quote=
3399_am_result=none
3400# First try GNU make style include.
3401echo "include confinc" > confmf
3402# We grep out `Entering directory' and `Leaving directory'
3403# messages which can occur if `w' ends up in MAKEFLAGS.
3404# In particular we don't look at `^make:' because GNU make might
3405# be invoked under some other name (usually "gmake"), in which
3406# case it prints its new name instead of `make'.
3407if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3408 am__include=include
3409 am__quote=
3410 _am_result=GNU
3411fi
3412# Now try BSD make style include.
3413if test "$am__include" = "#"; then
3414 echo '.include "confinc"' > confmf
3415 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3416 am__include=.include
3417 am__quote="\""
3418 _am_result=BSD
3419 fi
3420fi
3421
3422
64ff59ba 3423{ echo "$as_me:$LINENO: result: $_am_result" >&5
3424echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3425rm -f confinc confmf
3426
64ff59ba 3427# Check whether --enable-dependency-tracking was given.
d9898ee8 3428if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3429 enableval=$enable_dependency_tracking;
3430fi
d9898ee8 3431
d9898ee8 3432if test "x$enable_dependency_tracking" != xno; then
3433 am_depcomp="$ac_aux_dir/depcomp"
3434 AMDEPBACKSLASH='\'
3435fi
64ff59ba 3436 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3437 AMDEP_TRUE=
3438 AMDEP_FALSE='#'
3439else
3440 AMDEP_TRUE='#'
3441 AMDEP_FALSE=
3442fi
3443
3444
3445
d9898ee8 3446depcc="$CC" am_compiler_list=
3447
64ff59ba 3448{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3449echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3450if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452else
3453 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3454 # We make a subdir and do the tests there. Otherwise we can end up
3455 # making bogus files that we don't know about and never remove. For
3456 # instance it was reported that on HP-UX the gcc test will end up
3457 # making a dummy file named `D' -- because `-MD' means `put the output
3458 # in D'.
3459 mkdir conftest.dir
3460 # Copy depcomp to subdir because otherwise we won't find it if we're
3461 # using a relative directory.
3462 cp "$am_depcomp" conftest.dir
3463 cd conftest.dir
3464 # We will build objects and dependencies in a subdirectory because
3465 # it helps to detect inapplicable dependency modes. For instance
3466 # both Tru64's cc and ICC support -MD to output dependencies as a
3467 # side effect of compilation, but ICC will put the dependencies in
3468 # the current directory while Tru64 will put them in the object
3469 # directory.
3470 mkdir sub
3471
3472 am_cv_CC_dependencies_compiler_type=none
3473 if test "$am_compiler_list" = ""; then
3474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3475 fi
3476 for depmode in $am_compiler_list; do
3477 # Setup a source with many dependencies, because some compilers
3478 # like to wrap large dependency lists on column 80 (with \), and
3479 # we should not choose a depcomp mode which is confused by this.
3480 #
3481 # We need to recreate these files for each test, as the compiler may
3482 # overwrite some of them when testing with obscure command lines.
3483 # This happens at least with the AIX C compiler.
3484 : > sub/conftest.c
3485 for i in 1 2 3 4 5 6; do
3486 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3487 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3488 # Solaris 8's {/usr,}/bin/sh.
3489 touch sub/conftst$i.h
3490 done
3491 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3492
3493 case $depmode in
3494 nosideeffect)
3495 # after this tag, mechanisms are not by side-effect, so they'll
3496 # only be used when explicitly requested
3497 if test "x$enable_dependency_tracking" = xyes; then
3498 continue
3499 else
3500 break
3501 fi
3502 ;;
3503 none) break ;;
3504 esac
3505 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3506 # mode. It turns out that the SunPro C++ compiler does not properly
3507 # handle `-M -o', and we need to detect this.
3508 if depmode=$depmode \
3509 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3510 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3511 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3512 >/dev/null 2>conftest.err &&
64ff59ba 3513 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3514 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3515 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3516 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3517 # icc doesn't choke on unknown options, it will just issue warnings
3518 # or remarks (even with -Werror). So we grep stderr for any message
3519 # that says an option was ignored or not supported.
3520 # When given -MP, icc 7.0 and 7.1 complain thusly:
3521 # icc: Command line warning: ignoring option '-M'; no argument required
3522 # The diagnosis changed in icc 8.0:
3523 # icc: Command line remark: option '-MP' not supported
3524 if (grep 'ignoring option' conftest.err ||
3525 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3526 am_cv_CC_dependencies_compiler_type=$depmode
3527 break
3528 fi
3529 fi
3530 done
3531
3532 cd ..
3533 rm -rf conftest.dir
3534else
3535 am_cv_CC_dependencies_compiler_type=none
3536fi
3537
3538fi
64ff59ba 3539{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3540echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3541CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3542
64ff59ba 3543 if
d9898ee8 3544 test "x$enable_dependency_tracking" != xno \
3545 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3546 am__fastdepCC_TRUE=
3547 am__fastdepCC_FALSE='#'
3548else
3549 am__fastdepCC_TRUE='#'
3550 am__fastdepCC_FALSE=
3551fi
3552
3553
3554# Find a good install program. We prefer a C program (faster),
3555# so one script is as good as another. But avoid the broken or
3556# incompatible versions:
3557# SysV /etc/install, /usr/sbin/install
3558# SunOS /usr/etc/install
3559# IRIX /sbin/install
3560# AIX /bin/install
3561# AmigaOS /C/install, which installs bootblocks on floppy discs
3562# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3563# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3564# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3565# OS/2's system install, which has a completely different semantic
3566# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 3567{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3568echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3569if test -z "$INSTALL"; then
3570if test "${ac_cv_path_install+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576 IFS=$as_save_IFS
3577 test -z "$as_dir" && as_dir=.
3578 # Account for people who put trailing slashes in PATH elements.
3579case $as_dir/ in
3580 ./ | .// | /cC/* | \
3581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3582 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3583 /usr/ucb/* ) ;;
3584 *)
3585 # OSF1 and SCO ODT 3.0 have their own names for install.
3586 # Don't use installbsd from OSF since it installs stuff as root
3587 # by default.
3588 for ac_prog in ginstall scoinst install; do
3589 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3590 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3591 if test $ac_prog = install &&
3592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3593 # AIX install. It has an incompatible calling convention.
3594 :
3595 elif test $ac_prog = install &&
3596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3597 # program-specific install script used by HP pwplus--don't use.
3598 :
3599 else
3600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3601 break 3
3602 fi
3603 fi
3604 done
3605 done
3606 ;;
3607esac
3608done
64ff59ba 3609IFS=$as_save_IFS
d9898ee8 3610
3611
3612fi
3613 if test "${ac_cv_path_install+set}" = set; then
3614 INSTALL=$ac_cv_path_install
3615 else
64ff59ba 3616 # As a last resort, use the slow shell script. Don't cache a
3617 # value for INSTALL within a source directory, because that will
d9898ee8 3618 # break other packages using the cache if that directory is
64ff59ba 3619 # removed, or if the value is a relative name.
d9898ee8 3620 INSTALL=$ac_install_sh
3621 fi
3622fi
64ff59ba 3623{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3624echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3625
3626# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3627# It thinks the first close brace ends the variable substitution.
3628test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3629
3630test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3631
3632test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3633
64ff59ba 3634{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3635echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3636LN_S=$as_ln_s
3637if test "$LN_S" = "ln -s"; then
64ff59ba 3638 { echo "$as_me:$LINENO: result: yes" >&5
3639echo "${ECHO_T}yes" >&6; }
d9898ee8 3640else
64ff59ba 3641 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3642echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3643fi
3644
64ff59ba 3645# Check whether --enable-shared was given.
d9898ee8 3646if test "${enable_shared+set}" = set; then
64ff59ba 3647 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3648 case $enableval in
3649 yes) enable_shared=yes ;;
3650 no) enable_shared=no ;;
3651 *)
3652 enable_shared=no
3653 # Look at the argument we got. We use all the common list separators.
3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655 for pkg in $enableval; do
3656 IFS="$lt_save_ifs"
3657 if test "X$pkg" = "X$p"; then
3658 enable_shared=yes
3659 fi
3660 done
3661 IFS="$lt_save_ifs"
3662 ;;
3663 esac
3664else
3665 enable_shared=yes
64ff59ba 3666fi
3667
d9898ee8 3668
64ff59ba 3669# Check whether --enable-static was given.
d9898ee8 3670if test "${enable_static+set}" = set; then
64ff59ba 3671 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3672 case $enableval in
3673 yes) enable_static=yes ;;
3674 no) enable_static=no ;;
3675 *)
3676 enable_static=no
3677 # Look at the argument we got. We use all the common list separators.
3678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679 for pkg in $enableval; do
3680 IFS="$lt_save_ifs"
3681 if test "X$pkg" = "X$p"; then
3682 enable_static=yes
3683 fi
3684 done
3685 IFS="$lt_save_ifs"
3686 ;;
3687 esac
3688else
3689 enable_static=yes
64ff59ba 3690fi
3691
d9898ee8 3692
64ff59ba 3693# Check whether --enable-fast-install was given.
d9898ee8 3694if test "${enable_fast_install+set}" = set; then
64ff59ba 3695 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3696 case $enableval in
3697 yes) enable_fast_install=yes ;;
3698 no) enable_fast_install=no ;;
3699 *)
3700 enable_fast_install=no
3701 # Look at the argument we got. We use all the common list separators.
3702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3703 for pkg in $enableval; do
3704 IFS="$lt_save_ifs"
3705 if test "X$pkg" = "X$p"; then
3706 enable_fast_install=yes
3707 fi
3708 done
3709 IFS="$lt_save_ifs"
3710 ;;
3711 esac
3712else
3713 enable_fast_install=yes
64ff59ba 3714fi
3715
d9898ee8 3716
3717# Make sure we can run config.sub.
64ff59ba 3718$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3719 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3720echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3721 { (exit 1); exit 1; }; }
3722
64ff59ba 3723{ echo "$as_me:$LINENO: checking build system type" >&5
3724echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3725if test "${ac_cv_build+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727else
64ff59ba 3728 ac_build_alias=$build_alias
3729test "x$ac_build_alias" = x &&
3730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3731test "x$ac_build_alias" = x &&
d9898ee8 3732 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3733echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3734 { (exit 1); exit 1; }; }
64ff59ba 3735ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3736 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3737echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3738 { (exit 1); exit 1; }; }
3739
3740fi
64ff59ba 3741{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3742echo "${ECHO_T}$ac_cv_build" >&6; }
3743case $ac_cv_build in
3744*-*-*) ;;
3745*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3746echo "$as_me: error: invalid value of canonical build" >&2;}
3747 { (exit 1); exit 1; }; };;
3748esac
d9898ee8 3749build=$ac_cv_build
64ff59ba 3750ac_save_IFS=$IFS; IFS='-'
3751set x $ac_cv_build
3752shift
3753build_cpu=$1
3754build_vendor=$2
3755shift; shift
3756# Remember, the first character of IFS is used to create $*,
3757# except with old shells:
3758build_os=$*
3759IFS=$ac_save_IFS
3760case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3761
3762
3763{ echo "$as_me:$LINENO: checking host system type" >&5
3764echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3765if test "${ac_cv_host+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
64ff59ba 3768 if test "x$host_alias" = x; then
3769 ac_cv_host=$ac_cv_build
3770else
3771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3772 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3773echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3774 { (exit 1); exit 1; }; }
64ff59ba 3775fi
d9898ee8 3776
3777fi
64ff59ba 3778{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3779echo "${ECHO_T}$ac_cv_host" >&6; }
3780case $ac_cv_host in
3781*-*-*) ;;
3782*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3783echo "$as_me: error: invalid value of canonical host" >&2;}
3784 { (exit 1); exit 1; }; };;
3785esac
d9898ee8 3786host=$ac_cv_host
64ff59ba 3787ac_save_IFS=$IFS; IFS='-'
3788set x $ac_cv_host
3789shift
3790host_cpu=$1
3791host_vendor=$2
3792shift; shift
3793# Remember, the first character of IFS is used to create $*,
3794# except with old shells:
3795host_os=$*
3796IFS=$ac_save_IFS
3797case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3798
3799
3800{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3802if test "${lt_cv_path_SED+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3804else
3805 # Loop through the user's path and test for sed and gsed.
3806# Then use that list of sed's as ones to test for truncation.
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for lt_ac_prog in sed gsed; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
0fde1ce3 3814 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 3815 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3816 fi
3817 done
3818 done
3819done
3820IFS=$as_save_IFS
3821lt_ac_max=0
3822lt_ac_count=0
3823# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3824# along with /bin/sed that truncates output.
3825for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3826 test ! -f $lt_ac_sed && continue
3827 cat /dev/null > conftest.in
3828 lt_ac_count=0
3829 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3830 # Check for GNU sed and select it if it is found.
3831 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3832 lt_cv_path_SED=$lt_ac_sed
3833 break
3834 fi
3835 while true; do
3836 cat conftest.in conftest.in >conftest.tmp
3837 mv conftest.tmp conftest.in
3838 cp conftest.in conftest.nl
3839 echo >>conftest.nl
3840 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3841 cmp -s conftest.out conftest.nl || break
3842 # 10000 chars as input seems more than enough
3843 test $lt_ac_count -gt 10 && break
3844 lt_ac_count=`expr $lt_ac_count + 1`
3845 if test $lt_ac_count -gt $lt_ac_max; then
3846 lt_ac_max=$lt_ac_count
3847 lt_cv_path_SED=$lt_ac_sed
3848 fi
3849 done
3850done
3851
3852fi
3853
3854SED=$lt_cv_path_SED
3855
64ff59ba 3856{ echo "$as_me:$LINENO: result: $SED" >&5
3857echo "${ECHO_T}$SED" >&6; }
3858
3859{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3860echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3861if test "${ac_cv_path_GREP+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 # Extract the first word of "grep ggrep" to use in msg output
3865if test -z "$GREP"; then
3866set dummy grep ggrep; ac_prog_name=$2
3867if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 ac_path_GREP_found=false
3871# Loop through the user's path and test for each of PROGNAME-LIST
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_prog in grep ggrep; do
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3880 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3881 # Check for GNU ac_path_GREP and select it if it is found.
3882 # Check for GNU $ac_path_GREP
3883case `"$ac_path_GREP" --version 2>&1` in
3884*GNU*)
3885 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3886*)
3887 ac_count=0
3888 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3889 while :
3890 do
3891 cat "conftest.in" "conftest.in" >"conftest.tmp"
3892 mv "conftest.tmp" "conftest.in"
3893 cp "conftest.in" "conftest.nl"
3894 echo 'GREP' >> "conftest.nl"
3895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3897 ac_count=`expr $ac_count + 1`
3898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3899 # Best one so far, save it but keep looking for a better one
3900 ac_cv_path_GREP="$ac_path_GREP"
3901 ac_path_GREP_max=$ac_count
3902 fi
3903 # 10*(2^10) chars as input seems more than enough
3904 test $ac_count -gt 10 && break
3905 done
3906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3907esac
3908
3909
3910 $ac_path_GREP_found && break 3
3911 done
3912done
3913
3914done
3915IFS=$as_save_IFS
3916
3917
3918fi
3919
3920GREP="$ac_cv_path_GREP"
3921if test -z "$GREP"; then
3922 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3923echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3924 { (exit 1); exit 1; }; }
3925fi
3926
3927else
3928 ac_cv_path_GREP=$GREP
3929fi
3930
d9898ee8 3931
64ff59ba 3932fi
3933{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3934echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3935 GREP="$ac_cv_path_GREP"
3936
3937
3938{ echo "$as_me:$LINENO: checking for egrep" >&5
3939echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3940if test "${ac_cv_path_EGREP+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942else
3943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3944 then ac_cv_path_EGREP="$GREP -E"
3945 else
3946 # Extract the first word of "egrep" to use in msg output
3947if test -z "$EGREP"; then
3948set dummy egrep; ac_prog_name=$2
3949if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
64ff59ba 3952 ac_path_EGREP_found=false
3953# Loop through the user's path and test for each of PROGNAME-LIST
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_prog in egrep; do
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3962 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3963 # Check for GNU ac_path_EGREP and select it if it is found.
3964 # Check for GNU $ac_path_EGREP
3965case `"$ac_path_EGREP" --version 2>&1` in
3966*GNU*)
3967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3968*)
3969 ac_count=0
3970 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3971 while :
3972 do
3973 cat "conftest.in" "conftest.in" >"conftest.tmp"
3974 mv "conftest.tmp" "conftest.in"
3975 cp "conftest.in" "conftest.nl"
3976 echo 'EGREP' >> "conftest.nl"
3977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3979 ac_count=`expr $ac_count + 1`
3980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3981 # Best one so far, save it but keep looking for a better one
3982 ac_cv_path_EGREP="$ac_path_EGREP"
3983 ac_path_EGREP_max=$ac_count
d9898ee8 3984 fi
64ff59ba 3985 # 10*(2^10) chars as input seems more than enough
3986 test $ac_count -gt 10 && break
3987 done
3988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3989esac
3990
3991
3992 $ac_path_EGREP_found && break 3
3993 done
3994done
3995
3996done
3997IFS=$as_save_IFS
3998
3999
4000fi
4001
4002EGREP="$ac_cv_path_EGREP"
4003if test -z "$EGREP"; then
4004 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4005echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4006 { (exit 1); exit 1; }; }
4007fi
4008
4009else
4010 ac_cv_path_EGREP=$EGREP
4011fi
4012
4013
4014 fi
d9898ee8 4015fi
64ff59ba 4016{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4017echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4018 EGREP="$ac_cv_path_EGREP"
d9898ee8 4019
4020
4021
64ff59ba 4022# Check whether --with-gnu-ld was given.
d9898ee8 4023if test "${with_gnu_ld+set}" = set; then
64ff59ba 4024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4025else
4026 with_gnu_ld=no
64ff59ba 4027fi
4028
d9898ee8 4029ac_prog=ld
4030if test "$GCC" = yes; then
4031 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4032 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4033echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4034 case $host in
4035 *-*-mingw*)
4036 # gcc leaves a trailing carriage return which upsets mingw
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4038 *)
4039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4040 esac
4041 case $ac_prog in
4042 # Accept absolute paths.
4043 [\\/]* | ?:[\\/]*)
4044 re_direlt='/[^/][^/]*/\.\./'
4045 # Canonicalize the pathname of ld
4046 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4047 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4048 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4049 done
4050 test -z "$LD" && LD="$ac_prog"
4051 ;;
4052 "")
4053 # If it fails, then pretend we aren't using GCC.
4054 ac_prog=ld
4055 ;;
4056 *)
4057 # If it is relative, then search for the first ld in PATH.
4058 with_gnu_ld=unknown
4059 ;;
4060 esac
4061elif test "$with_gnu_ld" = yes; then
64ff59ba 4062 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4063echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4064else
64ff59ba 4065 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4066echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4067fi
4068if test "${lt_cv_path_LD+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070else
4071 if test -z "$LD"; then
4072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4073 for ac_dir in $PATH; do
4074 IFS="$lt_save_ifs"
4075 test -z "$ac_dir" && ac_dir=.
4076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4077 lt_cv_path_LD="$ac_dir/$ac_prog"
4078 # Check to see if the program is GNU ld. I'd rather use --version,
4079 # but apparently some variants of GNU ld only accept -v.
4080 # Break only if it was the GNU/non-GNU ld that we prefer.
4081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4082 *GNU* | *'with BFD'*)
4083 test "$with_gnu_ld" != no && break
4084 ;;
4085 *)
4086 test "$with_gnu_ld" != yes && break
4087 ;;
4088 esac
4089 fi
4090 done
4091 IFS="$lt_save_ifs"
4092else
4093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4094fi
4095fi
4096
4097LD="$lt_cv_path_LD"
4098if test -n "$LD"; then
64ff59ba 4099 { echo "$as_me:$LINENO: result: $LD" >&5
4100echo "${ECHO_T}$LD" >&6; }
d9898ee8 4101else
64ff59ba 4102 { echo "$as_me:$LINENO: result: no" >&5
4103echo "${ECHO_T}no" >&6; }
d9898ee8 4104fi
4105test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4106echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4107 { (exit 1); exit 1; }; }
64ff59ba 4108{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4109echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4110if test "${lt_cv_prog_gnu_ld+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4114case `$LD -v 2>&1 </dev/null` in
4115*GNU* | *'with BFD'*)
4116 lt_cv_prog_gnu_ld=yes
4117 ;;
4118*)
4119 lt_cv_prog_gnu_ld=no
4120 ;;
4121esac
4122fi
64ff59ba 4123{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4124echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4125with_gnu_ld=$lt_cv_prog_gnu_ld
4126
4127
64ff59ba 4128{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4129echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4130if test "${lt_cv_ld_reload_flag+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 lt_cv_ld_reload_flag='-r'
4134fi
64ff59ba 4135{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4136echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4137reload_flag=$lt_cv_ld_reload_flag
4138case $reload_flag in
4139"" | " "*) ;;
4140*) reload_flag=" $reload_flag" ;;
4141esac
4142reload_cmds='$LD$reload_flag -o $output$reload_objs'
4143case $host_os in
4144 darwin*)
4145 if test "$GCC" = yes; then
4146 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4147 else
4148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149 fi
4150 ;;
4151esac
4152
64ff59ba 4153{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4154echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4155if test "${lt_cv_path_NM+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157else
4158 if test -n "$NM"; then
4159 # Let the user override the test.
4160 lt_cv_path_NM="$NM"
4161else
4162 lt_nm_to_check="${ac_tool_prefix}nm"
4163 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4164 lt_nm_to_check="$lt_nm_to_check nm"
4165 fi
4166 for lt_tmp_nm in $lt_nm_to_check; do
4167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4168 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4169 IFS="$lt_save_ifs"
4170 test -z "$ac_dir" && ac_dir=.
4171 tmp_nm="$ac_dir/$lt_tmp_nm"
4172 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4173 # Check to see if the nm accepts a BSD-compat flag.
4174 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4175 # nm: unknown option "B" ignored
4176 # Tru64's nm complains that /dev/null is an invalid object file
4177 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4178 */dev/null* | *'Invalid file or object type'*)
4179 lt_cv_path_NM="$tmp_nm -B"
4180 break
4181 ;;
4182 *)
4183 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4184 */dev/null*)
4185 lt_cv_path_NM="$tmp_nm -p"
4186 break
4187 ;;
4188 *)
4189 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4190 continue # so that we can try to find one that supports BSD flags
4191 ;;
4192 esac
4193 ;;
4194 esac
4195 fi
4196 done
4197 IFS="$lt_save_ifs"
4198 done
4199 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4200fi
4201fi
64ff59ba 4202{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4203echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4204NM="$lt_cv_path_NM"
4205
0fde1ce3 4206{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4207echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 4208if test "${lt_cv_deplibs_check_method+set}" = set; then
4209 echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211 lt_cv_file_magic_cmd='$MAGIC_CMD'
4212lt_cv_file_magic_test_file=
4213lt_cv_deplibs_check_method='unknown'
4214# Need to set the preceding variable on all platforms that support
4215# interlibrary dependencies.
4216# 'none' -- dependencies not supported.
4217# `unknown' -- same as none, but documents that we really don't know.
4218# 'pass_all' -- all dependencies passed with no checks.
4219# 'test_compile' -- check by making test program.
4220# 'file_magic [[regex]]' -- check by looking for files in library path
4221# which responds to the $file_magic_cmd with a given extended regex.
4222# If you have `file' or equivalent on your system and you're not sure
4223# whether `pass_all' will *always* work, you probably want this one.
4224
4225case $host_os in
4226aix4* | aix5*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229
4230beos*)
4231 lt_cv_deplibs_check_method=pass_all
4232 ;;
4233
4234bsdi[45]*)
4235 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4236 lt_cv_file_magic_cmd='/usr/bin/file -L'
4237 lt_cv_file_magic_test_file=/shlib/libc.so
4238 ;;
4239
4240cygwin*)
4241 # func_win32_libid is a shell function defined in ltmain.sh
4242 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4243 lt_cv_file_magic_cmd='func_win32_libid'
4244 ;;
4245
4246mingw* | pw32*)
4247 # Base MSYS/MinGW do not provide the 'file' command needed by
0fde1ce3 4248 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4249 # unless we find 'file', for example because we are cross-compiling.
4250 if ( file / ) >/dev/null 2>&1; then
4251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4252 lt_cv_file_magic_cmd='func_win32_libid'
4253 else
4254 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4255 lt_cv_file_magic_cmd='$OBJDUMP -f'
4256 fi
d9898ee8 4257 ;;
4258
4259darwin* | rhapsody*)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262
0fde1ce3 4263freebsd* | dragonfly*)
d9898ee8 4264 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4265 case $host_cpu in
4266 i*86 )
4267 # Not sure whether the presence of OpenBSD here was a mistake.
4268 # Let's accept both of them until this is cleared up.
4269 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4270 lt_cv_file_magic_cmd=/usr/bin/file
4271 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4272 ;;
4273 esac
4274 else
4275 lt_cv_deplibs_check_method=pass_all
4276 fi
4277 ;;
4278
4279gnu*)
4280 lt_cv_deplibs_check_method=pass_all
4281 ;;
4282
4283hpux10.20* | hpux11*)
4284 lt_cv_file_magic_cmd=/usr/bin/file
4285 case $host_cpu in
4286 ia64*)
4287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4288 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4289 ;;
4290 hppa*64*)
4291 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]'
4292 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4293 ;;
4294 *)
4295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4296 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4297 ;;
4298 esac
4299 ;;
4300
0fde1ce3 4301interix[3-9]*)
d9898ee8 4302 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4304 ;;
4305
4306irix5* | irix6* | nonstopux*)
4307 case $LD in
4308 *-32|*"-32 ") libmagic=32-bit;;
4309 *-n32|*"-n32 ") libmagic=N32;;
4310 *-64|*"-64 ") libmagic=64-bit;;
4311 *) libmagic=never-match;;
4312 esac
4313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316# This must be Linux ELF.
0fde1ce3 4317linux* | k*bsd*-gnu)
d9898ee8 4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
4321netbsd*)
4322 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4324 else
4325 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4326 fi
4327 ;;
4328
4329newos6*)
4330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4333 ;;
4334
4335nto-qnx*)
4336 lt_cv_deplibs_check_method=unknown
4337 ;;
4338
4339openbsd*)
4340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4342 else
4343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4344 fi
4345 ;;
4346
4347osf3* | osf4* | osf5*)
4348 lt_cv_deplibs_check_method=pass_all
4349 ;;
4350
0fde1ce3 4351rdos*)
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
4354
d9898ee8 4355solaris*)
4356 lt_cv_deplibs_check_method=pass_all
4357 ;;
4358
4359sysv4 | sysv4.3*)
4360 case $host_vendor in
4361 motorola)
4362 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]'
4363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4364 ;;
4365 ncr)
4366 lt_cv_deplibs_check_method=pass_all
4367 ;;
4368 sequent)
4369 lt_cv_file_magic_cmd='/bin/file'
4370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4371 ;;
4372 sni)
4373 lt_cv_file_magic_cmd='/bin/file'
4374 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4375 lt_cv_file_magic_test_file=/lib/libc.so
4376 ;;
4377 siemens)
4378 lt_cv_deplibs_check_method=pass_all
4379 ;;
4380 pc)
4381 lt_cv_deplibs_check_method=pass_all
4382 ;;
4383 esac
4384 ;;
4385
4386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4387 lt_cv_deplibs_check_method=pass_all
4388 ;;
4389esac
4390
4391fi
64ff59ba 4392{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4393echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4394file_magic_cmd=$lt_cv_file_magic_cmd
4395deplibs_check_method=$lt_cv_deplibs_check_method
4396test -z "$deplibs_check_method" && deplibs_check_method=unknown
4397
4398
4399
4400
4401# If no C compiler was specified, use CC.
4402LTCC=${LTCC-"$CC"}
4403
4404# If no C compiler flags were specified, use CFLAGS.
4405LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4406
4407# Allow CC to be a program name with arguments.
4408compiler=$CC
4409
4410
64ff59ba 4411# Check whether --enable-libtool-lock was given.
d9898ee8 4412if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4413 enableval=$enable_libtool_lock;
4414fi
d9898ee8 4415
d9898ee8 4416test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4417
4418# Some flags need to be propagated to the compiler or linker for good
4419# libtool support.
4420case $host in
4421ia64-*-hpux*)
4422 # Find out which ABI we are using.
4423 echo 'int i;' > conftest.$ac_ext
4424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4425 (eval $ac_compile) 2>&5
4426 ac_status=$?
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; then
4429 case `/usr/bin/file conftest.$ac_objext` in
4430 *ELF-32*)
4431 HPUX_IA64_MODE="32"
4432 ;;
4433 *ELF-64*)
4434 HPUX_IA64_MODE="64"
4435 ;;
4436 esac
4437 fi
4438 rm -rf conftest*
4439 ;;
4440*-*-irix6*)
4441 # Find out which ABI we are using.
0fde1ce3 4442 echo '#line 4442 "configure"' > conftest.$ac_ext
d9898ee8 4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 if test "$lt_cv_prog_gnu_ld" = yes; then
4449 case `/usr/bin/file conftest.$ac_objext` in
4450 *32-bit*)
4451 LD="${LD-ld} -melf32bsmip"
4452 ;;
4453 *N32*)
4454 LD="${LD-ld} -melf32bmipn32"
4455 ;;
4456 *64-bit*)
4457 LD="${LD-ld} -melf64bmip"
4458 ;;
4459 esac
4460 else
4461 case `/usr/bin/file conftest.$ac_objext` in
4462 *32-bit*)
4463 LD="${LD-ld} -32"
4464 ;;
4465 *N32*)
4466 LD="${LD-ld} -n32"
4467 ;;
4468 *64-bit*)
4469 LD="${LD-ld} -64"
4470 ;;
4471 esac
4472 fi
4473 fi
4474 rm -rf conftest*
4475 ;;
4476
0fde1ce3 4477x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4478s390*-*linux*|sparc*-*linux*)
d9898ee8 4479 # Find out which ABI we are using.
4480 echo 'int i;' > conftest.$ac_ext
4481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4482 (eval $ac_compile) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; then
4486 case `/usr/bin/file conftest.o` in
4487 *32-bit*)
4488 case $host in
0fde1ce3 4489 x86_64-*kfreebsd*-gnu)
4490 LD="${LD-ld} -m elf_i386_fbsd"
4491 ;;
d9898ee8 4492 x86_64-*linux*)
4493 LD="${LD-ld} -m elf_i386"
4494 ;;
4495 ppc64-*linux*|powerpc64-*linux*)
4496 LD="${LD-ld} -m elf32ppclinux"
4497 ;;
4498 s390x-*linux*)
4499 LD="${LD-ld} -m elf_s390"
4500 ;;
4501 sparc64-*linux*)
4502 LD="${LD-ld} -m elf32_sparc"
4503 ;;
4504 esac
4505 ;;
4506 *64-bit*)
0fde1ce3 4507 libsuff=64
d9898ee8 4508 case $host in
0fde1ce3 4509 x86_64-*kfreebsd*-gnu)
4510 LD="${LD-ld} -m elf_x86_64_fbsd"
4511 ;;
d9898ee8 4512 x86_64-*linux*)
4513 LD="${LD-ld} -m elf_x86_64"
4514 ;;
4515 ppc*-*linux*|powerpc*-*linux*)
4516 LD="${LD-ld} -m elf64ppc"
4517 ;;
4518 s390*-*linux*)
4519 LD="${LD-ld} -m elf64_s390"
4520 ;;
4521 sparc*-*linux*)
4522 LD="${LD-ld} -m elf64_sparc"
4523 ;;
4524 esac
4525 ;;
4526 esac
4527 fi
4528 rm -rf conftest*
4529 ;;
4530
4531*-*-sco3.2v5*)
4532 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4533 SAVE_CFLAGS="$CFLAGS"
4534 CFLAGS="$CFLAGS -belf"
64ff59ba 4535 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4536echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4537if test "${lt_cv_cc_needs_belf+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 ac_ext=c
4541ac_cpp='$CPP $CPPFLAGS'
4542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546 cat >conftest.$ac_ext <<_ACEOF
4547/* confdefs.h. */
4548_ACEOF
4549cat confdefs.h >>conftest.$ac_ext
4550cat >>conftest.$ac_ext <<_ACEOF
4551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556
4557 ;
4558 return 0;
4559}
4560_ACEOF
4561rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4562if { (ac_try="$ac_link"
4563case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566esac
4567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_link") 2>conftest.er1
d9898ee8 4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4574 (exit $ac_status); } && {
4575 test -z "$ac_c_werror_flag" ||
4576 test ! -s conftest.err
4577 } && test -s conftest$ac_exeext &&
4578 $as_test_x conftest$ac_exeext; then
d9898ee8 4579 lt_cv_cc_needs_belf=yes
4580else
4581 echo "$as_me: failed program was:" >&5
4582sed 's/^/| /' conftest.$ac_ext >&5
4583
64ff59ba 4584 lt_cv_cc_needs_belf=no
d9898ee8 4585fi
64ff59ba 4586
4587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4588 conftest$ac_exeext conftest.$ac_ext
4589 ac_ext=c
4590ac_cpp='$CPP $CPPFLAGS'
4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594
4595fi
64ff59ba 4596{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4597echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4600 CFLAGS="$SAVE_CFLAGS"
4601 fi
4602 ;;
4603sparc*-*solaris*)
4604 # Find out which ABI we are using.
4605 echo 'int i;' > conftest.$ac_ext
4606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4607 (eval $ac_compile) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; then
4611 case `/usr/bin/file conftest.o` in
4612 *64-bit*)
4613 case $lt_cv_prog_gnu_ld in
4614 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4615 *) LD="${LD-ld} -64" ;;
4616 esac
4617 ;;
4618 esac
4619 fi
4620 rm -rf conftest*
4621 ;;
4622
4623
4624esac
4625
4626need_locks="$enable_libtool_lock"
4627
4628
4629ac_ext=c
4630ac_cpp='$CPP $CPPFLAGS'
4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 4634{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4635echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4636# On Suns, sometimes $CPP names a directory.
4637if test -n "$CPP" && test -d "$CPP"; then
4638 CPP=
4639fi
4640if test -z "$CPP"; then
4641 if test "${ac_cv_prog_CPP+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 # Double quotes because CPP needs to be expanded
4645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4646 do
4647 ac_preproc_ok=false
4648for ac_c_preproc_warn_flag in '' yes
4649do
4650 # Use a header file that comes with gcc, so configuring glibc
4651 # with a fresh cross-compiler works.
4652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4653 # <limits.h> exists even on freestanding compilers.
4654 # On the NeXT, cc -E runs the code through the compiler's parser,
4655 # not just through cpp. "Syntax error" is here to catch this case.
4656 cat >conftest.$ac_ext <<_ACEOF
4657/* confdefs.h. */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h. */
4662#ifdef __STDC__
4663# include <limits.h>
4664#else
4665# include <assert.h>
4666#endif
4667 Syntax error
4668_ACEOF
64ff59ba 4669if { (ac_try="$ac_cpp conftest.$ac_ext"
4670case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673esac
4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4681 (exit $ac_status); } >/dev/null && {
4682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4683 test ! -s conftest.err
4684 }; then
d9898ee8 4685 :
4686else
4687 echo "$as_me: failed program was:" >&5
4688sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 # Broken: fails on valid input.
4691continue
4692fi
64ff59ba 4693
d9898ee8 4694rm -f conftest.err conftest.$ac_ext
4695
64ff59ba 4696 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4697 # can be detected and how.
4698 cat >conftest.$ac_ext <<_ACEOF
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
4704#include <ac_nonexistent.h>
4705_ACEOF
64ff59ba 4706if { (ac_try="$ac_cpp conftest.$ac_ext"
4707case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710esac
4711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4718 (exit $ac_status); } >/dev/null && {
4719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 }; then
d9898ee8 4722 # Broken: success on invalid input.
4723continue
4724else
4725 echo "$as_me: failed program was:" >&5
4726sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 # Passes both tests.
4729ac_preproc_ok=:
4730break
4731fi
64ff59ba 4732
d9898ee8 4733rm -f conftest.err conftest.$ac_ext
4734
4735done
4736# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4737rm -f conftest.err conftest.$ac_ext
4738if $ac_preproc_ok; then
4739 break
4740fi
4741
4742 done
4743 ac_cv_prog_CPP=$CPP
4744
4745fi
4746 CPP=$ac_cv_prog_CPP
4747else
4748 ac_cv_prog_CPP=$CPP
4749fi
64ff59ba 4750{ echo "$as_me:$LINENO: result: $CPP" >&5
4751echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4752ac_preproc_ok=false
4753for ac_c_preproc_warn_flag in '' yes
4754do
4755 # Use a header file that comes with gcc, so configuring glibc
4756 # with a fresh cross-compiler works.
4757 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4758 # <limits.h> exists even on freestanding compilers.
4759 # On the NeXT, cc -E runs the code through the compiler's parser,
4760 # not just through cpp. "Syntax error" is here to catch this case.
4761 cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h. */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h. */
4767#ifdef __STDC__
4768# include <limits.h>
4769#else
4770# include <assert.h>
4771#endif
4772 Syntax error
4773_ACEOF
64ff59ba 4774if { (ac_try="$ac_cpp conftest.$ac_ext"
4775case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778esac
4779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4781 ac_status=$?
4782 grep -v '^ *+' conftest.er1 >conftest.err
4783 rm -f conftest.er1
4784 cat conftest.err >&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4786 (exit $ac_status); } >/dev/null && {
4787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4789 }; then
d9898ee8 4790 :
4791else
4792 echo "$as_me: failed program was:" >&5
4793sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 # Broken: fails on valid input.
4796continue
4797fi
64ff59ba 4798
d9898ee8 4799rm -f conftest.err conftest.$ac_ext
4800
64ff59ba 4801 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4802 # can be detected and how.
4803 cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h. */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h. */
4809#include <ac_nonexistent.h>
4810_ACEOF
64ff59ba 4811if { (ac_try="$ac_cpp conftest.$ac_ext"
4812case "(($ac_try" in
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4815esac
4816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4818 ac_status=$?
4819 grep -v '^ *+' conftest.er1 >conftest.err
4820 rm -f conftest.er1
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4823 (exit $ac_status); } >/dev/null && {
4824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4825 test ! -s conftest.err
4826 }; then
d9898ee8 4827 # Broken: success on invalid input.
4828continue
4829else
4830 echo "$as_me: failed program was:" >&5
4831sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 # Passes both tests.
4834ac_preproc_ok=:
4835break
4836fi
64ff59ba 4837
d9898ee8 4838rm -f conftest.err conftest.$ac_ext
4839
4840done
4841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4842rm -f conftest.err conftest.$ac_ext
4843if $ac_preproc_ok; then
4844 :
4845else
4846 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4847See \`config.log' for more details." >&5
4848echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4849See \`config.log' for more details." >&2;}
4850 { (exit 1); exit 1; }; }
4851fi
4852
4853ac_ext=c
4854ac_cpp='$CPP $CPPFLAGS'
4855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
64ff59ba 4860{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4861echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4862if test "${ac_cv_header_stdc+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871#include <stdlib.h>
4872#include <stdarg.h>
4873#include <string.h>
4874#include <float.h>
4875
4876int
4877main ()
4878{
4879
4880 ;
4881 return 0;
4882}
4883_ACEOF
4884rm -f conftest.$ac_objext
64ff59ba 4885if { (ac_try="$ac_compile"
4886case "(($ac_try" in
4887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888 *) ac_try_echo=$ac_try;;
4889esac
4890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
d9898ee8 4901 ac_cv_header_stdc=yes
4902else
4903 echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
64ff59ba 4906 ac_cv_header_stdc=no
d9898ee8 4907fi
64ff59ba 4908
4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4910
4911if test $ac_cv_header_stdc = yes; then
4912 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
4920
4921_ACEOF
4922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4934 cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
4940#include <stdlib.h>
4941
4942_ACEOF
4943if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4944 $EGREP "free" >/dev/null 2>&1; then
4945 :
4946else
4947 ac_cv_header_stdc=no
4948fi
4949rm -f conftest*
4950
4951fi
4952
4953if test $ac_cv_header_stdc = yes; then
4954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4955 if test "$cross_compiling" = yes; then
4956 :
4957else
4958 cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h. */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h. */
4964#include <ctype.h>
64ff59ba 4965#include <stdlib.h>
d9898ee8 4966#if ((' ' & 0x0FF) == 0x020)
4967# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4968# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4969#else
4970# define ISLOWER(c) \
4971 (('a' <= (c) && (c) <= 'i') \
4972 || ('j' <= (c) && (c) <= 'r') \
4973 || ('s' <= (c) && (c) <= 'z'))
4974# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4975#endif
4976
4977#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4978int
4979main ()
4980{
4981 int i;
4982 for (i = 0; i < 256; i++)
4983 if (XOR (islower (i), ISLOWER (i))
4984 || toupper (i) != TOUPPER (i))
64ff59ba 4985 return 2;
4986 return 0;
d9898ee8 4987}
4988_ACEOF
4989rm -f conftest$ac_exeext
64ff59ba 4990if { (ac_try="$ac_link"
4991case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994esac
4995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4996 (eval "$ac_link") 2>&5
d9898ee8 4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 5000 { (case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003esac
5004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_try") 2>&5
d9898ee8 5006 ac_status=$?
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 :
5010else
5011 echo "$as_me: program exited with status $ac_status" >&5
5012echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015( exit $ac_status )
5016ac_cv_header_stdc=no
5017fi
64ff59ba 5018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5019fi
64ff59ba 5020
5021
d9898ee8 5022fi
5023fi
64ff59ba 5024{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5025echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5026if test $ac_cv_header_stdc = yes; then
5027
5028cat >>confdefs.h <<\_ACEOF
5029#define STDC_HEADERS 1
5030_ACEOF
5031
5032fi
5033
5034# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5045 inttypes.h stdint.h unistd.h
5046do
5047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5048{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053 cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h. */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h. */
5059$ac_includes_default
5060
5061#include <$ac_header>
5062_ACEOF
5063rm -f conftest.$ac_objext
64ff59ba 5064if { (ac_try="$ac_compile"
5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
5069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5070 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5071 ac_status=$?
5072 grep -v '^ *+' conftest.er1 >conftest.err
5073 rm -f conftest.er1
5074 cat conftest.err >&5
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5076 (exit $ac_status); } && {
5077 test -z "$ac_c_werror_flag" ||
5078 test ! -s conftest.err
5079 } && test -s conftest.$ac_objext; then
d9898ee8 5080 eval "$as_ac_Header=yes"
5081else
5082 echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
64ff59ba 5085 eval "$as_ac_Header=no"
d9898ee8 5086fi
64ff59ba 5087
5088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5089fi
64ff59ba 5090ac_res=`eval echo '${'$as_ac_Header'}'`
5091 { echo "$as_me:$LINENO: result: $ac_res" >&5
5092echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5093if test `eval echo '${'$as_ac_Header'}'` = yes; then
5094 cat >>confdefs.h <<_ACEOF
5095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5096_ACEOF
5097
5098fi
5099
5100done
5101
5102
5103
5104for ac_header in dlfcn.h
5105do
5106as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112fi
64ff59ba 5113ac_res=`eval echo '${'$as_ac_Header'}'`
5114 { echo "$as_me:$LINENO: result: $ac_res" >&5
5115echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5116else
5117 # Is the header compilable?
64ff59ba 5118{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5120cat >conftest.$ac_ext <<_ACEOF
5121/* confdefs.h. */
5122_ACEOF
5123cat confdefs.h >>conftest.$ac_ext
5124cat >>conftest.$ac_ext <<_ACEOF
5125/* end confdefs.h. */
5126$ac_includes_default
5127#include <$ac_header>
5128_ACEOF
5129rm -f conftest.$ac_objext
64ff59ba 5130if { (ac_try="$ac_compile"
5131case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134esac
5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
d9898ee8 5146 ac_header_compiler=yes
5147else
5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
64ff59ba 5151 ac_header_compiler=no
d9898ee8 5152fi
64ff59ba 5153
5154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5156echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5157
5158# Is the header present?
64ff59ba 5159{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5161cat >conftest.$ac_ext <<_ACEOF
5162/* confdefs.h. */
5163_ACEOF
5164cat confdefs.h >>conftest.$ac_ext
5165cat >>conftest.$ac_ext <<_ACEOF
5166/* end confdefs.h. */
5167#include <$ac_header>
5168_ACEOF
64ff59ba 5169if { (ac_try="$ac_cpp conftest.$ac_ext"
5170case "(($ac_try" in
5171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5172 *) ac_try_echo=$ac_try;;
5173esac
5174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5181 (exit $ac_status); } >/dev/null && {
5182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5183 test ! -s conftest.err
5184 }; then
d9898ee8 5185 ac_header_preproc=yes
5186else
5187 echo "$as_me: failed program was:" >&5
5188sed 's/^/| /' conftest.$ac_ext >&5
5189
5190 ac_header_preproc=no
5191fi
64ff59ba 5192
d9898ee8 5193rm -f conftest.err conftest.$ac_ext
64ff59ba 5194{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5195echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5196
5197# So? What about this header?
5198case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5199 yes:no: )
5200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5201echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5203echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5204 ac_header_preproc=yes
5205 ;;
5206 no:yes:* )
5207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5208echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5210echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5212echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5214echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5218echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5219 ( cat <<\_ASBOX
d9898ee8 5220## -------------------------------------------------- ##
5221## Report this to courier-users@lists.sourceforge.net ##
5222## -------------------------------------------------- ##
5223_ASBOX
64ff59ba 5224 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5225 ;;
5226esac
64ff59ba 5227{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232 eval "$as_ac_Header=\$ac_header_preproc"
5233fi
64ff59ba 5234ac_res=`eval echo '${'$as_ac_Header'}'`
5235 { echo "$as_me:$LINENO: result: $ac_res" >&5
5236echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5237
5238fi
5239if test `eval echo '${'$as_ac_Header'}'` = yes; then
5240 cat >>confdefs.h <<_ACEOF
5241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5242_ACEOF
5243
5244fi
5245
5246done
5247
64ff59ba 5248ac_ext=cpp
d9898ee8 5249ac_cpp='$CXXCPP $CPPFLAGS'
5250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5253if test -z "$CXX"; then
5254 if test -n "$CCC"; then
5255 CXX=$CCC
5256 else
5257 if test -n "$ac_tool_prefix"; then
5258 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5259 do
5260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5264if test "${ac_cv_prog_CXX+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5266else
5267 if test -n "$CXX"; then
5268 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5277 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282done
64ff59ba 5283IFS=$as_save_IFS
d9898ee8 5284
5285fi
5286fi
5287CXX=$ac_cv_prog_CXX
5288if test -n "$CXX"; then
64ff59ba 5289 { echo "$as_me:$LINENO: result: $CXX" >&5
5290echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5291else
64ff59ba 5292 { echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6; }
d9898ee8 5294fi
5295
64ff59ba 5296
d9898ee8 5297 test -n "$CXX" && break
5298 done
5299fi
5300if test -z "$CXX"; then
5301 ac_ct_CXX=$CXX
64ff59ba 5302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5303do
5304 # Extract the first word of "$ac_prog", so it can be a program name with args.
5305set dummy $ac_prog; ac_word=$2
64ff59ba 5306{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5308if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311 if test -n "$ac_ct_CXX"; then
5312 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5313else
5314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315for as_dir in $PATH
5316do
5317 IFS=$as_save_IFS
5318 test -z "$as_dir" && as_dir=.
5319 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5321 ac_cv_prog_ac_ct_CXX="$ac_prog"
5322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5323 break 2
5324 fi
5325done
5326done
64ff59ba 5327IFS=$as_save_IFS
d9898ee8 5328
5329fi
5330fi
5331ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5332if test -n "$ac_ct_CXX"; then
64ff59ba 5333 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5334echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5335else
64ff59ba 5336 { echo "$as_me:$LINENO: result: no" >&5
5337echo "${ECHO_T}no" >&6; }
d9898ee8 5338fi
5339
64ff59ba 5340
d9898ee8 5341 test -n "$ac_ct_CXX" && break
5342done
d9898ee8 5343
64ff59ba 5344 if test "x$ac_ct_CXX" = x; then
5345 CXX="g++"
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348yes:)
5349{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5350whose name does not start with the host triplet. If you think this
5351configuration is useful to you, please write to autoconf@gnu.org." >&5
5352echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5353whose name does not start with the host triplet. If you think this
5354configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5355ac_tool_warned=yes ;;
5356esac
5357 CXX=$ac_ct_CXX
5358 fi
d9898ee8 5359fi
5360
64ff59ba 5361 fi
5362fi
d9898ee8 5363# Provide some information about the compiler.
64ff59ba 5364echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5365ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5366{ (ac_try="$ac_compiler --version >&5"
5367case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }
64ff59ba 5376{ (ac_try="$ac_compiler -v >&5"
5377case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380esac
5381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }
64ff59ba 5386{ (ac_try="$ac_compiler -V >&5"
5387case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }
5396
64ff59ba 5397{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5398echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5399if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402 cat >conftest.$ac_ext <<_ACEOF
5403/* confdefs.h. */
5404_ACEOF
5405cat confdefs.h >>conftest.$ac_ext
5406cat >>conftest.$ac_ext <<_ACEOF
5407/* end confdefs.h. */
5408
5409int
5410main ()
5411{
5412#ifndef __GNUC__
5413 choke me
5414#endif
5415
5416 ;
5417 return 0;
5418}
5419_ACEOF
5420rm -f conftest.$ac_objext
64ff59ba 5421if { (ac_try="$ac_compile"
5422case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425esac
5426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5428 ac_status=$?
5429 grep -v '^ *+' conftest.er1 >conftest.err
5430 rm -f conftest.er1
5431 cat conftest.err >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5433 (exit $ac_status); } && {
5434 test -z "$ac_cxx_werror_flag" ||
5435 test ! -s conftest.err
5436 } && test -s conftest.$ac_objext; then
d9898ee8 5437 ac_compiler_gnu=yes
5438else
5439 echo "$as_me: failed program was:" >&5
5440sed 's/^/| /' conftest.$ac_ext >&5
5441
64ff59ba 5442 ac_compiler_gnu=no
d9898ee8 5443fi
64ff59ba 5444
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5446ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5447
5448fi
64ff59ba 5449{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5450echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5451GXX=`test $ac_compiler_gnu = yes && echo yes`
5452ac_test_CXXFLAGS=${CXXFLAGS+set}
5453ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5454{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5455echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5456if test "${ac_cv_prog_cxx_g+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
64ff59ba 5459 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5460 ac_cxx_werror_flag=yes
5461 ac_cv_prog_cxx_g=no
5462 CXXFLAGS="-g"
5463 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5464/* confdefs.h. */
5465_ACEOF
5466cat confdefs.h >>conftest.$ac_ext
5467cat >>conftest.$ac_ext <<_ACEOF
5468/* end confdefs.h. */
5469
5470int
5471main ()
5472{
5473
5474 ;
5475 return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
64ff59ba 5479if { (ac_try="$ac_compile"
5480case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483esac
5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5486 ac_status=$?
5487 grep -v '^ *+' conftest.er1 >conftest.err
5488 rm -f conftest.er1
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5491 (exit $ac_status); } && {
5492 test -z "$ac_cxx_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.$ac_objext; then
d9898ee8 5495 ac_cv_prog_cxx_g=yes
5496else
5497 echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
64ff59ba 5500 CXXFLAGS=""
5501 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5502/* confdefs.h. */
5503_ACEOF
5504cat confdefs.h >>conftest.$ac_ext
5505cat >>conftest.$ac_ext <<_ACEOF
5506/* end confdefs.h. */
64ff59ba 5507
d9898ee8 5508int
5509main ()
5510{
64ff59ba 5511
d9898ee8 5512 ;
5513 return 0;
5514}
5515_ACEOF
5516rm -f conftest.$ac_objext
64ff59ba 5517if { (ac_try="$ac_compile"
5518case "(($ac_try" in
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5521esac
5522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5529 (exit $ac_status); } && {
5530 test -z "$ac_cxx_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.$ac_objext; then
d9898ee8 5533 :
5534else
5535 echo "$as_me: failed program was:" >&5
5536sed 's/^/| /' conftest.$ac_ext >&5
5537
64ff59ba 5538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5539 CXXFLAGS="-g"
5540 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
64ff59ba 5546
d9898ee8 5547int
5548main ()
5549{
64ff59ba 5550
d9898ee8 5551 ;
5552 return 0;
5553}
5554_ACEOF
5555rm -f conftest.$ac_objext
64ff59ba 5556if { (ac_try="$ac_compile"
5557case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560esac
5561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5568 (exit $ac_status); } && {
5569 test -z "$ac_cxx_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest.$ac_objext; then
5572 ac_cv_prog_cxx_g=yes
d9898ee8 5573else
5574 echo "$as_me: failed program was:" >&5
5575sed 's/^/| /' conftest.$ac_ext >&5
5576
64ff59ba 5577
d9898ee8 5578fi
64ff59ba 5579
5580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5581fi
5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5584fi
5585
64ff59ba 5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5588fi
5589{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5590echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5591if test "$ac_test_CXXFLAGS" = set; then
5592 CXXFLAGS=$ac_save_CXXFLAGS
5593elif test $ac_cv_prog_cxx_g = yes; then
5594 if test "$GXX" = yes; then
5595 CXXFLAGS="-g -O2"
5596 else
5597 CXXFLAGS="-g"
5598 fi
5599else
5600 if test "$GXX" = yes; then
5601 CXXFLAGS="-O2"
5602 else
5603 CXXFLAGS=
5604 fi
5605fi
5606ac_ext=cpp
d9898ee8 5607ac_cpp='$CXXCPP $CPPFLAGS'
5608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5611
5612depcc="$CXX" am_compiler_list=
5613
64ff59ba 5614{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5615echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5616if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5620 # We make a subdir and do the tests there. Otherwise we can end up
5621 # making bogus files that we don't know about and never remove. For
5622 # instance it was reported that on HP-UX the gcc test will end up
5623 # making a dummy file named `D' -- because `-MD' means `put the output
5624 # in D'.
5625 mkdir conftest.dir
5626 # Copy depcomp to subdir because otherwise we won't find it if we're
5627 # using a relative directory.
5628 cp "$am_depcomp" conftest.dir
5629 cd conftest.dir
5630 # We will build objects and dependencies in a subdirectory because
5631 # it helps to detect inapplicable dependency modes. For instance
5632 # both Tru64's cc and ICC support -MD to output dependencies as a
5633 # side effect of compilation, but ICC will put the dependencies in
5634 # the current directory while Tru64 will put them in the object
5635 # directory.
5636 mkdir sub
5637
5638 am_cv_CXX_dependencies_compiler_type=none
5639 if test "$am_compiler_list" = ""; then
5640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5641 fi
5642 for depmode in $am_compiler_list; do
5643 # Setup a source with many dependencies, because some compilers
5644 # like to wrap large dependency lists on column 80 (with \), and
5645 # we should not choose a depcomp mode which is confused by this.
5646 #
5647 # We need to recreate these files for each test, as the compiler may
5648 # overwrite some of them when testing with obscure command lines.
5649 # This happens at least with the AIX C compiler.
5650 : > sub/conftest.c
5651 for i in 1 2 3 4 5 6; do
5652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5653 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5654 # Solaris 8's {/usr,}/bin/sh.
5655 touch sub/conftst$i.h
5656 done
5657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5658
5659 case $depmode in
5660 nosideeffect)
5661 # after this tag, mechanisms are not by side-effect, so they'll
5662 # only be used when explicitly requested
5663 if test "x$enable_dependency_tracking" = xyes; then
5664 continue
5665 else
5666 break
5667 fi
5668 ;;
5669 none) break ;;
5670 esac
5671 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5672 # mode. It turns out that the SunPro C++ compiler does not properly
5673 # handle `-M -o', and we need to detect this.
5674 if depmode=$depmode \
5675 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5677 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5678 >/dev/null 2>conftest.err &&
64ff59ba 5679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5681 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5683 # icc doesn't choke on unknown options, it will just issue warnings
5684 # or remarks (even with -Werror). So we grep stderr for any message
5685 # that says an option was ignored or not supported.
5686 # When given -MP, icc 7.0 and 7.1 complain thusly:
5687 # icc: Command line warning: ignoring option '-M'; no argument required
5688 # The diagnosis changed in icc 8.0:
5689 # icc: Command line remark: option '-MP' not supported
5690 if (grep 'ignoring option' conftest.err ||
5691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5692 am_cv_CXX_dependencies_compiler_type=$depmode
5693 break
5694 fi
5695 fi
5696 done
5697
5698 cd ..
5699 rm -rf conftest.dir
5700else
5701 am_cv_CXX_dependencies_compiler_type=none
5702fi
5703
5704fi
64ff59ba 5705{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5706echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5707CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5708
64ff59ba 5709 if
d9898ee8 5710 test "x$enable_dependency_tracking" != xno \
5711 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5712 am__fastdepCXX_TRUE=
5713 am__fastdepCXX_FALSE='#'
5714else
5715 am__fastdepCXX_TRUE='#'
5716 am__fastdepCXX_FALSE=
5717fi
5718
5719
5720
5721
5722if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5723 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5724 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5725 ac_ext=cpp
d9898ee8 5726ac_cpp='$CXXCPP $CPPFLAGS'
5727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5730{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5731echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5732if test -z "$CXXCPP"; then
5733 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736 # Double quotes because CXXCPP needs to be expanded
5737 for CXXCPP in "$CXX -E" "/lib/cpp"
5738 do
5739 ac_preproc_ok=false
5740for ac_cxx_preproc_warn_flag in '' yes
5741do
5742 # Use a header file that comes with gcc, so configuring glibc
5743 # with a fresh cross-compiler works.
5744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5745 # <limits.h> exists even on freestanding compilers.
5746 # On the NeXT, cc -E runs the code through the compiler's parser,
5747 # not just through cpp. "Syntax error" is here to catch this case.
5748 cat >conftest.$ac_ext <<_ACEOF
5749/* confdefs.h. */
5750_ACEOF
5751cat confdefs.h >>conftest.$ac_ext
5752cat >>conftest.$ac_ext <<_ACEOF
5753/* end confdefs.h. */
5754#ifdef __STDC__
5755# include <limits.h>
5756#else
5757# include <assert.h>
5758#endif
5759 Syntax error
5760_ACEOF
64ff59ba 5761if { (ac_try="$ac_cpp conftest.$ac_ext"
5762case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5773 (exit $ac_status); } >/dev/null && {
5774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5775 test ! -s conftest.err
5776 }; then
d9898ee8 5777 :
5778else
5779 echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 # Broken: fails on valid input.
5783continue
5784fi
64ff59ba 5785
d9898ee8 5786rm -f conftest.err conftest.$ac_ext
5787
64ff59ba 5788 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5789 # can be detected and how.
5790 cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
5796#include <ac_nonexistent.h>
5797_ACEOF
64ff59ba 5798if { (ac_try="$ac_cpp conftest.$ac_ext"
5799case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802esac
5803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5810 (exit $ac_status); } >/dev/null && {
5811 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5812 test ! -s conftest.err
5813 }; then
d9898ee8 5814 # Broken: success on invalid input.
5815continue
5816else
5817 echo "$as_me: failed program was:" >&5
5818sed 's/^/| /' conftest.$ac_ext >&5
5819
5820 # Passes both tests.
5821ac_preproc_ok=:
5822break
5823fi
64ff59ba 5824
d9898ee8 5825rm -f conftest.err conftest.$ac_ext
5826
5827done
5828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829rm -f conftest.err conftest.$ac_ext
5830if $ac_preproc_ok; then
5831 break
5832fi
5833
5834 done
5835 ac_cv_prog_CXXCPP=$CXXCPP
5836
5837fi
5838 CXXCPP=$ac_cv_prog_CXXCPP
5839else
5840 ac_cv_prog_CXXCPP=$CXXCPP
5841fi
64ff59ba 5842{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5843echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5844ac_preproc_ok=false
5845for ac_cxx_preproc_warn_flag in '' yes
5846do
5847 # Use a header file that comes with gcc, so configuring glibc
5848 # with a fresh cross-compiler works.
5849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850 # <limits.h> exists even on freestanding compilers.
5851 # On the NeXT, cc -E runs the code through the compiler's parser,
5852 # not just through cpp. "Syntax error" is here to catch this case.
5853 cat >conftest.$ac_ext <<_ACEOF
5854/* confdefs.h. */
5855_ACEOF
5856cat confdefs.h >>conftest.$ac_ext
5857cat >>conftest.$ac_ext <<_ACEOF
5858/* end confdefs.h. */
5859#ifdef __STDC__
5860# include <limits.h>
5861#else
5862# include <assert.h>
5863#endif
5864 Syntax error
5865_ACEOF
64ff59ba 5866if { (ac_try="$ac_cpp conftest.$ac_ext"
5867case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870esac
5871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5878 (exit $ac_status); } >/dev/null && {
5879 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880 test ! -s conftest.err
5881 }; then
d9898ee8 5882 :
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 # Broken: fails on valid input.
5888continue
5889fi
64ff59ba 5890
d9898ee8 5891rm -f conftest.err conftest.$ac_ext
5892
64ff59ba 5893 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5894 # can be detected and how.
5895 cat >conftest.$ac_ext <<_ACEOF
5896/* confdefs.h. */
5897_ACEOF
5898cat confdefs.h >>conftest.$ac_ext
5899cat >>conftest.$ac_ext <<_ACEOF
5900/* end confdefs.h. */
5901#include <ac_nonexistent.h>
5902_ACEOF
64ff59ba 5903if { (ac_try="$ac_cpp conftest.$ac_ext"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5915 (exit $ac_status); } >/dev/null && {
5916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5918 }; then
d9898ee8 5919 # Broken: success on invalid input.
5920continue
5921else
5922 echo "$as_me: failed program was:" >&5
5923sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 # Passes both tests.
5926ac_preproc_ok=:
5927break
5928fi
64ff59ba 5929
d9898ee8 5930rm -f conftest.err conftest.$ac_ext
5931
5932done
5933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5934rm -f conftest.err conftest.$ac_ext
5935if $ac_preproc_ok; then
5936 :
5937else
5938 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5939See \`config.log' for more details." >&5
5940echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5941See \`config.log' for more details." >&2;}
5942 { (exit 1); exit 1; }; }
5943fi
5944
64ff59ba 5945ac_ext=cpp
d9898ee8 5946ac_cpp='$CXXCPP $CPPFLAGS'
5947ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5950
5951fi
5952
5953
5954ac_ext=f
5955ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5956ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5958if test -n "$ac_tool_prefix"; then
64ff59ba 5959 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 5960 do
5961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5962set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5965if test "${ac_cv_prog_F77+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968 if test -n "$F77"; then
5969 ac_cv_prog_F77="$F77" # Let the user override the test.
5970else
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5978 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982done
5983done
64ff59ba 5984IFS=$as_save_IFS
d9898ee8 5985
5986fi
5987fi
5988F77=$ac_cv_prog_F77
5989if test -n "$F77"; then
64ff59ba 5990 { echo "$as_me:$LINENO: result: $F77" >&5
5991echo "${ECHO_T}$F77" >&6; }
d9898ee8 5992else
64ff59ba 5993 { echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6; }
d9898ee8 5995fi
5996
64ff59ba 5997
d9898ee8 5998 test -n "$F77" && break
5999 done
6000fi
6001if test -z "$F77"; then
6002 ac_ct_F77=$F77
64ff59ba 6003 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 6004do
6005 # Extract the first word of "$ac_prog", so it can be a program name with args.
6006set dummy $ac_prog; ac_word=$2
64ff59ba 6007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6009if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012 if test -n "$ac_ct_F77"; then
6013 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6022 ac_cv_prog_ac_ct_F77="$ac_prog"
6023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026done
6027done
64ff59ba 6028IFS=$as_save_IFS
d9898ee8 6029
6030fi
6031fi
6032ac_ct_F77=$ac_cv_prog_ac_ct_F77
6033if test -n "$ac_ct_F77"; then
64ff59ba 6034 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6035echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6036else
64ff59ba 6037 { echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6; }
d9898ee8 6039fi
6040
64ff59ba 6041
d9898ee8 6042 test -n "$ac_ct_F77" && break
6043done
6044
64ff59ba 6045 if test "x$ac_ct_F77" = x; then
6046 F77=""
6047 else
6048 case $cross_compiling:$ac_tool_warned in
6049yes:)
6050{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6051whose name does not start with the host triplet. If you think this
6052configuration is useful to you, please write to autoconf@gnu.org." >&5
6053echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6054whose name does not start with the host triplet. If you think this
6055configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6056ac_tool_warned=yes ;;
6057esac
6058 F77=$ac_ct_F77
6059 fi
d9898ee8 6060fi
6061
6062
6063# Provide some information about the compiler.
64ff59ba 6064echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6065ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6066{ (ac_try="$ac_compiler --version >&5"
6067case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }
64ff59ba 6076{ (ac_try="$ac_compiler -v >&5"
6077case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }
64ff59ba 6086{ (ac_try="$ac_compiler -V >&5"
6087case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090esac
6091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }
6096rm -f a.out
6097
6098# If we don't use `.F' as extension, the preprocessor is not run on the
6099# input file. (Note that this only needs to work for GNU compilers.)
6100ac_save_ext=$ac_ext
6101ac_ext=F
64ff59ba 6102{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6103echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6104if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107 cat >conftest.$ac_ext <<_ACEOF
6108 program main
6109#ifndef __GNUC__
6110 choke me
6111#endif
6112
6113 end
6114_ACEOF
6115rm -f conftest.$ac_objext
64ff59ba 6116if { (ac_try="$ac_compile"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6128 (exit $ac_status); } && {
6129 test -z "$ac_f77_werror_flag" ||
6130 test ! -s conftest.err
6131 } && test -s conftest.$ac_objext; then
d9898ee8 6132 ac_compiler_gnu=yes
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
64ff59ba 6137 ac_compiler_gnu=no
d9898ee8 6138fi
64ff59ba 6139
6140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6141ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6142
6143fi
64ff59ba 6144{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6145echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6146ac_ext=$ac_save_ext
6147ac_test_FFLAGS=${FFLAGS+set}
6148ac_save_FFLAGS=$FFLAGS
6149FFLAGS=
64ff59ba 6150{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6151echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6152if test "${ac_cv_prog_f77_g+set}" = set; then
6153 echo $ECHO_N "(cached) $ECHO_C" >&6
6154else
6155 FFLAGS=-g
6156cat >conftest.$ac_ext <<_ACEOF
6157 program main
6158
6159 end
6160_ACEOF
6161rm -f conftest.$ac_objext
64ff59ba 6162if { (ac_try="$ac_compile"
6163case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6169 ac_status=$?
6170 grep -v '^ *+' conftest.er1 >conftest.err
6171 rm -f conftest.er1
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6174 (exit $ac_status); } && {
6175 test -z "$ac_f77_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
d9898ee8 6178 ac_cv_prog_f77_g=yes
6179else
6180 echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
64ff59ba 6183 ac_cv_prog_f77_g=no
d9898ee8 6184fi
64ff59ba 6185
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6187
6188fi
64ff59ba 6189{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6190echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6191if test "$ac_test_FFLAGS" = set; then
6192 FFLAGS=$ac_save_FFLAGS
6193elif test $ac_cv_prog_f77_g = yes; then
6194 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6195 FFLAGS="-g -O2"
6196 else
6197 FFLAGS="-g"
6198 fi
6199else
6200 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6201 FFLAGS="-O2"
6202 else
6203 FFLAGS=
6204 fi
6205fi
6206
6207G77=`test $ac_compiler_gnu = yes && echo yes`
6208ac_ext=c
6209ac_cpp='$CPP $CPPFLAGS'
6210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6212ac_compiler_gnu=$ac_cv_c_compiler_gnu
6213
6214
6215
6216# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6217
6218# find the maximum length of command line arguments
64ff59ba 6219{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6220echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6221if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 i=0
6225 teststring="ABCD"
6226
6227 case $build_os in
6228 msdosdjgpp*)
6229 # On DJGPP, this test can blow up pretty badly due to problems in libc
6230 # (any single argument exceeding 2000 bytes causes a buffer overrun
6231 # during glob expansion). Even if it were fixed, the result of this
6232 # check would be larger than it should be.
6233 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6234 ;;
6235
6236 gnu*)
6237 # Under GNU Hurd, this test is not required because there is
6238 # no limit to the length of command line arguments.
6239 # Libtool will interpret -1 as no limit whatsoever
6240 lt_cv_sys_max_cmd_len=-1;
6241 ;;
6242
6243 cygwin* | mingw*)
6244 # On Win9x/ME, this test blows up -- it succeeds, but takes
6245 # about 5 minutes as the teststring grows exponentially.
6246 # Worse, since 9x/ME are not pre-emptively multitasking,
6247 # you end up with a "frozen" computer, even though with patience
6248 # the test eventually succeeds (with a max line length of 256k).
6249 # Instead, let's just punt: use the minimum linelength reported by
6250 # all of the supported platforms: 8192 (on NT/2K/XP).
6251 lt_cv_sys_max_cmd_len=8192;
6252 ;;
6253
6254 amigaos*)
6255 # On AmigaOS with pdksh, this test takes hours, literally.
6256 # So we just punt and use a minimum line length of 8192.
6257 lt_cv_sys_max_cmd_len=8192;
6258 ;;
6259
6260 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6261 # This has been around since 386BSD, at least. Likely further.
6262 if test -x /sbin/sysctl; then
6263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6264 elif test -x /usr/sbin/sysctl; then
6265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6266 else
6267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6268 fi
6269 # And add a safety zone
6270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6272 ;;
6273
6274 interix*)
6275 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6276 lt_cv_sys_max_cmd_len=196608
6277 ;;
6278
6279 osf*)
6280 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6281 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6282 # nice to cause kernel panics so lets avoid the loop below.
6283 # First set a reasonable default.
6284 lt_cv_sys_max_cmd_len=16384
6285 #
6286 if test -x /sbin/sysconfig; then
6287 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6288 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6289 esac
6290 fi
6291 ;;
6292 sco3.2v5*)
6293 lt_cv_sys_max_cmd_len=102400
6294 ;;
6295 sysv5* | sco5v6* | sysv4.2uw2*)
6296 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6297 if test -n "$kargmax"; then
6298 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6299 else
6300 lt_cv_sys_max_cmd_len=32768
6301 fi
6302 ;;
6303 *)
0fde1ce3 6304 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6305 if test -n "$lt_cv_sys_max_cmd_len"; then
6306 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6307 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6308 else
6309 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6310 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6311 = "XX$teststring") >/dev/null 2>&1 &&
0fde1ce3 6312 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6313 lt_cv_sys_max_cmd_len=$new_result &&
6314 test $i != 17 # 1/2 MB should be enough
6315 do
6316 i=`expr $i + 1`
6317 teststring=$teststring$teststring
6318 done
6319 teststring=
6320 # Add a significant safety factor because C++ compilers can tack on massive
6321 # amounts of additional arguments before passing them to the linker.
6322 # It appears as though 1/2 is a usable value.
6323 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6324 fi
d9898ee8 6325 ;;
6326 esac
6327
6328fi
6329
6330if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6331 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6332echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6333else
64ff59ba 6334 { echo "$as_me:$LINENO: result: none" >&5
6335echo "${ECHO_T}none" >&6; }
d9898ee8 6336fi
6337
6338
6339
6340
0fde1ce3 6341
d9898ee8 6342# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6343{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6344echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6345if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347else
6348
6349# These are sane defaults that work on at least a few old systems.
6350# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6351
6352# Character class describing NM global symbol codes.
6353symcode='[BCDEGRST]'
6354
6355# Regexp to match symbols that can be accessed directly from C.
6356sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6357
6358# Transform an extracted symbol line into a proper C declaration
6359lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6360
6361# Transform an extracted symbol line into symbol name and symbol address
6362lt_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'"
6363
6364# Define system-specific variables.
6365case $host_os in
6366aix*)
6367 symcode='[BCDT]'
6368 ;;
6369cygwin* | mingw* | pw32*)
6370 symcode='[ABCDGISTW]'
6371 ;;
6372hpux*) # Its linker distinguishes data from code symbols
6373 if test "$host_cpu" = ia64; then
6374 symcode='[ABCDEGRST]'
6375 fi
6376 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6377 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'"
6378 ;;
0fde1ce3 6379linux* | k*bsd*-gnu)
d9898ee8 6380 if test "$host_cpu" = ia64; then
6381 symcode='[ABCDGIRSTW]'
6382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6383 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'"
6384 fi
6385 ;;
6386irix* | nonstopux*)
6387 symcode='[BCDEGRST]'
6388 ;;
6389osf*)
6390 symcode='[BCDEGQRST]'
6391 ;;
6392solaris*)
6393 symcode='[BDRT]'
6394 ;;
6395sco3.2v5*)
6396 symcode='[DT]'
6397 ;;
6398sysv4.2uw2*)
6399 symcode='[DT]'
6400 ;;
6401sysv5* | sco5v6* | unixware* | OpenUNIX*)
6402 symcode='[ABDT]'
6403 ;;
6404sysv4)
6405 symcode='[DFNSTU]'
6406 ;;
6407esac
6408
6409# Handle CRLF in mingw tool chain
6410opt_cr=
6411case $build_os in
6412mingw*)
6413 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6414 ;;
6415esac
6416
6417# If we're using GNU nm, then use its standard symbol codes.
6418case `$NM -V 2>&1` in
6419*GNU* | *'with BFD'*)
6420 symcode='[ABCDGIRSTW]' ;;
6421esac
6422
6423# Try without a prefix undercore, then with it.
6424for ac_symprfx in "" "_"; do
6425
6426 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6427 symxfrm="\\1 $ac_symprfx\\2 \\2"
6428
6429 # Write the raw and C identifiers.
6430 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6431
6432 # Check to see that the pipe works correctly.
6433 pipe_works=no
6434
6435 rm -f conftest*
6436 cat > conftest.$ac_ext <<EOF
6437#ifdef __cplusplus
6438extern "C" {
6439#endif
6440char nm_test_var;
6441void nm_test_func(){}
6442#ifdef __cplusplus
6443}
6444#endif
6445int main(){nm_test_var='a';nm_test_func();return(0);}
6446EOF
6447
6448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; then
6453 # Now try to grab the symbols.
6454 nlist=conftest.nm
6455 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } && test -s "$nlist"; then
6460 # Try sorting and uniquifying the output.
6461 if sort "$nlist" | uniq > "$nlist"T; then
6462 mv -f "$nlist"T "$nlist"
6463 else
6464 rm -f "$nlist"T
6465 fi
6466
6467 # Make sure that we snagged all the symbols we need.
6468 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6469 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6470 cat <<EOF > conftest.$ac_ext
6471#ifdef __cplusplus
6472extern "C" {
6473#endif
6474
6475EOF
6476 # Now generate the symbol file.
6477 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6478
6479 cat <<EOF >> conftest.$ac_ext
6480#if defined (__STDC__) && __STDC__
6481# define lt_ptr_t void *
6482#else
6483# define lt_ptr_t char *
6484# define const
6485#endif
6486
6487/* The mapping between symbol names and symbols. */
6488const struct {
6489 const char *name;
6490 lt_ptr_t address;
6491}
6492lt_preloaded_symbols[] =
6493{
6494EOF
6495 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6496 cat <<\EOF >> conftest.$ac_ext
6497 {0, (lt_ptr_t) 0}
6498};
6499
6500#ifdef __cplusplus
6501}
6502#endif
6503EOF
6504 # Now try linking the two files.
6505 mv conftest.$ac_objext conftstm.$ac_objext
6506 lt_save_LIBS="$LIBS"
6507 lt_save_CFLAGS="$CFLAGS"
6508 LIBS="conftstm.$ac_objext"
6509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6512 ac_status=$?
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6515 pipe_works=yes
6516 fi
6517 LIBS="$lt_save_LIBS"
6518 CFLAGS="$lt_save_CFLAGS"
6519 else
6520 echo "cannot find nm_test_func in $nlist" >&5
6521 fi
6522 else
6523 echo "cannot find nm_test_var in $nlist" >&5
6524 fi
6525 else
6526 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6527 fi
6528 else
6529 echo "$progname: failed program was:" >&5
6530 cat conftest.$ac_ext >&5
6531 fi
6532 rm -f conftest* conftst*
6533
6534 # Do not use the global_symbol_pipe unless it works.
6535 if test "$pipe_works" = yes; then
6536 break
6537 else
6538 lt_cv_sys_global_symbol_pipe=
6539 fi
6540done
6541
6542fi
6543
6544if test -z "$lt_cv_sys_global_symbol_pipe"; then
6545 lt_cv_sys_global_symbol_to_cdecl=
6546fi
6547if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6548 { echo "$as_me:$LINENO: result: failed" >&5
6549echo "${ECHO_T}failed" >&6; }
d9898ee8 6550else
64ff59ba 6551 { echo "$as_me:$LINENO: result: ok" >&5
6552echo "${ECHO_T}ok" >&6; }
d9898ee8 6553fi
6554
64ff59ba 6555{ echo "$as_me:$LINENO: checking for objdir" >&5
6556echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6557if test "${lt_cv_objdir+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560 rm -f .libs 2>/dev/null
6561mkdir .libs 2>/dev/null
6562if test -d .libs; then
6563 lt_cv_objdir=.libs
6564else
6565 # MS-DOS does not allow filenames that begin with a dot.
6566 lt_cv_objdir=_libs
6567fi
6568rmdir .libs 2>/dev/null
6569fi
64ff59ba 6570{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6571echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6572objdir=$lt_cv_objdir
6573
6574
6575
6576
6577
6578case $host_os in
6579aix3*)
6580 # AIX sometimes has problems with the GCC collect2 program. For some
6581 # reason, if we set the COLLECT_NAMES environment variable, the problems
6582 # vanish in a puff of smoke.
6583 if test "X${COLLECT_NAMES+set}" != Xset; then
6584 COLLECT_NAMES=
6585 export COLLECT_NAMES
6586 fi
6587 ;;
6588esac
6589
6590# Sed substitution that helps us do robust quoting. It backslashifies
6591# metacharacters that are still active within double-quoted strings.
6592Xsed='sed -e 1s/^X//'
6593sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6594
6595# Same as above, but do not quote variable references.
6596double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6597
6598# Sed substitution to delay expansion of an escaped shell variable in a
6599# double_quote_subst'ed string.
6600delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6601
6602# Sed substitution to avoid accidental globbing in evaled expressions
6603no_glob_subst='s/\*/\\\*/g'
6604
6605# Constants:
6606rm="rm -f"
6607
6608# Global variables:
6609default_ofile=libtool
6610can_build_shared=yes
6611
6612# All known linkers require a `.a' archive for static linking (except MSVC,
6613# which needs '.lib').
6614libext=a
6615ltmain="$ac_aux_dir/ltmain.sh"
6616ofile="$default_ofile"
6617with_gnu_ld="$lt_cv_prog_gnu_ld"
6618
6619if test -n "$ac_tool_prefix"; then
6620 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6621set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6624if test "${ac_cv_prog_AR+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627 if test -n "$AR"; then
6628 ac_cv_prog_AR="$AR" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6637 ac_cv_prog_AR="${ac_tool_prefix}ar"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642done
64ff59ba 6643IFS=$as_save_IFS
d9898ee8 6644
6645fi
6646fi
6647AR=$ac_cv_prog_AR
6648if test -n "$AR"; then
64ff59ba 6649 { echo "$as_me:$LINENO: result: $AR" >&5
6650echo "${ECHO_T}$AR" >&6; }
d9898ee8 6651else
64ff59ba 6652 { echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6; }
d9898ee8 6654fi
6655
64ff59ba 6656
d9898ee8 6657fi
6658if test -z "$ac_cv_prog_AR"; then
6659 ac_ct_AR=$AR
6660 # Extract the first word of "ar", so it can be a program name with args.
6661set dummy ar; ac_word=$2
64ff59ba 6662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6664if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666else
6667 if test -n "$ac_ct_AR"; then
6668 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6677 ac_cv_prog_ac_ct_AR="ar"
6678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681done
6682done
64ff59ba 6683IFS=$as_save_IFS
d9898ee8 6684
d9898ee8 6685fi
6686fi
6687ac_ct_AR=$ac_cv_prog_ac_ct_AR
6688if test -n "$ac_ct_AR"; then
64ff59ba 6689 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6690echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6691else
64ff59ba 6692 { echo "$as_me:$LINENO: result: no" >&5
6693echo "${ECHO_T}no" >&6; }
d9898ee8 6694fi
6695
64ff59ba 6696 if test "x$ac_ct_AR" = x; then
6697 AR="false"
6698 else
6699 case $cross_compiling:$ac_tool_warned in
6700yes:)
6701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702whose name does not start with the host triplet. If you think this
6703configuration is useful to you, please write to autoconf@gnu.org." >&5
6704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705whose name does not start with the host triplet. If you think this
6706configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709 AR=$ac_ct_AR
6710 fi
d9898ee8 6711else
6712 AR="$ac_cv_prog_AR"
6713fi
6714
6715if test -n "$ac_tool_prefix"; then
6716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6717set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6720if test "${ac_cv_prog_RANLIB+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6722else
6723 if test -n "$RANLIB"; then
6724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6725else
6726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727for as_dir in $PATH
6728do
6729 IFS=$as_save_IFS
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737done
6738done
64ff59ba 6739IFS=$as_save_IFS
d9898ee8 6740
6741fi
6742fi
6743RANLIB=$ac_cv_prog_RANLIB
6744if test -n "$RANLIB"; then
64ff59ba 6745 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6746echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6747else
64ff59ba 6748 { echo "$as_me:$LINENO: result: no" >&5
6749echo "${ECHO_T}no" >&6; }
d9898ee8 6750fi
6751
64ff59ba 6752
d9898ee8 6753fi
6754if test -z "$ac_cv_prog_RANLIB"; then
6755 ac_ct_RANLIB=$RANLIB
6756 # Extract the first word of "ranlib", so it can be a program name with args.
6757set dummy ranlib; ac_word=$2
64ff59ba 6758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6760if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763 if test -n "$ac_ct_RANLIB"; then
6764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769 IFS=$as_save_IFS
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6773 ac_cv_prog_ac_ct_RANLIB="ranlib"
6774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 break 2
6776 fi
6777done
6778done
64ff59ba 6779IFS=$as_save_IFS
d9898ee8 6780
d9898ee8 6781fi
6782fi
6783ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6784if test -n "$ac_ct_RANLIB"; then
64ff59ba 6785 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6786echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6787else
64ff59ba 6788 { echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6; }
d9898ee8 6790fi
6791
64ff59ba 6792 if test "x$ac_ct_RANLIB" = x; then
6793 RANLIB=":"
6794 else
6795 case $cross_compiling:$ac_tool_warned in
6796yes:)
6797{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798whose name does not start with the host triplet. If you think this
6799configuration is useful to you, please write to autoconf@gnu.org." >&5
6800echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801whose name does not start with the host triplet. If you think this
6802configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803ac_tool_warned=yes ;;
6804esac
6805 RANLIB=$ac_ct_RANLIB
6806 fi
d9898ee8 6807else
6808 RANLIB="$ac_cv_prog_RANLIB"
6809fi
6810
6811if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6813set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6816if test "${ac_cv_prog_STRIP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 if test -n "$STRIP"; then
6820 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6829 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834done
64ff59ba 6835IFS=$as_save_IFS
d9898ee8 6836
6837fi
6838fi
6839STRIP=$ac_cv_prog_STRIP
6840if test -n "$STRIP"; then
64ff59ba 6841 { echo "$as_me:$LINENO: result: $STRIP" >&5
6842echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6843else
64ff59ba 6844 { echo "$as_me:$LINENO: result: no" >&5
6845echo "${ECHO_T}no" >&6; }
d9898ee8 6846fi
6847
64ff59ba 6848
d9898ee8 6849fi
6850if test -z "$ac_cv_prog_STRIP"; then
6851 ac_ct_STRIP=$STRIP
6852 # Extract the first word of "strip", so it can be a program name with args.
6853set dummy strip; ac_word=$2
64ff59ba 6854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6856if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6857 echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859 if test -n "$ac_ct_STRIP"; then
6860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6869 ac_cv_prog_ac_ct_STRIP="strip"
6870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874done
64ff59ba 6875IFS=$as_save_IFS
d9898ee8 6876
d9898ee8 6877fi
6878fi
6879ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6880if test -n "$ac_ct_STRIP"; then
64ff59ba 6881 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6882echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6883else
64ff59ba 6884 { echo "$as_me:$LINENO: result: no" >&5
6885echo "${ECHO_T}no" >&6; }
d9898ee8 6886fi
6887
64ff59ba 6888 if test "x$ac_ct_STRIP" = x; then
6889 STRIP=":"
6890 else
6891 case $cross_compiling:$ac_tool_warned in
6892yes:)
6893{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894whose name does not start with the host triplet. If you think this
6895configuration is useful to you, please write to autoconf@gnu.org." >&5
6896echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897whose name does not start with the host triplet. If you think this
6898configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899ac_tool_warned=yes ;;
6900esac
6901 STRIP=$ac_ct_STRIP
6902 fi
d9898ee8 6903else
6904 STRIP="$ac_cv_prog_STRIP"
6905fi
6906
6907
6908old_CC="$CC"
6909old_CFLAGS="$CFLAGS"
6910
6911# Set sane defaults for various variables
6912test -z "$AR" && AR=ar
6913test -z "$AR_FLAGS" && AR_FLAGS=cru
6914test -z "$AS" && AS=as
6915test -z "$CC" && CC=cc
6916test -z "$LTCC" && LTCC=$CC
6917test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6918test -z "$DLLTOOL" && DLLTOOL=dlltool
6919test -z "$LD" && LD=ld
6920test -z "$LN_S" && LN_S="ln -s"
6921test -z "$MAGIC_CMD" && MAGIC_CMD=file
6922test -z "$NM" && NM=nm
6923test -z "$SED" && SED=sed
6924test -z "$OBJDUMP" && OBJDUMP=objdump
6925test -z "$RANLIB" && RANLIB=:
6926test -z "$STRIP" && STRIP=:
6927test -z "$ac_objext" && ac_objext=o
6928
6929# Determine commands to create old-style static archives.
0fde1ce3 6930old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 6931old_postinstall_cmds='chmod 644 $oldlib'
6932old_postuninstall_cmds=
6933
6934if test -n "$RANLIB"; then
6935 case $host_os in
6936 openbsd*)
6937 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6938 ;;
6939 *)
6940 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6941 ;;
6942 esac
6943 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6944fi
6945
6946for cc_temp in $compiler""; do
6947 case $cc_temp in
6948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6950 \-*) ;;
6951 *) break;;
6952 esac
6953done
6954cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6955
6956
6957# Only perform the check for file, if the check method requires it
6958case $deplibs_check_method in
6959file_magic*)
6960 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 6961 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6962echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6963if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966 case $MAGIC_CMD in
6967[\\/*] | ?:[\\/]*)
6968 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6969 ;;
6970*)
6971 lt_save_MAGIC_CMD="$MAGIC_CMD"
6972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6973 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6974 for ac_dir in $ac_dummy; do
6975 IFS="$lt_save_ifs"
6976 test -z "$ac_dir" && ac_dir=.
6977 if test -f $ac_dir/${ac_tool_prefix}file; then
6978 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6979 if test -n "$file_magic_test_file"; then
6980 case $deplibs_check_method in
6981 "file_magic "*)
6982 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6983 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6984 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6985 $EGREP "$file_magic_regex" > /dev/null; then
6986 :
6987 else
6988 cat <<EOF 1>&2
6989
6990*** Warning: the command libtool uses to detect shared libraries,
6991*** $file_magic_cmd, produces output that libtool cannot recognize.
6992*** The result is that libtool may fail to recognize shared libraries
6993*** as such. This will affect the creation of libtool libraries that
6994*** depend on shared libraries, but programs linked with such libtool
6995*** libraries will work regardless of this problem. Nevertheless, you
6996*** may want to report the problem to your system manager and/or to
6997*** bug-libtool@gnu.org
6998
6999EOF
7000 fi ;;
7001 esac
7002 fi
7003 break
7004 fi
7005 done
7006 IFS="$lt_save_ifs"
7007 MAGIC_CMD="$lt_save_MAGIC_CMD"
7008 ;;
7009esac
7010fi
7011
7012MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7013if test -n "$MAGIC_CMD"; then
64ff59ba 7014 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7015echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7016else
64ff59ba 7017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
d9898ee8 7019fi
7020
7021if test -z "$lt_cv_path_MAGIC_CMD"; then
7022 if test -n "$ac_tool_prefix"; then
64ff59ba 7023 { echo "$as_me:$LINENO: checking for file" >&5
7024echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7025if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027else
7028 case $MAGIC_CMD in
7029[\\/*] | ?:[\\/]*)
7030 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7031 ;;
7032*)
7033 lt_save_MAGIC_CMD="$MAGIC_CMD"
7034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7035 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7036 for ac_dir in $ac_dummy; do
7037 IFS="$lt_save_ifs"
7038 test -z "$ac_dir" && ac_dir=.
7039 if test -f $ac_dir/file; then
7040 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7041 if test -n "$file_magic_test_file"; then
7042 case $deplibs_check_method in
7043 "file_magic "*)
7044 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7046 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7047 $EGREP "$file_magic_regex" > /dev/null; then
7048 :
7049 else
7050 cat <<EOF 1>&2
7051
7052*** Warning: the command libtool uses to detect shared libraries,
7053*** $file_magic_cmd, produces output that libtool cannot recognize.
7054*** The result is that libtool may fail to recognize shared libraries
7055*** as such. This will affect the creation of libtool libraries that
7056*** depend on shared libraries, but programs linked with such libtool
7057*** libraries will work regardless of this problem. Nevertheless, you
7058*** may want to report the problem to your system manager and/or to
7059*** bug-libtool@gnu.org
7060
7061EOF
7062 fi ;;
7063 esac
7064 fi
7065 break
7066 fi
7067 done
7068 IFS="$lt_save_ifs"
7069 MAGIC_CMD="$lt_save_MAGIC_CMD"
7070 ;;
7071esac
7072fi
7073
7074MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7075if test -n "$MAGIC_CMD"; then
64ff59ba 7076 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7077echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7078else
64ff59ba 7079 { echo "$as_me:$LINENO: result: no" >&5
7080echo "${ECHO_T}no" >&6; }
d9898ee8 7081fi
7082
7083 else
7084 MAGIC_CMD=:
7085 fi
7086fi
7087
7088 fi
7089 ;;
7090esac
7091
7092enable_dlopen=no
7093enable_win32_dll=no
7094
64ff59ba 7095# Check whether --enable-libtool-lock was given.
d9898ee8 7096if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7097 enableval=$enable_libtool_lock;
7098fi
d9898ee8 7099
d9898ee8 7100test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7101
7102
64ff59ba 7103# Check whether --with-pic was given.
d9898ee8 7104if test "${with_pic+set}" = set; then
64ff59ba 7105 withval=$with_pic; pic_mode="$withval"
d9898ee8 7106else
7107 pic_mode=default
64ff59ba 7108fi
7109
d9898ee8 7110test -z "$pic_mode" && pic_mode=default
7111
7112# Use C for the default configuration in the libtool script
7113tagname=
7114lt_save_CC="$CC"
7115ac_ext=c
7116ac_cpp='$CPP $CPPFLAGS'
7117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7119ac_compiler_gnu=$ac_cv_c_compiler_gnu
7120
7121
7122# Source file extension for C test sources.
7123ac_ext=c
7124
7125# Object file extension for compiled C test sources.
7126objext=o
7127objext=$objext
7128
7129# Code to be used in simple compile tests
0fde1ce3 7130lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7131
7132# Code to be used in simple link tests
0fde1ce3 7133lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7134
7135
7136# If no C compiler was specified, use CC.
7137LTCC=${LTCC-"$CC"}
7138
7139# If no C compiler flags were specified, use CFLAGS.
7140LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7141
7142# Allow CC to be a program name with arguments.
7143compiler=$CC
7144
7145
7146# save warnings/boilerplate of simple test code
7147ac_outfile=conftest.$ac_objext
0fde1ce3 7148echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7149eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7150_lt_compiler_boilerplate=`cat conftest.err`
7151$rm conftest*
7152
7153ac_outfile=conftest.$ac_objext
0fde1ce3 7154echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7155eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7156_lt_linker_boilerplate=`cat conftest.err`
7157$rm conftest*
7158
7159
7160
7161lt_prog_compiler_no_builtin_flag=
7162
7163if test "$GCC" = yes; then
7164 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7165
7166
64ff59ba 7167{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7168echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7169if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171else
7172 lt_cv_prog_compiler_rtti_exceptions=no
7173 ac_outfile=conftest.$ac_objext
0fde1ce3 7174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7175 lt_compiler_flag="-fno-rtti -fno-exceptions"
7176 # Insert the option either (1) after the last *FLAGS variable, or
7177 # (2) before a word containing "conftest.", or (3) at the end.
7178 # Note that $ac_compile itself does not contain backslashes and begins
7179 # with a dollar sign (not a hyphen), so the echo should work correctly.
7180 # The option is referenced via a variable to avoid confusing sed.
7181 lt_compile=`echo "$ac_compile" | $SED \
7182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7184 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7185 (eval echo "\"\$as_me:7185: $lt_compile\"" >&5)
d9898ee8 7186 (eval "$lt_compile" 2>conftest.err)
7187 ac_status=$?
7188 cat conftest.err >&5
0fde1ce3 7189 echo "$as_me:7189: \$? = $ac_status" >&5
d9898ee8 7190 if (exit $ac_status) && test -s "$ac_outfile"; then
7191 # The compiler can only warn and ignore the option if not recognized
7192 # So say no if there are warnings other than the usual output.
7193 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7196 lt_cv_prog_compiler_rtti_exceptions=yes
7197 fi
7198 fi
7199 $rm conftest*
7200
7201fi
64ff59ba 7202{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7203echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7204
7205if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7206 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7207else
7208 :
7209fi
7210
7211fi
7212
7213lt_prog_compiler_wl=
7214lt_prog_compiler_pic=
7215lt_prog_compiler_static=
7216
64ff59ba 7217{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7218echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7219
7220 if test "$GCC" = yes; then
7221 lt_prog_compiler_wl='-Wl,'
7222 lt_prog_compiler_static='-static'
7223
7224 case $host_os in
7225 aix*)
7226 # All AIX code is PIC.
7227 if test "$host_cpu" = ia64; then
7228 # AIX 5 now supports IA64 processor
7229 lt_prog_compiler_static='-Bstatic'
7230 fi
7231 ;;
7232
7233 amigaos*)
7234 # FIXME: we need at least 68020 code to build shared libraries, but
7235 # adding the `-m68020' flag to GCC prevents building anything better,
7236 # like `-m68040'.
7237 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7238 ;;
7239
0fde1ce3 7240 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7241 # PIC is the default for these OSes.
7242 ;;
7243
0fde1ce3 7244 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7245 # This hack is so that the source file can tell whether it is being
7246 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 7247 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7248 # (--disable-auto-import) libraries
d9898ee8 7249 lt_prog_compiler_pic='-DDLL_EXPORT'
7250 ;;
7251
7252 darwin* | rhapsody*)
7253 # PIC is the default on this platform
7254 # Common symbols not allowed in MH_DYLIB files
7255 lt_prog_compiler_pic='-fno-common'
7256 ;;
7257
0fde1ce3 7258 interix[3-9]*)
d9898ee8 7259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7260 # Instead, we relocate shared libraries at runtime.
7261 ;;
7262
7263 msdosdjgpp*)
7264 # Just because we use GCC doesn't mean we suddenly get shared libraries
7265 # on systems that don't support them.
7266 lt_prog_compiler_can_build_shared=no
7267 enable_shared=no
7268 ;;
7269
7270 sysv4*MP*)
7271 if test -d /usr/nec; then
7272 lt_prog_compiler_pic=-Kconform_pic
7273 fi
7274 ;;
7275
7276 hpux*)
7277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7278 # not for PA HP-UX.
7279 case $host_cpu in
7280 hppa*64*|ia64*)
7281 # +Z the default
7282 ;;
7283 *)
7284 lt_prog_compiler_pic='-fPIC'
7285 ;;
7286 esac
7287 ;;
7288
7289 *)
7290 lt_prog_compiler_pic='-fPIC'
7291 ;;
7292 esac
7293 else
7294 # PORTME Check for flag to pass linker flags through the system compiler.
7295 case $host_os in
7296 aix*)
7297 lt_prog_compiler_wl='-Wl,'
7298 if test "$host_cpu" = ia64; then
7299 # AIX 5 now supports IA64 processor
7300 lt_prog_compiler_static='-Bstatic'
7301 else
7302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7303 fi
7304 ;;
7305 darwin*)
7306 # PIC is the default on this platform
7307 # Common symbols not allowed in MH_DYLIB files
7308 case $cc_basename in
7309 xlc*)
7310 lt_prog_compiler_pic='-qnocommon'
7311 lt_prog_compiler_wl='-Wl,'
7312 ;;
7313 esac
7314 ;;
7315
0fde1ce3 7316 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7317 # This hack is so that the source file can tell whether it is being
7318 # built for inclusion in a dll (and should export symbols for example).
7319 lt_prog_compiler_pic='-DDLL_EXPORT'
7320 ;;
7321
7322 hpux9* | hpux10* | hpux11*)
7323 lt_prog_compiler_wl='-Wl,'
7324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7325 # not for PA HP-UX.
7326 case $host_cpu in
7327 hppa*64*|ia64*)
7328 # +Z the default
7329 ;;
7330 *)
7331 lt_prog_compiler_pic='+Z'
7332 ;;
7333 esac
7334 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7335 lt_prog_compiler_static='${wl}-a ${wl}archive'
7336 ;;
7337
7338 irix5* | irix6* | nonstopux*)
7339 lt_prog_compiler_wl='-Wl,'
7340 # PIC (with -KPIC) is the default.
7341 lt_prog_compiler_static='-non_shared'
7342 ;;
7343
7344 newsos6)
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7347 ;;
7348
0fde1ce3 7349 linux* | k*bsd*-gnu)
d9898ee8 7350 case $cc_basename in
7351 icc* | ecc*)
7352 lt_prog_compiler_wl='-Wl,'
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-static'
7355 ;;
7356 pgcc* | pgf77* | pgf90* | pgf95*)
7357 # Portland Group compilers (*not* the Pentium gcc compiler,
7358 # which looks to be a dead project)
7359 lt_prog_compiler_wl='-Wl,'
7360 lt_prog_compiler_pic='-fpic'
7361 lt_prog_compiler_static='-Bstatic'
7362 ;;
7363 ccc*)
7364 lt_prog_compiler_wl='-Wl,'
7365 # All Alpha code is PIC.
7366 lt_prog_compiler_static='-non_shared'
7367 ;;
0fde1ce3 7368 *)
7369 case `$CC -V 2>&1 | sed 5q` in
7370 *Sun\ C*)
7371 # Sun C 5.9
7372 lt_prog_compiler_pic='-KPIC'
7373 lt_prog_compiler_static='-Bstatic'
7374 lt_prog_compiler_wl='-Wl,'
7375 ;;
7376 *Sun\ F*)
7377 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7378 lt_prog_compiler_pic='-KPIC'
7379 lt_prog_compiler_static='-Bstatic'
7380 lt_prog_compiler_wl=''
7381 ;;
7382 esac
7383 ;;
d9898ee8 7384 esac
7385 ;;
7386
7387 osf3* | osf4* | osf5*)
7388 lt_prog_compiler_wl='-Wl,'
7389 # All OSF/1 code is PIC.
7390 lt_prog_compiler_static='-non_shared'
7391 ;;
7392
0fde1ce3 7393 rdos*)
7394 lt_prog_compiler_static='-non_shared'
7395 ;;
7396
d9898ee8 7397 solaris*)
7398 lt_prog_compiler_pic='-KPIC'
7399 lt_prog_compiler_static='-Bstatic'
7400 case $cc_basename in
7401 f77* | f90* | f95*)
7402 lt_prog_compiler_wl='-Qoption ld ';;
7403 *)
7404 lt_prog_compiler_wl='-Wl,';;
7405 esac
7406 ;;
7407
7408 sunos4*)
7409 lt_prog_compiler_wl='-Qoption ld '
7410 lt_prog_compiler_pic='-PIC'
7411 lt_prog_compiler_static='-Bstatic'
7412 ;;
7413
7414 sysv4 | sysv4.2uw2* | sysv4.3*)
7415 lt_prog_compiler_wl='-Wl,'
7416 lt_prog_compiler_pic='-KPIC'
7417 lt_prog_compiler_static='-Bstatic'
7418 ;;
7419
7420 sysv4*MP*)
7421 if test -d /usr/nec ;then
7422 lt_prog_compiler_pic='-Kconform_pic'
7423 lt_prog_compiler_static='-Bstatic'
7424 fi
7425 ;;
7426
7427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7428 lt_prog_compiler_wl='-Wl,'
7429 lt_prog_compiler_pic='-KPIC'
7430 lt_prog_compiler_static='-Bstatic'
7431 ;;
7432
7433 unicos*)
7434 lt_prog_compiler_wl='-Wl,'
7435 lt_prog_compiler_can_build_shared=no
7436 ;;
7437
7438 uts4*)
7439 lt_prog_compiler_pic='-pic'
7440 lt_prog_compiler_static='-Bstatic'
7441 ;;
7442
7443 *)
7444 lt_prog_compiler_can_build_shared=no
7445 ;;
7446 esac
7447 fi
7448
64ff59ba 7449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7450echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7451
7452#
7453# Check to make sure the PIC flag actually works.
7454#
7455if test -n "$lt_prog_compiler_pic"; then
7456
64ff59ba 7457{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7458echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7459if test "${lt_prog_compiler_pic_works+set}" = set; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462 lt_prog_compiler_pic_works=no
7463 ac_outfile=conftest.$ac_objext
0fde1ce3 7464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7465 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7466 # Insert the option either (1) after the last *FLAGS variable, or
7467 # (2) before a word containing "conftest.", or (3) at the end.
7468 # Note that $ac_compile itself does not contain backslashes and begins
7469 # with a dollar sign (not a hyphen), so the echo should work correctly.
7470 # The option is referenced via a variable to avoid confusing sed.
7471 lt_compile=`echo "$ac_compile" | $SED \
7472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7474 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7475 (eval echo "\"\$as_me:7475: $lt_compile\"" >&5)
d9898ee8 7476 (eval "$lt_compile" 2>conftest.err)
7477 ac_status=$?
7478 cat conftest.err >&5
0fde1ce3 7479 echo "$as_me:7479: \$? = $ac_status" >&5
d9898ee8 7480 if (exit $ac_status) && test -s "$ac_outfile"; then
7481 # The compiler can only warn and ignore the option if not recognized
7482 # So say no if there are warnings other than the usual output.
7483 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7485 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7486 lt_prog_compiler_pic_works=yes
7487 fi
7488 fi
7489 $rm conftest*
7490
7491fi
64ff59ba 7492{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7493echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7494
7495if test x"$lt_prog_compiler_pic_works" = xyes; then
7496 case $lt_prog_compiler_pic in
7497 "" | " "*) ;;
7498 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7499 esac
7500else
7501 lt_prog_compiler_pic=
7502 lt_prog_compiler_can_build_shared=no
7503fi
7504
7505fi
7506case $host_os in
7507 # For platforms which do not support PIC, -DPIC is meaningless:
7508 *djgpp*)
7509 lt_prog_compiler_pic=
7510 ;;
7511 *)
7512 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7513 ;;
7514esac
7515
7516#
7517# Check to make sure the static flag actually works.
7518#
7519wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7520{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7521echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7522if test "${lt_prog_compiler_static_works+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524else
7525 lt_prog_compiler_static_works=no
7526 save_LDFLAGS="$LDFLAGS"
7527 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 7528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7530 # The linker can only warn and ignore the option if not recognized
7531 # So say no if there are warnings
7532 if test -s conftest.err; then
7533 # Append any errors to the config.log.
7534 cat conftest.err 1>&5
7535 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7537 if diff conftest.exp conftest.er2 >/dev/null; then
7538 lt_prog_compiler_static_works=yes
7539 fi
7540 else
7541 lt_prog_compiler_static_works=yes
7542 fi
7543 fi
7544 $rm conftest*
7545 LDFLAGS="$save_LDFLAGS"
7546
7547fi
64ff59ba 7548{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7549echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7550
7551if test x"$lt_prog_compiler_static_works" = xyes; then
7552 :
7553else
7554 lt_prog_compiler_static=
7555fi
7556
7557
64ff59ba 7558{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7559echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7560if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 lt_cv_prog_compiler_c_o=no
7564 $rm -r conftest 2>/dev/null
7565 mkdir conftest
7566 cd conftest
7567 mkdir out
0fde1ce3 7568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7569
7570 lt_compiler_flag="-o out/conftest2.$ac_objext"
7571 # Insert the option either (1) after the last *FLAGS variable, or
7572 # (2) before a word containing "conftest.", or (3) at the end.
7573 # Note that $ac_compile itself does not contain backslashes and begins
7574 # with a dollar sign (not a hyphen), so the echo should work correctly.
7575 lt_compile=`echo "$ac_compile" | $SED \
7576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 7579 (eval echo "\"\$as_me:7579: $lt_compile\"" >&5)
d9898ee8 7580 (eval "$lt_compile" 2>out/conftest.err)
7581 ac_status=$?
7582 cat out/conftest.err >&5
0fde1ce3 7583 echo "$as_me:7583: \$? = $ac_status" >&5
d9898ee8 7584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7585 then
7586 # The compiler can only warn and ignore the option if not recognized
7587 # So say no if there are warnings
7588 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7591 lt_cv_prog_compiler_c_o=yes
7592 fi
7593 fi
7594 chmod u+w . 2>&5
7595 $rm conftest*
7596 # SGI C++ compiler will create directory out/ii_files/ for
7597 # template instantiation
7598 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7599 $rm out/* && rmdir out
7600 cd ..
7601 rmdir conftest
7602 $rm conftest*
7603
7604fi
64ff59ba 7605{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7606echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7607
7608
7609hard_links="nottested"
7610if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7611 # do not overwrite the value of need_locks provided by the user
64ff59ba 7612 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7613echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7614 hard_links=yes
7615 $rm conftest*
7616 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7617 touch conftest.a
7618 ln conftest.a conftest.b 2>&5 || hard_links=no
7619 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7620 { echo "$as_me:$LINENO: result: $hard_links" >&5
7621echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7622 if test "$hard_links" = no; then
7623 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7624echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7625 need_locks=warn
7626 fi
7627else
7628 need_locks=no
7629fi
7630
64ff59ba 7631{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7632echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7633
7634 runpath_var=
7635 allow_undefined_flag=
7636 enable_shared_with_static_runtimes=no
7637 archive_cmds=
7638 archive_expsym_cmds=
7639 old_archive_From_new_cmds=
7640 old_archive_from_expsyms_cmds=
7641 export_dynamic_flag_spec=
7642 whole_archive_flag_spec=
7643 thread_safe_flag_spec=
7644 hardcode_libdir_flag_spec=
7645 hardcode_libdir_flag_spec_ld=
7646 hardcode_libdir_separator=
7647 hardcode_direct=no
7648 hardcode_minus_L=no
7649 hardcode_shlibpath_var=unsupported
7650 link_all_deplibs=unknown
7651 hardcode_automatic=no
7652 module_cmds=
7653 module_expsym_cmds=
7654 always_export_symbols=no
7655 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7656 # include_expsyms should be a list of space-separated symbols to be *always*
7657 # included in the symbol list
7658 include_expsyms=
7659 # exclude_expsyms can be an extended regexp of symbols to exclude
7660 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7661 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7662 # as well as any symbol that contains `d'.
7663 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7664 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7665 # platforms (ab)use it in PIC code, but their linkers get confused if
7666 # the symbol is explicitly referenced. Since portable code cannot
7667 # rely on this symbol name, it's probably fine to never include it in
7668 # preloaded symbol tables.
7669 extract_expsyms_cmds=
7670 # Just being paranoid about ensuring that cc_basename is set.
7671 for cc_temp in $compiler""; do
7672 case $cc_temp in
7673 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7674 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7675 \-*) ;;
7676 *) break;;
7677 esac
7678done
7679cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7680
7681 case $host_os in
7682 cygwin* | mingw* | pw32*)
7683 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7684 # When not using gcc, we currently assume that we are using
7685 # Microsoft Visual C++.
7686 if test "$GCC" != yes; then
7687 with_gnu_ld=no
7688 fi
7689 ;;
7690 interix*)
7691 # we just hope/assume this is gcc and not c89 (= MSVC++)
7692 with_gnu_ld=yes
7693 ;;
7694 openbsd*)
7695 with_gnu_ld=no
7696 ;;
7697 esac
7698
7699 ld_shlibs=yes
7700 if test "$with_gnu_ld" = yes; then
7701 # If archive_cmds runs LD, not CC, wlarc should be empty
7702 wlarc='${wl}'
7703
7704 # Set some defaults for GNU ld with shared library support. These
7705 # are reset later if shared libraries are not supported. Putting them
7706 # here allows them to be overridden if necessary.
7707 runpath_var=LD_RUN_PATH
7708 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7709 export_dynamic_flag_spec='${wl}--export-dynamic'
7710 # ancient GNU ld didn't support --whole-archive et. al.
7711 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7712 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7713 else
7714 whole_archive_flag_spec=
7715 fi
7716 supports_anon_versioning=no
7717 case `$LD -v 2>/dev/null` in
7718 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7719 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7720 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7721 *\ 2.11.*) ;; # other 2.11 versions
7722 *) supports_anon_versioning=yes ;;
7723 esac
7724
7725 # See if GNU ld supports shared libraries.
7726 case $host_os in
7727 aix3* | aix4* | aix5*)
7728 # On AIX/PPC, the GNU linker is very broken
7729 if test "$host_cpu" != ia64; then
7730 ld_shlibs=no
7731 cat <<EOF 1>&2
7732
7733*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7734*** to be unable to reliably create shared libraries on AIX.
7735*** Therefore, libtool is disabling shared libraries support. If you
7736*** really care for shared libraries, you may want to modify your PATH
7737*** so that a non-GNU linker is found, and then restart.
7738
7739EOF
7740 fi
7741 ;;
7742
7743 amigaos*)
7744 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)'
7745 hardcode_libdir_flag_spec='-L$libdir'
7746 hardcode_minus_L=yes
7747
7748 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7749 # that the semantics of dynamic libraries on AmigaOS, at least up
7750 # to version 4, is to share data among multiple programs linked
7751 # with the same dynamic library. Since this doesn't match the
7752 # behavior of shared libraries on other platforms, we can't use
7753 # them.
7754 ld_shlibs=no
7755 ;;
7756
7757 beos*)
7758 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7759 allow_undefined_flag=unsupported
7760 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7761 # support --undefined. This deserves some investigation. FIXME
7762 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763 else
7764 ld_shlibs=no
7765 fi
7766 ;;
7767
7768 cygwin* | mingw* | pw32*)
7769 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7770 # as there is no search path for DLLs.
7771 hardcode_libdir_flag_spec='-L$libdir'
7772 allow_undefined_flag=unsupported
7773 always_export_symbols=no
7774 enable_shared_with_static_runtimes=yes
0fde1ce3 7775 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 7776
7777 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7779 # If the export-symbols file already is a .def file (1st line
7780 # is EXPORTS), use it as is; otherwise, prepend...
7781 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7782 cp $export_symbols $output_objdir/$soname.def;
7783 else
7784 echo EXPORTS > $output_objdir/$soname.def;
7785 cat $export_symbols >> $output_objdir/$soname.def;
7786 fi~
7787 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7788 else
7789 ld_shlibs=no
7790 fi
7791 ;;
7792
0fde1ce3 7793 interix[3-9]*)
d9898ee8 7794 hardcode_direct=no
7795 hardcode_shlibpath_var=no
7796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7797 export_dynamic_flag_spec='${wl}-E'
7798 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7799 # Instead, shared libraries are loaded at an image base (0x10000000 by
7800 # default) and relocated if they conflict, which is a slow very memory
7801 # consuming and fragmenting process. To avoid this, we pick a random,
7802 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7803 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7804 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7805 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'
7806 ;;
7807
0fde1ce3 7808 gnu* | linux* | k*bsd*-gnu)
d9898ee8 7809 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7810 tmp_addflag=
7811 case $cc_basename,$host_cpu in
7812 pgcc*) # Portland Group C compiler
7813 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'
7814 tmp_addflag=' $pic_flag'
7815 ;;
7816 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7817 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'
7818 tmp_addflag=' $pic_flag -Mnomain' ;;
7819 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7820 tmp_addflag=' -i_dynamic' ;;
7821 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7822 tmp_addflag=' -i_dynamic -nofor_main' ;;
7823 ifc* | ifort*) # Intel Fortran compiler
7824 tmp_addflag=' -nofor_main' ;;
7825 esac
0fde1ce3 7826 case `$CC -V 2>&1 | sed 5q` in
7827 *Sun\ C*) # Sun C 5.9
7828 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7829 tmp_sharedflag='-G' ;;
7830 *Sun\ F*) # Sun Fortran 8.3
7831 tmp_sharedflag='-G' ;;
7832 *)
7833 tmp_sharedflag='-shared' ;;
7834 esac
7835 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 7836
7837 if test $supports_anon_versioning = yes; then
7838 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7839 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7840 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 7841 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 7842 fi
7843 else
7844 ld_shlibs=no
7845 fi
7846 ;;
7847
7848 netbsd*)
7849 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7850 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7851 wlarc=
7852 else
7853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7855 fi
7856 ;;
7857
7858 solaris*)
7859 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7860 ld_shlibs=no
7861 cat <<EOF 1>&2
7862
7863*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7864*** create shared libraries on Solaris systems. Therefore, libtool
7865*** is disabling shared libraries support. We urge you to upgrade GNU
7866*** binutils to release 2.9.1 or newer. Another option is to modify
7867*** your PATH or compiler configuration so that the native linker is
7868*** used, and then restart.
7869
7870EOF
7871 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7874 else
7875 ld_shlibs=no
7876 fi
7877 ;;
7878
7879 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7880 case `$LD -v 2>&1` in
7881 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7882 ld_shlibs=no
7883 cat <<_LT_EOF 1>&2
7884
7885*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7886*** reliably create shared libraries on SCO systems. Therefore, libtool
7887*** is disabling shared libraries support. We urge you to upgrade GNU
7888*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7889*** your PATH or compiler configuration so that the native linker is
7890*** used, and then restart.
7891
7892_LT_EOF
7893 ;;
7894 *)
7895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7896 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7898 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7899 else
7900 ld_shlibs=no
7901 fi
7902 ;;
7903 esac
7904 ;;
7905
7906 sunos4*)
7907 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7908 wlarc=
7909 hardcode_direct=yes
7910 hardcode_shlibpath_var=no
7911 ;;
7912
7913 *)
7914 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7916 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7917 else
7918 ld_shlibs=no
7919 fi
7920 ;;
7921 esac
7922
7923 if test "$ld_shlibs" = no; then
7924 runpath_var=
7925 hardcode_libdir_flag_spec=
7926 export_dynamic_flag_spec=
7927 whole_archive_flag_spec=
7928 fi
7929 else
7930 # PORTME fill in a description of your system's linker (not GNU ld)
7931 case $host_os in
7932 aix3*)
7933 allow_undefined_flag=unsupported
7934 always_export_symbols=yes
7935 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'
7936 # Note: this linker hardcodes the directories in LIBPATH if there
7937 # are no directories specified by -L.
7938 hardcode_minus_L=yes
7939 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7940 # Neither direct hardcoding nor static linking is supported with a
7941 # broken collect2.
7942 hardcode_direct=unsupported
7943 fi
7944 ;;
7945
7946 aix4* | aix5*)
7947 if test "$host_cpu" = ia64; then
7948 # On IA64, the linker does run time linking by default, so we don't
7949 # have to do anything special.
7950 aix_use_runtimelinking=no
7951 exp_sym_flag='-Bexport'
7952 no_entry_flag=""
7953 else
7954 # If we're using GNU nm, then we don't want the "-C" option.
7955 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7956 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7957 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'
7958 else
7959 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'
7960 fi
7961 aix_use_runtimelinking=no
7962
7963 # Test if we are trying to use run time linking or normal
7964 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7965 # need to do runtime linking.
7966 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7967 for ld_flag in $LDFLAGS; do
7968 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7969 aix_use_runtimelinking=yes
7970 break
7971 fi
7972 done
7973 ;;
7974 esac
7975
7976 exp_sym_flag='-bexport'
7977 no_entry_flag='-bnoentry'
7978 fi
7979
7980 # When large executables or shared objects are built, AIX ld can
7981 # have problems creating the table of contents. If linking a library
7982 # or program results in "error TOC overflow" add -mminimal-toc to
7983 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7984 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7985
7986 archive_cmds=''
7987 hardcode_direct=yes
7988 hardcode_libdir_separator=':'
7989 link_all_deplibs=yes
7990
7991 if test "$GCC" = yes; then
7992 case $host_os in aix4.[012]|aix4.[012].*)
7993 # We only want to do this on AIX 4.2 and lower, the check
7994 # below for broken collect2 doesn't work under 4.3+
7995 collect2name=`${CC} -print-prog-name=collect2`
7996 if test -f "$collect2name" && \
7997 strings "$collect2name" | grep resolve_lib_name >/dev/null
7998 then
7999 # We have reworked collect2
0fde1ce3 8000 :
d9898ee8 8001 else
8002 # We have old collect2
8003 hardcode_direct=unsupported
8004 # It fails to find uninstalled libraries when the uninstalled
8005 # path is not listed in the libpath. Setting hardcode_minus_L
8006 # to unsupported forces relinking
8007 hardcode_minus_L=yes
8008 hardcode_libdir_flag_spec='-L$libdir'
8009 hardcode_libdir_separator=
8010 fi
8011 ;;
8012 esac
8013 shared_flag='-shared'
8014 if test "$aix_use_runtimelinking" = yes; then
8015 shared_flag="$shared_flag "'${wl}-G'
8016 fi
8017 else
8018 # not using gcc
8019 if test "$host_cpu" = ia64; then
8020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8021 # chokes on -Wl,-G. The following line is correct:
8022 shared_flag='-G'
8023 else
8024 if test "$aix_use_runtimelinking" = yes; then
8025 shared_flag='${wl}-G'
8026 else
8027 shared_flag='${wl}-bM:SRE'
8028 fi
8029 fi
8030 fi
8031
8032 # It seems that -bexpall does not export symbols beginning with
8033 # underscore (_), so it is better to generate a list of symbols to export.
8034 always_export_symbols=yes
8035 if test "$aix_use_runtimelinking" = yes; then
8036 # Warning - without using the other runtime loading flags (-brtl),
8037 # -berok will link without error, but may produce a broken library.
8038 allow_undefined_flag='-berok'
8039 # Determine the default libpath from the value encoded in an empty executable.
8040 cat >conftest.$ac_ext <<_ACEOF
8041/* confdefs.h. */
8042_ACEOF
8043cat confdefs.h >>conftest.$ac_ext
8044cat >>conftest.$ac_ext <<_ACEOF
8045/* end confdefs.h. */
8046
8047int
8048main ()
8049{
8050
8051 ;
8052 return 0;
8053}
8054_ACEOF
8055rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8056if { (ac_try="$ac_link"
8057case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060esac
8061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_link") 2>conftest.er1
d9898ee8 8063 ac_status=$?
8064 grep -v '^ *+' conftest.er1 >conftest.err
8065 rm -f conftest.er1
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8068 (exit $ac_status); } && {
8069 test -z "$ac_c_werror_flag" ||
8070 test ! -s conftest.err
8071 } && test -s conftest$ac_exeext &&
8072 $as_test_x conftest$ac_exeext; then
d9898ee8 8073
0fde1ce3 8074lt_aix_libpath_sed='
8075 /Import File Strings/,/^$/ {
8076 /^0/ {
8077 s/^0 *\(.*\)$/\1/
8078 p
8079 }
8080 }'
8081aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8082# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8083if test -z "$aix_libpath"; then
8084 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8085fi
d9898ee8 8086else
8087 echo "$as_me: failed program was:" >&5
8088sed 's/^/| /' conftest.$ac_ext >&5
8089
64ff59ba 8090
d9898ee8 8091fi
64ff59ba 8092
8093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8094 conftest$ac_exeext conftest.$ac_ext
8095if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8096
8097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8098 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"
8099 else
8100 if test "$host_cpu" = ia64; then
8101 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8102 allow_undefined_flag="-z nodefs"
8103 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"
8104 else
8105 # Determine the default libpath from the value encoded in an empty executable.
8106 cat >conftest.$ac_ext <<_ACEOF
8107/* confdefs.h. */
8108_ACEOF
8109cat confdefs.h >>conftest.$ac_ext
8110cat >>conftest.$ac_ext <<_ACEOF
8111/* end confdefs.h. */
8112
8113int
8114main ()
8115{
8116
8117 ;
8118 return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8122if { (ac_try="$ac_link"
8123case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8126esac
8127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_link") 2>conftest.er1
d9898ee8 8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest$ac_exeext &&
8138 $as_test_x conftest$ac_exeext; then
d9898ee8 8139
0fde1ce3 8140lt_aix_libpath_sed='
8141 /Import File Strings/,/^$/ {
8142 /^0/ {
8143 s/^0 *\(.*\)$/\1/
8144 p
8145 }
8146 }'
8147aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8148# Check for a 64-bit object if we didn't find anything.
0fde1ce3 8149if test -z "$aix_libpath"; then
8150 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8151fi
d9898ee8 8152else
8153 echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
64ff59ba 8156
d9898ee8 8157fi
64ff59ba 8158
8159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8160 conftest$ac_exeext conftest.$ac_ext
8161if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8162
8163 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8164 # Warning - without using the other run time loading flags,
8165 # -berok will link without error, but may produce a broken library.
8166 no_undefined_flag=' ${wl}-bernotok'
8167 allow_undefined_flag=' ${wl}-berok'
8168 # Exported symbols can be pulled into shared objects from archives
8169 whole_archive_flag_spec='$convenience'
8170 archive_cmds_need_lc=yes
8171 # This is similar to how AIX traditionally builds its shared libraries.
8172 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'
8173 fi
8174 fi
8175 ;;
8176
8177 amigaos*)
8178 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)'
8179 hardcode_libdir_flag_spec='-L$libdir'
8180 hardcode_minus_L=yes
8181 # see comment about different semantics on the GNU ld section
8182 ld_shlibs=no
8183 ;;
8184
8185 bsdi[45]*)
8186 export_dynamic_flag_spec=-rdynamic
8187 ;;
8188
8189 cygwin* | mingw* | pw32*)
8190 # When not using gcc, we currently assume that we are using
8191 # Microsoft Visual C++.
8192 # hardcode_libdir_flag_spec is actually meaningless, as there is
8193 # no search path for DLLs.
8194 hardcode_libdir_flag_spec=' '
8195 allow_undefined_flag=unsupported
8196 # Tell ltmain to make .lib files, not .a files.
8197 libext=lib
8198 # Tell ltmain to make .dll files, not .so files.
8199 shrext_cmds=".dll"
8200 # FIXME: Setting linknames here is a bad hack.
8201 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8202 # The linker will automatically build a .lib file if we build a DLL.
8203 old_archive_From_new_cmds='true'
8204 # FIXME: Should let the user specify the lib program.
0fde1ce3 8205 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8206 fix_srcfile_path='`cygpath -w "$srcfile"`'
8207 enable_shared_with_static_runtimes=yes
8208 ;;
8209
8210 darwin* | rhapsody*)
8211 case $host_os in
8212 rhapsody* | darwin1.[012])
8213 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8214 ;;
8215 *) # Darwin 1.3 on
8216 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8217 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8218 else
8219 case ${MACOSX_DEPLOYMENT_TARGET} in
8220 10.[012])
8221 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8222 ;;
8223 10.*)
8224 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8225 ;;
8226 esac
8227 fi
8228 ;;
8229 esac
8230 archive_cmds_need_lc=no
8231 hardcode_direct=no
8232 hardcode_automatic=yes
8233 hardcode_shlibpath_var=unsupported
8234 whole_archive_flag_spec=''
8235 link_all_deplibs=yes
8236 if test "$GCC" = yes ; then
8237 output_verbose_link_cmd='echo'
8238 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8239 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8241 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}'
8242 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}'
8243 else
8244 case $cc_basename in
8245 xlc*)
8246 output_verbose_link_cmd='echo'
0fde1ce3 8247 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8248 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8249 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 8250 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 8251 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}'
8252 ;;
8253 *)
8254 ld_shlibs=no
8255 ;;
8256 esac
8257 fi
8258 ;;
8259
8260 dgux*)
8261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8262 hardcode_libdir_flag_spec='-L$libdir'
8263 hardcode_shlibpath_var=no
8264 ;;
8265
8266 freebsd1*)
8267 ld_shlibs=no
8268 ;;
8269
8270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8271 # support. Future versions do this automatically, but an explicit c++rt0.o
8272 # does not break anything, and helps significantly (at the cost of a little
8273 # extra space).
8274 freebsd2.2*)
8275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8276 hardcode_libdir_flag_spec='-R$libdir'
8277 hardcode_direct=yes
8278 hardcode_shlibpath_var=no
8279 ;;
8280
8281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8282 freebsd2*)
8283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8284 hardcode_direct=yes
8285 hardcode_minus_L=yes
8286 hardcode_shlibpath_var=no
8287 ;;
8288
8289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 8290 freebsd* | dragonfly*)
d9898ee8 8291 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8292 hardcode_libdir_flag_spec='-R$libdir'
8293 hardcode_direct=yes
8294 hardcode_shlibpath_var=no
8295 ;;
8296
8297 hpux9*)
8298 if test "$GCC" = yes; then
8299 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'
8300 else
8301 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'
8302 fi
8303 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8304 hardcode_libdir_separator=:
8305 hardcode_direct=yes
8306
8307 # hardcode_minus_L: Not really in the search PATH,
8308 # but as the default location of the library.
8309 hardcode_minus_L=yes
8310 export_dynamic_flag_spec='${wl}-E'
8311 ;;
8312
8313 hpux10*)
8314 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8315 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8316 else
8317 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8318 fi
8319 if test "$with_gnu_ld" = no; then
8320 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8321 hardcode_libdir_separator=:
8322
8323 hardcode_direct=yes
8324 export_dynamic_flag_spec='${wl}-E'
8325
8326 # hardcode_minus_L: Not really in the search PATH,
8327 # but as the default location of the library.
8328 hardcode_minus_L=yes
8329 fi
8330 ;;
8331
8332 hpux11*)
8333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8334 case $host_cpu in
8335 hppa*64*)
8336 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8337 ;;
8338 ia64*)
8339 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8340 ;;
8341 *)
8342 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8343 ;;
8344 esac
8345 else
8346 case $host_cpu in
8347 hppa*64*)
8348 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8349 ;;
8350 ia64*)
8351 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8352 ;;
8353 *)
8354 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8355 ;;
8356 esac
8357 fi
8358 if test "$with_gnu_ld" = no; then
8359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8360 hardcode_libdir_separator=:
8361
8362 case $host_cpu in
8363 hppa*64*|ia64*)
8364 hardcode_libdir_flag_spec_ld='+b $libdir'
8365 hardcode_direct=no
8366 hardcode_shlibpath_var=no
8367 ;;
8368 *)
8369 hardcode_direct=yes
8370 export_dynamic_flag_spec='${wl}-E'
8371
8372 # hardcode_minus_L: Not really in the search PATH,
8373 # but as the default location of the library.
8374 hardcode_minus_L=yes
8375 ;;
8376 esac
8377 fi
8378 ;;
8379
8380 irix5* | irix6* | nonstopux*)
8381 if test "$GCC" = yes; then
8382 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'
8383 else
8384 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'
8385 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8386 fi
8387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8388 hardcode_libdir_separator=:
8389 link_all_deplibs=yes
8390 ;;
8391
8392 netbsd*)
8393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8394 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8395 else
8396 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8397 fi
8398 hardcode_libdir_flag_spec='-R$libdir'
8399 hardcode_direct=yes
8400 hardcode_shlibpath_var=no
8401 ;;
8402
8403 newsos6)
8404 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8405 hardcode_direct=yes
8406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8407 hardcode_libdir_separator=:
8408 hardcode_shlibpath_var=no
8409 ;;
8410
8411 openbsd*)
0fde1ce3 8412 if test -f /usr/libexec/ld.so; then
8413 hardcode_direct=yes
8414 hardcode_shlibpath_var=no
8415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8416 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8417 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8418 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8419 export_dynamic_flag_spec='${wl}-E'
8420 else
8421 case $host_os in
8422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8424 hardcode_libdir_flag_spec='-R$libdir'
8425 ;;
8426 *)
8427 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8428 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8429 ;;
8430 esac
8431 fi
d9898ee8 8432 else
0fde1ce3 8433 ld_shlibs=no
d9898ee8 8434 fi
8435 ;;
8436
8437 os2*)
8438 hardcode_libdir_flag_spec='-L$libdir'
8439 hardcode_minus_L=yes
8440 allow_undefined_flag=unsupported
8441 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'
8442 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8443 ;;
8444
8445 osf3*)
8446 if test "$GCC" = yes; then
8447 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8448 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'
8449 else
8450 allow_undefined_flag=' -expect_unresolved \*'
8451 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'
8452 fi
8453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8454 hardcode_libdir_separator=:
8455 ;;
8456
8457 osf4* | osf5*) # as osf3* with the addition of -msym flag
8458 if test "$GCC" = yes; then
8459 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8460 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'
8461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8462 else
8463 allow_undefined_flag=' -expect_unresolved \*'
8464 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'
8465 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8466 $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'
8467
8468 # Both c and cxx compiler support -rpath directly
8469 hardcode_libdir_flag_spec='-rpath $libdir'
8470 fi
8471 hardcode_libdir_separator=:
8472 ;;
8473
8474 solaris*)
8475 no_undefined_flag=' -z text'
8476 if test "$GCC" = yes; then
8477 wlarc='${wl}'
8478 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8480 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8481 else
8482 wlarc=''
8483 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8484 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8486 fi
8487 hardcode_libdir_flag_spec='-R$libdir'
8488 hardcode_shlibpath_var=no
8489 case $host_os in
8490 solaris2.[0-5] | solaris2.[0-5].*) ;;
8491 *)
0fde1ce3 8492 # The compiler driver will combine and reorder linker options,
8493 # but understands `-z linker_flag'. GCC discards it without `$wl',
8494 # but is careful enough not to reorder.
d9898ee8 8495 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 8496 if test "$GCC" = yes; then
8497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8498 else
8499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8500 fi
8501 ;;
d9898ee8 8502 esac
8503 link_all_deplibs=yes
8504 ;;
8505
8506 sunos4*)
8507 if test "x$host_vendor" = xsequent; then
8508 # Use $CC to link under sequent, because it throws in some extra .o
8509 # files that make .init and .fini sections work.
8510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8511 else
8512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8513 fi
8514 hardcode_libdir_flag_spec='-L$libdir'
8515 hardcode_direct=yes
8516 hardcode_minus_L=yes
8517 hardcode_shlibpath_var=no
8518 ;;
8519
8520 sysv4)
8521 case $host_vendor in
8522 sni)
8523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8524 hardcode_direct=yes # is this really true???
8525 ;;
8526 siemens)
8527 ## LD is ld it makes a PLAMLIB
8528 ## CC just makes a GrossModule.
8529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8530 reload_cmds='$CC -r -o $output$reload_objs'
8531 hardcode_direct=no
8532 ;;
8533 motorola)
8534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8536 ;;
8537 esac
8538 runpath_var='LD_RUN_PATH'
8539 hardcode_shlibpath_var=no
8540 ;;
8541
8542 sysv4.3*)
8543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_shlibpath_var=no
8545 export_dynamic_flag_spec='-Bexport'
8546 ;;
8547
8548 sysv4*MP*)
8549 if test -d /usr/nec; then
8550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8551 hardcode_shlibpath_var=no
8552 runpath_var=LD_RUN_PATH
8553 hardcode_runpath_var=yes
8554 ld_shlibs=yes
8555 fi
8556 ;;
8557
0fde1ce3 8558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8559 no_undefined_flag='${wl}-z,text'
8560 archive_cmds_need_lc=no
8561 hardcode_shlibpath_var=no
8562 runpath_var='LD_RUN_PATH'
8563
8564 if test "$GCC" = yes; then
8565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8567 else
8568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8570 fi
8571 ;;
8572
8573 sysv5* | sco3.2v5* | sco5v6*)
8574 # Note: We can NOT use -z defs as we might desire, because we do not
8575 # link with -lc, and that would cause any symbols used from libc to
8576 # always be unresolved, which means just about no library would
8577 # ever link correctly. If we're not using GNU ld we use -z text
8578 # though, which does catch some bad symbols but isn't as heavy-handed
8579 # as -z defs.
8580 no_undefined_flag='${wl}-z,text'
8581 allow_undefined_flag='${wl}-z,nodefs'
8582 archive_cmds_need_lc=no
8583 hardcode_shlibpath_var=no
8584 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8585 hardcode_libdir_separator=':'
8586 link_all_deplibs=yes
8587 export_dynamic_flag_spec='${wl}-Bexport'
8588 runpath_var='LD_RUN_PATH'
8589
8590 if test "$GCC" = yes; then
8591 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8593 else
8594 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8596 fi
8597 ;;
8598
8599 uts4*)
8600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8601 hardcode_libdir_flag_spec='-L$libdir'
8602 hardcode_shlibpath_var=no
8603 ;;
8604
8605 *)
8606 ld_shlibs=no
8607 ;;
8608 esac
8609 fi
8610
64ff59ba 8611{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8612echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8613test "$ld_shlibs" = no && can_build_shared=no
8614
8615#
8616# Do we need to explicitly link libc?
8617#
8618case "x$archive_cmds_need_lc" in
8619x|xyes)
8620 # Assume -lc should be added
8621 archive_cmds_need_lc=yes
8622
8623 if test "$enable_shared" = yes && test "$GCC" = yes; then
8624 case $archive_cmds in
8625 *'~'*)
8626 # FIXME: we may have to deal with multi-command sequences.
8627 ;;
8628 '$CC '*)
8629 # Test whether the compiler implicitly links with -lc since on some
8630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8631 # to ld, don't add -lc before -lgcc.
64ff59ba 8632 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8633echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8634 $rm conftest*
0fde1ce3 8635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8636
8637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8638 (eval $ac_compile) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } 2>conftest.err; then
8642 soname=conftest
8643 lib=conftest
8644 libobjs=conftest.$ac_objext
8645 deplibs=
8646 wl=$lt_prog_compiler_wl
8647 pic_flag=$lt_prog_compiler_pic
8648 compiler_flags=-v
8649 linker_flags=-v
8650 verstring=
8651 output_objdir=.
8652 libname=conftest
8653 lt_save_allow_undefined_flag=$allow_undefined_flag
8654 allow_undefined_flag=
8655 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8656 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }
8660 then
8661 archive_cmds_need_lc=no
8662 else
8663 archive_cmds_need_lc=yes
8664 fi
8665 allow_undefined_flag=$lt_save_allow_undefined_flag
8666 else
8667 cat conftest.err 1>&5
8668 fi
8669 $rm conftest*
64ff59ba 8670 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8671echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8672 ;;
8673 esac
8674 fi
8675 ;;
8676esac
8677
64ff59ba 8678{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8679echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8680library_names_spec=
8681libname_spec='lib$name'
8682soname_spec=
8683shrext_cmds=".so"
8684postinstall_cmds=
8685postuninstall_cmds=
8686finish_cmds=
8687finish_eval=
8688shlibpath_var=
8689shlibpath_overrides_runpath=unknown
8690version_type=none
8691dynamic_linker="$host_os ld.so"
8692sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 8693
d9898ee8 8694if test "$GCC" = yes; then
0fde1ce3 8695 case $host_os in
8696 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8697 *) lt_awk_arg="/^libraries:/" ;;
8698 esac
8699 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8700 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8701 # if the path contains ";" then we assume it to be the separator
8702 # otherwise default to the standard path separator (i.e. ":") - it is
8703 # assumed that no part of a normal pathname contains ";" but that should
8704 # okay in the real world where ";" in dirpaths is itself problematic.
0fde1ce3 8705 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8706 else
0fde1ce3 8707 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8708 fi
0fde1ce3 8709 # Ok, now we have the path, separated by spaces, we can step through it
8710 # and add multilib dir if necessary.
8711 lt_tmp_lt_search_path_spec=
8712 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8713 for lt_sys_path in $lt_search_path_spec; do
8714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8715 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8716 else
8717 test -d "$lt_sys_path" && \
8718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8719 fi
8720 done
8721 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8722BEGIN {RS=" "; FS="/|\n";} {
8723 lt_foo="";
8724 lt_count=0;
8725 for (lt_i = NF; lt_i > 0; lt_i--) {
8726 if ($lt_i != "" && $lt_i != ".") {
8727 if ($lt_i == "..") {
8728 lt_count++;
8729 } else {
8730 if (lt_count == 0) {
8731 lt_foo="/" $lt_i lt_foo;
8732 } else {
8733 lt_count--;
8734 }
8735 }
8736 }
8737 }
8738 if (lt_foo != "") { lt_freq[lt_foo]++; }
8739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8740}'`
8741 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 8742else
8743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8744fi
8745need_lib_prefix=unknown
8746hardcode_into_libs=no
8747
8748# when you set need_version to no, make sure it does not cause -set_version
8749# flags to be left without arguments
8750need_version=unknown
8751
8752case $host_os in
8753aix3*)
8754 version_type=linux
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8756 shlibpath_var=LIBPATH
8757
8758 # AIX 3 has no versioning support, so we append a major version to the name.
8759 soname_spec='${libname}${release}${shared_ext}$major'
8760 ;;
8761
8762aix4* | aix5*)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
8766 hardcode_into_libs=yes
8767 if test "$host_cpu" = ia64; then
8768 # AIX 5 supports IA64
8769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 else
8772 # With GCC up to 2.95.x, collect2 would create an import file
8773 # for dependence libraries. The import file would start with
8774 # the line `#! .'. This would cause the generated library to
8775 # depend on `.', always an invalid library. This was fixed in
8776 # development snapshots of GCC prior to 3.0.
8777 case $host_os in
8778 aix4 | aix4.[01] | aix4.[01].*)
8779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8780 echo ' yes '
8781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8782 :
8783 else
8784 can_build_shared=no
8785 fi
8786 ;;
8787 esac
8788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8789 # soname into executable. Probably we can add versioning support to
8790 # collect2, so additional links can be useful in future.
8791 if test "$aix_use_runtimelinking" = yes; then
8792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8793 # instead of lib<name>.a to let people know that these are not
8794 # typical AIX shared libraries.
8795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8796 else
8797 # We preserve .a as extension for shared libraries through AIX4.2
8798 # and later when we are not doing run time linking.
8799 library_names_spec='${libname}${release}.a $libname.a'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8801 fi
8802 shlibpath_var=LIBPATH
8803 fi
8804 ;;
8805
8806amigaos*)
8807 library_names_spec='$libname.ixlibrary $libname.a'
8808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8809 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'
8810 ;;
8811
8812beos*)
8813 library_names_spec='${libname}${shared_ext}'
8814 dynamic_linker="$host_os ld.so"
8815 shlibpath_var=LIBRARY_PATH
8816 ;;
8817
8818bsdi[45]*)
8819 version_type=linux
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8827 # the default ld.so.conf also contains /usr/contrib/lib and
8828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8829 # libtool to hard-code these into programs
8830 ;;
8831
8832cygwin* | mingw* | pw32*)
8833 version_type=windows
8834 shrext_cmds=".dll"
8835 need_version=no
8836 need_lib_prefix=no
8837
8838 case $GCC,$host_os in
8839 yes,cygwin* | yes,mingw* | yes,pw32*)
8840 library_names_spec='$libname.dll.a'
8841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8842 postinstall_cmds='base_file=`basename \${file}`~
8843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8844 dldir=$destdir/`dirname \$dlpath`~
8845 test -d \$dldir || mkdir -p \$dldir~
8846 $install_prog $dir/$dlname \$dldir/$dlname~
8847 chmod a+x \$dldir/$dlname'
8848 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8849 dlpath=$dir/\$dldll~
8850 $rm \$dlpath'
8851 shlibpath_overrides_runpath=yes
8852
8853 case $host_os in
8854 cygwin*)
8855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8856 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8857 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8858 ;;
8859 mingw*)
8860 # MinGW DLLs use traditional 'lib' prefix
8861 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8862 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8863 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8864 # It is most probably a Windows format PATH printed by
8865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8866 # path with ; separators, and with drive letters. We can handle the
8867 # drive letters (cygwin fileutils understands them), so leave them,
8868 # especially as we might pass files found there to a mingw objdump,
8869 # which wouldn't understand a cygwinified path. Ahh.
8870 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8871 else
8872 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8873 fi
8874 ;;
8875 pw32*)
8876 # pw32 DLLs use 'pw' prefix rather than 'lib'
8877 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8878 ;;
8879 esac
8880 ;;
8881
8882 *)
8883 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8884 ;;
8885 esac
8886 dynamic_linker='Win32 ld.exe'
8887 # FIXME: first we should search . and the directory the executable is in
8888 shlibpath_var=PATH
8889 ;;
8890
8891darwin* | rhapsody*)
8892 dynamic_linker="$host_os dyld"
8893 version_type=darwin
8894 need_lib_prefix=no
8895 need_version=no
8896 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8897 soname_spec='${libname}${release}${major}$shared_ext'
8898 shlibpath_overrides_runpath=yes
8899 shlibpath_var=DYLD_LIBRARY_PATH
8900 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 8901
8902 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 8903 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8904 ;;
8905
8906dgux*)
8907 version_type=linux
8908 need_lib_prefix=no
8909 need_version=no
8910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8911 soname_spec='${libname}${release}${shared_ext}$major'
8912 shlibpath_var=LD_LIBRARY_PATH
8913 ;;
8914
8915freebsd1*)
8916 dynamic_linker=no
8917 ;;
8918
d9898ee8 8919freebsd* | dragonfly*)
8920 # DragonFly does not have aout. When/if they implement a new
8921 # versioning mechanism, adjust this.
8922 if test -x /usr/bin/objformat; then
8923 objformat=`/usr/bin/objformat`
8924 else
8925 case $host_os in
8926 freebsd[123]*) objformat=aout ;;
8927 *) objformat=elf ;;
8928 esac
8929 fi
8930 version_type=freebsd-$objformat
8931 case $version_type in
8932 freebsd-elf*)
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8934 need_version=no
8935 need_lib_prefix=no
8936 ;;
8937 freebsd-*)
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8939 need_version=yes
8940 ;;
8941 esac
8942 shlibpath_var=LD_LIBRARY_PATH
8943 case $host_os in
8944 freebsd2*)
8945 shlibpath_overrides_runpath=yes
8946 ;;
8947 freebsd3.[01]* | freebsdelf3.[01]*)
8948 shlibpath_overrides_runpath=yes
8949 hardcode_into_libs=yes
8950 ;;
8951 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8952 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8955 ;;
0fde1ce3 8956 *) # from 4.6 on, and DragonFly
d9898ee8 8957 shlibpath_overrides_runpath=yes
8958 hardcode_into_libs=yes
8959 ;;
8960 esac
8961 ;;
8962
8963gnu*)
8964 version_type=linux
8965 need_lib_prefix=no
8966 need_version=no
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 shlibpath_var=LD_LIBRARY_PATH
8970 hardcode_into_libs=yes
8971 ;;
8972
8973hpux9* | hpux10* | hpux11*)
8974 # Give a soname corresponding to the major version so that dld.sl refuses to
8975 # link against other versions.
8976 version_type=sunos
8977 need_lib_prefix=no
8978 need_version=no
8979 case $host_cpu in
8980 ia64*)
8981 shrext_cmds='.so'
8982 hardcode_into_libs=yes
8983 dynamic_linker="$host_os dld.so"
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 if test "X$HPUX_IA64_MODE" = X32; then
8989 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8990 else
8991 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8992 fi
8993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8994 ;;
8995 hppa*64*)
8996 shrext_cmds='.sl'
8997 hardcode_into_libs=yes
8998 dynamic_linker="$host_os dld.sl"
8999 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9005 ;;
9006 *)
9007 shrext_cmds='.sl'
9008 dynamic_linker="$host_os dld.sl"
9009 shlibpath_var=SHLIB_PATH
9010 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 ;;
9014 esac
9015 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9016 postinstall_cmds='chmod 555 $lib'
9017 ;;
9018
0fde1ce3 9019interix[3-9]*)
d9898ee8 9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=no
9028 hardcode_into_libs=yes
9029 ;;
9030
9031irix5* | irix6* | nonstopux*)
9032 case $host_os in
9033 nonstopux*) version_type=nonstopux ;;
9034 *)
9035 if test "$lt_cv_prog_gnu_ld" = yes; then
9036 version_type=linux
9037 else
9038 version_type=irix
9039 fi ;;
9040 esac
9041 need_lib_prefix=no
9042 need_version=no
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9045 case $host_os in
9046 irix5* | nonstopux*)
9047 libsuff= shlibsuff=
9048 ;;
9049 *)
9050 case $LD in # libtool.m4 will add one of these switches to LD
9051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9052 libsuff= shlibsuff= libmagic=32-bit;;
9053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9054 libsuff=32 shlibsuff=N32 libmagic=N32;;
9055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9056 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9057 *) libsuff= shlibsuff= libmagic=never-match;;
9058 esac
9059 ;;
9060 esac
9061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9062 shlibpath_overrides_runpath=no
9063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9065 hardcode_into_libs=yes
9066 ;;
9067
9068# No shared lib support for Linux oldld, aout, or coff.
9069linux*oldld* | linux*aout* | linux*coff*)
9070 dynamic_linker=no
9071 ;;
9072
9073# This must be Linux ELF.
0fde1ce3 9074linux* | k*bsd*-gnu)
d9898ee8 9075 version_type=linux
9076 need_lib_prefix=no
9077 need_version=no
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=no
9083 # This implies no fast_install, which is unacceptable.
9084 # Some rework will be needed to allow for fast_install
9085 # before this can be enabled.
9086 hardcode_into_libs=yes
0fde1ce3 9087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9089
9090 # Append ld.so.conf contents to the search path
9091 if test -f /etc/ld.so.conf; then
0fde1ce3 9092 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9093 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9094 fi
9095
9096 # We used to test for /lib/ld.so.1 and disable shared libraries on
9097 # powerpc, because MkLinux only supported shared libraries with the
9098 # GNU dynamic linker. Since this was broken with cross compilers,
9099 # most powerpc-linux boxes support dynamic linking these days and
9100 # people can always --disable-shared, the test was removed, and we
9101 # assume the GNU/Linux dynamic linker is in use.
9102 dynamic_linker='GNU/Linux ld.so'
9103 ;;
9104
d9898ee8 9105netbsd*)
9106 version_type=sunos
9107 need_lib_prefix=no
9108 need_version=no
9109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9111 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9112 dynamic_linker='NetBSD (a.out) ld.so'
9113 else
9114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9115 soname_spec='${libname}${release}${shared_ext}$major'
9116 dynamic_linker='NetBSD ld.elf_so'
9117 fi
9118 shlibpath_var=LD_LIBRARY_PATH
9119 shlibpath_overrides_runpath=yes
9120 hardcode_into_libs=yes
9121 ;;
9122
9123newsos6)
9124 version_type=linux
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 shlibpath_overrides_runpath=yes
9128 ;;
9129
9130nto-qnx*)
9131 version_type=linux
9132 need_lib_prefix=no
9133 need_version=no
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 shlibpath_var=LD_LIBRARY_PATH
9137 shlibpath_overrides_runpath=yes
9138 ;;
9139
9140openbsd*)
9141 version_type=sunos
9142 sys_lib_dlsearch_path_spec="/usr/lib"
9143 need_lib_prefix=no
9144 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9145 case $host_os in
9146 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9147 *) need_version=no ;;
9148 esac
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9153 case $host_os in
9154 openbsd2.[89] | openbsd2.[89].*)
9155 shlibpath_overrides_runpath=no
9156 ;;
9157 *)
9158 shlibpath_overrides_runpath=yes
9159 ;;
9160 esac
9161 else
9162 shlibpath_overrides_runpath=yes
9163 fi
9164 ;;
9165
9166os2*)
9167 libname_spec='$name'
9168 shrext_cmds=".dll"
9169 need_lib_prefix=no
9170 library_names_spec='$libname${shared_ext} $libname.a'
9171 dynamic_linker='OS/2 ld.exe'
9172 shlibpath_var=LIBPATH
9173 ;;
9174
9175osf3* | osf4* | osf5*)
9176 version_type=osf
9177 need_lib_prefix=no
9178 need_version=no
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9183 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9184 ;;
9185
0fde1ce3 9186rdos*)
9187 dynamic_linker=no
9188 ;;
9189
d9898ee8 9190solaris*)
9191 version_type=linux
9192 need_lib_prefix=no
9193 need_version=no
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 shlibpath_var=LD_LIBRARY_PATH
9197 shlibpath_overrides_runpath=yes
9198 hardcode_into_libs=yes
9199 # ldd complains unless libraries are executable
9200 postinstall_cmds='chmod +x $lib'
9201 ;;
9202
9203sunos4*)
9204 version_type=sunos
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9206 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9209 if test "$with_gnu_ld" = yes; then
9210 need_lib_prefix=no
9211 fi
9212 need_version=yes
9213 ;;
9214
9215sysv4 | sysv4.3*)
9216 version_type=linux
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 case $host_vendor in
9221 sni)
9222 shlibpath_overrides_runpath=no
9223 need_lib_prefix=no
9224 export_dynamic_flag_spec='${wl}-Blargedynsym'
9225 runpath_var=LD_RUN_PATH
9226 ;;
9227 siemens)
9228 need_lib_prefix=no
9229 ;;
9230 motorola)
9231 need_lib_prefix=no
9232 need_version=no
9233 shlibpath_overrides_runpath=no
9234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9235 ;;
9236 esac
9237 ;;
9238
9239sysv4*MP*)
9240 if test -d /usr/nec ;then
9241 version_type=linux
9242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9243 soname_spec='$libname${shared_ext}.$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 fi
9246 ;;
9247
9248sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9249 version_type=freebsd-elf
9250 need_lib_prefix=no
9251 need_version=no
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 hardcode_into_libs=yes
9256 if test "$with_gnu_ld" = yes; then
9257 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9258 shlibpath_overrides_runpath=no
9259 else
9260 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9261 shlibpath_overrides_runpath=yes
9262 case $host_os in
9263 sco3.2v5*)
9264 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9265 ;;
9266 esac
9267 fi
9268 sys_lib_dlsearch_path_spec='/usr/lib'
9269 ;;
9270
9271uts4*)
9272 version_type=linux
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 ;;
9277
9278*)
9279 dynamic_linker=no
9280 ;;
9281esac
64ff59ba 9282{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9283echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9284test "$dynamic_linker" = no && can_build_shared=no
9285
9286variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9287if test "$GCC" = yes; then
9288 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9289fi
9290
64ff59ba 9291{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9292echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9293hardcode_action=
9294if test -n "$hardcode_libdir_flag_spec" || \
9295 test -n "$runpath_var" || \
9296 test "X$hardcode_automatic" = "Xyes" ; then
9297
9298 # We can hardcode non-existant directories.
9299 if test "$hardcode_direct" != no &&
9300 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9301 # have to relink, otherwise we might link with an installed library
9302 # when we should be linking with a yet-to-be-installed one
9303 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9304 test "$hardcode_minus_L" != no; then
9305 # Linking always hardcodes the temporary library directory.
9306 hardcode_action=relink
9307 else
9308 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9309 hardcode_action=immediate
9310 fi
9311else
9312 # We cannot hardcode anything, or else we can only hardcode existing
9313 # directories.
9314 hardcode_action=unsupported
9315fi
64ff59ba 9316{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9317echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9318
9319if test "$hardcode_action" = relink; then
9320 # Fast installation is not supported
9321 enable_fast_install=no
9322elif test "$shlibpath_overrides_runpath" = yes ||
9323 test "$enable_shared" = no; then
9324 # Fast installation is not necessary
9325 enable_fast_install=needless
9326fi
9327
9328striplib=
9329old_striplib=
64ff59ba 9330{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9331echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9332if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9333 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9334 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9335 { echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6; }
d9898ee8 9337else
9338# FIXME - insert some real tests, host_os isn't really good enough
9339 case $host_os in
9340 darwin*)
9341 if test -n "$STRIP" ; then
9342 striplib="$STRIP -x"
0fde1ce3 9343 old_striplib="$STRIP -S"
64ff59ba 9344 { echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6; }
d9898ee8 9346 else
64ff59ba 9347 { echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6; }
d9898ee8 9349fi
9350 ;;
9351 *)
64ff59ba 9352 { echo "$as_me:$LINENO: result: no" >&5
9353echo "${ECHO_T}no" >&6; }
d9898ee8 9354 ;;
9355 esac
9356fi
9357
9358if test "x$enable_dlopen" != xyes; then
9359 enable_dlopen=unknown
9360 enable_dlopen_self=unknown
9361 enable_dlopen_self_static=unknown
9362else
9363 lt_cv_dlopen=no
9364 lt_cv_dlopen_libs=
9365
9366 case $host_os in
9367 beos*)
9368 lt_cv_dlopen="load_add_on"
9369 lt_cv_dlopen_libs=
9370 lt_cv_dlopen_self=yes
9371 ;;
9372
9373 mingw* | pw32*)
9374 lt_cv_dlopen="LoadLibrary"
9375 lt_cv_dlopen_libs=
9376 ;;
9377
9378 cygwin*)
9379 lt_cv_dlopen="dlopen"
9380 lt_cv_dlopen_libs=
9381 ;;
9382
9383 darwin*)
9384 # if libdl is installed we need to link against it
64ff59ba 9385 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9386echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9387if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389else
9390 ac_check_lib_save_LIBS=$LIBS
9391LIBS="-ldl $LIBS"
9392cat >conftest.$ac_ext <<_ACEOF
9393/* confdefs.h. */
9394_ACEOF
9395cat confdefs.h >>conftest.$ac_ext
9396cat >>conftest.$ac_ext <<_ACEOF
9397/* end confdefs.h. */
9398
64ff59ba 9399/* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
d9898ee8 9402#ifdef __cplusplus
9403extern "C"
9404#endif
d9898ee8 9405char dlopen ();
9406int
9407main ()
9408{
64ff59ba 9409return dlopen ();
d9898ee8 9410 ;
9411 return 0;
9412}
9413_ACEOF
9414rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9415if { (ac_try="$ac_link"
9416case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_link") 2>conftest.er1
d9898ee8 9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9427 (exit $ac_status); } && {
9428 test -z "$ac_c_werror_flag" ||
9429 test ! -s conftest.err
9430 } && test -s conftest$ac_exeext &&
9431 $as_test_x conftest$ac_exeext; then
d9898ee8 9432 ac_cv_lib_dl_dlopen=yes
9433else
9434 echo "$as_me: failed program was:" >&5
9435sed 's/^/| /' conftest.$ac_ext >&5
9436
64ff59ba 9437 ac_cv_lib_dl_dlopen=no
d9898ee8 9438fi
64ff59ba 9439
9440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9441 conftest$ac_exeext conftest.$ac_ext
9442LIBS=$ac_check_lib_save_LIBS
9443fi
64ff59ba 9444{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9445echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9446if test $ac_cv_lib_dl_dlopen = yes; then
9447 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9448else
9449
9450 lt_cv_dlopen="dyld"
9451 lt_cv_dlopen_libs=
9452 lt_cv_dlopen_self=yes
9453
9454fi
9455
9456 ;;
9457
9458 *)
64ff59ba 9459 { echo "$as_me:$LINENO: checking for shl_load" >&5
9460echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9461if test "${ac_cv_func_shl_load+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463else
9464 cat >conftest.$ac_ext <<_ACEOF
9465/* confdefs.h. */
9466_ACEOF
9467cat confdefs.h >>conftest.$ac_ext
9468cat >>conftest.$ac_ext <<_ACEOF
9469/* end confdefs.h. */
9470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9472#define shl_load innocuous_shl_load
9473
9474/* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char shl_load (); below.
9476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9477 <limits.h> exists even on freestanding compilers. */
9478
9479#ifdef __STDC__
9480# include <limits.h>
9481#else
9482# include <assert.h>
9483#endif
9484
9485#undef shl_load
9486
64ff59ba 9487/* Override any GCC internal prototype to avoid an error.
9488 Use char because int might match the return type of a GCC
9489 builtin and then its argument prototype would still apply. */
d9898ee8 9490#ifdef __cplusplus
9491extern "C"
d9898ee8 9492#endif
d9898ee8 9493char shl_load ();
9494/* The GNU C library defines this for functions which it implements
9495 to always fail with ENOSYS. Some functions are actually named
9496 something starting with __ and the normal name is an alias. */
64ff59ba 9497#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9498choke me
d9898ee8 9499#endif
9500
9501int
9502main ()
9503{
64ff59ba 9504return shl_load ();
d9898ee8 9505 ;
9506 return 0;
9507}
9508_ACEOF
9509rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9510if { (ac_try="$ac_link"
9511case "(($ac_try" in
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9514esac
9515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_link") 2>conftest.er1
d9898ee8 9517 ac_status=$?
9518 grep -v '^ *+' conftest.er1 >conftest.err
9519 rm -f conftest.er1
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest$ac_exeext &&
9526 $as_test_x conftest$ac_exeext; then
d9898ee8 9527 ac_cv_func_shl_load=yes
9528else
9529 echo "$as_me: failed program was:" >&5
9530sed 's/^/| /' conftest.$ac_ext >&5
9531
64ff59ba 9532 ac_cv_func_shl_load=no
d9898ee8 9533fi
64ff59ba 9534
9535rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9536 conftest$ac_exeext conftest.$ac_ext
9537fi
64ff59ba 9538{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9539echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9540if test $ac_cv_func_shl_load = yes; then
9541 lt_cv_dlopen="shl_load"
9542else
64ff59ba 9543 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9544echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9545if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9547else
9548 ac_check_lib_save_LIBS=$LIBS
9549LIBS="-ldld $LIBS"
9550cat >conftest.$ac_ext <<_ACEOF
9551/* confdefs.h. */
9552_ACEOF
9553cat confdefs.h >>conftest.$ac_ext
9554cat >>conftest.$ac_ext <<_ACEOF
9555/* end confdefs.h. */
9556
64ff59ba 9557/* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
d9898ee8 9560#ifdef __cplusplus
9561extern "C"
9562#endif
d9898ee8 9563char shl_load ();
9564int
9565main ()
9566{
64ff59ba 9567return shl_load ();
d9898ee8 9568 ;
9569 return 0;
9570}
9571_ACEOF
9572rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9573if { (ac_try="$ac_link"
9574case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9577esac
9578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_link") 2>conftest.er1
d9898ee8 9580 ac_status=$?
9581 grep -v '^ *+' conftest.er1 >conftest.err
9582 rm -f conftest.er1
9583 cat conftest.err >&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9585 (exit $ac_status); } && {
9586 test -z "$ac_c_werror_flag" ||
9587 test ! -s conftest.err
9588 } && test -s conftest$ac_exeext &&
9589 $as_test_x conftest$ac_exeext; then
d9898ee8 9590 ac_cv_lib_dld_shl_load=yes
9591else
9592 echo "$as_me: failed program was:" >&5
9593sed 's/^/| /' conftest.$ac_ext >&5
9594
64ff59ba 9595 ac_cv_lib_dld_shl_load=no
d9898ee8 9596fi
64ff59ba 9597
9598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9599 conftest$ac_exeext conftest.$ac_ext
9600LIBS=$ac_check_lib_save_LIBS
9601fi
64ff59ba 9602{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9603echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9604if test $ac_cv_lib_dld_shl_load = yes; then
9605 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9606else
64ff59ba 9607 { echo "$as_me:$LINENO: checking for dlopen" >&5
9608echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9609if test "${ac_cv_func_dlopen+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9611else
9612 cat >conftest.$ac_ext <<_ACEOF
9613/* confdefs.h. */
9614_ACEOF
9615cat confdefs.h >>conftest.$ac_ext
9616cat >>conftest.$ac_ext <<_ACEOF
9617/* end confdefs.h. */
9618/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9620#define dlopen innocuous_dlopen
9621
9622/* System header to define __stub macros and hopefully few prototypes,
9623 which can conflict with char dlopen (); below.
9624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9625 <limits.h> exists even on freestanding compilers. */
9626
9627#ifdef __STDC__
9628# include <limits.h>
9629#else
9630# include <assert.h>
9631#endif
9632
9633#undef dlopen
9634
64ff59ba 9635/* Override any GCC internal prototype to avoid an error.
9636 Use char because int might match the return type of a GCC
9637 builtin and then its argument prototype would still apply. */
d9898ee8 9638#ifdef __cplusplus
9639extern "C"
d9898ee8 9640#endif
d9898ee8 9641char dlopen ();
9642/* The GNU C library defines this for functions which it implements
9643 to always fail with ENOSYS. Some functions are actually named
9644 something starting with __ and the normal name is an alias. */
64ff59ba 9645#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9646choke me
d9898ee8 9647#endif
9648
9649int
9650main ()
9651{
64ff59ba 9652return dlopen ();
d9898ee8 9653 ;
9654 return 0;
9655}
9656_ACEOF
9657rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9658if { (ac_try="$ac_link"
9659case "(($ac_try" in
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9662esac
9663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
d9898ee8 9665 ac_status=$?
9666 grep -v '^ *+' conftest.er1 >conftest.err
9667 rm -f conftest.er1
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
d9898ee8 9675 ac_cv_func_dlopen=yes
9676else
9677 echo "$as_me: failed program was:" >&5
9678sed 's/^/| /' conftest.$ac_ext >&5
9679
64ff59ba 9680 ac_cv_func_dlopen=no
d9898ee8 9681fi
64ff59ba 9682
9683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9684 conftest$ac_exeext conftest.$ac_ext
9685fi
64ff59ba 9686{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9687echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9688if test $ac_cv_func_dlopen = yes; then
9689 lt_cv_dlopen="dlopen"
9690else
64ff59ba 9691 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9692echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9693if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695else
9696 ac_check_lib_save_LIBS=$LIBS
9697LIBS="-ldl $LIBS"
9698cat >conftest.$ac_ext <<_ACEOF
9699/* confdefs.h. */
9700_ACEOF
9701cat confdefs.h >>conftest.$ac_ext
9702cat >>conftest.$ac_ext <<_ACEOF
9703/* end confdefs.h. */
9704
64ff59ba 9705/* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
d9898ee8 9708#ifdef __cplusplus
9709extern "C"
9710#endif
d9898ee8 9711char dlopen ();
9712int
9713main ()
9714{
64ff59ba 9715return dlopen ();
d9898ee8 9716 ;
9717 return 0;
9718}
9719_ACEOF
9720rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9721if { (ac_try="$ac_link"
9722case "(($ac_try" in
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9725esac
9726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
d9898ee8 9728 ac_status=$?
9729 grep -v '^ *+' conftest.er1 >conftest.err
9730 rm -f conftest.er1
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9733 (exit $ac_status); } && {
9734 test -z "$ac_c_werror_flag" ||
9735 test ! -s conftest.err
9736 } && test -s conftest$ac_exeext &&
9737 $as_test_x conftest$ac_exeext; then
d9898ee8 9738 ac_cv_lib_dl_dlopen=yes
9739else
9740 echo "$as_me: failed program was:" >&5
9741sed 's/^/| /' conftest.$ac_ext >&5
9742
64ff59ba 9743 ac_cv_lib_dl_dlopen=no
d9898ee8 9744fi
64ff59ba 9745
9746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9747 conftest$ac_exeext conftest.$ac_ext
9748LIBS=$ac_check_lib_save_LIBS
9749fi
64ff59ba 9750{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9751echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9752if test $ac_cv_lib_dl_dlopen = yes; then
9753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9754else
64ff59ba 9755 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9756echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9757if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760 ac_check_lib_save_LIBS=$LIBS
9761LIBS="-lsvld $LIBS"
9762cat >conftest.$ac_ext <<_ACEOF
9763/* confdefs.h. */
9764_ACEOF
9765cat confdefs.h >>conftest.$ac_ext
9766cat >>conftest.$ac_ext <<_ACEOF
9767/* end confdefs.h. */
9768
64ff59ba 9769/* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
d9898ee8 9772#ifdef __cplusplus
9773extern "C"
9774#endif
d9898ee8 9775char dlopen ();
9776int
9777main ()
9778{
64ff59ba 9779return dlopen ();
d9898ee8 9780 ;
9781 return 0;
9782}
9783_ACEOF
9784rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9785if { (ac_try="$ac_link"
9786case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
9790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_link") 2>conftest.er1
d9898ee8 9792 ac_status=$?
9793 grep -v '^ *+' conftest.er1 >conftest.err
9794 rm -f conftest.er1
9795 cat conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9797 (exit $ac_status); } && {
9798 test -z "$ac_c_werror_flag" ||
9799 test ! -s conftest.err
9800 } && test -s conftest$ac_exeext &&
9801 $as_test_x conftest$ac_exeext; then
d9898ee8 9802 ac_cv_lib_svld_dlopen=yes
9803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
64ff59ba 9807 ac_cv_lib_svld_dlopen=no
d9898ee8 9808fi
64ff59ba 9809
9810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9811 conftest$ac_exeext conftest.$ac_ext
9812LIBS=$ac_check_lib_save_LIBS
9813fi
64ff59ba 9814{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9815echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9816if test $ac_cv_lib_svld_dlopen = yes; then
9817 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9818else
64ff59ba 9819 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9820echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9821if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823else
9824 ac_check_lib_save_LIBS=$LIBS
9825LIBS="-ldld $LIBS"
9826cat >conftest.$ac_ext <<_ACEOF
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
9832
64ff59ba 9833/* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
d9898ee8 9836#ifdef __cplusplus
9837extern "C"
9838#endif
d9898ee8 9839char dld_link ();
9840int
9841main ()
9842{
64ff59ba 9843return dld_link ();
d9898ee8 9844 ;
9845 return 0;
9846}
9847_ACEOF
9848rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9849if { (ac_try="$ac_link"
9850case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
9854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>conftest.er1
d9898ee8 9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext &&
9865 $as_test_x conftest$ac_exeext; then
d9898ee8 9866 ac_cv_lib_dld_dld_link=yes
9867else
9868 echo "$as_me: failed program was:" >&5
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
64ff59ba 9871 ac_cv_lib_dld_dld_link=no
d9898ee8 9872fi
64ff59ba 9873
9874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9875 conftest$ac_exeext conftest.$ac_ext
9876LIBS=$ac_check_lib_save_LIBS
9877fi
64ff59ba 9878{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9879echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9880if test $ac_cv_lib_dld_dld_link = yes; then
9881 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9882fi
9883
9884
9885fi
9886
9887
9888fi
9889
9890
9891fi
9892
9893
9894fi
9895
9896
9897fi
9898
9899 ;;
9900 esac
9901
9902 if test "x$lt_cv_dlopen" != xno; then
9903 enable_dlopen=yes
9904 else
9905 enable_dlopen=no
9906 fi
9907
9908 case $lt_cv_dlopen in
9909 dlopen)
9910 save_CPPFLAGS="$CPPFLAGS"
9911 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9912
9913 save_LDFLAGS="$LDFLAGS"
9914 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9915
9916 save_LIBS="$LIBS"
9917 LIBS="$lt_cv_dlopen_libs $LIBS"
9918
64ff59ba 9919 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9920echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9921if test "${lt_cv_dlopen_self+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 if test "$cross_compiling" = yes; then :
9925 lt_cv_dlopen_self=cross
9926else
9927 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9928 lt_status=$lt_dlunknown
9929 cat > conftest.$ac_ext <<EOF
0fde1ce3 9930#line 9930 "configure"
d9898ee8 9931#include "confdefs.h"
9932
9933#if HAVE_DLFCN_H
9934#include <dlfcn.h>
9935#endif
9936
9937#include <stdio.h>
9938
9939#ifdef RTLD_GLOBAL
9940# define LT_DLGLOBAL RTLD_GLOBAL
9941#else
9942# ifdef DL_GLOBAL
9943# define LT_DLGLOBAL DL_GLOBAL
9944# else
9945# define LT_DLGLOBAL 0
9946# endif
9947#endif
9948
9949/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9950 find out it does not work in some platform. */
9951#ifndef LT_DLLAZY_OR_NOW
9952# ifdef RTLD_LAZY
9953# define LT_DLLAZY_OR_NOW RTLD_LAZY
9954# else
9955# ifdef DL_LAZY
9956# define LT_DLLAZY_OR_NOW DL_LAZY
9957# else
9958# ifdef RTLD_NOW
9959# define LT_DLLAZY_OR_NOW RTLD_NOW
9960# else
9961# ifdef DL_NOW
9962# define LT_DLLAZY_OR_NOW DL_NOW
9963# else
9964# define LT_DLLAZY_OR_NOW 0
9965# endif
9966# endif
9967# endif
9968# endif
9969#endif
9970
9971#ifdef __cplusplus
9972extern "C" void exit (int);
9973#endif
9974
9975void fnord() { int i=42;}
9976int main ()
9977{
9978 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9979 int status = $lt_dlunknown;
9980
9981 if (self)
9982 {
9983 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9984 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9985 /* dlclose (self); */
9986 }
9987 else
9988 puts (dlerror ());
9989
9990 exit (status);
9991}
9992EOF
9993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994 (eval $ac_link) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9998 (./conftest; exit; ) >&5 2>/dev/null
9999 lt_status=$?
10000 case x$lt_status in
10001 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10002 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10003 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10004 esac
10005 else :
10006 # compilation failed
10007 lt_cv_dlopen_self=no
10008 fi
10009fi
10010rm -fr conftest*
10011
10012
10013fi
64ff59ba 10014{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10015echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10016
10017 if test "x$lt_cv_dlopen_self" = xyes; then
10018 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 10019 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10020echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10021if test "${lt_cv_dlopen_self_static+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
10024 if test "$cross_compiling" = yes; then :
10025 lt_cv_dlopen_self_static=cross
10026else
10027 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10028 lt_status=$lt_dlunknown
10029 cat > conftest.$ac_ext <<EOF
0fde1ce3 10030#line 10030 "configure"
d9898ee8 10031#include "confdefs.h"
10032
10033#if HAVE_DLFCN_H
10034#include <dlfcn.h>
10035#endif
10036
10037#include <stdio.h>
10038
10039#ifdef RTLD_GLOBAL
10040# define LT_DLGLOBAL RTLD_GLOBAL
10041#else
10042# ifdef DL_GLOBAL
10043# define LT_DLGLOBAL DL_GLOBAL
10044# else
10045# define LT_DLGLOBAL 0
10046# endif
10047#endif
10048
10049/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10050 find out it does not work in some platform. */
10051#ifndef LT_DLLAZY_OR_NOW
10052# ifdef RTLD_LAZY
10053# define LT_DLLAZY_OR_NOW RTLD_LAZY
10054# else
10055# ifdef DL_LAZY
10056# define LT_DLLAZY_OR_NOW DL_LAZY
10057# else
10058# ifdef RTLD_NOW
10059# define LT_DLLAZY_OR_NOW RTLD_NOW
10060# else
10061# ifdef DL_NOW
10062# define LT_DLLAZY_OR_NOW DL_NOW
10063# else
10064# define LT_DLLAZY_OR_NOW 0
10065# endif
10066# endif
10067# endif
10068# endif
10069#endif
10070
10071#ifdef __cplusplus
10072extern "C" void exit (int);
10073#endif
10074
10075void fnord() { int i=42;}
10076int main ()
10077{
10078 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10079 int status = $lt_dlunknown;
10080
10081 if (self)
10082 {
10083 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10084 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10085 /* dlclose (self); */
10086 }
10087 else
10088 puts (dlerror ());
10089
10090 exit (status);
10091}
10092EOF
10093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10098 (./conftest; exit; ) >&5 2>/dev/null
10099 lt_status=$?
10100 case x$lt_status in
10101 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10102 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10103 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10104 esac
10105 else :
10106 # compilation failed
10107 lt_cv_dlopen_self_static=no
10108 fi
10109fi
10110rm -fr conftest*
10111
10112
10113fi
64ff59ba 10114{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10115echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10116 fi
10117
10118 CPPFLAGS="$save_CPPFLAGS"
10119 LDFLAGS="$save_LDFLAGS"
10120 LIBS="$save_LIBS"
10121 ;;
10122 esac
10123
10124 case $lt_cv_dlopen_self in
10125 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10126 *) enable_dlopen_self=unknown ;;
10127 esac
10128
10129 case $lt_cv_dlopen_self_static in
10130 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10131 *) enable_dlopen_self_static=unknown ;;
10132 esac
10133fi
10134
10135
10136# Report which library types will actually be built
64ff59ba 10137{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10138echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10139{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10140echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10141
64ff59ba 10142{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10143echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10144test "$can_build_shared" = "no" && enable_shared=no
10145
10146# On AIX, shared libraries and static libraries use the same namespace, and
10147# are all built from PIC.
10148case $host_os in
10149aix3*)
10150 test "$enable_shared" = yes && enable_static=no
10151 if test -n "$RANLIB"; then
10152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10153 postinstall_cmds='$RANLIB $lib'
10154 fi
10155 ;;
10156
10157aix4* | aix5*)
10158 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10159 test "$enable_shared" = yes && enable_static=no
10160 fi
10161 ;;
10162esac
64ff59ba 10163{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10164echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10165
64ff59ba 10166{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10167echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10168# Make sure either enable_shared or enable_static is yes.
10169test "$enable_shared" = yes || enable_static=yes
64ff59ba 10170{ echo "$as_me:$LINENO: result: $enable_static" >&5
10171echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10172
10173# The else clause should only fire when bootstrapping the
10174# libtool distribution, otherwise you forgot to ship ltmain.sh
10175# with your package, and you will get complaints that there are
10176# no rules to generate ltmain.sh.
10177if test -f "$ltmain"; then
10178 # See if we are running on zsh, and set the options which allow our commands through
10179 # without removal of \ escapes.
10180 if test -n "${ZSH_VERSION+set}" ; then
10181 setopt NO_GLOB_SUBST
10182 fi
10183 # Now quote all the things that may contain metacharacters while being
10184 # careful not to overquote the AC_SUBSTed values. We take copies of the
10185 # variables and quote the copies for generation of the libtool script.
10186 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10187 SED SHELL STRIP \
10188 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10189 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10190 deplibs_check_method reload_flag reload_cmds need_locks \
10191 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10192 lt_cv_sys_global_symbol_to_c_name_address \
10193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10194 old_postinstall_cmds old_postuninstall_cmds \
10195 compiler \
10196 CC \
10197 LD \
10198 lt_prog_compiler_wl \
10199 lt_prog_compiler_pic \
10200 lt_prog_compiler_static \
10201 lt_prog_compiler_no_builtin_flag \
10202 export_dynamic_flag_spec \
10203 thread_safe_flag_spec \
10204 whole_archive_flag_spec \
10205 enable_shared_with_static_runtimes \
10206 old_archive_cmds \
10207 old_archive_from_new_cmds \
10208 predep_objects \
10209 postdep_objects \
10210 predeps \
10211 postdeps \
10212 compiler_lib_search_path \
10213 archive_cmds \
10214 archive_expsym_cmds \
10215 postinstall_cmds \
10216 postuninstall_cmds \
10217 old_archive_from_expsyms_cmds \
10218 allow_undefined_flag \
10219 no_undefined_flag \
10220 export_symbols_cmds \
10221 hardcode_libdir_flag_spec \
10222 hardcode_libdir_flag_spec_ld \
10223 hardcode_libdir_separator \
10224 hardcode_automatic \
10225 module_cmds \
10226 module_expsym_cmds \
10227 lt_cv_prog_compiler_c_o \
0fde1ce3 10228 fix_srcfile_path \
d9898ee8 10229 exclude_expsyms \
10230 include_expsyms; do
10231
10232 case $var in
10233 old_archive_cmds | \
10234 old_archive_from_new_cmds | \
10235 archive_cmds | \
10236 archive_expsym_cmds | \
10237 module_cmds | \
10238 module_expsym_cmds | \
10239 old_archive_from_expsyms_cmds | \
10240 export_symbols_cmds | \
10241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10242 postinstall_cmds | postuninstall_cmds | \
10243 old_postinstall_cmds | old_postuninstall_cmds | \
10244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10245 # Double-quote double-evaled strings.
10246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10247 ;;
10248 *)
10249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10250 ;;
10251 esac
10252 done
10253
10254 case $lt_echo in
10255 *'\$0 --fallback-echo"')
10256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10257 ;;
10258 esac
10259
10260cfgfile="${ofile}T"
10261 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10262 $rm -f "$cfgfile"
10263 { echo "$as_me:$LINENO: creating $ofile" >&5
10264echo "$as_me: creating $ofile" >&6;}
10265
10266 cat <<__EOF__ >> "$cfgfile"
10267#! $SHELL
10268
10269# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10270# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10271# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10272#
0fde1ce3 10273# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10274# Free Software Foundation, Inc.
10275#
10276# This file is part of GNU Libtool:
10277# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10278#
10279# This program is free software; you can redistribute it and/or modify
10280# it under the terms of the GNU General Public License as published by
10281# the Free Software Foundation; either version 2 of the License, or
10282# (at your option) any later version.
10283#
10284# This program is distributed in the hope that it will be useful, but
10285# WITHOUT ANY WARRANTY; without even the implied warranty of
10286# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10287# General Public License for more details.
10288#
10289# You should have received a copy of the GNU General Public License
10290# along with this program; if not, write to the Free Software
10291# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10292#
10293# As a special exception to the GNU General Public License, if you
10294# distribute this file as part of a program that contains a
10295# configuration script generated by Autoconf, you may include it under
10296# the same distribution terms that you use for the rest of that program.
10297
10298# A sed program that does not truncate output.
10299SED=$lt_SED
10300
10301# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10302Xsed="$SED -e 1s/^X//"
10303
10304# The HP-UX ksh and POSIX shell print the target directory to stdout
10305# if CDPATH is set.
10306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10307
10308# The names of the tagged configurations supported by this script.
10309available_tags=
10310
10311# ### BEGIN LIBTOOL CONFIG
10312
10313# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10314
10315# Shell to use when invoking shell scripts.
10316SHELL=$lt_SHELL
10317
10318# Whether or not to build shared libraries.
10319build_libtool_libs=$enable_shared
10320
10321# Whether or not to build static libraries.
10322build_old_libs=$enable_static
10323
10324# Whether or not to add -lc for building shared libraries.
10325build_libtool_need_lc=$archive_cmds_need_lc
10326
10327# Whether or not to disallow shared libs when runtime libs are static
10328allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10329
10330# Whether or not to optimize for fast installation.
10331fast_install=$enable_fast_install
10332
10333# The host system.
10334host_alias=$host_alias
10335host=$host
10336host_os=$host_os
10337
10338# The build system.
10339build_alias=$build_alias
10340build=$build
10341build_os=$build_os
10342
10343# An echo program that does not interpret backslashes.
10344echo=$lt_echo
10345
10346# The archiver.
10347AR=$lt_AR
10348AR_FLAGS=$lt_AR_FLAGS
10349
10350# A C compiler.
10351LTCC=$lt_LTCC
10352
10353# LTCC compiler flags.
10354LTCFLAGS=$lt_LTCFLAGS
10355
10356# A language-specific compiler.
10357CC=$lt_compiler
10358
10359# Is the compiler the GNU C compiler?
10360with_gcc=$GCC
10361
d9898ee8 10362# An ERE matcher.
10363EGREP=$lt_EGREP
10364
10365# The linker used to build libraries.
10366LD=$lt_LD
10367
10368# Whether we need hard or soft links.
10369LN_S=$lt_LN_S
10370
10371# A BSD-compatible nm program.
10372NM=$lt_NM
10373
10374# A symbol stripping program
10375STRIP=$lt_STRIP
10376
10377# Used to examine libraries when file_magic_cmd begins "file"
10378MAGIC_CMD=$MAGIC_CMD
10379
10380# Used on cygwin: DLL creation program.
10381DLLTOOL="$DLLTOOL"
10382
10383# Used on cygwin: object dumper.
10384OBJDUMP="$OBJDUMP"
10385
10386# Used on cygwin: assembler.
10387AS="$AS"
10388
10389# The name of the directory that contains temporary libtool files.
10390objdir=$objdir
10391
10392# How to create reloadable object files.
10393reload_flag=$lt_reload_flag
10394reload_cmds=$lt_reload_cmds
10395
10396# How to pass a linker flag through the compiler.
10397wl=$lt_lt_prog_compiler_wl
10398
10399# Object file suffix (normally "o").
10400objext="$ac_objext"
10401
10402# Old archive suffix (normally "a").
10403libext="$libext"
10404
10405# Shared library suffix (normally ".so").
10406shrext_cmds='$shrext_cmds'
10407
10408# Executable file suffix (normally "").
10409exeext="$exeext"
10410
10411# Additional compiler flags for building library objects.
10412pic_flag=$lt_lt_prog_compiler_pic
10413pic_mode=$pic_mode
10414
10415# What is the maximum length of a command?
10416max_cmd_len=$lt_cv_sys_max_cmd_len
10417
10418# Does compiler simultaneously support -c and -o options?
10419compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10420
10421# Must we lock files when doing compilation?
10422need_locks=$lt_need_locks
10423
10424# Do we need the lib prefix for modules?
10425need_lib_prefix=$need_lib_prefix
10426
10427# Do we need a version for libraries?
10428need_version=$need_version
10429
10430# Whether dlopen is supported.
10431dlopen_support=$enable_dlopen
10432
10433# Whether dlopen of programs is supported.
10434dlopen_self=$enable_dlopen_self
10435
10436# Whether dlopen of statically linked programs is supported.
10437dlopen_self_static=$enable_dlopen_self_static
10438
10439# Compiler flag to prevent dynamic linking.
10440link_static_flag=$lt_lt_prog_compiler_static
10441
10442# Compiler flag to turn off builtin functions.
10443no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10444
10445# Compiler flag to allow reflexive dlopens.
10446export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10447
10448# Compiler flag to generate shared objects directly from archives.
10449whole_archive_flag_spec=$lt_whole_archive_flag_spec
10450
10451# Compiler flag to generate thread-safe objects.
10452thread_safe_flag_spec=$lt_thread_safe_flag_spec
10453
10454# Library versioning type.
10455version_type=$version_type
10456
10457# Format of library name prefix.
10458libname_spec=$lt_libname_spec
10459
10460# List of archive names. First name is the real one, the rest are links.
10461# The last name is the one that the linker finds with -lNAME.
10462library_names_spec=$lt_library_names_spec
10463
10464# The coded name of the library, if different from the real name.
10465soname_spec=$lt_soname_spec
10466
10467# Commands used to build and install an old-style archive.
10468RANLIB=$lt_RANLIB
10469old_archive_cmds=$lt_old_archive_cmds
10470old_postinstall_cmds=$lt_old_postinstall_cmds
10471old_postuninstall_cmds=$lt_old_postuninstall_cmds
10472
10473# Create an old-style archive from a shared archive.
10474old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10475
10476# Create a temporary old-style archive to link instead of a shared archive.
10477old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10478
10479# Commands used to build and install a shared archive.
10480archive_cmds=$lt_archive_cmds
10481archive_expsym_cmds=$lt_archive_expsym_cmds
10482postinstall_cmds=$lt_postinstall_cmds
10483postuninstall_cmds=$lt_postuninstall_cmds
10484
10485# Commands used to build a loadable module (assumed same as above if empty)
10486module_cmds=$lt_module_cmds
10487module_expsym_cmds=$lt_module_expsym_cmds
10488
10489# Commands to strip libraries.
10490old_striplib=$lt_old_striplib
10491striplib=$lt_striplib
10492
10493# Dependencies to place before the objects being linked to create a
10494# shared library.
64ff59ba 10495predep_objects=$lt_predep_objects
d9898ee8 10496
10497# Dependencies to place after the objects being linked to create a
10498# shared library.
64ff59ba 10499postdep_objects=$lt_postdep_objects
d9898ee8 10500
10501# Dependencies to place before the objects being linked to create a
10502# shared library.
10503predeps=$lt_predeps
10504
10505# Dependencies to place after the objects being linked to create a
10506# shared library.
10507postdeps=$lt_postdeps
10508
10509# The library search path used internally by the compiler when linking
10510# a shared library.
64ff59ba 10511compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10512
10513# Method to check whether dependent libraries are shared objects.
10514deplibs_check_method=$lt_deplibs_check_method
10515
10516# Command to use when deplibs_check_method == file_magic.
10517file_magic_cmd=$lt_file_magic_cmd
10518
10519# Flag that allows shared libraries with undefined symbols to be built.
10520allow_undefined_flag=$lt_allow_undefined_flag
10521
10522# Flag that forces no undefined symbols.
10523no_undefined_flag=$lt_no_undefined_flag
10524
10525# Commands used to finish a libtool library installation in a directory.
10526finish_cmds=$lt_finish_cmds
10527
10528# Same as above, but a single script fragment to be evaled but not shown.
10529finish_eval=$lt_finish_eval
10530
10531# Take the output of nm and produce a listing of raw symbols and C names.
10532global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10533
10534# Transform the output of nm in a proper C declaration
10535global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10536
10537# Transform the output of nm in a C name address pair
10538global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10539
10540# This is the shared library runtime path variable.
10541runpath_var=$runpath_var
10542
10543# This is the shared library path variable.
10544shlibpath_var=$shlibpath_var
10545
10546# Is shlibpath searched before the hard-coded library search path?
10547shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10548
10549# How to hardcode a shared library path into an executable.
10550hardcode_action=$hardcode_action
10551
10552# Whether we should hardcode library paths into libraries.
10553hardcode_into_libs=$hardcode_into_libs
10554
10555# Flag to hardcode \$libdir into a binary during linking.
10556# This must work even if \$libdir does not exist.
10557hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10558
10559# If ld is used when linking, flag to hardcode \$libdir into
10560# a binary during linking. This must work even if \$libdir does
10561# not exist.
10562hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10563
10564# Whether we need a single -rpath flag with a separated argument.
10565hardcode_libdir_separator=$lt_hardcode_libdir_separator
10566
10567# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10568# resulting binary.
10569hardcode_direct=$hardcode_direct
10570
10571# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10572# resulting binary.
10573hardcode_minus_L=$hardcode_minus_L
10574
10575# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10576# the resulting binary.
10577hardcode_shlibpath_var=$hardcode_shlibpath_var
10578
10579# Set to yes if building a shared library automatically hardcodes DIR into the library
10580# and all subsequent libraries and executables linked against it.
10581hardcode_automatic=$hardcode_automatic
10582
10583# Variables whose values should be saved in libtool wrapper scripts and
10584# restored at relink time.
10585variables_saved_for_relink="$variables_saved_for_relink"
10586
10587# Whether libtool must link a program against all its dependency libraries.
10588link_all_deplibs=$link_all_deplibs
10589
10590# Compile-time system search path for libraries
64ff59ba 10591sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10592
10593# Run-time system search path for libraries
10594sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10595
10596# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 10597fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10598
10599# Set to yes if exported symbols are required.
10600always_export_symbols=$always_export_symbols
10601
10602# The commands to list exported symbols.
10603export_symbols_cmds=$lt_export_symbols_cmds
10604
10605# The commands to extract the exported symbol list from a shared archive.
10606extract_expsyms_cmds=$lt_extract_expsyms_cmds
10607
10608# Symbols that should not be listed in the preloaded symbols.
10609exclude_expsyms=$lt_exclude_expsyms
10610
10611# Symbols that must always be exported.
10612include_expsyms=$lt_include_expsyms
10613
10614# ### END LIBTOOL CONFIG
10615
10616__EOF__
10617
10618
10619 case $host_os in
10620 aix3*)
10621 cat <<\EOF >> "$cfgfile"
10622
10623# AIX sometimes has problems with the GCC collect2 program. For some
10624# reason, if we set the COLLECT_NAMES environment variable, the problems
10625# vanish in a puff of smoke.
10626if test "X${COLLECT_NAMES+set}" != Xset; then
10627 COLLECT_NAMES=
10628 export COLLECT_NAMES
10629fi
10630EOF
10631 ;;
10632 esac
10633
10634 # We use sed instead of cat because bash on DJGPP gets confused if
10635 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10636 # text mode, it properly converts lines to CR/LF. This bash problem
10637 # is reportedly fixed, but why not run on old versions too?
10638 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10639
10640 mv -f "$cfgfile" "$ofile" || \
10641 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10642 chmod +x "$ofile"
10643
10644else
10645 # If there is no Makefile yet, we rely on a make rule to execute
10646 # `config.status --recheck' to rerun these tests and create the
10647 # libtool script then.
10648 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10649 if test -f "$ltmain_in"; then
10650 test -f Makefile && make "$ltmain"
10651 fi
10652fi
10653
10654
10655ac_ext=c
10656ac_cpp='$CPP $CPPFLAGS'
10657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659ac_compiler_gnu=$ac_cv_c_compiler_gnu
10660
10661CC="$lt_save_CC"
10662
10663
64ff59ba 10664# Check whether --with-tags was given.
d9898ee8 10665if test "${with_tags+set}" = set; then
64ff59ba 10666 withval=$with_tags; tagnames="$withval"
10667fi
10668
d9898ee8 10669
10670if test -f "$ltmain" && test -n "$tagnames"; then
10671 if test ! -f "${ofile}"; then
10672 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10673echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10674 fi
10675
10676 if test -z "$LTCC"; then
10677 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10678 if test -z "$LTCC"; then
10679 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10680echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10681 else
10682 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10683echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10684 fi
10685 fi
10686 if test -z "$LTCFLAGS"; then
10687 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10688 fi
10689
10690 # Extract list of available tagged configurations in $ofile.
10691 # Note that this assumes the entire list is on one line.
10692 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10693
10694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10695 for tagname in $tagnames; do
10696 IFS="$lt_save_ifs"
10697 # Check whether tagname contains only valid characters
10698 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10699 "") ;;
10700 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10701echo "$as_me: error: invalid tag name: $tagname" >&2;}
10702 { (exit 1); exit 1; }; }
10703 ;;
10704 esac
10705
10706 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10707 then
10708 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10709echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10710 { (exit 1); exit 1; }; }
10711 fi
10712
10713 # Update the list of available tags.
10714 if test -n "$tagname"; then
10715 echo appending configuration tag \"$tagname\" to $ofile
10716
10717 case $tagname in
10718 CXX)
10719 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10720 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10721 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10722 ac_ext=cpp
d9898ee8 10723ac_cpp='$CXXCPP $CPPFLAGS'
10724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10727
10728
10729
10730
10731archive_cmds_need_lc_CXX=no
10732allow_undefined_flag_CXX=
10733always_export_symbols_CXX=no
10734archive_expsym_cmds_CXX=
10735export_dynamic_flag_spec_CXX=
10736hardcode_direct_CXX=no
10737hardcode_libdir_flag_spec_CXX=
10738hardcode_libdir_flag_spec_ld_CXX=
10739hardcode_libdir_separator_CXX=
10740hardcode_minus_L_CXX=no
10741hardcode_shlibpath_var_CXX=unsupported
10742hardcode_automatic_CXX=no
10743module_cmds_CXX=
10744module_expsym_cmds_CXX=
10745link_all_deplibs_CXX=unknown
10746old_archive_cmds_CXX=$old_archive_cmds
10747no_undefined_flag_CXX=
10748whole_archive_flag_spec_CXX=
10749enable_shared_with_static_runtimes_CXX=no
10750
10751# Dependencies to place before and after the object being linked:
10752predep_objects_CXX=
10753postdep_objects_CXX=
10754predeps_CXX=
10755postdeps_CXX=
10756compiler_lib_search_path_CXX=
10757
10758# Source file extension for C++ test sources.
10759ac_ext=cpp
10760
10761# Object file extension for compiled C++ test sources.
10762objext=o
10763objext_CXX=$objext
10764
10765# Code to be used in simple compile tests
0fde1ce3 10766lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 10767
10768# Code to be used in simple link tests
0fde1ce3 10769lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 10770
10771# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10772
10773# If no C compiler was specified, use CC.
10774LTCC=${LTCC-"$CC"}
10775
10776# If no C compiler flags were specified, use CFLAGS.
10777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10778
10779# Allow CC to be a program name with arguments.
10780compiler=$CC
10781
10782
10783# save warnings/boilerplate of simple test code
10784ac_outfile=conftest.$ac_objext
0fde1ce3 10785echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 10786eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10787_lt_compiler_boilerplate=`cat conftest.err`
10788$rm conftest*
10789
10790ac_outfile=conftest.$ac_objext
0fde1ce3 10791echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 10792eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10793_lt_linker_boilerplate=`cat conftest.err`
10794$rm conftest*
10795
10796
10797# Allow CC to be a program name with arguments.
10798lt_save_CC=$CC
10799lt_save_LD=$LD
10800lt_save_GCC=$GCC
10801GCC=$GXX
10802lt_save_with_gnu_ld=$with_gnu_ld
10803lt_save_path_LD=$lt_cv_path_LD
10804if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10805 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10806else
10807 $as_unset lt_cv_prog_gnu_ld
10808fi
10809if test -n "${lt_cv_path_LDCXX+set}"; then
10810 lt_cv_path_LD=$lt_cv_path_LDCXX
10811else
10812 $as_unset lt_cv_path_LD
10813fi
10814test -z "${LDCXX+set}" || LD=$LDCXX
10815CC=${CXX-"c++"}
10816compiler=$CC
10817compiler_CXX=$CC
10818for cc_temp in $compiler""; do
10819 case $cc_temp in
10820 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10821 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10822 \-*) ;;
10823 *) break;;
10824 esac
10825done
10826cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10827
10828
10829# We don't want -fno-exception wen compiling C++ code, so set the
10830# no_builtin_flag separately
10831if test "$GXX" = yes; then
10832 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10833else
10834 lt_prog_compiler_no_builtin_flag_CXX=
10835fi
10836
10837if test "$GXX" = yes; then
10838 # Set up default GNU C++ configuration
10839
10840
64ff59ba 10841# Check whether --with-gnu-ld was given.
d9898ee8 10842if test "${with_gnu_ld+set}" = set; then
64ff59ba 10843 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10844else
10845 with_gnu_ld=no
64ff59ba 10846fi
10847
d9898ee8 10848ac_prog=ld
10849if test "$GCC" = yes; then
10850 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 10851 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10852echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10853 case $host in
10854 *-*-mingw*)
10855 # gcc leaves a trailing carriage return which upsets mingw
10856 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10857 *)
10858 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10859 esac
10860 case $ac_prog in
10861 # Accept absolute paths.
10862 [\\/]* | ?:[\\/]*)
10863 re_direlt='/[^/][^/]*/\.\./'
10864 # Canonicalize the pathname of ld
10865 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10866 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10867 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10868 done
10869 test -z "$LD" && LD="$ac_prog"
10870 ;;
10871 "")
10872 # If it fails, then pretend we aren't using GCC.
10873 ac_prog=ld
10874 ;;
10875 *)
10876 # If it is relative, then search for the first ld in PATH.
10877 with_gnu_ld=unknown
10878 ;;
10879 esac
10880elif test "$with_gnu_ld" = yes; then
64ff59ba 10881 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10882echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10883else
64ff59ba 10884 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10885echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10886fi
10887if test "${lt_cv_path_LD+set}" = set; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890 if test -z "$LD"; then
10891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10892 for ac_dir in $PATH; do
10893 IFS="$lt_save_ifs"
10894 test -z "$ac_dir" && ac_dir=.
10895 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10896 lt_cv_path_LD="$ac_dir/$ac_prog"
10897 # Check to see if the program is GNU ld. I'd rather use --version,
10898 # but apparently some variants of GNU ld only accept -v.
10899 # Break only if it was the GNU/non-GNU ld that we prefer.
10900 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10901 *GNU* | *'with BFD'*)
10902 test "$with_gnu_ld" != no && break
10903 ;;
10904 *)
10905 test "$with_gnu_ld" != yes && break
10906 ;;
10907 esac
10908 fi
10909 done
10910 IFS="$lt_save_ifs"
10911else
10912 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10913fi
10914fi
10915
10916LD="$lt_cv_path_LD"
10917if test -n "$LD"; then
64ff59ba 10918 { echo "$as_me:$LINENO: result: $LD" >&5
10919echo "${ECHO_T}$LD" >&6; }
d9898ee8 10920else
64ff59ba 10921 { echo "$as_me:$LINENO: result: no" >&5
10922echo "${ECHO_T}no" >&6; }
d9898ee8 10923fi
10924test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10925echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10926 { (exit 1); exit 1; }; }
64ff59ba 10927{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10928echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10929if test "${lt_cv_prog_gnu_ld+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931else
10932 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10933case `$LD -v 2>&1 </dev/null` in
10934*GNU* | *'with BFD'*)
10935 lt_cv_prog_gnu_ld=yes
10936 ;;
10937*)
10938 lt_cv_prog_gnu_ld=no
10939 ;;
10940esac
10941fi
64ff59ba 10942{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10943echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10944with_gnu_ld=$lt_cv_prog_gnu_ld
10945
10946
10947
10948 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10949 # archiving commands below assume that GNU ld is being used.
10950 if test "$with_gnu_ld" = yes; then
10951 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10952 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'
10953
10954 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10956
10957 # If archive_cmds runs LD, not CC, wlarc should be empty
10958 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10959 # investigate it a little bit more. (MM)
10960 wlarc='${wl}'
10961
10962 # ancient GNU ld didn't support --whole-archive et. al.
10963 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10964 grep 'no-whole-archive' > /dev/null; then
10965 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10966 else
10967 whole_archive_flag_spec_CXX=
10968 fi
10969 else
10970 with_gnu_ld=no
10971 wlarc=
10972
10973 # A generic and very simple default shared library creation
10974 # command for GNU C++ for the case where it uses the native
10975 # linker, instead of GNU ld. If possible, this setting should
10976 # overridden to take advantage of the native linker features on
10977 # the platform it is being used on.
10978 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10979 fi
10980
10981 # Commands to make compiler produce verbose output that lists
10982 # what "hidden" libraries, object files and flags are used when
10983 # linking a shared library.
10984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10985
10986else
10987 GXX=no
10988 with_gnu_ld=no
10989 wlarc=
10990fi
10991
10992# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 10993{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10994echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10995ld_shlibs_CXX=yes
10996case $host_os in
10997 aix3*)
10998 # FIXME: insert proper C++ library support
10999 ld_shlibs_CXX=no
11000 ;;
11001 aix4* | aix5*)
11002 if test "$host_cpu" = ia64; then
11003 # On IA64, the linker does run time linking by default, so we don't
11004 # have to do anything special.
11005 aix_use_runtimelinking=no
11006 exp_sym_flag='-Bexport'
11007 no_entry_flag=""
11008 else
11009 aix_use_runtimelinking=no
11010
11011 # Test if we are trying to use run time linking or normal
11012 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11013 # need to do runtime linking.
11014 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11015 for ld_flag in $LDFLAGS; do
11016 case $ld_flag in
11017 *-brtl*)
11018 aix_use_runtimelinking=yes
11019 break
11020 ;;
11021 esac
11022 done
11023 ;;
11024 esac
11025
11026 exp_sym_flag='-bexport'
11027 no_entry_flag='-bnoentry'
11028 fi
11029
11030 # When large executables or shared objects are built, AIX ld can
11031 # have problems creating the table of contents. If linking a library
11032 # or program results in "error TOC overflow" add -mminimal-toc to
11033 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11034 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11035
11036 archive_cmds_CXX=''
11037 hardcode_direct_CXX=yes
11038 hardcode_libdir_separator_CXX=':'
11039 link_all_deplibs_CXX=yes
11040
11041 if test "$GXX" = yes; then
11042 case $host_os in aix4.[012]|aix4.[012].*)
11043 # We only want to do this on AIX 4.2 and lower, the check
11044 # below for broken collect2 doesn't work under 4.3+
11045 collect2name=`${CC} -print-prog-name=collect2`
11046 if test -f "$collect2name" && \
11047 strings "$collect2name" | grep resolve_lib_name >/dev/null
11048 then
11049 # We have reworked collect2
0fde1ce3 11050 :
d9898ee8 11051 else
11052 # We have old collect2
11053 hardcode_direct_CXX=unsupported
11054 # It fails to find uninstalled libraries when the uninstalled
11055 # path is not listed in the libpath. Setting hardcode_minus_L
11056 # to unsupported forces relinking
11057 hardcode_minus_L_CXX=yes
11058 hardcode_libdir_flag_spec_CXX='-L$libdir'
11059 hardcode_libdir_separator_CXX=
11060 fi
11061 ;;
11062 esac
11063 shared_flag='-shared'
11064 if test "$aix_use_runtimelinking" = yes; then
11065 shared_flag="$shared_flag "'${wl}-G'
11066 fi
11067 else
11068 # not using gcc
11069 if test "$host_cpu" = ia64; then
11070 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11071 # chokes on -Wl,-G. The following line is correct:
11072 shared_flag='-G'
11073 else
11074 if test "$aix_use_runtimelinking" = yes; then
11075 shared_flag='${wl}-G'
11076 else
11077 shared_flag='${wl}-bM:SRE'
11078 fi
11079 fi
11080 fi
11081
11082 # It seems that -bexpall does not export symbols beginning with
11083 # underscore (_), so it is better to generate a list of symbols to export.
11084 always_export_symbols_CXX=yes
11085 if test "$aix_use_runtimelinking" = yes; then
11086 # Warning - without using the other runtime loading flags (-brtl),
11087 # -berok will link without error, but may produce a broken library.
11088 allow_undefined_flag_CXX='-berok'
11089 # Determine the default libpath from the value encoded in an empty executable.
11090 cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096
11097int
11098main ()
11099{
11100
11101 ;
11102 return 0;
11103}
11104_ACEOF
11105rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11106if { (ac_try="$ac_link"
11107case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110esac
11111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11112 (eval "$ac_link") 2>conftest.er1
d9898ee8 11113 ac_status=$?
11114 grep -v '^ *+' conftest.er1 >conftest.err
11115 rm -f conftest.er1
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11118 (exit $ac_status); } && {
11119 test -z "$ac_cxx_werror_flag" ||
11120 test ! -s conftest.err
11121 } && test -s conftest$ac_exeext &&
11122 $as_test_x conftest$ac_exeext; then
d9898ee8 11123
0fde1ce3 11124lt_aix_libpath_sed='
11125 /Import File Strings/,/^$/ {
11126 /^0/ {
11127 s/^0 *\(.*\)$/\1/
11128 p
11129 }
11130 }'
11131aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11132# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11133if test -z "$aix_libpath"; then
11134 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11135fi
d9898ee8 11136else
11137 echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
64ff59ba 11140
d9898ee8 11141fi
64ff59ba 11142
11143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11144 conftest$ac_exeext conftest.$ac_ext
11145if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11146
11147 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11148
11149 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"
11150 else
11151 if test "$host_cpu" = ia64; then
11152 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11153 allow_undefined_flag_CXX="-z nodefs"
11154 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"
11155 else
11156 # Determine the default libpath from the value encoded in an empty executable.
11157 cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
11163
11164int
11165main ()
11166{
11167
11168 ;
11169 return 0;
11170}
11171_ACEOF
11172rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11173if { (ac_try="$ac_link"
11174case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177esac
11178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_link") 2>conftest.er1
d9898ee8 11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11185 (exit $ac_status); } && {
11186 test -z "$ac_cxx_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest$ac_exeext &&
11189 $as_test_x conftest$ac_exeext; then
d9898ee8 11190
0fde1ce3 11191lt_aix_libpath_sed='
11192 /Import File Strings/,/^$/ {
11193 /^0/ {
11194 s/^0 *\(.*\)$/\1/
11195 p
11196 }
11197 }'
11198aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11199# Check for a 64-bit object if we didn't find anything.
0fde1ce3 11200if test -z "$aix_libpath"; then
11201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11202fi
d9898ee8 11203else
11204 echo "$as_me: failed program was:" >&5
11205sed 's/^/| /' conftest.$ac_ext >&5
11206
64ff59ba 11207
d9898ee8 11208fi
64ff59ba 11209
11210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11211 conftest$ac_exeext conftest.$ac_ext
11212if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11213
11214 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11215 # Warning - without using the other run time loading flags,
11216 # -berok will link without error, but may produce a broken library.
11217 no_undefined_flag_CXX=' ${wl}-bernotok'
11218 allow_undefined_flag_CXX=' ${wl}-berok'
11219 # Exported symbols can be pulled into shared objects from archives
11220 whole_archive_flag_spec_CXX='$convenience'
11221 archive_cmds_need_lc_CXX=yes
11222 # This is similar to how AIX traditionally builds its shared libraries.
11223 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'
11224 fi
11225 fi
11226 ;;
11227
11228 beos*)
11229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11230 allow_undefined_flag_CXX=unsupported
11231 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11232 # support --undefined. This deserves some investigation. FIXME
11233 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11234 else
11235 ld_shlibs_CXX=no
11236 fi
11237 ;;
11238
11239 chorus*)
11240 case $cc_basename in
11241 *)
11242 # FIXME: insert proper C++ library support
11243 ld_shlibs_CXX=no
11244 ;;
11245 esac
11246 ;;
11247
11248 cygwin* | mingw* | pw32*)
11249 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11250 # as there is no search path for DLLs.
11251 hardcode_libdir_flag_spec_CXX='-L$libdir'
11252 allow_undefined_flag_CXX=unsupported
11253 always_export_symbols_CXX=no
11254 enable_shared_with_static_runtimes_CXX=yes
11255
11256 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11257 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'
11258 # If the export-symbols file already is a .def file (1st line
11259 # is EXPORTS), use it as is; otherwise, prepend...
11260 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11261 cp $export_symbols $output_objdir/$soname.def;
11262 else
11263 echo EXPORTS > $output_objdir/$soname.def;
11264 cat $export_symbols >> $output_objdir/$soname.def;
11265 fi~
11266 $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'
11267 else
11268 ld_shlibs_CXX=no
11269 fi
11270 ;;
11271 darwin* | rhapsody*)
11272 case $host_os in
11273 rhapsody* | darwin1.[012])
11274 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11275 ;;
11276 *) # Darwin 1.3 on
11277 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11278 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11279 else
11280 case ${MACOSX_DEPLOYMENT_TARGET} in
11281 10.[012])
11282 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11283 ;;
11284 10.*)
11285 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11286 ;;
11287 esac
11288 fi
11289 ;;
11290 esac
11291 archive_cmds_need_lc_CXX=no
11292 hardcode_direct_CXX=no
11293 hardcode_automatic_CXX=yes
11294 hardcode_shlibpath_var_CXX=unsupported
11295 whole_archive_flag_spec_CXX=''
11296 link_all_deplibs_CXX=yes
11297
11298 if test "$GXX" = yes ; then
11299 lt_int_apple_cc_single_mod=no
11300 output_verbose_link_cmd='echo'
11301 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11302 lt_int_apple_cc_single_mod=yes
11303 fi
11304 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11305 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11306 else
11307 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'
11308 fi
11309 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11311 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11312 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}'
11313 else
11314 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}'
11315 fi
11316 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}'
11317 else
11318 case $cc_basename in
11319 xlc*)
11320 output_verbose_link_cmd='echo'
0fde1ce3 11321 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 11322 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11323 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 11324 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 11325 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}'
11326 ;;
11327 *)
11328 ld_shlibs_CXX=no
11329 ;;
11330 esac
11331 fi
11332 ;;
11333
11334 dgux*)
11335 case $cc_basename in
11336 ec++*)
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11339 ;;
11340 ghcx*)
11341 # Green Hills C++ Compiler
11342 # FIXME: insert proper C++ library support
11343 ld_shlibs_CXX=no
11344 ;;
11345 *)
11346 # FIXME: insert proper C++ library support
11347 ld_shlibs_CXX=no
11348 ;;
11349 esac
11350 ;;
11351 freebsd[12]*)
11352 # C++ shared libraries reported to be fairly broken before switch to ELF
11353 ld_shlibs_CXX=no
11354 ;;
11355 freebsd-elf*)
11356 archive_cmds_need_lc_CXX=no
11357 ;;
0fde1ce3 11358 freebsd* | dragonfly*)
d9898ee8 11359 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11360 # conventions
11361 ld_shlibs_CXX=yes
11362 ;;
11363 gnu*)
11364 ;;
11365 hpux9*)
11366 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11367 hardcode_libdir_separator_CXX=:
11368 export_dynamic_flag_spec_CXX='${wl}-E'
11369 hardcode_direct_CXX=yes
11370 hardcode_minus_L_CXX=yes # Not in the search PATH,
11371 # but as the default
11372 # location of the library.
11373
11374 case $cc_basename in
11375 CC*)
11376 # FIXME: insert proper C++ library support
11377 ld_shlibs_CXX=no
11378 ;;
11379 aCC*)
11380 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'
11381 # Commands to make compiler produce verbose output that lists
11382 # what "hidden" libraries, object files and flags are used when
11383 # linking a shared library.
11384 #
11385 # There doesn't appear to be a way to prevent this compiler from
11386 # explicitly linking system object files so we need to strip them
11387 # from the output so that they don't get included in the library
11388 # dependencies.
11389 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'
11390 ;;
11391 *)
11392 if test "$GXX" = yes; then
11393 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'
11394 else
11395 # FIXME: insert proper C++ library support
11396 ld_shlibs_CXX=no
11397 fi
11398 ;;
11399 esac
11400 ;;
11401 hpux10*|hpux11*)
11402 if test $with_gnu_ld = no; then
11403 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11404 hardcode_libdir_separator_CXX=:
11405
11406 case $host_cpu in
0fde1ce3 11407 hppa*64*|ia64*) ;;
d9898ee8 11408 *)
11409 export_dynamic_flag_spec_CXX='${wl}-E'
11410 ;;
11411 esac
11412 fi
11413 case $host_cpu in
11414 hppa*64*|ia64*)
11415 hardcode_direct_CXX=no
11416 hardcode_shlibpath_var_CXX=no
11417 ;;
11418 *)
11419 hardcode_direct_CXX=yes
11420 hardcode_minus_L_CXX=yes # Not in the search PATH,
11421 # but as the default
11422 # location of the library.
11423 ;;
11424 esac
11425
11426 case $cc_basename in
11427 CC*)
11428 # FIXME: insert proper C++ library support
11429 ld_shlibs_CXX=no
11430 ;;
11431 aCC*)
11432 case $host_cpu in
11433 hppa*64*)
11434 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11435 ;;
11436 ia64*)
11437 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11438 ;;
11439 *)
11440 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11441 ;;
11442 esac
11443 # Commands to make compiler produce verbose output that lists
11444 # what "hidden" libraries, object files and flags are used when
11445 # linking a shared library.
11446 #
11447 # There doesn't appear to be a way to prevent this compiler from
11448 # explicitly linking system object files so we need to strip them
11449 # from the output so that they don't get included in the library
11450 # dependencies.
11451 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'
11452 ;;
11453 *)
11454 if test "$GXX" = yes; then
11455 if test $with_gnu_ld = no; then
11456 case $host_cpu in
11457 hppa*64*)
11458 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11459 ;;
11460 ia64*)
11461 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11462 ;;
11463 *)
11464 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'
11465 ;;
11466 esac
11467 fi
11468 else
11469 # FIXME: insert proper C++ library support
11470 ld_shlibs_CXX=no
11471 fi
11472 ;;
11473 esac
11474 ;;
0fde1ce3 11475 interix[3-9]*)
d9898ee8 11476 hardcode_direct_CXX=no
11477 hardcode_shlibpath_var_CXX=no
11478 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11479 export_dynamic_flag_spec_CXX='${wl}-E'
11480 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11481 # Instead, shared libraries are loaded at an image base (0x10000000 by
11482 # default) and relocated if they conflict, which is a slow very memory
11483 # consuming and fragmenting process. To avoid this, we pick a random,
11484 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11485 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11486 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'
11487 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'
11488 ;;
11489 irix5* | irix6*)
11490 case $cc_basename in
11491 CC*)
11492 # SGI C++
11493 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'
11494
11495 # Archives containing C++ object files must be created using
11496 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11497 # necessary to make sure instantiated templates are included
11498 # in the archive.
11499 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11500 ;;
11501 *)
11502 if test "$GXX" = yes; then
11503 if test "$with_gnu_ld" = no; then
11504 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'
11505 else
11506 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'
11507 fi
11508 fi
11509 link_all_deplibs_CXX=yes
11510 ;;
11511 esac
11512 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11513 hardcode_libdir_separator_CXX=:
11514 ;;
0fde1ce3 11515 linux* | k*bsd*-gnu)
d9898ee8 11516 case $cc_basename in
11517 KCC*)
11518 # Kuck and Associates, Inc. (KAI) C++ Compiler
11519
11520 # KCC will only create a shared library if the output file
11521 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11522 # to its proper name (with version) after linking.
11523 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'
11524 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'
11525 # Commands to make compiler produce verbose output that lists
11526 # what "hidden" libraries, object files and flags are used when
11527 # linking a shared library.
11528 #
11529 # There doesn't appear to be a way to prevent this compiler from
11530 # explicitly linking system object files so we need to strip them
11531 # from the output so that they don't get included in the library
11532 # dependencies.
11533 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'
11534
11535 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11536 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11537
11538 # Archives containing C++ object files must be created using
11539 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11540 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11541 ;;
11542 icpc*)
11543 # Intel C++
11544 with_gnu_ld=yes
11545 # version 8.0 and above of icpc choke on multiply defined symbols
11546 # if we add $predep_objects and $postdep_objects, however 7.1 and
11547 # earlier do not add the objects themselves.
11548 case `$CC -V 2>&1` in
11549 *"Version 7."*)
11550 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11551 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'
11552 ;;
11553 *) # Version 8.0 or newer
11554 tmp_idyn=
11555 case $host_cpu in
11556 ia64*) tmp_idyn=' -i_dynamic';;
11557 esac
11558 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11559 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'
11560 ;;
11561 esac
11562 archive_cmds_need_lc_CXX=no
11563 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11564 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11565 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11566 ;;
11567 pgCC*)
11568 # Portland Group C++ compiler
11569 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11570 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'
11571
11572 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11573 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11574 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'
11575 ;;
11576 cxx*)
11577 # Compaq C++
11578 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11579 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'
11580
11581 runpath_var=LD_RUN_PATH
11582 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11583 hardcode_libdir_separator_CXX=:
11584
11585 # Commands to make compiler produce verbose output that lists
11586 # what "hidden" libraries, object files and flags are used when
11587 # linking a shared library.
11588 #
11589 # There doesn't appear to be a way to prevent this compiler from
11590 # explicitly linking system object files so we need to strip them
11591 # from the output so that they don't get included in the library
11592 # dependencies.
11593 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'
11594 ;;
0fde1ce3 11595 *)
11596 case `$CC -V 2>&1 | sed 5q` in
11597 *Sun\ C*)
11598 # Sun C++ 5.9
11599 no_undefined_flag_CXX=' -zdefs'
11600 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11601 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11602 hardcode_libdir_flag_spec_CXX='-R$libdir'
11603 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11604
11605 # Not sure whether something based on
11606 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11607 # would be better.
11608 output_verbose_link_cmd='echo'
11609
11610 # Archives containing C++ object files must be created using
11611 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11612 # necessary to make sure instantiated templates are included
11613 # in the archive.
11614 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11615 ;;
11616 esac
11617 ;;
d9898ee8 11618 esac
11619 ;;
11620 lynxos*)
11621 # FIXME: insert proper C++ library support
11622 ld_shlibs_CXX=no
11623 ;;
11624 m88k*)
11625 # FIXME: insert proper C++ library support
11626 ld_shlibs_CXX=no
11627 ;;
11628 mvs*)
11629 case $cc_basename in
11630 cxx*)
11631 # FIXME: insert proper C++ library support
11632 ld_shlibs_CXX=no
11633 ;;
11634 *)
11635 # FIXME: insert proper C++ library support
11636 ld_shlibs_CXX=no
11637 ;;
11638 esac
11639 ;;
11640 netbsd*)
11641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11642 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11643 wlarc=
11644 hardcode_libdir_flag_spec_CXX='-R$libdir'
11645 hardcode_direct_CXX=yes
11646 hardcode_shlibpath_var_CXX=no
11647 fi
11648 # Workaround some broken pre-1.5 toolchains
11649 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11650 ;;
11651 openbsd2*)
11652 # C++ shared libraries are fairly broken
11653 ld_shlibs_CXX=no
11654 ;;
11655 openbsd*)
0fde1ce3 11656 if test -f /usr/libexec/ld.so; then
11657 hardcode_direct_CXX=yes
11658 hardcode_shlibpath_var_CXX=no
11659 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11662 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11663 export_dynamic_flag_spec_CXX='${wl}-E'
11664 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11665 fi
11666 output_verbose_link_cmd='echo'
11667 else
11668 ld_shlibs_CXX=no
d9898ee8 11669 fi
d9898ee8 11670 ;;
11671 osf3*)
11672 case $cc_basename in
11673 KCC*)
11674 # Kuck and Associates, Inc. (KAI) C++ Compiler
11675
11676 # KCC will only create a shared library if the output file
11677 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11678 # to its proper name (with version) after linking.
11679 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'
11680
11681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11682 hardcode_libdir_separator_CXX=:
11683
11684 # Archives containing C++ object files must be created using
11685 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11686 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11687
11688 ;;
11689 RCC*)
11690 # Rational C++ 2.4.1
11691 # FIXME: insert proper C++ library support
11692 ld_shlibs_CXX=no
11693 ;;
11694 cxx*)
11695 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11696 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'
11697
11698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11699 hardcode_libdir_separator_CXX=:
11700
11701 # Commands to make compiler produce verbose output that lists
11702 # what "hidden" libraries, object files and flags are used when
11703 # linking a shared library.
11704 #
11705 # There doesn't appear to be a way to prevent this compiler from
11706 # explicitly linking system object files so we need to strip them
11707 # from the output so that they don't get included in the library
11708 # dependencies.
11709 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'
11710 ;;
11711 *)
11712 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11713 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11714 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'
11715
11716 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11717 hardcode_libdir_separator_CXX=:
11718
11719 # Commands to make compiler produce verbose output that lists
11720 # what "hidden" libraries, object files and flags are used when
11721 # linking a shared library.
11722 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11723
11724 else
11725 # FIXME: insert proper C++ library support
11726 ld_shlibs_CXX=no
11727 fi
11728 ;;
11729 esac
11730 ;;
11731 osf4* | osf5*)
11732 case $cc_basename in
11733 KCC*)
11734 # Kuck and Associates, Inc. (KAI) C++ Compiler
11735
11736 # KCC will only create a shared library if the output file
11737 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11738 # to its proper name (with version) after linking.
11739 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'
11740
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11742 hardcode_libdir_separator_CXX=:
11743
11744 # Archives containing C++ object files must be created using
11745 # the KAI C++ compiler.
11746 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11747 ;;
11748 RCC*)
11749 # Rational C++ 2.4.1
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11752 ;;
11753 cxx*)
11754 allow_undefined_flag_CXX=' -expect_unresolved \*'
11755 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'
11756 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11757 echo "-hidden">> $lib.exp~
11758 $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~
11759 $rm $lib.exp'
11760
11761 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11762 hardcode_libdir_separator_CXX=:
11763
11764 # Commands to make compiler produce verbose output that lists
11765 # what "hidden" libraries, object files and flags are used when
11766 # linking a shared library.
11767 #
11768 # There doesn't appear to be a way to prevent this compiler from
11769 # explicitly linking system object files so we need to strip them
11770 # from the output so that they don't get included in the library
11771 # dependencies.
11772 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'
11773 ;;
11774 *)
11775 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11777 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'
11778
11779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11780 hardcode_libdir_separator_CXX=:
11781
11782 # Commands to make compiler produce verbose output that lists
11783 # what "hidden" libraries, object files and flags are used when
11784 # linking a shared library.
11785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11786
11787 else
11788 # FIXME: insert proper C++ library support
11789 ld_shlibs_CXX=no
11790 fi
11791 ;;
11792 esac
11793 ;;
11794 psos*)
11795 # FIXME: insert proper C++ library support
11796 ld_shlibs_CXX=no
11797 ;;
11798 sunos4*)
11799 case $cc_basename in
11800 CC*)
11801 # Sun C++ 4.x
11802 # FIXME: insert proper C++ library support
11803 ld_shlibs_CXX=no
11804 ;;
11805 lcc*)
11806 # Lucid
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 solaris*)
11817 case $cc_basename in
11818 CC*)
11819 # Sun C++ 4.2, 5.x and Centerline C++
11820 archive_cmds_need_lc_CXX=yes
11821 no_undefined_flag_CXX=' -zdefs'
11822 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11823 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11824 $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'
11825
11826 hardcode_libdir_flag_spec_CXX='-R$libdir'
11827 hardcode_shlibpath_var_CXX=no
11828 case $host_os in
11829 solaris2.[0-5] | solaris2.[0-5].*) ;;
11830 *)
0fde1ce3 11831 # The compiler driver will combine and reorder linker options,
11832 # but understands `-z linker_flag'.
d9898ee8 11833 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 11834 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 11835 ;;
11836 esac
11837 link_all_deplibs_CXX=yes
11838
11839 output_verbose_link_cmd='echo'
11840
11841 # Archives containing C++ object files must be created using
11842 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11843 # necessary to make sure instantiated templates are included
11844 # in the archive.
11845 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11846 ;;
11847 gcx*)
11848 # Green Hills C++ Compiler
11849 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11850
11851 # The C++ compiler must be used to create the archive.
11852 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11853 ;;
11854 *)
11855 # GNU C++ compiler with Solaris linker
11856 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11857 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11858 if $CC --version | grep -v '^2\.7' > /dev/null; then
11859 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11860 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11861 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11862
11863 # Commands to make compiler produce verbose output that lists
11864 # what "hidden" libraries, object files and flags are used when
11865 # linking a shared library.
11866 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11867 else
11868 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11869 # platform.
11870 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11871 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11872 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11873
11874 # Commands to make compiler produce verbose output that lists
11875 # what "hidden" libraries, object files and flags are used when
11876 # linking a shared library.
11877 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11878 fi
11879
11880 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
0fde1ce3 11881 case $host_os in
11882 solaris2.[0-5] | solaris2.[0-5].*) ;;
11883 *)
11884 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11885 ;;
11886 esac
d9898ee8 11887 fi
11888 ;;
11889 esac
11890 ;;
11891 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11892 no_undefined_flag_CXX='${wl}-z,text'
11893 archive_cmds_need_lc_CXX=no
11894 hardcode_shlibpath_var_CXX=no
11895 runpath_var='LD_RUN_PATH'
11896
11897 case $cc_basename in
11898 CC*)
11899 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11901 ;;
11902 *)
11903 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905 ;;
11906 esac
11907 ;;
11908 sysv5* | sco3.2v5* | sco5v6*)
11909 # Note: We can NOT use -z defs as we might desire, because we do not
11910 # link with -lc, and that would cause any symbols used from libc to
11911 # always be unresolved, which means just about no library would
11912 # ever link correctly. If we're not using GNU ld we use -z text
11913 # though, which does catch some bad symbols but isn't as heavy-handed
11914 # as -z defs.
11915 # For security reasons, it is highly recommended that you always
11916 # use absolute paths for naming shared libraries, and exclude the
11917 # DT_RUNPATH tag from executables and libraries. But doing so
11918 # requires that you compile everything twice, which is a pain.
11919 # So that behaviour is only enabled if SCOABSPATH is set to a
11920 # non-empty value in the environment. Most likely only useful for
11921 # creating official distributions of packages.
11922 # This is a hack until libtool officially supports absolute path
11923 # names for shared libraries.
11924 no_undefined_flag_CXX='${wl}-z,text'
11925 allow_undefined_flag_CXX='${wl}-z,nodefs'
11926 archive_cmds_need_lc_CXX=no
11927 hardcode_shlibpath_var_CXX=no
11928 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11929 hardcode_libdir_separator_CXX=':'
11930 link_all_deplibs_CXX=yes
11931 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11932 runpath_var='LD_RUN_PATH'
11933
11934 case $cc_basename in
11935 CC*)
11936 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11938 ;;
11939 *)
11940 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11942 ;;
11943 esac
11944 ;;
11945 tandem*)
11946 case $cc_basename in
11947 NCC*)
11948 # NonStop-UX NCC 3.20
11949 # FIXME: insert proper C++ library support
11950 ld_shlibs_CXX=no
11951 ;;
11952 *)
11953 # FIXME: insert proper C++ library support
11954 ld_shlibs_CXX=no
11955 ;;
11956 esac
11957 ;;
11958 vxworks*)
11959 # FIXME: insert proper C++ library support
11960 ld_shlibs_CXX=no
11961 ;;
11962 *)
11963 # FIXME: insert proper C++ library support
11964 ld_shlibs_CXX=no
11965 ;;
11966esac
64ff59ba 11967{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11968echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11969test "$ld_shlibs_CXX" = no && can_build_shared=no
11970
11971GCC_CXX="$GXX"
11972LD_CXX="$LD"
11973
11974
11975cat > conftest.$ac_ext <<EOF
11976class Foo
11977{
11978public:
11979 Foo (void) { a = 0; }
11980private:
11981 int a;
11982};
11983EOF
11984
11985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; then
11990 # Parse the compiler output and extract the necessary
11991 # objects, libraries and library flags.
11992
11993 # Sentinel used to keep track of whether or not we are before
11994 # the conftest object file.
11995 pre_test_object_deps_done=no
11996
11997 # The `*' in the case matches for architectures that use `case' in
11998 # $output_verbose_cmd can trigger glob expansion during the loop
11999 # eval without this substitution.
12000 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12001
12002 for p in `eval $output_verbose_link_cmd`; do
12003 case $p in
12004
12005 -L* | -R* | -l*)
12006 # Some compilers place space between "-{L,R}" and the path.
12007 # Remove the space.
12008 if test $p = "-L" \
12009 || test $p = "-R"; then
12010 prev=$p
12011 continue
12012 else
12013 prev=
12014 fi
12015
12016 if test "$pre_test_object_deps_done" = no; then
12017 case $p in
12018 -L* | -R*)
12019 # Internal compiler library paths should come after those
12020 # provided the user. The postdeps already come after the
12021 # user supplied libs so there is no need to process them.
12022 if test -z "$compiler_lib_search_path_CXX"; then
12023 compiler_lib_search_path_CXX="${prev}${p}"
12024 else
12025 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12026 fi
12027 ;;
12028 # The "-l" case would never come before the object being
12029 # linked, so don't bother handling this case.
12030 esac
12031 else
12032 if test -z "$postdeps_CXX"; then
12033 postdeps_CXX="${prev}${p}"
12034 else
12035 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12036 fi
12037 fi
12038 ;;
12039
12040 *.$objext)
12041 # This assumes that the test object file only shows up
12042 # once in the compiler output.
12043 if test "$p" = "conftest.$objext"; then
12044 pre_test_object_deps_done=yes
12045 continue
12046 fi
12047
12048 if test "$pre_test_object_deps_done" = no; then
12049 if test -z "$predep_objects_CXX"; then
12050 predep_objects_CXX="$p"
12051 else
12052 predep_objects_CXX="$predep_objects_CXX $p"
12053 fi
12054 else
12055 if test -z "$postdep_objects_CXX"; then
12056 postdep_objects_CXX="$p"
12057 else
12058 postdep_objects_CXX="$postdep_objects_CXX $p"
12059 fi
12060 fi
12061 ;;
12062
12063 *) ;; # Ignore the rest.
12064
12065 esac
12066 done
12067
12068 # Clean up.
12069 rm -f a.out a.exe
12070else
12071 echo "libtool.m4: error: problem compiling CXX test program"
12072fi
12073
12074$rm -f confest.$objext
12075
12076# PORTME: override above test on systems where it is broken
12077case $host_os in
0fde1ce3 12078interix[3-9]*)
d9898ee8 12079 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12080 # hack all around it, let's just trust "g++" to DTRT.
12081 predep_objects_CXX=
12082 postdep_objects_CXX=
12083 postdeps_CXX=
12084 ;;
12085
0fde1ce3 12086linux*)
12087 case `$CC -V 2>&1 | sed 5q` in
12088 *Sun\ C*)
12089 # Sun C++ 5.9
12090 #
12091 # The more standards-conforming stlport4 library is
12092 # incompatible with the Cstd library. Avoid specifying
12093 # it if it's in CXXFLAGS. Ignore libCrun as
12094 # -library=stlport4 depends on it.
12095 case " $CXX $CXXFLAGS " in
12096 *" -library=stlport4 "*)
12097 solaris_use_stlport4=yes
12098 ;;
12099 esac
12100 if test "$solaris_use_stlport4" != yes; then
12101 postdeps_CXX='-library=Cstd -library=Crun'
12102 fi
12103 ;;
12104 esac
12105 ;;
12106
d9898ee8 12107solaris*)
12108 case $cc_basename in
12109 CC*)
0fde1ce3 12110 # The more standards-conforming stlport4 library is
12111 # incompatible with the Cstd library. Avoid specifying
12112 # it if it's in CXXFLAGS. Ignore libCrun as
12113 # -library=stlport4 depends on it.
12114 case " $CXX $CXXFLAGS " in
12115 *" -library=stlport4 "*)
12116 solaris_use_stlport4=yes
12117 ;;
12118 esac
12119
d9898ee8 12120 # Adding this requires a known-good setup of shared libraries for
12121 # Sun compiler versions before 5.6, else PIC objects from an old
12122 # archive will be linked into the output, leading to subtle bugs.
0fde1ce3 12123 if test "$solaris_use_stlport4" != yes; then
12124 postdeps_CXX='-library=Cstd -library=Crun'
12125 fi
d9898ee8 12126 ;;
12127 esac
12128 ;;
12129esac
12130
12131
12132case " $postdeps_CXX " in
12133*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12134esac
12135
12136lt_prog_compiler_wl_CXX=
12137lt_prog_compiler_pic_CXX=
12138lt_prog_compiler_static_CXX=
12139
64ff59ba 12140{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12141echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12142
12143 # C++ specific cases for pic, static, wl, etc.
12144 if test "$GXX" = yes; then
12145 lt_prog_compiler_wl_CXX='-Wl,'
12146 lt_prog_compiler_static_CXX='-static'
12147
12148 case $host_os in
12149 aix*)
12150 # All AIX code is PIC.
12151 if test "$host_cpu" = ia64; then
12152 # AIX 5 now supports IA64 processor
12153 lt_prog_compiler_static_CXX='-Bstatic'
12154 fi
12155 ;;
12156 amigaos*)
12157 # FIXME: we need at least 68020 code to build shared libraries, but
12158 # adding the `-m68020' flag to GCC prevents building anything better,
12159 # like `-m68040'.
12160 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12161 ;;
0fde1ce3 12162 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12163 # PIC is the default for these OSes.
12164 ;;
0fde1ce3 12165 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12166 # This hack is so that the source file can tell whether it is being
12167 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 12168 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12169 # (--disable-auto-import) libraries
d9898ee8 12170 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12171 ;;
12172 darwin* | rhapsody*)
12173 # PIC is the default on this platform
12174 # Common symbols not allowed in MH_DYLIB files
12175 lt_prog_compiler_pic_CXX='-fno-common'
12176 ;;
12177 *djgpp*)
12178 # DJGPP does not support shared libraries at all
12179 lt_prog_compiler_pic_CXX=
12180 ;;
0fde1ce3 12181 interix[3-9]*)
d9898ee8 12182 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12183 # Instead, we relocate shared libraries at runtime.
12184 ;;
12185 sysv4*MP*)
12186 if test -d /usr/nec; then
12187 lt_prog_compiler_pic_CXX=-Kconform_pic
12188 fi
12189 ;;
12190 hpux*)
12191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12192 # not for PA HP-UX.
12193 case $host_cpu in
12194 hppa*64*|ia64*)
12195 ;;
12196 *)
12197 lt_prog_compiler_pic_CXX='-fPIC'
12198 ;;
12199 esac
12200 ;;
12201 *)
12202 lt_prog_compiler_pic_CXX='-fPIC'
12203 ;;
12204 esac
12205 else
12206 case $host_os in
12207 aix4* | aix5*)
12208 # All AIX code is PIC.
12209 if test "$host_cpu" = ia64; then
12210 # AIX 5 now supports IA64 processor
12211 lt_prog_compiler_static_CXX='-Bstatic'
12212 else
12213 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12214 fi
12215 ;;
12216 chorus*)
12217 case $cc_basename in
12218 cxch68*)
12219 # Green Hills C++ Compiler
12220 # _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"
12221 ;;
12222 esac
12223 ;;
12224 darwin*)
12225 # PIC is the default on this platform
12226 # Common symbols not allowed in MH_DYLIB files
12227 case $cc_basename in
12228 xlc*)
12229 lt_prog_compiler_pic_CXX='-qnocommon'
12230 lt_prog_compiler_wl_CXX='-Wl,'
12231 ;;
12232 esac
12233 ;;
12234 dgux*)
12235 case $cc_basename in
12236 ec++*)
12237 lt_prog_compiler_pic_CXX='-KPIC'
12238 ;;
12239 ghcx*)
12240 # Green Hills C++ Compiler
12241 lt_prog_compiler_pic_CXX='-pic'
12242 ;;
12243 *)
12244 ;;
12245 esac
12246 ;;
0fde1ce3 12247 freebsd* | dragonfly*)
d9898ee8 12248 # FreeBSD uses GNU C++
12249 ;;
12250 hpux9* | hpux10* | hpux11*)
12251 case $cc_basename in
12252 CC*)
12253 lt_prog_compiler_wl_CXX='-Wl,'
12254 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12255 if test "$host_cpu" != ia64; then
12256 lt_prog_compiler_pic_CXX='+Z'
12257 fi
12258 ;;
12259 aCC*)
12260 lt_prog_compiler_wl_CXX='-Wl,'
12261 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12262 case $host_cpu in
12263 hppa*64*|ia64*)
12264 # +Z the default
12265 ;;
12266 *)
12267 lt_prog_compiler_pic_CXX='+Z'
12268 ;;
12269 esac
12270 ;;
12271 *)
12272 ;;
12273 esac
12274 ;;
12275 interix*)
12276 # This is c89, which is MS Visual C++ (no shared libs)
12277 # Anyone wants to do a port?
12278 ;;
12279 irix5* | irix6* | nonstopux*)
12280 case $cc_basename in
12281 CC*)
12282 lt_prog_compiler_wl_CXX='-Wl,'
12283 lt_prog_compiler_static_CXX='-non_shared'
12284 # CC pic flag -KPIC is the default.
12285 ;;
12286 *)
12287 ;;
12288 esac
12289 ;;
0fde1ce3 12290 linux* | k*bsd*-gnu)
d9898ee8 12291 case $cc_basename in
12292 KCC*)
12293 # KAI C++ Compiler
12294 lt_prog_compiler_wl_CXX='--backend -Wl,'
12295 lt_prog_compiler_pic_CXX='-fPIC'
12296 ;;
12297 icpc* | ecpc*)
12298 # Intel C++
12299 lt_prog_compiler_wl_CXX='-Wl,'
12300 lt_prog_compiler_pic_CXX='-KPIC'
12301 lt_prog_compiler_static_CXX='-static'
12302 ;;
12303 pgCC*)
12304 # Portland Group C++ compiler.
12305 lt_prog_compiler_wl_CXX='-Wl,'
12306 lt_prog_compiler_pic_CXX='-fpic'
12307 lt_prog_compiler_static_CXX='-Bstatic'
12308 ;;
12309 cxx*)
12310 # Compaq C++
12311 # Make sure the PIC flag is empty. It appears that all Alpha
12312 # Linux and Compaq Tru64 Unix objects are PIC.
12313 lt_prog_compiler_pic_CXX=
12314 lt_prog_compiler_static_CXX='-non_shared'
12315 ;;
12316 *)
0fde1ce3 12317 case `$CC -V 2>&1 | sed 5q` in
12318 *Sun\ C*)
12319 # Sun C++ 5.9
12320 lt_prog_compiler_pic_CXX='-KPIC'
12321 lt_prog_compiler_static_CXX='-Bstatic'
12322 lt_prog_compiler_wl_CXX='-Qoption ld '
12323 ;;
12324 esac
d9898ee8 12325 ;;
12326 esac
12327 ;;
12328 lynxos*)
12329 ;;
12330 m88k*)
12331 ;;
12332 mvs*)
12333 case $cc_basename in
12334 cxx*)
12335 lt_prog_compiler_pic_CXX='-W c,exportall'
12336 ;;
12337 *)
12338 ;;
12339 esac
12340 ;;
12341 netbsd*)
12342 ;;
12343 osf3* | osf4* | osf5*)
12344 case $cc_basename in
12345 KCC*)
12346 lt_prog_compiler_wl_CXX='--backend -Wl,'
12347 ;;
12348 RCC*)
12349 # Rational C++ 2.4.1
12350 lt_prog_compiler_pic_CXX='-pic'
12351 ;;
12352 cxx*)
12353 # Digital/Compaq C++
12354 lt_prog_compiler_wl_CXX='-Wl,'
12355 # Make sure the PIC flag is empty. It appears that all Alpha
12356 # Linux and Compaq Tru64 Unix objects are PIC.
12357 lt_prog_compiler_pic_CXX=
12358 lt_prog_compiler_static_CXX='-non_shared'
12359 ;;
12360 *)
12361 ;;
12362 esac
12363 ;;
12364 psos*)
12365 ;;
12366 solaris*)
12367 case $cc_basename in
12368 CC*)
12369 # Sun C++ 4.2, 5.x and Centerline C++
12370 lt_prog_compiler_pic_CXX='-KPIC'
12371 lt_prog_compiler_static_CXX='-Bstatic'
12372 lt_prog_compiler_wl_CXX='-Qoption ld '
12373 ;;
12374 gcx*)
12375 # Green Hills C++ Compiler
12376 lt_prog_compiler_pic_CXX='-PIC'
12377 ;;
12378 *)
12379 ;;
12380 esac
12381 ;;
12382 sunos4*)
12383 case $cc_basename in
12384 CC*)
12385 # Sun C++ 4.x
12386 lt_prog_compiler_pic_CXX='-pic'
12387 lt_prog_compiler_static_CXX='-Bstatic'
12388 ;;
12389 lcc*)
12390 # Lucid
12391 lt_prog_compiler_pic_CXX='-pic'
12392 ;;
12393 *)
12394 ;;
12395 esac
12396 ;;
12397 tandem*)
12398 case $cc_basename in
12399 NCC*)
12400 # NonStop-UX NCC 3.20
12401 lt_prog_compiler_pic_CXX='-KPIC'
12402 ;;
12403 *)
12404 ;;
12405 esac
12406 ;;
12407 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12408 case $cc_basename in
12409 CC*)
12410 lt_prog_compiler_wl_CXX='-Wl,'
12411 lt_prog_compiler_pic_CXX='-KPIC'
12412 lt_prog_compiler_static_CXX='-Bstatic'
12413 ;;
12414 esac
12415 ;;
12416 vxworks*)
12417 ;;
12418 *)
12419 lt_prog_compiler_can_build_shared_CXX=no
12420 ;;
12421 esac
12422 fi
12423
64ff59ba 12424{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12425echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12426
12427#
12428# Check to make sure the PIC flag actually works.
12429#
12430if test -n "$lt_prog_compiler_pic_CXX"; then
12431
64ff59ba 12432{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12433echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12434if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
12437 lt_prog_compiler_pic_works_CXX=no
12438 ac_outfile=conftest.$ac_objext
0fde1ce3 12439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12440 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12441 # Insert the option either (1) after the last *FLAGS variable, or
12442 # (2) before a word containing "conftest.", or (3) at the end.
12443 # Note that $ac_compile itself does not contain backslashes and begins
12444 # with a dollar sign (not a hyphen), so the echo should work correctly.
12445 # The option is referenced via a variable to avoid confusing sed.
12446 lt_compile=`echo "$ac_compile" | $SED \
12447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12449 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12450 (eval echo "\"\$as_me:12450: $lt_compile\"" >&5)
d9898ee8 12451 (eval "$lt_compile" 2>conftest.err)
12452 ac_status=$?
12453 cat conftest.err >&5
0fde1ce3 12454 echo "$as_me:12454: \$? = $ac_status" >&5
d9898ee8 12455 if (exit $ac_status) && test -s "$ac_outfile"; then
12456 # The compiler can only warn and ignore the option if not recognized
12457 # So say no if there are warnings other than the usual output.
12458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12461 lt_prog_compiler_pic_works_CXX=yes
12462 fi
12463 fi
12464 $rm conftest*
12465
12466fi
64ff59ba 12467{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12468echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12469
12470if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12471 case $lt_prog_compiler_pic_CXX in
12472 "" | " "*) ;;
12473 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12474 esac
12475else
12476 lt_prog_compiler_pic_CXX=
12477 lt_prog_compiler_can_build_shared_CXX=no
12478fi
12479
12480fi
12481case $host_os in
12482 # For platforms which do not support PIC, -DPIC is meaningless:
12483 *djgpp*)
12484 lt_prog_compiler_pic_CXX=
12485 ;;
12486 *)
12487 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12488 ;;
12489esac
12490
12491#
12492# Check to make sure the static flag actually works.
12493#
12494wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12495{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12496echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12497if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12499else
12500 lt_prog_compiler_static_works_CXX=no
12501 save_LDFLAGS="$LDFLAGS"
12502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 12503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12505 # The linker can only warn and ignore the option if not recognized
12506 # So say no if there are warnings
12507 if test -s conftest.err; then
12508 # Append any errors to the config.log.
12509 cat conftest.err 1>&5
12510 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12512 if diff conftest.exp conftest.er2 >/dev/null; then
12513 lt_prog_compiler_static_works_CXX=yes
12514 fi
12515 else
12516 lt_prog_compiler_static_works_CXX=yes
12517 fi
12518 fi
12519 $rm conftest*
12520 LDFLAGS="$save_LDFLAGS"
12521
12522fi
64ff59ba 12523{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12524echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12525
12526if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12527 :
12528else
12529 lt_prog_compiler_static_CXX=
12530fi
12531
12532
64ff59ba 12533{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12534echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12535if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12537else
12538 lt_cv_prog_compiler_c_o_CXX=no
12539 $rm -r conftest 2>/dev/null
12540 mkdir conftest
12541 cd conftest
12542 mkdir out
0fde1ce3 12543 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12544
12545 lt_compiler_flag="-o out/conftest2.$ac_objext"
12546 # Insert the option either (1) after the last *FLAGS variable, or
12547 # (2) before a word containing "conftest.", or (3) at the end.
12548 # Note that $ac_compile itself does not contain backslashes and begins
12549 # with a dollar sign (not a hyphen), so the echo should work correctly.
12550 lt_compile=`echo "$ac_compile" | $SED \
12551 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12553 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 12554 (eval echo "\"\$as_me:12554: $lt_compile\"" >&5)
d9898ee8 12555 (eval "$lt_compile" 2>out/conftest.err)
12556 ac_status=$?
12557 cat out/conftest.err >&5
0fde1ce3 12558 echo "$as_me:12558: \$? = $ac_status" >&5
d9898ee8 12559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12560 then
12561 # The compiler can only warn and ignore the option if not recognized
12562 # So say no if there are warnings
12563 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12564 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12565 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12566 lt_cv_prog_compiler_c_o_CXX=yes
12567 fi
12568 fi
12569 chmod u+w . 2>&5
12570 $rm conftest*
12571 # SGI C++ compiler will create directory out/ii_files/ for
12572 # template instantiation
12573 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12574 $rm out/* && rmdir out
12575 cd ..
12576 rmdir conftest
12577 $rm conftest*
12578
12579fi
64ff59ba 12580{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12581echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12582
12583
12584hard_links="nottested"
12585if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12586 # do not overwrite the value of need_locks provided by the user
64ff59ba 12587 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12588echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12589 hard_links=yes
12590 $rm conftest*
12591 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12592 touch conftest.a
12593 ln conftest.a conftest.b 2>&5 || hard_links=no
12594 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12595 { echo "$as_me:$LINENO: result: $hard_links" >&5
12596echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12597 if test "$hard_links" = no; then
12598 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12599echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12600 need_locks=warn
12601 fi
12602else
12603 need_locks=no
12604fi
12605
64ff59ba 12606{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12607echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12608
12609 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12610 case $host_os in
12611 aix4* | aix5*)
12612 # If we're using GNU nm, then we don't want the "-C" option.
12613 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12614 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12615 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'
12616 else
12617 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'
12618 fi
12619 ;;
12620 pw32*)
12621 export_symbols_cmds_CXX="$ltdll_cmds"
12622 ;;
12623 cygwin* | mingw*)
0fde1ce3 12624 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 12625 ;;
12626 *)
12627 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12628 ;;
12629 esac
12630
64ff59ba 12631{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12632echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12633test "$ld_shlibs_CXX" = no && can_build_shared=no
12634
12635#
12636# Do we need to explicitly link libc?
12637#
12638case "x$archive_cmds_need_lc_CXX" in
12639x|xyes)
12640 # Assume -lc should be added
12641 archive_cmds_need_lc_CXX=yes
12642
12643 if test "$enable_shared" = yes && test "$GCC" = yes; then
12644 case $archive_cmds_CXX in
12645 *'~'*)
12646 # FIXME: we may have to deal with multi-command sequences.
12647 ;;
12648 '$CC '*)
12649 # Test whether the compiler implicitly links with -lc since on some
12650 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12651 # to ld, don't add -lc before -lgcc.
64ff59ba 12652 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12653echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12654 $rm conftest*
0fde1ce3 12655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12656
12657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>&5
12659 ac_status=$?
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } 2>conftest.err; then
12662 soname=conftest
12663 lib=conftest
12664 libobjs=conftest.$ac_objext
12665 deplibs=
12666 wl=$lt_prog_compiler_wl_CXX
12667 pic_flag=$lt_prog_compiler_pic_CXX
12668 compiler_flags=-v
12669 linker_flags=-v
12670 verstring=
12671 output_objdir=.
12672 libname=conftest
12673 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12674 allow_undefined_flag_CXX=
12675 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12676 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }
12680 then
12681 archive_cmds_need_lc_CXX=no
12682 else
12683 archive_cmds_need_lc_CXX=yes
12684 fi
12685 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12686 else
12687 cat conftest.err 1>&5
12688 fi
12689 $rm conftest*
64ff59ba 12690 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12691echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12692 ;;
12693 esac
12694 fi
12695 ;;
12696esac
12697
64ff59ba 12698{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12699echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12700library_names_spec=
12701libname_spec='lib$name'
12702soname_spec=
12703shrext_cmds=".so"
12704postinstall_cmds=
12705postuninstall_cmds=
12706finish_cmds=
12707finish_eval=
12708shlibpath_var=
12709shlibpath_overrides_runpath=unknown
12710version_type=none
12711dynamic_linker="$host_os ld.so"
12712sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 12713
d9898ee8 12714need_lib_prefix=unknown
12715hardcode_into_libs=no
12716
12717# when you set need_version to no, make sure it does not cause -set_version
12718# flags to be left without arguments
12719need_version=unknown
12720
12721case $host_os in
12722aix3*)
12723 version_type=linux
12724 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12725 shlibpath_var=LIBPATH
12726
12727 # AIX 3 has no versioning support, so we append a major version to the name.
12728 soname_spec='${libname}${release}${shared_ext}$major'
12729 ;;
12730
12731aix4* | aix5*)
12732 version_type=linux
12733 need_lib_prefix=no
12734 need_version=no
12735 hardcode_into_libs=yes
12736 if test "$host_cpu" = ia64; then
12737 # AIX 5 supports IA64
12738 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12739 shlibpath_var=LD_LIBRARY_PATH
12740 else
12741 # With GCC up to 2.95.x, collect2 would create an import file
12742 # for dependence libraries. The import file would start with
12743 # the line `#! .'. This would cause the generated library to
12744 # depend on `.', always an invalid library. This was fixed in
12745 # development snapshots of GCC prior to 3.0.
12746 case $host_os in
12747 aix4 | aix4.[01] | aix4.[01].*)
12748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12749 echo ' yes '
12750 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12751 :
12752 else
12753 can_build_shared=no
12754 fi
12755 ;;
12756 esac
12757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12758 # soname into executable. Probably we can add versioning support to
12759 # collect2, so additional links can be useful in future.
12760 if test "$aix_use_runtimelinking" = yes; then
12761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12762 # instead of lib<name>.a to let people know that these are not
12763 # typical AIX shared libraries.
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12765 else
12766 # We preserve .a as extension for shared libraries through AIX4.2
12767 # and later when we are not doing run time linking.
12768 library_names_spec='${libname}${release}.a $libname.a'
12769 soname_spec='${libname}${release}${shared_ext}$major'
12770 fi
12771 shlibpath_var=LIBPATH
12772 fi
12773 ;;
12774
12775amigaos*)
12776 library_names_spec='$libname.ixlibrary $libname.a'
12777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12778 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'
12779 ;;
12780
12781beos*)
12782 library_names_spec='${libname}${shared_ext}'
12783 dynamic_linker="$host_os ld.so"
12784 shlibpath_var=LIBRARY_PATH
12785 ;;
12786
12787bsdi[45]*)
12788 version_type=linux
12789 need_version=no
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12793 shlibpath_var=LD_LIBRARY_PATH
12794 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12795 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12796 # the default ld.so.conf also contains /usr/contrib/lib and
12797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12798 # libtool to hard-code these into programs
12799 ;;
12800
12801cygwin* | mingw* | pw32*)
12802 version_type=windows
12803 shrext_cmds=".dll"
12804 need_version=no
12805 need_lib_prefix=no
12806
12807 case $GCC,$host_os in
12808 yes,cygwin* | yes,mingw* | yes,pw32*)
12809 library_names_spec='$libname.dll.a'
12810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12811 postinstall_cmds='base_file=`basename \${file}`~
12812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12813 dldir=$destdir/`dirname \$dlpath`~
12814 test -d \$dldir || mkdir -p \$dldir~
12815 $install_prog $dir/$dlname \$dldir/$dlname~
12816 chmod a+x \$dldir/$dlname'
12817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12818 dlpath=$dir/\$dldll~
12819 $rm \$dlpath'
12820 shlibpath_overrides_runpath=yes
12821
12822 case $host_os in
12823 cygwin*)
12824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12825 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12826 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12827 ;;
12828 mingw*)
12829 # MinGW DLLs use traditional 'lib' prefix
12830 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12831 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12832 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12833 # It is most probably a Windows format PATH printed by
12834 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12835 # path with ; separators, and with drive letters. We can handle the
12836 # drive letters (cygwin fileutils understands them), so leave them,
12837 # especially as we might pass files found there to a mingw objdump,
12838 # which wouldn't understand a cygwinified path. Ahh.
12839 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12840 else
12841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12842 fi
12843 ;;
12844 pw32*)
12845 # pw32 DLLs use 'pw' prefix rather than 'lib'
12846 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12847 ;;
12848 esac
12849 ;;
12850
12851 *)
12852 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12853 ;;
12854 esac
12855 dynamic_linker='Win32 ld.exe'
12856 # FIXME: first we should search . and the directory the executable is in
12857 shlibpath_var=PATH
12858 ;;
12859
12860darwin* | rhapsody*)
12861 dynamic_linker="$host_os dyld"
12862 version_type=darwin
12863 need_lib_prefix=no
12864 need_version=no
12865 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12866 soname_spec='${libname}${release}${major}$shared_ext'
12867 shlibpath_overrides_runpath=yes
12868 shlibpath_var=DYLD_LIBRARY_PATH
12869 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 12870
d9898ee8 12871 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12872 ;;
12873
12874dgux*)
12875 version_type=linux
12876 need_lib_prefix=no
12877 need_version=no
12878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12879 soname_spec='${libname}${release}${shared_ext}$major'
12880 shlibpath_var=LD_LIBRARY_PATH
12881 ;;
12882
12883freebsd1*)
12884 dynamic_linker=no
12885 ;;
12886
d9898ee8 12887freebsd* | dragonfly*)
12888 # DragonFly does not have aout. When/if they implement a new
12889 # versioning mechanism, adjust this.
12890 if test -x /usr/bin/objformat; then
12891 objformat=`/usr/bin/objformat`
12892 else
12893 case $host_os in
12894 freebsd[123]*) objformat=aout ;;
12895 *) objformat=elf ;;
12896 esac
12897 fi
12898 version_type=freebsd-$objformat
12899 case $version_type in
12900 freebsd-elf*)
12901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12902 need_version=no
12903 need_lib_prefix=no
12904 ;;
12905 freebsd-*)
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12907 need_version=yes
12908 ;;
12909 esac
12910 shlibpath_var=LD_LIBRARY_PATH
12911 case $host_os in
12912 freebsd2*)
12913 shlibpath_overrides_runpath=yes
12914 ;;
12915 freebsd3.[01]* | freebsdelf3.[01]*)
12916 shlibpath_overrides_runpath=yes
12917 hardcode_into_libs=yes
12918 ;;
12919 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12920 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12921 shlibpath_overrides_runpath=no
12922 hardcode_into_libs=yes
12923 ;;
0fde1ce3 12924 *) # from 4.6 on, and DragonFly
d9898ee8 12925 shlibpath_overrides_runpath=yes
12926 hardcode_into_libs=yes
12927 ;;
12928 esac
12929 ;;
12930
12931gnu*)
12932 version_type=linux
12933 need_lib_prefix=no
12934 need_version=no
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12936 soname_spec='${libname}${release}${shared_ext}$major'
12937 shlibpath_var=LD_LIBRARY_PATH
12938 hardcode_into_libs=yes
12939 ;;
12940
12941hpux9* | hpux10* | hpux11*)
12942 # Give a soname corresponding to the major version so that dld.sl refuses to
12943 # link against other versions.
12944 version_type=sunos
12945 need_lib_prefix=no
12946 need_version=no
12947 case $host_cpu in
12948 ia64*)
12949 shrext_cmds='.so'
12950 hardcode_into_libs=yes
12951 dynamic_linker="$host_os dld.so"
12952 shlibpath_var=LD_LIBRARY_PATH
12953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12955 soname_spec='${libname}${release}${shared_ext}$major'
12956 if test "X$HPUX_IA64_MODE" = X32; then
12957 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12958 else
12959 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12960 fi
12961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12962 ;;
12963 hppa*64*)
12964 shrext_cmds='.sl'
12965 hardcode_into_libs=yes
12966 dynamic_linker="$host_os dld.sl"
12967 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12968 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12973 ;;
12974 *)
12975 shrext_cmds='.sl'
12976 dynamic_linker="$host_os dld.sl"
12977 shlibpath_var=SHLIB_PATH
12978 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12980 soname_spec='${libname}${release}${shared_ext}$major'
12981 ;;
12982 esac
12983 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12984 postinstall_cmds='chmod 555 $lib'
12985 ;;
12986
0fde1ce3 12987interix[3-9]*)
d9898ee8 12988 version_type=linux
12989 need_lib_prefix=no
12990 need_version=no
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12994 shlibpath_var=LD_LIBRARY_PATH
12995 shlibpath_overrides_runpath=no
12996 hardcode_into_libs=yes
12997 ;;
12998
12999irix5* | irix6* | nonstopux*)
13000 case $host_os in
13001 nonstopux*) version_type=nonstopux ;;
13002 *)
13003 if test "$lt_cv_prog_gnu_ld" = yes; then
13004 version_type=linux
13005 else
13006 version_type=irix
13007 fi ;;
13008 esac
13009 need_lib_prefix=no
13010 need_version=no
13011 soname_spec='${libname}${release}${shared_ext}$major'
13012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13013 case $host_os in
13014 irix5* | nonstopux*)
13015 libsuff= shlibsuff=
13016 ;;
13017 *)
13018 case $LD in # libtool.m4 will add one of these switches to LD
13019 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13020 libsuff= shlibsuff= libmagic=32-bit;;
13021 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13022 libsuff=32 shlibsuff=N32 libmagic=N32;;
13023 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13024 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13025 *) libsuff= shlibsuff= libmagic=never-match;;
13026 esac
13027 ;;
13028 esac
13029 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13030 shlibpath_overrides_runpath=no
13031 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13032 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13033 hardcode_into_libs=yes
13034 ;;
13035
13036# No shared lib support for Linux oldld, aout, or coff.
13037linux*oldld* | linux*aout* | linux*coff*)
13038 dynamic_linker=no
13039 ;;
13040
13041# This must be Linux ELF.
0fde1ce3 13042linux* | k*bsd*-gnu)
d9898ee8 13043 version_type=linux
13044 need_lib_prefix=no
13045 need_version=no
13046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13047 soname_spec='${libname}${release}${shared_ext}$major'
13048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13049 shlibpath_var=LD_LIBRARY_PATH
13050 shlibpath_overrides_runpath=no
13051 # This implies no fast_install, which is unacceptable.
13052 # Some rework will be needed to allow for fast_install
13053 # before this can be enabled.
13054 hardcode_into_libs=yes
0fde1ce3 13055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13057
13058 # Append ld.so.conf contents to the search path
13059 if test -f /etc/ld.so.conf; then
0fde1ce3 13060 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13061 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13062 fi
13063
13064 # We used to test for /lib/ld.so.1 and disable shared libraries on
13065 # powerpc, because MkLinux only supported shared libraries with the
13066 # GNU dynamic linker. Since this was broken with cross compilers,
13067 # most powerpc-linux boxes support dynamic linking these days and
13068 # people can always --disable-shared, the test was removed, and we
13069 # assume the GNU/Linux dynamic linker is in use.
13070 dynamic_linker='GNU/Linux ld.so'
13071 ;;
13072
d9898ee8 13073netbsd*)
13074 version_type=sunos
13075 need_lib_prefix=no
13076 need_version=no
13077 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13080 dynamic_linker='NetBSD (a.out) ld.so'
13081 else
13082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13083 soname_spec='${libname}${release}${shared_ext}$major'
13084 dynamic_linker='NetBSD ld.elf_so'
13085 fi
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=yes
13088 hardcode_into_libs=yes
13089 ;;
13090
13091newsos6)
13092 version_type=linux
13093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13094 shlibpath_var=LD_LIBRARY_PATH
13095 shlibpath_overrides_runpath=yes
13096 ;;
13097
13098nto-qnx*)
13099 version_type=linux
13100 need_lib_prefix=no
13101 need_version=no
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13103 soname_spec='${libname}${release}${shared_ext}$major'
13104 shlibpath_var=LD_LIBRARY_PATH
13105 shlibpath_overrides_runpath=yes
13106 ;;
13107
13108openbsd*)
13109 version_type=sunos
13110 sys_lib_dlsearch_path_spec="/usr/lib"
13111 need_lib_prefix=no
13112 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13113 case $host_os in
13114 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13115 *) need_version=no ;;
13116 esac
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13119 shlibpath_var=LD_LIBRARY_PATH
13120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13121 case $host_os in
13122 openbsd2.[89] | openbsd2.[89].*)
13123 shlibpath_overrides_runpath=no
13124 ;;
13125 *)
13126 shlibpath_overrides_runpath=yes
13127 ;;
13128 esac
13129 else
13130 shlibpath_overrides_runpath=yes
13131 fi
13132 ;;
13133
13134os2*)
13135 libname_spec='$name'
13136 shrext_cmds=".dll"
13137 need_lib_prefix=no
13138 library_names_spec='$libname${shared_ext} $libname.a'
13139 dynamic_linker='OS/2 ld.exe'
13140 shlibpath_var=LIBPATH
13141 ;;
13142
13143osf3* | osf4* | osf5*)
13144 version_type=osf
13145 need_lib_prefix=no
13146 need_version=no
13147 soname_spec='${libname}${release}${shared_ext}$major'
13148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13149 shlibpath_var=LD_LIBRARY_PATH
13150 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13151 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13152 ;;
13153
0fde1ce3 13154rdos*)
13155 dynamic_linker=no
13156 ;;
13157
d9898ee8 13158solaris*)
13159 version_type=linux
13160 need_lib_prefix=no
13161 need_version=no
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13163 soname_spec='${libname}${release}${shared_ext}$major'
13164 shlibpath_var=LD_LIBRARY_PATH
13165 shlibpath_overrides_runpath=yes
13166 hardcode_into_libs=yes
13167 # ldd complains unless libraries are executable
13168 postinstall_cmds='chmod +x $lib'
13169 ;;
13170
13171sunos4*)
13172 version_type=sunos
13173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13175 shlibpath_var=LD_LIBRARY_PATH
13176 shlibpath_overrides_runpath=yes
13177 if test "$with_gnu_ld" = yes; then
13178 need_lib_prefix=no
13179 fi
13180 need_version=yes
13181 ;;
13182
13183sysv4 | sysv4.3*)
13184 version_type=linux
13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13186 soname_spec='${libname}${release}${shared_ext}$major'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 case $host_vendor in
13189 sni)
13190 shlibpath_overrides_runpath=no
13191 need_lib_prefix=no
13192 export_dynamic_flag_spec='${wl}-Blargedynsym'
13193 runpath_var=LD_RUN_PATH
13194 ;;
13195 siemens)
13196 need_lib_prefix=no
13197 ;;
13198 motorola)
13199 need_lib_prefix=no
13200 need_version=no
13201 shlibpath_overrides_runpath=no
13202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13203 ;;
13204 esac
13205 ;;
13206
13207sysv4*MP*)
13208 if test -d /usr/nec ;then
13209 version_type=linux
13210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13211 soname_spec='$libname${shared_ext}.$major'
13212 shlibpath_var=LD_LIBRARY_PATH
13213 fi
13214 ;;
13215
13216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13217 version_type=freebsd-elf
13218 need_lib_prefix=no
13219 need_version=no
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 hardcode_into_libs=yes
13224 if test "$with_gnu_ld" = yes; then
13225 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13226 shlibpath_overrides_runpath=no
13227 else
13228 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13229 shlibpath_overrides_runpath=yes
13230 case $host_os in
13231 sco3.2v5*)
13232 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13233 ;;
13234 esac
13235 fi
13236 sys_lib_dlsearch_path_spec='/usr/lib'
13237 ;;
13238
13239uts4*)
13240 version_type=linux
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13242 soname_spec='${libname}${release}${shared_ext}$major'
13243 shlibpath_var=LD_LIBRARY_PATH
13244 ;;
13245
13246*)
13247 dynamic_linker=no
13248 ;;
13249esac
64ff59ba 13250{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13251echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13252test "$dynamic_linker" = no && can_build_shared=no
13253
13254variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13255if test "$GCC" = yes; then
13256 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13257fi
13258
64ff59ba 13259{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13260echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13261hardcode_action_CXX=
13262if test -n "$hardcode_libdir_flag_spec_CXX" || \
13263 test -n "$runpath_var_CXX" || \
13264 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13265
13266 # We can hardcode non-existant directories.
13267 if test "$hardcode_direct_CXX" != no &&
13268 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13269 # have to relink, otherwise we might link with an installed library
13270 # when we should be linking with a yet-to-be-installed one
13271 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13272 test "$hardcode_minus_L_CXX" != no; then
13273 # Linking always hardcodes the temporary library directory.
13274 hardcode_action_CXX=relink
13275 else
13276 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13277 hardcode_action_CXX=immediate
13278 fi
13279else
13280 # We cannot hardcode anything, or else we can only hardcode existing
13281 # directories.
13282 hardcode_action_CXX=unsupported
13283fi
64ff59ba 13284{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13285echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13286
13287if test "$hardcode_action_CXX" = relink; then
13288 # Fast installation is not supported
13289 enable_fast_install=no
13290elif test "$shlibpath_overrides_runpath" = yes ||
13291 test "$enable_shared" = no; then
13292 # Fast installation is not necessary
13293 enable_fast_install=needless
13294fi
13295
13296
13297# The else clause should only fire when bootstrapping the
13298# libtool distribution, otherwise you forgot to ship ltmain.sh
13299# with your package, and you will get complaints that there are
13300# no rules to generate ltmain.sh.
13301if test -f "$ltmain"; then
13302 # See if we are running on zsh, and set the options which allow our commands through
13303 # without removal of \ escapes.
13304 if test -n "${ZSH_VERSION+set}" ; then
13305 setopt NO_GLOB_SUBST
13306 fi
13307 # Now quote all the things that may contain metacharacters while being
13308 # careful not to overquote the AC_SUBSTed values. We take copies of the
13309 # variables and quote the copies for generation of the libtool script.
13310 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13311 SED SHELL STRIP \
13312 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13313 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13314 deplibs_check_method reload_flag reload_cmds need_locks \
13315 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13316 lt_cv_sys_global_symbol_to_c_name_address \
13317 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13318 old_postinstall_cmds old_postuninstall_cmds \
13319 compiler_CXX \
13320 CC_CXX \
13321 LD_CXX \
13322 lt_prog_compiler_wl_CXX \
13323 lt_prog_compiler_pic_CXX \
13324 lt_prog_compiler_static_CXX \
13325 lt_prog_compiler_no_builtin_flag_CXX \
13326 export_dynamic_flag_spec_CXX \
13327 thread_safe_flag_spec_CXX \
13328 whole_archive_flag_spec_CXX \
13329 enable_shared_with_static_runtimes_CXX \
13330 old_archive_cmds_CXX \
13331 old_archive_from_new_cmds_CXX \
13332 predep_objects_CXX \
13333 postdep_objects_CXX \
13334 predeps_CXX \
13335 postdeps_CXX \
13336 compiler_lib_search_path_CXX \
13337 archive_cmds_CXX \
13338 archive_expsym_cmds_CXX \
13339 postinstall_cmds_CXX \
13340 postuninstall_cmds_CXX \
13341 old_archive_from_expsyms_cmds_CXX \
13342 allow_undefined_flag_CXX \
13343 no_undefined_flag_CXX \
13344 export_symbols_cmds_CXX \
13345 hardcode_libdir_flag_spec_CXX \
13346 hardcode_libdir_flag_spec_ld_CXX \
13347 hardcode_libdir_separator_CXX \
13348 hardcode_automatic_CXX \
13349 module_cmds_CXX \
13350 module_expsym_cmds_CXX \
13351 lt_cv_prog_compiler_c_o_CXX \
0fde1ce3 13352 fix_srcfile_path_CXX \
d9898ee8 13353 exclude_expsyms_CXX \
13354 include_expsyms_CXX; do
13355
13356 case $var in
13357 old_archive_cmds_CXX | \
13358 old_archive_from_new_cmds_CXX | \
13359 archive_cmds_CXX | \
13360 archive_expsym_cmds_CXX | \
13361 module_cmds_CXX | \
13362 module_expsym_cmds_CXX | \
13363 old_archive_from_expsyms_cmds_CXX | \
13364 export_symbols_cmds_CXX | \
13365 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13366 postinstall_cmds | postuninstall_cmds | \
13367 old_postinstall_cmds | old_postuninstall_cmds | \
13368 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13369 # Double-quote double-evaled strings.
13370 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13371 ;;
13372 *)
13373 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13374 ;;
13375 esac
13376 done
13377
13378 case $lt_echo in
13379 *'\$0 --fallback-echo"')
13380 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13381 ;;
13382 esac
13383
13384cfgfile="$ofile"
13385
13386 cat <<__EOF__ >> "$cfgfile"
13387# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13388
13389# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13390
13391# Shell to use when invoking shell scripts.
13392SHELL=$lt_SHELL
13393
13394# Whether or not to build shared libraries.
13395build_libtool_libs=$enable_shared
13396
13397# Whether or not to build static libraries.
13398build_old_libs=$enable_static
13399
13400# Whether or not to add -lc for building shared libraries.
13401build_libtool_need_lc=$archive_cmds_need_lc_CXX
13402
13403# Whether or not to disallow shared libs when runtime libs are static
13404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13405
13406# Whether or not to optimize for fast installation.
13407fast_install=$enable_fast_install
13408
13409# The host system.
13410host_alias=$host_alias
13411host=$host
13412host_os=$host_os
13413
13414# The build system.
13415build_alias=$build_alias
13416build=$build
13417build_os=$build_os
13418
13419# An echo program that does not interpret backslashes.
13420echo=$lt_echo
13421
13422# The archiver.
13423AR=$lt_AR
13424AR_FLAGS=$lt_AR_FLAGS
13425
13426# A C compiler.
13427LTCC=$lt_LTCC
13428
13429# LTCC compiler flags.
13430LTCFLAGS=$lt_LTCFLAGS
13431
13432# A language-specific compiler.
13433CC=$lt_compiler_CXX
13434
13435# Is the compiler the GNU C compiler?
13436with_gcc=$GCC_CXX
13437
d9898ee8 13438# An ERE matcher.
13439EGREP=$lt_EGREP
13440
13441# The linker used to build libraries.
13442LD=$lt_LD_CXX
13443
13444# Whether we need hard or soft links.
13445LN_S=$lt_LN_S
13446
13447# A BSD-compatible nm program.
13448NM=$lt_NM
13449
13450# A symbol stripping program
13451STRIP=$lt_STRIP
13452
13453# Used to examine libraries when file_magic_cmd begins "file"
13454MAGIC_CMD=$MAGIC_CMD
13455
13456# Used on cygwin: DLL creation program.
13457DLLTOOL="$DLLTOOL"
13458
13459# Used on cygwin: object dumper.
13460OBJDUMP="$OBJDUMP"
13461
13462# Used on cygwin: assembler.
13463AS="$AS"
13464
13465# The name of the directory that contains temporary libtool files.
13466objdir=$objdir
13467
13468# How to create reloadable object files.
13469reload_flag=$lt_reload_flag
13470reload_cmds=$lt_reload_cmds
13471
13472# How to pass a linker flag through the compiler.
13473wl=$lt_lt_prog_compiler_wl_CXX
13474
13475# Object file suffix (normally "o").
13476objext="$ac_objext"
13477
13478# Old archive suffix (normally "a").
13479libext="$libext"
13480
13481# Shared library suffix (normally ".so").
13482shrext_cmds='$shrext_cmds'
13483
13484# Executable file suffix (normally "").
13485exeext="$exeext"
13486
13487# Additional compiler flags for building library objects.
13488pic_flag=$lt_lt_prog_compiler_pic_CXX
13489pic_mode=$pic_mode
13490
13491# What is the maximum length of a command?
13492max_cmd_len=$lt_cv_sys_max_cmd_len
13493
13494# Does compiler simultaneously support -c and -o options?
13495compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13496
13497# Must we lock files when doing compilation?
13498need_locks=$lt_need_locks
13499
13500# Do we need the lib prefix for modules?
13501need_lib_prefix=$need_lib_prefix
13502
13503# Do we need a version for libraries?
13504need_version=$need_version
13505
13506# Whether dlopen is supported.
13507dlopen_support=$enable_dlopen
13508
13509# Whether dlopen of programs is supported.
13510dlopen_self=$enable_dlopen_self
13511
13512# Whether dlopen of statically linked programs is supported.
13513dlopen_self_static=$enable_dlopen_self_static
13514
13515# Compiler flag to prevent dynamic linking.
13516link_static_flag=$lt_lt_prog_compiler_static_CXX
13517
13518# Compiler flag to turn off builtin functions.
13519no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13520
13521# Compiler flag to allow reflexive dlopens.
13522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13523
13524# Compiler flag to generate shared objects directly from archives.
13525whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13526
13527# Compiler flag to generate thread-safe objects.
13528thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13529
13530# Library versioning type.
13531version_type=$version_type
13532
13533# Format of library name prefix.
13534libname_spec=$lt_libname_spec
13535
13536# List of archive names. First name is the real one, the rest are links.
13537# The last name is the one that the linker finds with -lNAME.
13538library_names_spec=$lt_library_names_spec
13539
13540# The coded name of the library, if different from the real name.
13541soname_spec=$lt_soname_spec
13542
13543# Commands used to build and install an old-style archive.
13544RANLIB=$lt_RANLIB
13545old_archive_cmds=$lt_old_archive_cmds_CXX
13546old_postinstall_cmds=$lt_old_postinstall_cmds
13547old_postuninstall_cmds=$lt_old_postuninstall_cmds
13548
13549# Create an old-style archive from a shared archive.
13550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13551
13552# Create a temporary old-style archive to link instead of a shared archive.
13553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13554
13555# Commands used to build and install a shared archive.
13556archive_cmds=$lt_archive_cmds_CXX
13557archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13558postinstall_cmds=$lt_postinstall_cmds
13559postuninstall_cmds=$lt_postuninstall_cmds
13560
13561# Commands used to build a loadable module (assumed same as above if empty)
13562module_cmds=$lt_module_cmds_CXX
13563module_expsym_cmds=$lt_module_expsym_cmds_CXX
13564
13565# Commands to strip libraries.
13566old_striplib=$lt_old_striplib
13567striplib=$lt_striplib
13568
13569# Dependencies to place before the objects being linked to create a
13570# shared library.
64ff59ba 13571predep_objects=$lt_predep_objects_CXX
d9898ee8 13572
13573# Dependencies to place after the objects being linked to create a
13574# shared library.
64ff59ba 13575postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13576
13577# Dependencies to place before the objects being linked to create a
13578# shared library.
13579predeps=$lt_predeps_CXX
13580
13581# Dependencies to place after the objects being linked to create a
13582# shared library.
13583postdeps=$lt_postdeps_CXX
13584
13585# The library search path used internally by the compiler when linking
13586# a shared library.
64ff59ba 13587compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13588
13589# Method to check whether dependent libraries are shared objects.
13590deplibs_check_method=$lt_deplibs_check_method
13591
13592# Command to use when deplibs_check_method == file_magic.
13593file_magic_cmd=$lt_file_magic_cmd
13594
13595# Flag that allows shared libraries with undefined symbols to be built.
13596allow_undefined_flag=$lt_allow_undefined_flag_CXX
13597
13598# Flag that forces no undefined symbols.
13599no_undefined_flag=$lt_no_undefined_flag_CXX
13600
13601# Commands used to finish a libtool library installation in a directory.
13602finish_cmds=$lt_finish_cmds
13603
13604# Same as above, but a single script fragment to be evaled but not shown.
13605finish_eval=$lt_finish_eval
13606
13607# Take the output of nm and produce a listing of raw symbols and C names.
13608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13609
13610# Transform the output of nm in a proper C declaration
13611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13612
13613# Transform the output of nm in a C name address pair
13614global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13615
13616# This is the shared library runtime path variable.
13617runpath_var=$runpath_var
13618
13619# This is the shared library path variable.
13620shlibpath_var=$shlibpath_var
13621
13622# Is shlibpath searched before the hard-coded library search path?
13623shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13624
13625# How to hardcode a shared library path into an executable.
13626hardcode_action=$hardcode_action_CXX
13627
13628# Whether we should hardcode library paths into libraries.
13629hardcode_into_libs=$hardcode_into_libs
13630
13631# Flag to hardcode \$libdir into a binary during linking.
13632# This must work even if \$libdir does not exist.
13633hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13634
13635# If ld is used when linking, flag to hardcode \$libdir into
13636# a binary during linking. This must work even if \$libdir does
13637# not exist.
13638hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13639
13640# Whether we need a single -rpath flag with a separated argument.
13641hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13642
13643# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13644# resulting binary.
13645hardcode_direct=$hardcode_direct_CXX
13646
13647# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13648# resulting binary.
13649hardcode_minus_L=$hardcode_minus_L_CXX
13650
13651# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13652# the resulting binary.
13653hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13654
13655# Set to yes if building a shared library automatically hardcodes DIR into the library
13656# and all subsequent libraries and executables linked against it.
13657hardcode_automatic=$hardcode_automatic_CXX
13658
13659# Variables whose values should be saved in libtool wrapper scripts and
13660# restored at relink time.
13661variables_saved_for_relink="$variables_saved_for_relink"
13662
13663# Whether libtool must link a program against all its dependency libraries.
13664link_all_deplibs=$link_all_deplibs_CXX
13665
13666# Compile-time system search path for libraries
64ff59ba 13667sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13668
13669# Run-time system search path for libraries
13670sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13671
13672# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 13673fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13674
13675# Set to yes if exported symbols are required.
13676always_export_symbols=$always_export_symbols_CXX
13677
13678# The commands to list exported symbols.
13679export_symbols_cmds=$lt_export_symbols_cmds_CXX
13680
13681# The commands to extract the exported symbol list from a shared archive.
13682extract_expsyms_cmds=$lt_extract_expsyms_cmds
13683
13684# Symbols that should not be listed in the preloaded symbols.
13685exclude_expsyms=$lt_exclude_expsyms_CXX
13686
13687# Symbols that must always be exported.
13688include_expsyms=$lt_include_expsyms_CXX
13689
13690# ### END LIBTOOL TAG CONFIG: $tagname
13691
13692__EOF__
13693
13694
13695else
13696 # If there is no Makefile yet, we rely on a make rule to execute
13697 # `config.status --recheck' to rerun these tests and create the
13698 # libtool script then.
13699 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13700 if test -f "$ltmain_in"; then
13701 test -f Makefile && make "$ltmain"
13702 fi
13703fi
13704
13705
13706ac_ext=c
13707ac_cpp='$CPP $CPPFLAGS'
13708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13710ac_compiler_gnu=$ac_cv_c_compiler_gnu
13711
13712CC=$lt_save_CC
13713LDCXX=$LD
13714LD=$lt_save_LD
13715GCC=$lt_save_GCC
13716with_gnu_ldcxx=$with_gnu_ld
13717with_gnu_ld=$lt_save_with_gnu_ld
13718lt_cv_path_LDCXX=$lt_cv_path_LD
13719lt_cv_path_LD=$lt_save_path_LD
13720lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13721lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13722
13723 else
13724 tagname=""
13725 fi
13726 ;;
13727
13728 F77)
13729 if test -n "$F77" && test "X$F77" != "Xno"; then
13730
13731ac_ext=f
13732ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13733ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13734ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13735
13736
13737archive_cmds_need_lc_F77=no
13738allow_undefined_flag_F77=
13739always_export_symbols_F77=no
13740archive_expsym_cmds_F77=
13741export_dynamic_flag_spec_F77=
13742hardcode_direct_F77=no
13743hardcode_libdir_flag_spec_F77=
13744hardcode_libdir_flag_spec_ld_F77=
13745hardcode_libdir_separator_F77=
13746hardcode_minus_L_F77=no
13747hardcode_automatic_F77=no
13748module_cmds_F77=
13749module_expsym_cmds_F77=
13750link_all_deplibs_F77=unknown
13751old_archive_cmds_F77=$old_archive_cmds
13752no_undefined_flag_F77=
13753whole_archive_flag_spec_F77=
13754enable_shared_with_static_runtimes_F77=no
13755
13756# Source file extension for f77 test sources.
13757ac_ext=f
13758
13759# Object file extension for compiled f77 test sources.
13760objext=o
13761objext_F77=$objext
13762
13763# Code to be used in simple compile tests
0fde1ce3 13764lt_simple_compile_test_code="\
13765 subroutine t
13766 return
13767 end
13768"
d9898ee8 13769
13770# Code to be used in simple link tests
0fde1ce3 13771lt_simple_link_test_code="\
13772 program t
13773 end
13774"
d9898ee8 13775
13776# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13777
13778# If no C compiler was specified, use CC.
13779LTCC=${LTCC-"$CC"}
13780
13781# If no C compiler flags were specified, use CFLAGS.
13782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13783
13784# Allow CC to be a program name with arguments.
13785compiler=$CC
13786
13787
13788# save warnings/boilerplate of simple test code
13789ac_outfile=conftest.$ac_objext
0fde1ce3 13790echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 13791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13792_lt_compiler_boilerplate=`cat conftest.err`
13793$rm conftest*
13794
13795ac_outfile=conftest.$ac_objext
0fde1ce3 13796echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 13797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13798_lt_linker_boilerplate=`cat conftest.err`
13799$rm conftest*
13800
13801
13802# Allow CC to be a program name with arguments.
13803lt_save_CC="$CC"
13804CC=${F77-"f77"}
13805compiler=$CC
13806compiler_F77=$CC
13807for cc_temp in $compiler""; do
13808 case $cc_temp in
13809 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13810 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13811 \-*) ;;
13812 *) break;;
13813 esac
13814done
13815cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13816
13817
64ff59ba 13818{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13819echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13820{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13821echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13822
64ff59ba 13823{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13824echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13825test "$can_build_shared" = "no" && enable_shared=no
13826
13827# On AIX, shared libraries and static libraries use the same namespace, and
13828# are all built from PIC.
13829case $host_os in
13830aix3*)
13831 test "$enable_shared" = yes && enable_static=no
13832 if test -n "$RANLIB"; then
13833 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13834 postinstall_cmds='$RANLIB $lib'
13835 fi
13836 ;;
13837aix4* | aix5*)
13838 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13839 test "$enable_shared" = yes && enable_static=no
13840 fi
13841 ;;
13842esac
64ff59ba 13843{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13844echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13845
64ff59ba 13846{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13847echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13848# Make sure either enable_shared or enable_static is yes.
13849test "$enable_shared" = yes || enable_static=yes
64ff59ba 13850{ echo "$as_me:$LINENO: result: $enable_static" >&5
13851echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13852
13853GCC_F77="$G77"
13854LD_F77="$LD"
13855
13856lt_prog_compiler_wl_F77=
13857lt_prog_compiler_pic_F77=
13858lt_prog_compiler_static_F77=
13859
64ff59ba 13860{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13861echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13862
13863 if test "$GCC" = yes; then
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 lt_prog_compiler_static_F77='-static'
13866
13867 case $host_os in
13868 aix*)
13869 # All AIX code is PIC.
13870 if test "$host_cpu" = ia64; then
13871 # AIX 5 now supports IA64 processor
13872 lt_prog_compiler_static_F77='-Bstatic'
13873 fi
13874 ;;
13875
13876 amigaos*)
13877 # FIXME: we need at least 68020 code to build shared libraries, but
13878 # adding the `-m68020' flag to GCC prevents building anything better,
13879 # like `-m68040'.
13880 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13881 ;;
13882
0fde1ce3 13883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 13884 # PIC is the default for these OSes.
13885 ;;
13886
0fde1ce3 13887 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13888 # This hack is so that the source file can tell whether it is being
13889 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 13890 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13891 # (--disable-auto-import) libraries
d9898ee8 13892 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13893 ;;
13894
13895 darwin* | rhapsody*)
13896 # PIC is the default on this platform
13897 # Common symbols not allowed in MH_DYLIB files
13898 lt_prog_compiler_pic_F77='-fno-common'
13899 ;;
13900
0fde1ce3 13901 interix[3-9]*)
d9898ee8 13902 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13903 # Instead, we relocate shared libraries at runtime.
13904 ;;
13905
13906 msdosdjgpp*)
13907 # Just because we use GCC doesn't mean we suddenly get shared libraries
13908 # on systems that don't support them.
13909 lt_prog_compiler_can_build_shared_F77=no
13910 enable_shared=no
13911 ;;
13912
13913 sysv4*MP*)
13914 if test -d /usr/nec; then
13915 lt_prog_compiler_pic_F77=-Kconform_pic
13916 fi
13917 ;;
13918
13919 hpux*)
13920 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13921 # not for PA HP-UX.
13922 case $host_cpu in
13923 hppa*64*|ia64*)
13924 # +Z the default
13925 ;;
13926 *)
13927 lt_prog_compiler_pic_F77='-fPIC'
13928 ;;
13929 esac
13930 ;;
13931
13932 *)
13933 lt_prog_compiler_pic_F77='-fPIC'
13934 ;;
13935 esac
13936 else
13937 # PORTME Check for flag to pass linker flags through the system compiler.
13938 case $host_os in
13939 aix*)
13940 lt_prog_compiler_wl_F77='-Wl,'
13941 if test "$host_cpu" = ia64; then
13942 # AIX 5 now supports IA64 processor
13943 lt_prog_compiler_static_F77='-Bstatic'
13944 else
13945 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13946 fi
13947 ;;
13948 darwin*)
13949 # PIC is the default on this platform
13950 # Common symbols not allowed in MH_DYLIB files
13951 case $cc_basename in
13952 xlc*)
13953 lt_prog_compiler_pic_F77='-qnocommon'
13954 lt_prog_compiler_wl_F77='-Wl,'
13955 ;;
13956 esac
13957 ;;
13958
0fde1ce3 13959 mingw* | cygwin* | pw32* | os2*)
d9898ee8 13960 # This hack is so that the source file can tell whether it is being
13961 # built for inclusion in a dll (and should export symbols for example).
13962 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13963 ;;
13964
13965 hpux9* | hpux10* | hpux11*)
13966 lt_prog_compiler_wl_F77='-Wl,'
13967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13968 # not for PA HP-UX.
13969 case $host_cpu in
13970 hppa*64*|ia64*)
13971 # +Z the default
13972 ;;
13973 *)
13974 lt_prog_compiler_pic_F77='+Z'
13975 ;;
13976 esac
13977 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13978 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13979 ;;
13980
13981 irix5* | irix6* | nonstopux*)
13982 lt_prog_compiler_wl_F77='-Wl,'
13983 # PIC (with -KPIC) is the default.
13984 lt_prog_compiler_static_F77='-non_shared'
13985 ;;
13986
13987 newsos6)
13988 lt_prog_compiler_pic_F77='-KPIC'
13989 lt_prog_compiler_static_F77='-Bstatic'
13990 ;;
13991
0fde1ce3 13992 linux* | k*bsd*-gnu)
d9898ee8 13993 case $cc_basename in
13994 icc* | ecc*)
13995 lt_prog_compiler_wl_F77='-Wl,'
13996 lt_prog_compiler_pic_F77='-KPIC'
13997 lt_prog_compiler_static_F77='-static'
13998 ;;
13999 pgcc* | pgf77* | pgf90* | pgf95*)
14000 # Portland Group compilers (*not* the Pentium gcc compiler,
14001 # which looks to be a dead project)
14002 lt_prog_compiler_wl_F77='-Wl,'
14003 lt_prog_compiler_pic_F77='-fpic'
14004 lt_prog_compiler_static_F77='-Bstatic'
14005 ;;
14006 ccc*)
14007 lt_prog_compiler_wl_F77='-Wl,'
14008 # All Alpha code is PIC.
14009 lt_prog_compiler_static_F77='-non_shared'
14010 ;;
0fde1ce3 14011 *)
14012 case `$CC -V 2>&1 | sed 5q` in
14013 *Sun\ C*)
14014 # Sun C 5.9
14015 lt_prog_compiler_pic_F77='-KPIC'
14016 lt_prog_compiler_static_F77='-Bstatic'
14017 lt_prog_compiler_wl_F77='-Wl,'
14018 ;;
14019 *Sun\ F*)
14020 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14021 lt_prog_compiler_pic_F77='-KPIC'
14022 lt_prog_compiler_static_F77='-Bstatic'
14023 lt_prog_compiler_wl_F77=''
14024 ;;
14025 esac
14026 ;;
d9898ee8 14027 esac
14028 ;;
14029
14030 osf3* | osf4* | osf5*)
14031 lt_prog_compiler_wl_F77='-Wl,'
14032 # All OSF/1 code is PIC.
14033 lt_prog_compiler_static_F77='-non_shared'
14034 ;;
14035
0fde1ce3 14036 rdos*)
14037 lt_prog_compiler_static_F77='-non_shared'
14038 ;;
14039
d9898ee8 14040 solaris*)
14041 lt_prog_compiler_pic_F77='-KPIC'
14042 lt_prog_compiler_static_F77='-Bstatic'
14043 case $cc_basename in
14044 f77* | f90* | f95*)
14045 lt_prog_compiler_wl_F77='-Qoption ld ';;
14046 *)
14047 lt_prog_compiler_wl_F77='-Wl,';;
14048 esac
14049 ;;
14050
14051 sunos4*)
14052 lt_prog_compiler_wl_F77='-Qoption ld '
14053 lt_prog_compiler_pic_F77='-PIC'
14054 lt_prog_compiler_static_F77='-Bstatic'
14055 ;;
14056
14057 sysv4 | sysv4.2uw2* | sysv4.3*)
14058 lt_prog_compiler_wl_F77='-Wl,'
14059 lt_prog_compiler_pic_F77='-KPIC'
14060 lt_prog_compiler_static_F77='-Bstatic'
14061 ;;
14062
14063 sysv4*MP*)
14064 if test -d /usr/nec ;then
14065 lt_prog_compiler_pic_F77='-Kconform_pic'
14066 lt_prog_compiler_static_F77='-Bstatic'
14067 fi
14068 ;;
14069
14070 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14071 lt_prog_compiler_wl_F77='-Wl,'
14072 lt_prog_compiler_pic_F77='-KPIC'
14073 lt_prog_compiler_static_F77='-Bstatic'
14074 ;;
14075
14076 unicos*)
14077 lt_prog_compiler_wl_F77='-Wl,'
14078 lt_prog_compiler_can_build_shared_F77=no
14079 ;;
14080
14081 uts4*)
14082 lt_prog_compiler_pic_F77='-pic'
14083 lt_prog_compiler_static_F77='-Bstatic'
14084 ;;
14085
14086 *)
14087 lt_prog_compiler_can_build_shared_F77=no
14088 ;;
14089 esac
14090 fi
14091
64ff59ba 14092{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14093echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14094
14095#
14096# Check to make sure the PIC flag actually works.
14097#
14098if test -n "$lt_prog_compiler_pic_F77"; then
14099
64ff59ba 14100{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14101echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14102if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104else
14105 lt_prog_compiler_pic_works_F77=no
14106 ac_outfile=conftest.$ac_objext
0fde1ce3 14107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14108 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14109 # Insert the option either (1) after the last *FLAGS variable, or
14110 # (2) before a word containing "conftest.", or (3) at the end.
14111 # Note that $ac_compile itself does not contain backslashes and begins
14112 # with a dollar sign (not a hyphen), so the echo should work correctly.
14113 # The option is referenced via a variable to avoid confusing sed.
14114 lt_compile=`echo "$ac_compile" | $SED \
14115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14117 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14118 (eval echo "\"\$as_me:14118: $lt_compile\"" >&5)
d9898ee8 14119 (eval "$lt_compile" 2>conftest.err)
14120 ac_status=$?
14121 cat conftest.err >&5
0fde1ce3 14122 echo "$as_me:14122: \$? = $ac_status" >&5
d9898ee8 14123 if (exit $ac_status) && test -s "$ac_outfile"; then
14124 # The compiler can only warn and ignore the option if not recognized
14125 # So say no if there are warnings other than the usual output.
14126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14129 lt_prog_compiler_pic_works_F77=yes
14130 fi
14131 fi
14132 $rm conftest*
14133
14134fi
64ff59ba 14135{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14136echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14137
14138if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14139 case $lt_prog_compiler_pic_F77 in
14140 "" | " "*) ;;
14141 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14142 esac
14143else
14144 lt_prog_compiler_pic_F77=
14145 lt_prog_compiler_can_build_shared_F77=no
14146fi
14147
14148fi
14149case $host_os in
14150 # For platforms which do not support PIC, -DPIC is meaningless:
14151 *djgpp*)
14152 lt_prog_compiler_pic_F77=
14153 ;;
14154 *)
14155 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14156 ;;
14157esac
14158
14159#
14160# Check to make sure the static flag actually works.
14161#
14162wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14163{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14164echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14165if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168 lt_prog_compiler_static_works_F77=no
14169 save_LDFLAGS="$LDFLAGS"
14170 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 14171 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14172 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14173 # The linker can only warn and ignore the option if not recognized
14174 # So say no if there are warnings
14175 if test -s conftest.err; then
14176 # Append any errors to the config.log.
14177 cat conftest.err 1>&5
14178 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14179 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14180 if diff conftest.exp conftest.er2 >/dev/null; then
14181 lt_prog_compiler_static_works_F77=yes
14182 fi
14183 else
14184 lt_prog_compiler_static_works_F77=yes
14185 fi
14186 fi
14187 $rm conftest*
14188 LDFLAGS="$save_LDFLAGS"
14189
14190fi
64ff59ba 14191{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14192echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14193
14194if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14195 :
14196else
14197 lt_prog_compiler_static_F77=
14198fi
14199
14200
64ff59ba 14201{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14202echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14203if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205else
14206 lt_cv_prog_compiler_c_o_F77=no
14207 $rm -r conftest 2>/dev/null
14208 mkdir conftest
14209 cd conftest
14210 mkdir out
0fde1ce3 14211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14212
14213 lt_compiler_flag="-o out/conftest2.$ac_objext"
14214 # Insert the option either (1) after the last *FLAGS variable, or
14215 # (2) before a word containing "conftest.", or (3) at the end.
14216 # Note that $ac_compile itself does not contain backslashes and begins
14217 # with a dollar sign (not a hyphen), so the echo should work correctly.
14218 lt_compile=`echo "$ac_compile" | $SED \
14219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14221 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 14222 (eval echo "\"\$as_me:14222: $lt_compile\"" >&5)
d9898ee8 14223 (eval "$lt_compile" 2>out/conftest.err)
14224 ac_status=$?
14225 cat out/conftest.err >&5
0fde1ce3 14226 echo "$as_me:14226: \$? = $ac_status" >&5
d9898ee8 14227 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14228 then
14229 # The compiler can only warn and ignore the option if not recognized
14230 # So say no if there are warnings
14231 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14234 lt_cv_prog_compiler_c_o_F77=yes
14235 fi
14236 fi
14237 chmod u+w . 2>&5
14238 $rm conftest*
14239 # SGI C++ compiler will create directory out/ii_files/ for
14240 # template instantiation
14241 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14242 $rm out/* && rmdir out
14243 cd ..
14244 rmdir conftest
14245 $rm conftest*
14246
14247fi
64ff59ba 14248{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14249echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14250
14251
14252hard_links="nottested"
14253if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14254 # do not overwrite the value of need_locks provided by the user
64ff59ba 14255 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14256echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14257 hard_links=yes
14258 $rm conftest*
14259 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14260 touch conftest.a
14261 ln conftest.a conftest.b 2>&5 || hard_links=no
14262 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14263 { echo "$as_me:$LINENO: result: $hard_links" >&5
14264echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14265 if test "$hard_links" = no; then
14266 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14267echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14268 need_locks=warn
14269 fi
14270else
14271 need_locks=no
14272fi
14273
64ff59ba 14274{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14275echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14276
14277 runpath_var=
14278 allow_undefined_flag_F77=
14279 enable_shared_with_static_runtimes_F77=no
14280 archive_cmds_F77=
14281 archive_expsym_cmds_F77=
14282 old_archive_From_new_cmds_F77=
14283 old_archive_from_expsyms_cmds_F77=
14284 export_dynamic_flag_spec_F77=
14285 whole_archive_flag_spec_F77=
14286 thread_safe_flag_spec_F77=
14287 hardcode_libdir_flag_spec_F77=
14288 hardcode_libdir_flag_spec_ld_F77=
14289 hardcode_libdir_separator_F77=
14290 hardcode_direct_F77=no
14291 hardcode_minus_L_F77=no
14292 hardcode_shlibpath_var_F77=unsupported
14293 link_all_deplibs_F77=unknown
14294 hardcode_automatic_F77=no
14295 module_cmds_F77=
14296 module_expsym_cmds_F77=
14297 always_export_symbols_F77=no
14298 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14299 # include_expsyms should be a list of space-separated symbols to be *always*
14300 # included in the symbol list
14301 include_expsyms_F77=
14302 # exclude_expsyms can be an extended regexp of symbols to exclude
14303 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14304 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14305 # as well as any symbol that contains `d'.
14306 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14308 # platforms (ab)use it in PIC code, but their linkers get confused if
14309 # the symbol is explicitly referenced. Since portable code cannot
14310 # rely on this symbol name, it's probably fine to never include it in
14311 # preloaded symbol tables.
14312 extract_expsyms_cmds=
14313 # Just being paranoid about ensuring that cc_basename is set.
14314 for cc_temp in $compiler""; do
14315 case $cc_temp in
14316 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14317 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14318 \-*) ;;
14319 *) break;;
14320 esac
14321done
14322cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14323
14324 case $host_os in
14325 cygwin* | mingw* | pw32*)
14326 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14327 # When not using gcc, we currently assume that we are using
14328 # Microsoft Visual C++.
14329 if test "$GCC" != yes; then
14330 with_gnu_ld=no
14331 fi
14332 ;;
14333 interix*)
14334 # we just hope/assume this is gcc and not c89 (= MSVC++)
14335 with_gnu_ld=yes
14336 ;;
14337 openbsd*)
14338 with_gnu_ld=no
14339 ;;
14340 esac
14341
14342 ld_shlibs_F77=yes
14343 if test "$with_gnu_ld" = yes; then
14344 # If archive_cmds runs LD, not CC, wlarc should be empty
14345 wlarc='${wl}'
14346
14347 # Set some defaults for GNU ld with shared library support. These
14348 # are reset later if shared libraries are not supported. Putting them
14349 # here allows them to be overridden if necessary.
14350 runpath_var=LD_RUN_PATH
14351 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14352 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14353 # ancient GNU ld didn't support --whole-archive et. al.
14354 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14355 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14356 else
14357 whole_archive_flag_spec_F77=
14358 fi
14359 supports_anon_versioning=no
14360 case `$LD -v 2>/dev/null` in
14361 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14362 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14363 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14364 *\ 2.11.*) ;; # other 2.11 versions
14365 *) supports_anon_versioning=yes ;;
14366 esac
14367
14368 # See if GNU ld supports shared libraries.
14369 case $host_os in
14370 aix3* | aix4* | aix5*)
14371 # On AIX/PPC, the GNU linker is very broken
14372 if test "$host_cpu" != ia64; then
14373 ld_shlibs_F77=no
14374 cat <<EOF 1>&2
14375
14376*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14377*** to be unable to reliably create shared libraries on AIX.
14378*** Therefore, libtool is disabling shared libraries support. If you
14379*** really care for shared libraries, you may want to modify your PATH
14380*** so that a non-GNU linker is found, and then restart.
14381
14382EOF
14383 fi
14384 ;;
14385
14386 amigaos*)
14387 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)'
14388 hardcode_libdir_flag_spec_F77='-L$libdir'
14389 hardcode_minus_L_F77=yes
14390
14391 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14392 # that the semantics of dynamic libraries on AmigaOS, at least up
14393 # to version 4, is to share data among multiple programs linked
14394 # with the same dynamic library. Since this doesn't match the
14395 # behavior of shared libraries on other platforms, we can't use
14396 # them.
14397 ld_shlibs_F77=no
14398 ;;
14399
14400 beos*)
14401 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14402 allow_undefined_flag_F77=unsupported
14403 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14404 # support --undefined. This deserves some investigation. FIXME
14405 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14406 else
14407 ld_shlibs_F77=no
14408 fi
14409 ;;
14410
14411 cygwin* | mingw* | pw32*)
14412 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14413 # as there is no search path for DLLs.
14414 hardcode_libdir_flag_spec_F77='-L$libdir'
14415 allow_undefined_flag_F77=unsupported
14416 always_export_symbols_F77=no
14417 enable_shared_with_static_runtimes_F77=yes
0fde1ce3 14418 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14419
14420 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14421 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14422 # If the export-symbols file already is a .def file (1st line
14423 # is EXPORTS), use it as is; otherwise, prepend...
14424 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14425 cp $export_symbols $output_objdir/$soname.def;
14426 else
14427 echo EXPORTS > $output_objdir/$soname.def;
14428 cat $export_symbols >> $output_objdir/$soname.def;
14429 fi~
14430 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14431 else
14432 ld_shlibs_F77=no
14433 fi
14434 ;;
14435
0fde1ce3 14436 interix[3-9]*)
d9898ee8 14437 hardcode_direct_F77=no
14438 hardcode_shlibpath_var_F77=no
14439 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14440 export_dynamic_flag_spec_F77='${wl}-E'
14441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14442 # Instead, shared libraries are loaded at an image base (0x10000000 by
14443 # default) and relocated if they conflict, which is a slow very memory
14444 # consuming and fragmenting process. To avoid this, we pick a random,
14445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14447 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'
14448 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'
14449 ;;
14450
0fde1ce3 14451 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14453 tmp_addflag=
14454 case $cc_basename,$host_cpu in
14455 pgcc*) # Portland Group C compiler
14456 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'
14457 tmp_addflag=' $pic_flag'
14458 ;;
14459 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14460 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'
14461 tmp_addflag=' $pic_flag -Mnomain' ;;
14462 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14463 tmp_addflag=' -i_dynamic' ;;
14464 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14465 tmp_addflag=' -i_dynamic -nofor_main' ;;
14466 ifc* | ifort*) # Intel Fortran compiler
14467 tmp_addflag=' -nofor_main' ;;
14468 esac
0fde1ce3 14469 case `$CC -V 2>&1 | sed 5q` in
14470 *Sun\ C*) # Sun C 5.9
14471 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14472 tmp_sharedflag='-G' ;;
14473 *Sun\ F*) # Sun Fortran 8.3
14474 tmp_sharedflag='-G' ;;
14475 *)
14476 tmp_sharedflag='-shared' ;;
14477 esac
14478 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14479
14480 if test $supports_anon_versioning = yes; then
14481 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14482 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14483 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 14484 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14485 fi
14486 else
14487 ld_shlibs_F77=no
14488 fi
14489 ;;
14490
14491 netbsd*)
14492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14493 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14494 wlarc=
14495 else
14496 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14497 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14498 fi
14499 ;;
14500
14501 solaris*)
14502 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14503 ld_shlibs_F77=no
14504 cat <<EOF 1>&2
14505
14506*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14507*** create shared libraries on Solaris systems. Therefore, libtool
14508*** is disabling shared libraries support. We urge you to upgrade GNU
14509*** binutils to release 2.9.1 or newer. Another option is to modify
14510*** your PATH or compiler configuration so that the native linker is
14511*** used, and then restart.
14512
14513EOF
14514 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14515 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14516 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14517 else
14518 ld_shlibs_F77=no
14519 fi
14520 ;;
14521
14522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14523 case `$LD -v 2>&1` in
14524 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14525 ld_shlibs_F77=no
14526 cat <<_LT_EOF 1>&2
14527
14528*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14529*** reliably create shared libraries on SCO systems. Therefore, libtool
14530*** is disabling shared libraries support. We urge you to upgrade GNU
14531*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14532*** your PATH or compiler configuration so that the native linker is
14533*** used, and then restart.
14534
14535_LT_EOF
14536 ;;
14537 *)
14538 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14539 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14540 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14541 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14542 else
14543 ld_shlibs_F77=no
14544 fi
14545 ;;
14546 esac
14547 ;;
14548
14549 sunos4*)
14550 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14551 wlarc=
14552 hardcode_direct_F77=yes
14553 hardcode_shlibpath_var_F77=no
14554 ;;
14555
14556 *)
14557 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14558 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14559 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14560 else
14561 ld_shlibs_F77=no
14562 fi
14563 ;;
14564 esac
14565
14566 if test "$ld_shlibs_F77" = no; then
14567 runpath_var=
14568 hardcode_libdir_flag_spec_F77=
14569 export_dynamic_flag_spec_F77=
14570 whole_archive_flag_spec_F77=
14571 fi
14572 else
14573 # PORTME fill in a description of your system's linker (not GNU ld)
14574 case $host_os in
14575 aix3*)
14576 allow_undefined_flag_F77=unsupported
14577 always_export_symbols_F77=yes
14578 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'
14579 # Note: this linker hardcodes the directories in LIBPATH if there
14580 # are no directories specified by -L.
14581 hardcode_minus_L_F77=yes
14582 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14583 # Neither direct hardcoding nor static linking is supported with a
14584 # broken collect2.
14585 hardcode_direct_F77=unsupported
14586 fi
14587 ;;
14588
14589 aix4* | aix5*)
14590 if test "$host_cpu" = ia64; then
14591 # On IA64, the linker does run time linking by default, so we don't
14592 # have to do anything special.
14593 aix_use_runtimelinking=no
14594 exp_sym_flag='-Bexport'
14595 no_entry_flag=""
14596 else
14597 # If we're using GNU nm, then we don't want the "-C" option.
14598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14600 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'
14601 else
14602 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'
14603 fi
14604 aix_use_runtimelinking=no
14605
14606 # Test if we are trying to use run time linking or normal
14607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14608 # need to do runtime linking.
14609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14610 for ld_flag in $LDFLAGS; do
14611 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14612 aix_use_runtimelinking=yes
14613 break
14614 fi
14615 done
14616 ;;
14617 esac
14618
14619 exp_sym_flag='-bexport'
14620 no_entry_flag='-bnoentry'
14621 fi
14622
14623 # When large executables or shared objects are built, AIX ld can
14624 # have problems creating the table of contents. If linking a library
14625 # or program results in "error TOC overflow" add -mminimal-toc to
14626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14628
14629 archive_cmds_F77=''
14630 hardcode_direct_F77=yes
14631 hardcode_libdir_separator_F77=':'
14632 link_all_deplibs_F77=yes
14633
14634 if test "$GCC" = yes; then
14635 case $host_os in aix4.[012]|aix4.[012].*)
14636 # We only want to do this on AIX 4.2 and lower, the check
14637 # below for broken collect2 doesn't work under 4.3+
14638 collect2name=`${CC} -print-prog-name=collect2`
14639 if test -f "$collect2name" && \
14640 strings "$collect2name" | grep resolve_lib_name >/dev/null
14641 then
14642 # We have reworked collect2
0fde1ce3 14643 :
d9898ee8 14644 else
14645 # We have old collect2
14646 hardcode_direct_F77=unsupported
14647 # It fails to find uninstalled libraries when the uninstalled
14648 # path is not listed in the libpath. Setting hardcode_minus_L
14649 # to unsupported forces relinking
14650 hardcode_minus_L_F77=yes
14651 hardcode_libdir_flag_spec_F77='-L$libdir'
14652 hardcode_libdir_separator_F77=
14653 fi
14654 ;;
14655 esac
14656 shared_flag='-shared'
14657 if test "$aix_use_runtimelinking" = yes; then
14658 shared_flag="$shared_flag "'${wl}-G'
14659 fi
14660 else
14661 # not using gcc
14662 if test "$host_cpu" = ia64; then
14663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14664 # chokes on -Wl,-G. The following line is correct:
14665 shared_flag='-G'
14666 else
14667 if test "$aix_use_runtimelinking" = yes; then
14668 shared_flag='${wl}-G'
14669 else
14670 shared_flag='${wl}-bM:SRE'
14671 fi
14672 fi
14673 fi
14674
14675 # It seems that -bexpall does not export symbols beginning with
14676 # underscore (_), so it is better to generate a list of symbols to export.
14677 always_export_symbols_F77=yes
14678 if test "$aix_use_runtimelinking" = yes; then
14679 # Warning - without using the other runtime loading flags (-brtl),
14680 # -berok will link without error, but may produce a broken library.
14681 allow_undefined_flag_F77='-berok'
14682 # Determine the default libpath from the value encoded in an empty executable.
14683 cat >conftest.$ac_ext <<_ACEOF
14684 program main
14685
14686 end
14687_ACEOF
14688rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14689if { (ac_try="$ac_link"
14690case "(($ac_try" in
14691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692 *) ac_try_echo=$ac_try;;
14693esac
14694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695 (eval "$ac_link") 2>conftest.er1
d9898ee8 14696 ac_status=$?
14697 grep -v '^ *+' conftest.er1 >conftest.err
14698 rm -f conftest.er1
14699 cat conftest.err >&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14701 (exit $ac_status); } && {
14702 test -z "$ac_f77_werror_flag" ||
14703 test ! -s conftest.err
14704 } && test -s conftest$ac_exeext &&
14705 $as_test_x conftest$ac_exeext; then
d9898ee8 14706
0fde1ce3 14707lt_aix_libpath_sed='
14708 /Import File Strings/,/^$/ {
14709 /^0/ {
14710 s/^0 *\(.*\)$/\1/
14711 p
14712 }
14713 }'
14714aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14715# Check for a 64-bit object if we didn't find anything.
0fde1ce3 14716if test -z "$aix_libpath"; then
14717 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14718fi
d9898ee8 14719else
14720 echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
64ff59ba 14723
d9898ee8 14724fi
64ff59ba 14725
14726rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14727 conftest$ac_exeext conftest.$ac_ext
14728if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14729
14730 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14731 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"
14732 else
14733 if test "$host_cpu" = ia64; then
14734 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14735 allow_undefined_flag_F77="-z nodefs"
14736 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"
14737 else
14738 # Determine the default libpath from the value encoded in an empty executable.
14739 cat >conftest.$ac_ext <<_ACEOF
14740 program main
14741
14742 end
14743_ACEOF
14744rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14745if { (ac_try="$ac_link"
14746case "(($ac_try" in
14747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14749esac
14750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_link") 2>conftest.er1
d9898ee8 14752 ac_status=$?
14753 grep -v '^ *+' conftest.er1 >conftest.err
14754 rm -f conftest.er1
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14757 (exit $ac_status); } && {
14758 test -z "$ac_f77_werror_flag" ||
14759 test ! -s conftest.err
14760 } && test -s conftest$ac_exeext &&
14761 $as_test_x conftest$ac_exeext; then
d9898ee8 14762
0fde1ce3 14763lt_aix_libpath_sed='
14764 /Import File Strings/,/^$/ {
14765 /^0/ {
14766 s/^0 *\(.*\)$/\1/
14767 p
14768 }
14769 }'
14770aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14771# Check for a 64-bit object if we didn't find anything.
0fde1ce3 14772if test -z "$aix_libpath"; then
14773 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14774fi
d9898ee8 14775else
14776 echo "$as_me: failed program was:" >&5
14777sed 's/^/| /' conftest.$ac_ext >&5
14778
64ff59ba 14779
d9898ee8 14780fi
64ff59ba 14781
14782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14783 conftest$ac_exeext conftest.$ac_ext
14784if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14785
14786 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14787 # Warning - without using the other run time loading flags,
14788 # -berok will link without error, but may produce a broken library.
14789 no_undefined_flag_F77=' ${wl}-bernotok'
14790 allow_undefined_flag_F77=' ${wl}-berok'
14791 # Exported symbols can be pulled into shared objects from archives
14792 whole_archive_flag_spec_F77='$convenience'
14793 archive_cmds_need_lc_F77=yes
14794 # This is similar to how AIX traditionally builds its shared libraries.
14795 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'
14796 fi
14797 fi
14798 ;;
14799
14800 amigaos*)
14801 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)'
14802 hardcode_libdir_flag_spec_F77='-L$libdir'
14803 hardcode_minus_L_F77=yes
14804 # see comment about different semantics on the GNU ld section
14805 ld_shlibs_F77=no
14806 ;;
14807
14808 bsdi[45]*)
14809 export_dynamic_flag_spec_F77=-rdynamic
14810 ;;
14811
14812 cygwin* | mingw* | pw32*)
14813 # When not using gcc, we currently assume that we are using
14814 # Microsoft Visual C++.
14815 # hardcode_libdir_flag_spec is actually meaningless, as there is
14816 # no search path for DLLs.
14817 hardcode_libdir_flag_spec_F77=' '
14818 allow_undefined_flag_F77=unsupported
14819 # Tell ltmain to make .lib files, not .a files.
14820 libext=lib
14821 # Tell ltmain to make .dll files, not .so files.
14822 shrext_cmds=".dll"
14823 # FIXME: Setting linknames here is a bad hack.
14824 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14825 # The linker will automatically build a .lib file if we build a DLL.
14826 old_archive_From_new_cmds_F77='true'
14827 # FIXME: Should let the user specify the lib program.
0fde1ce3 14828 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 14829 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14830 enable_shared_with_static_runtimes_F77=yes
14831 ;;
14832
14833 darwin* | rhapsody*)
14834 case $host_os in
14835 rhapsody* | darwin1.[012])
14836 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14837 ;;
14838 *) # Darwin 1.3 on
14839 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14840 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14841 else
14842 case ${MACOSX_DEPLOYMENT_TARGET} in
14843 10.[012])
14844 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14845 ;;
14846 10.*)
14847 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14848 ;;
14849 esac
14850 fi
14851 ;;
14852 esac
14853 archive_cmds_need_lc_F77=no
14854 hardcode_direct_F77=no
14855 hardcode_automatic_F77=yes
14856 hardcode_shlibpath_var_F77=unsupported
14857 whole_archive_flag_spec_F77=''
14858 link_all_deplibs_F77=yes
14859 if test "$GCC" = yes ; then
14860 output_verbose_link_cmd='echo'
14861 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14862 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14863 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14864 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}'
14865 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}'
14866 else
14867 case $cc_basename in
14868 xlc*)
14869 output_verbose_link_cmd='echo'
0fde1ce3 14870 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 14871 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14872 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 14873 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 14874 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}'
14875 ;;
14876 *)
14877 ld_shlibs_F77=no
14878 ;;
14879 esac
14880 fi
14881 ;;
14882
14883 dgux*)
14884 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14885 hardcode_libdir_flag_spec_F77='-L$libdir'
14886 hardcode_shlibpath_var_F77=no
14887 ;;
14888
14889 freebsd1*)
14890 ld_shlibs_F77=no
14891 ;;
14892
14893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14894 # support. Future versions do this automatically, but an explicit c++rt0.o
14895 # does not break anything, and helps significantly (at the cost of a little
14896 # extra space).
14897 freebsd2.2*)
14898 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14899 hardcode_libdir_flag_spec_F77='-R$libdir'
14900 hardcode_direct_F77=yes
14901 hardcode_shlibpath_var_F77=no
14902 ;;
14903
14904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14905 freebsd2*)
14906 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14907 hardcode_direct_F77=yes
14908 hardcode_minus_L_F77=yes
14909 hardcode_shlibpath_var_F77=no
14910 ;;
14911
14912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 14913 freebsd* | dragonfly*)
d9898ee8 14914 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14915 hardcode_libdir_flag_spec_F77='-R$libdir'
14916 hardcode_direct_F77=yes
14917 hardcode_shlibpath_var_F77=no
14918 ;;
14919
14920 hpux9*)
14921 if test "$GCC" = yes; then
14922 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'
14923 else
14924 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'
14925 fi
14926 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14927 hardcode_libdir_separator_F77=:
14928 hardcode_direct_F77=yes
14929
14930 # hardcode_minus_L: Not really in the search PATH,
14931 # but as the default location of the library.
14932 hardcode_minus_L_F77=yes
14933 export_dynamic_flag_spec_F77='${wl}-E'
14934 ;;
14935
14936 hpux10*)
14937 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14938 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14939 else
14940 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14941 fi
14942 if test "$with_gnu_ld" = no; then
14943 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14944 hardcode_libdir_separator_F77=:
14945
14946 hardcode_direct_F77=yes
14947 export_dynamic_flag_spec_F77='${wl}-E'
14948
14949 # hardcode_minus_L: Not really in the search PATH,
14950 # but as the default location of the library.
14951 hardcode_minus_L_F77=yes
14952 fi
14953 ;;
14954
14955 hpux11*)
14956 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14957 case $host_cpu in
14958 hppa*64*)
14959 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 ;;
14961 ia64*)
14962 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14963 ;;
14964 *)
14965 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14966 ;;
14967 esac
14968 else
14969 case $host_cpu in
14970 hppa*64*)
14971 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14972 ;;
14973 ia64*)
14974 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14975 ;;
14976 *)
14977 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14978 ;;
14979 esac
14980 fi
14981 if test "$with_gnu_ld" = no; then
14982 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14983 hardcode_libdir_separator_F77=:
14984
14985 case $host_cpu in
14986 hppa*64*|ia64*)
14987 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14988 hardcode_direct_F77=no
14989 hardcode_shlibpath_var_F77=no
14990 ;;
14991 *)
14992 hardcode_direct_F77=yes
14993 export_dynamic_flag_spec_F77='${wl}-E'
14994
14995 # hardcode_minus_L: Not really in the search PATH,
14996 # but as the default location of the library.
14997 hardcode_minus_L_F77=yes
14998 ;;
14999 esac
15000 fi
15001 ;;
15002
15003 irix5* | irix6* | nonstopux*)
15004 if test "$GCC" = yes; then
15005 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'
15006 else
15007 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'
15008 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15009 fi
15010 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15011 hardcode_libdir_separator_F77=:
15012 link_all_deplibs_F77=yes
15013 ;;
15014
15015 netbsd*)
15016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15017 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15018 else
15019 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15020 fi
15021 hardcode_libdir_flag_spec_F77='-R$libdir'
15022 hardcode_direct_F77=yes
15023 hardcode_shlibpath_var_F77=no
15024 ;;
15025
15026 newsos6)
15027 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15028 hardcode_direct_F77=yes
15029 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15030 hardcode_libdir_separator_F77=:
15031 hardcode_shlibpath_var_F77=no
15032 ;;
15033
15034 openbsd*)
0fde1ce3 15035 if test -f /usr/libexec/ld.so; then
15036 hardcode_direct_F77=yes
15037 hardcode_shlibpath_var_F77=no
15038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15039 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15040 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15041 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15042 export_dynamic_flag_spec_F77='${wl}-E'
15043 else
15044 case $host_os in
15045 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15046 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15047 hardcode_libdir_flag_spec_F77='-R$libdir'
15048 ;;
15049 *)
15050 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15051 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15052 ;;
15053 esac
15054 fi
d9898ee8 15055 else
0fde1ce3 15056 ld_shlibs_F77=no
d9898ee8 15057 fi
15058 ;;
15059
15060 os2*)
15061 hardcode_libdir_flag_spec_F77='-L$libdir'
15062 hardcode_minus_L_F77=yes
15063 allow_undefined_flag_F77=unsupported
15064 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'
15065 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15066 ;;
15067
15068 osf3*)
15069 if test "$GCC" = yes; then
15070 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15071 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'
15072 else
15073 allow_undefined_flag_F77=' -expect_unresolved \*'
15074 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'
15075 fi
15076 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15077 hardcode_libdir_separator_F77=:
15078 ;;
15079
15080 osf4* | osf5*) # as osf3* with the addition of -msym flag
15081 if test "$GCC" = yes; then
15082 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15083 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'
15084 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15085 else
15086 allow_undefined_flag_F77=' -expect_unresolved \*'
15087 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'
15088 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~
15089 $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'
15090
15091 # Both c and cxx compiler support -rpath directly
15092 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15093 fi
15094 hardcode_libdir_separator_F77=:
15095 ;;
15096
15097 solaris*)
15098 no_undefined_flag_F77=' -z text'
15099 if test "$GCC" = yes; then
15100 wlarc='${wl}'
15101 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15102 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15103 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15104 else
15105 wlarc=''
15106 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15107 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15108 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15109 fi
15110 hardcode_libdir_flag_spec_F77='-R$libdir'
15111 hardcode_shlibpath_var_F77=no
15112 case $host_os in
15113 solaris2.[0-5] | solaris2.[0-5].*) ;;
15114 *)
0fde1ce3 15115 # The compiler driver will combine and reorder linker options,
15116 # but understands `-z linker_flag'. GCC discards it without `$wl',
15117 # but is careful enough not to reorder.
d9898ee8 15118 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 15119 if test "$GCC" = yes; then
15120 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15121 else
15122 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15123 fi
15124 ;;
d9898ee8 15125 esac
15126 link_all_deplibs_F77=yes
15127 ;;
15128
15129 sunos4*)
15130 if test "x$host_vendor" = xsequent; then
15131 # Use $CC to link under sequent, because it throws in some extra .o
15132 # files that make .init and .fini sections work.
15133 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15134 else
15135 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15136 fi
15137 hardcode_libdir_flag_spec_F77='-L$libdir'
15138 hardcode_direct_F77=yes
15139 hardcode_minus_L_F77=yes
15140 hardcode_shlibpath_var_F77=no
15141 ;;
15142
15143 sysv4)
15144 case $host_vendor in
15145 sni)
15146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15147 hardcode_direct_F77=yes # is this really true???
15148 ;;
15149 siemens)
15150 ## LD is ld it makes a PLAMLIB
15151 ## CC just makes a GrossModule.
15152 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15153 reload_cmds_F77='$CC -r -o $output$reload_objs'
15154 hardcode_direct_F77=no
15155 ;;
15156 motorola)
15157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15158 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15159 ;;
15160 esac
15161 runpath_var='LD_RUN_PATH'
15162 hardcode_shlibpath_var_F77=no
15163 ;;
15164
15165 sysv4.3*)
15166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15167 hardcode_shlibpath_var_F77=no
15168 export_dynamic_flag_spec_F77='-Bexport'
15169 ;;
15170
15171 sysv4*MP*)
15172 if test -d /usr/nec; then
15173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15174 hardcode_shlibpath_var_F77=no
15175 runpath_var=LD_RUN_PATH
15176 hardcode_runpath_var=yes
15177 ld_shlibs_F77=yes
15178 fi
15179 ;;
15180
0fde1ce3 15181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15182 no_undefined_flag_F77='${wl}-z,text'
15183 archive_cmds_need_lc_F77=no
15184 hardcode_shlibpath_var_F77=no
15185 runpath_var='LD_RUN_PATH'
15186
15187 if test "$GCC" = yes; then
15188 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15189 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15190 else
15191 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 fi
15194 ;;
15195
15196 sysv5* | sco3.2v5* | sco5v6*)
15197 # Note: We can NOT use -z defs as we might desire, because we do not
15198 # link with -lc, and that would cause any symbols used from libc to
15199 # always be unresolved, which means just about no library would
15200 # ever link correctly. If we're not using GNU ld we use -z text
15201 # though, which does catch some bad symbols but isn't as heavy-handed
15202 # as -z defs.
15203 no_undefined_flag_F77='${wl}-z,text'
15204 allow_undefined_flag_F77='${wl}-z,nodefs'
15205 archive_cmds_need_lc_F77=no
15206 hardcode_shlibpath_var_F77=no
15207 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15208 hardcode_libdir_separator_F77=':'
15209 link_all_deplibs_F77=yes
15210 export_dynamic_flag_spec_F77='${wl}-Bexport'
15211 runpath_var='LD_RUN_PATH'
15212
15213 if test "$GCC" = yes; then
15214 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15215 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15216 else
15217 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15218 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15219 fi
15220 ;;
15221
15222 uts4*)
15223 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15224 hardcode_libdir_flag_spec_F77='-L$libdir'
15225 hardcode_shlibpath_var_F77=no
15226 ;;
15227
15228 *)
15229 ld_shlibs_F77=no
15230 ;;
15231 esac
15232 fi
15233
64ff59ba 15234{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15235echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15236test "$ld_shlibs_F77" = no && can_build_shared=no
15237
15238#
15239# Do we need to explicitly link libc?
15240#
15241case "x$archive_cmds_need_lc_F77" in
15242x|xyes)
15243 # Assume -lc should be added
15244 archive_cmds_need_lc_F77=yes
15245
15246 if test "$enable_shared" = yes && test "$GCC" = yes; then
15247 case $archive_cmds_F77 in
15248 *'~'*)
15249 # FIXME: we may have to deal with multi-command sequences.
15250 ;;
15251 '$CC '*)
15252 # Test whether the compiler implicitly links with -lc since on some
15253 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15254 # to ld, don't add -lc before -lgcc.
64ff59ba 15255 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15256echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15257 $rm conftest*
0fde1ce3 15258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15259
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>&5
15262 ac_status=$?
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } 2>conftest.err; then
15265 soname=conftest
15266 lib=conftest
15267 libobjs=conftest.$ac_objext
15268 deplibs=
15269 wl=$lt_prog_compiler_wl_F77
15270 pic_flag=$lt_prog_compiler_pic_F77
15271 compiler_flags=-v
15272 linker_flags=-v
15273 verstring=
15274 output_objdir=.
15275 libname=conftest
15276 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15277 allow_undefined_flag_F77=
15278 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15279 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15280 ac_status=$?
15281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); }
15283 then
15284 archive_cmds_need_lc_F77=no
15285 else
15286 archive_cmds_need_lc_F77=yes
15287 fi
15288 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15289 else
15290 cat conftest.err 1>&5
15291 fi
15292 $rm conftest*
64ff59ba 15293 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15294echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15295 ;;
15296 esac
15297 fi
15298 ;;
15299esac
15300
64ff59ba 15301{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15302echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15303library_names_spec=
15304libname_spec='lib$name'
15305soname_spec=
15306shrext_cmds=".so"
15307postinstall_cmds=
15308postuninstall_cmds=
15309finish_cmds=
15310finish_eval=
15311shlibpath_var=
15312shlibpath_overrides_runpath=unknown
15313version_type=none
15314dynamic_linker="$host_os ld.so"
15315sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 15316
d9898ee8 15317need_lib_prefix=unknown
15318hardcode_into_libs=no
15319
15320# when you set need_version to no, make sure it does not cause -set_version
15321# flags to be left without arguments
15322need_version=unknown
15323
15324case $host_os in
15325aix3*)
15326 version_type=linux
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15328 shlibpath_var=LIBPATH
15329
15330 # AIX 3 has no versioning support, so we append a major version to the name.
15331 soname_spec='${libname}${release}${shared_ext}$major'
15332 ;;
15333
15334aix4* | aix5*)
15335 version_type=linux
15336 need_lib_prefix=no
15337 need_version=no
15338 hardcode_into_libs=yes
15339 if test "$host_cpu" = ia64; then
15340 # AIX 5 supports IA64
15341 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15342 shlibpath_var=LD_LIBRARY_PATH
15343 else
15344 # With GCC up to 2.95.x, collect2 would create an import file
15345 # for dependence libraries. The import file would start with
15346 # the line `#! .'. This would cause the generated library to
15347 # depend on `.', always an invalid library. This was fixed in
15348 # development snapshots of GCC prior to 3.0.
15349 case $host_os in
15350 aix4 | aix4.[01] | aix4.[01].*)
15351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15352 echo ' yes '
15353 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15354 :
15355 else
15356 can_build_shared=no
15357 fi
15358 ;;
15359 esac
15360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15361 # soname into executable. Probably we can add versioning support to
15362 # collect2, so additional links can be useful in future.
15363 if test "$aix_use_runtimelinking" = yes; then
15364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15365 # instead of lib<name>.a to let people know that these are not
15366 # typical AIX shared libraries.
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 else
15369 # We preserve .a as extension for shared libraries through AIX4.2
15370 # and later when we are not doing run time linking.
15371 library_names_spec='${libname}${release}.a $libname.a'
15372 soname_spec='${libname}${release}${shared_ext}$major'
15373 fi
15374 shlibpath_var=LIBPATH
15375 fi
15376 ;;
15377
15378amigaos*)
15379 library_names_spec='$libname.ixlibrary $libname.a'
15380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15381 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'
15382 ;;
15383
15384beos*)
15385 library_names_spec='${libname}${shared_ext}'
15386 dynamic_linker="$host_os ld.so"
15387 shlibpath_var=LIBRARY_PATH
15388 ;;
15389
15390bsdi[45]*)
15391 version_type=linux
15392 need_version=no
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15398 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15399 # the default ld.so.conf also contains /usr/contrib/lib and
15400 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15401 # libtool to hard-code these into programs
15402 ;;
15403
15404cygwin* | mingw* | pw32*)
15405 version_type=windows
15406 shrext_cmds=".dll"
15407 need_version=no
15408 need_lib_prefix=no
15409
15410 case $GCC,$host_os in
15411 yes,cygwin* | yes,mingw* | yes,pw32*)
15412 library_names_spec='$libname.dll.a'
15413 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15414 postinstall_cmds='base_file=`basename \${file}`~
15415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15416 dldir=$destdir/`dirname \$dlpath`~
15417 test -d \$dldir || mkdir -p \$dldir~
15418 $install_prog $dir/$dlname \$dldir/$dlname~
15419 chmod a+x \$dldir/$dlname'
15420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15421 dlpath=$dir/\$dldll~
15422 $rm \$dlpath'
15423 shlibpath_overrides_runpath=yes
15424
15425 case $host_os in
15426 cygwin*)
15427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15430 ;;
15431 mingw*)
15432 # MinGW DLLs use traditional 'lib' prefix
15433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15434 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15435 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15436 # It is most probably a Windows format PATH printed by
15437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15438 # path with ; separators, and with drive letters. We can handle the
15439 # drive letters (cygwin fileutils understands them), so leave them,
15440 # especially as we might pass files found there to a mingw objdump,
15441 # which wouldn't understand a cygwinified path. Ahh.
15442 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15443 else
15444 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15445 fi
15446 ;;
15447 pw32*)
15448 # pw32 DLLs use 'pw' prefix rather than 'lib'
15449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15450 ;;
15451 esac
15452 ;;
15453
15454 *)
15455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15456 ;;
15457 esac
15458 dynamic_linker='Win32 ld.exe'
15459 # FIXME: first we should search . and the directory the executable is in
15460 shlibpath_var=PATH
15461 ;;
15462
15463darwin* | rhapsody*)
15464 dynamic_linker="$host_os dyld"
15465 version_type=darwin
15466 need_lib_prefix=no
15467 need_version=no
15468 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15469 soname_spec='${libname}${release}${major}$shared_ext'
15470 shlibpath_overrides_runpath=yes
15471 shlibpath_var=DYLD_LIBRARY_PATH
15472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 15473
d9898ee8 15474 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15475 ;;
15476
15477dgux*)
15478 version_type=linux
15479 need_lib_prefix=no
15480 need_version=no
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 shlibpath_var=LD_LIBRARY_PATH
15484 ;;
15485
15486freebsd1*)
15487 dynamic_linker=no
15488 ;;
15489
d9898ee8 15490freebsd* | dragonfly*)
15491 # DragonFly does not have aout. When/if they implement a new
15492 # versioning mechanism, adjust this.
15493 if test -x /usr/bin/objformat; then
15494 objformat=`/usr/bin/objformat`
15495 else
15496 case $host_os in
15497 freebsd[123]*) objformat=aout ;;
15498 *) objformat=elf ;;
15499 esac
15500 fi
15501 version_type=freebsd-$objformat
15502 case $version_type in
15503 freebsd-elf*)
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15505 need_version=no
15506 need_lib_prefix=no
15507 ;;
15508 freebsd-*)
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15510 need_version=yes
15511 ;;
15512 esac
15513 shlibpath_var=LD_LIBRARY_PATH
15514 case $host_os in
15515 freebsd2*)
15516 shlibpath_overrides_runpath=yes
15517 ;;
15518 freebsd3.[01]* | freebsdelf3.[01]*)
15519 shlibpath_overrides_runpath=yes
15520 hardcode_into_libs=yes
15521 ;;
15522 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15523 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15524 shlibpath_overrides_runpath=no
15525 hardcode_into_libs=yes
15526 ;;
0fde1ce3 15527 *) # from 4.6 on, and DragonFly
d9898ee8 15528 shlibpath_overrides_runpath=yes
15529 hardcode_into_libs=yes
15530 ;;
15531 esac
15532 ;;
15533
15534gnu*)
15535 version_type=linux
15536 need_lib_prefix=no
15537 need_version=no
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 hardcode_into_libs=yes
15542 ;;
15543
15544hpux9* | hpux10* | hpux11*)
15545 # Give a soname corresponding to the major version so that dld.sl refuses to
15546 # link against other versions.
15547 version_type=sunos
15548 need_lib_prefix=no
15549 need_version=no
15550 case $host_cpu in
15551 ia64*)
15552 shrext_cmds='.so'
15553 hardcode_into_libs=yes
15554 dynamic_linker="$host_os dld.so"
15555 shlibpath_var=LD_LIBRARY_PATH
15556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 if test "X$HPUX_IA64_MODE" = X32; then
15560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15561 else
15562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15563 fi
15564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15565 ;;
15566 hppa*64*)
15567 shrext_cmds='.sl'
15568 hardcode_into_libs=yes
15569 dynamic_linker="$host_os dld.sl"
15570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15573 soname_spec='${libname}${release}${shared_ext}$major'
15574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15576 ;;
15577 *)
15578 shrext_cmds='.sl'
15579 dynamic_linker="$host_os dld.sl"
15580 shlibpath_var=SHLIB_PATH
15581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15583 soname_spec='${libname}${release}${shared_ext}$major'
15584 ;;
15585 esac
15586 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15587 postinstall_cmds='chmod 555 $lib'
15588 ;;
15589
0fde1ce3 15590interix[3-9]*)
d9898ee8 15591 version_type=linux
15592 need_lib_prefix=no
15593 need_version=no
15594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15597 shlibpath_var=LD_LIBRARY_PATH
15598 shlibpath_overrides_runpath=no
15599 hardcode_into_libs=yes
15600 ;;
15601
15602irix5* | irix6* | nonstopux*)
15603 case $host_os in
15604 nonstopux*) version_type=nonstopux ;;
15605 *)
15606 if test "$lt_cv_prog_gnu_ld" = yes; then
15607 version_type=linux
15608 else
15609 version_type=irix
15610 fi ;;
15611 esac
15612 need_lib_prefix=no
15613 need_version=no
15614 soname_spec='${libname}${release}${shared_ext}$major'
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15616 case $host_os in
15617 irix5* | nonstopux*)
15618 libsuff= shlibsuff=
15619 ;;
15620 *)
15621 case $LD in # libtool.m4 will add one of these switches to LD
15622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15623 libsuff= shlibsuff= libmagic=32-bit;;
15624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15625 libsuff=32 shlibsuff=N32 libmagic=N32;;
15626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15628 *) libsuff= shlibsuff= libmagic=never-match;;
15629 esac
15630 ;;
15631 esac
15632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15633 shlibpath_overrides_runpath=no
15634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15636 hardcode_into_libs=yes
15637 ;;
15638
15639# No shared lib support for Linux oldld, aout, or coff.
15640linux*oldld* | linux*aout* | linux*coff*)
15641 dynamic_linker=no
15642 ;;
15643
15644# This must be Linux ELF.
0fde1ce3 15645linux* | k*bsd*-gnu)
d9898ee8 15646 version_type=linux
15647 need_lib_prefix=no
15648 need_version=no
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650 soname_spec='${libname}${release}${shared_ext}$major'
15651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 shlibpath_overrides_runpath=no
15654 # This implies no fast_install, which is unacceptable.
15655 # Some rework will be needed to allow for fast_install
15656 # before this can be enabled.
15657 hardcode_into_libs=yes
0fde1ce3 15658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15660
15661 # Append ld.so.conf contents to the search path
15662 if test -f /etc/ld.so.conf; then
0fde1ce3 15663 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15664 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15665 fi
15666
15667 # We used to test for /lib/ld.so.1 and disable shared libraries on
15668 # powerpc, because MkLinux only supported shared libraries with the
15669 # GNU dynamic linker. Since this was broken with cross compilers,
15670 # most powerpc-linux boxes support dynamic linking these days and
15671 # people can always --disable-shared, the test was removed, and we
15672 # assume the GNU/Linux dynamic linker is in use.
15673 dynamic_linker='GNU/Linux ld.so'
15674 ;;
15675
d9898ee8 15676netbsd*)
15677 version_type=sunos
15678 need_lib_prefix=no
15679 need_version=no
15680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15683 dynamic_linker='NetBSD (a.out) ld.so'
15684 else
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15686 soname_spec='${libname}${release}${shared_ext}$major'
15687 dynamic_linker='NetBSD ld.elf_so'
15688 fi
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes
15691 hardcode_into_libs=yes
15692 ;;
15693
15694newsos6)
15695 version_type=linux
15696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697 shlibpath_var=LD_LIBRARY_PATH
15698 shlibpath_overrides_runpath=yes
15699 ;;
15700
15701nto-qnx*)
15702 version_type=linux
15703 need_lib_prefix=no
15704 need_version=no
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15706 soname_spec='${libname}${release}${shared_ext}$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15709 ;;
15710
15711openbsd*)
15712 version_type=sunos
15713 sys_lib_dlsearch_path_spec="/usr/lib"
15714 need_lib_prefix=no
15715 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15716 case $host_os in
15717 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15718 *) need_version=no ;;
15719 esac
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15722 shlibpath_var=LD_LIBRARY_PATH
15723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15724 case $host_os in
15725 openbsd2.[89] | openbsd2.[89].*)
15726 shlibpath_overrides_runpath=no
15727 ;;
15728 *)
15729 shlibpath_overrides_runpath=yes
15730 ;;
15731 esac
15732 else
15733 shlibpath_overrides_runpath=yes
15734 fi
15735 ;;
15736
15737os2*)
15738 libname_spec='$name'
15739 shrext_cmds=".dll"
15740 need_lib_prefix=no
15741 library_names_spec='$libname${shared_ext} $libname.a'
15742 dynamic_linker='OS/2 ld.exe'
15743 shlibpath_var=LIBPATH
15744 ;;
15745
15746osf3* | osf4* | osf5*)
15747 version_type=osf
15748 need_lib_prefix=no
15749 need_version=no
15750 soname_spec='${libname}${release}${shared_ext}$major'
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15752 shlibpath_var=LD_LIBRARY_PATH
15753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15754 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15755 ;;
15756
0fde1ce3 15757rdos*)
15758 dynamic_linker=no
15759 ;;
15760
d9898ee8 15761solaris*)
15762 version_type=linux
15763 need_lib_prefix=no
15764 need_version=no
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 soname_spec='${libname}${release}${shared_ext}$major'
15767 shlibpath_var=LD_LIBRARY_PATH
15768 shlibpath_overrides_runpath=yes
15769 hardcode_into_libs=yes
15770 # ldd complains unless libraries are executable
15771 postinstall_cmds='chmod +x $lib'
15772 ;;
15773
15774sunos4*)
15775 version_type=sunos
15776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15777 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15778 shlibpath_var=LD_LIBRARY_PATH
15779 shlibpath_overrides_runpath=yes
15780 if test "$with_gnu_ld" = yes; then
15781 need_lib_prefix=no
15782 fi
15783 need_version=yes
15784 ;;
15785
15786sysv4 | sysv4.3*)
15787 version_type=linux
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 case $host_vendor in
15792 sni)
15793 shlibpath_overrides_runpath=no
15794 need_lib_prefix=no
15795 export_dynamic_flag_spec='${wl}-Blargedynsym'
15796 runpath_var=LD_RUN_PATH
15797 ;;
15798 siemens)
15799 need_lib_prefix=no
15800 ;;
15801 motorola)
15802 need_lib_prefix=no
15803 need_version=no
15804 shlibpath_overrides_runpath=no
15805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15806 ;;
15807 esac
15808 ;;
15809
15810sysv4*MP*)
15811 if test -d /usr/nec ;then
15812 version_type=linux
15813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15814 soname_spec='$libname${shared_ext}.$major'
15815 shlibpath_var=LD_LIBRARY_PATH
15816 fi
15817 ;;
15818
15819sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15820 version_type=freebsd-elf
15821 need_lib_prefix=no
15822 need_version=no
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 hardcode_into_libs=yes
15827 if test "$with_gnu_ld" = yes; then
15828 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15829 shlibpath_overrides_runpath=no
15830 else
15831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15832 shlibpath_overrides_runpath=yes
15833 case $host_os in
15834 sco3.2v5*)
15835 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15836 ;;
15837 esac
15838 fi
15839 sys_lib_dlsearch_path_spec='/usr/lib'
15840 ;;
15841
15842uts4*)
15843 version_type=linux
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 soname_spec='${libname}${release}${shared_ext}$major'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 ;;
15848
15849*)
15850 dynamic_linker=no
15851 ;;
15852esac
64ff59ba 15853{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15854echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15855test "$dynamic_linker" = no && can_build_shared=no
15856
15857variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15858if test "$GCC" = yes; then
15859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15860fi
15861
64ff59ba 15862{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15863echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15864hardcode_action_F77=
15865if test -n "$hardcode_libdir_flag_spec_F77" || \
15866 test -n "$runpath_var_F77" || \
15867 test "X$hardcode_automatic_F77" = "Xyes" ; then
15868
15869 # We can hardcode non-existant directories.
15870 if test "$hardcode_direct_F77" != no &&
15871 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15872 # have to relink, otherwise we might link with an installed library
15873 # when we should be linking with a yet-to-be-installed one
15874 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15875 test "$hardcode_minus_L_F77" != no; then
15876 # Linking always hardcodes the temporary library directory.
15877 hardcode_action_F77=relink
15878 else
15879 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15880 hardcode_action_F77=immediate
15881 fi
15882else
15883 # We cannot hardcode anything, or else we can only hardcode existing
15884 # directories.
15885 hardcode_action_F77=unsupported
15886fi
64ff59ba 15887{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15888echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15889
15890if test "$hardcode_action_F77" = relink; then
15891 # Fast installation is not supported
15892 enable_fast_install=no
15893elif test "$shlibpath_overrides_runpath" = yes ||
15894 test "$enable_shared" = no; then
15895 # Fast installation is not necessary
15896 enable_fast_install=needless
15897fi
15898
15899
15900# The else clause should only fire when bootstrapping the
15901# libtool distribution, otherwise you forgot to ship ltmain.sh
15902# with your package, and you will get complaints that there are
15903# no rules to generate ltmain.sh.
15904if test -f "$ltmain"; then
15905 # See if we are running on zsh, and set the options which allow our commands through
15906 # without removal of \ escapes.
15907 if test -n "${ZSH_VERSION+set}" ; then
15908 setopt NO_GLOB_SUBST
15909 fi
15910 # Now quote all the things that may contain metacharacters while being
15911 # careful not to overquote the AC_SUBSTed values. We take copies of the
15912 # variables and quote the copies for generation of the libtool script.
15913 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15914 SED SHELL STRIP \
15915 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15916 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15917 deplibs_check_method reload_flag reload_cmds need_locks \
15918 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15919 lt_cv_sys_global_symbol_to_c_name_address \
15920 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15921 old_postinstall_cmds old_postuninstall_cmds \
15922 compiler_F77 \
15923 CC_F77 \
15924 LD_F77 \
15925 lt_prog_compiler_wl_F77 \
15926 lt_prog_compiler_pic_F77 \
15927 lt_prog_compiler_static_F77 \
15928 lt_prog_compiler_no_builtin_flag_F77 \
15929 export_dynamic_flag_spec_F77 \
15930 thread_safe_flag_spec_F77 \
15931 whole_archive_flag_spec_F77 \
15932 enable_shared_with_static_runtimes_F77 \
15933 old_archive_cmds_F77 \
15934 old_archive_from_new_cmds_F77 \
15935 predep_objects_F77 \
15936 postdep_objects_F77 \
15937 predeps_F77 \
15938 postdeps_F77 \
15939 compiler_lib_search_path_F77 \
15940 archive_cmds_F77 \
15941 archive_expsym_cmds_F77 \
15942 postinstall_cmds_F77 \
15943 postuninstall_cmds_F77 \
15944 old_archive_from_expsyms_cmds_F77 \
15945 allow_undefined_flag_F77 \
15946 no_undefined_flag_F77 \
15947 export_symbols_cmds_F77 \
15948 hardcode_libdir_flag_spec_F77 \
15949 hardcode_libdir_flag_spec_ld_F77 \
15950 hardcode_libdir_separator_F77 \
15951 hardcode_automatic_F77 \
15952 module_cmds_F77 \
15953 module_expsym_cmds_F77 \
15954 lt_cv_prog_compiler_c_o_F77 \
0fde1ce3 15955 fix_srcfile_path_F77 \
d9898ee8 15956 exclude_expsyms_F77 \
15957 include_expsyms_F77; do
15958
15959 case $var in
15960 old_archive_cmds_F77 | \
15961 old_archive_from_new_cmds_F77 | \
15962 archive_cmds_F77 | \
15963 archive_expsym_cmds_F77 | \
15964 module_cmds_F77 | \
15965 module_expsym_cmds_F77 | \
15966 old_archive_from_expsyms_cmds_F77 | \
15967 export_symbols_cmds_F77 | \
15968 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15969 postinstall_cmds | postuninstall_cmds | \
15970 old_postinstall_cmds | old_postuninstall_cmds | \
15971 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15972 # Double-quote double-evaled strings.
15973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15974 ;;
15975 *)
15976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15977 ;;
15978 esac
15979 done
15980
15981 case $lt_echo in
15982 *'\$0 --fallback-echo"')
15983 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15984 ;;
15985 esac
15986
15987cfgfile="$ofile"
15988
15989 cat <<__EOF__ >> "$cfgfile"
15990# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15991
15992# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15993
15994# Shell to use when invoking shell scripts.
15995SHELL=$lt_SHELL
15996
15997# Whether or not to build shared libraries.
15998build_libtool_libs=$enable_shared
15999
16000# Whether or not to build static libraries.
16001build_old_libs=$enable_static
16002
16003# Whether or not to add -lc for building shared libraries.
16004build_libtool_need_lc=$archive_cmds_need_lc_F77
16005
16006# Whether or not to disallow shared libs when runtime libs are static
16007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16008
16009# Whether or not to optimize for fast installation.
16010fast_install=$enable_fast_install
16011
16012# The host system.
16013host_alias=$host_alias
16014host=$host
16015host_os=$host_os
16016
16017# The build system.
16018build_alias=$build_alias
16019build=$build
16020build_os=$build_os
16021
16022# An echo program that does not interpret backslashes.
16023echo=$lt_echo
16024
16025# The archiver.
16026AR=$lt_AR
16027AR_FLAGS=$lt_AR_FLAGS
16028
16029# A C compiler.
16030LTCC=$lt_LTCC
16031
16032# LTCC compiler flags.
16033LTCFLAGS=$lt_LTCFLAGS
16034
16035# A language-specific compiler.
16036CC=$lt_compiler_F77
16037
16038# Is the compiler the GNU C compiler?
16039with_gcc=$GCC_F77
16040
d9898ee8 16041# An ERE matcher.
16042EGREP=$lt_EGREP
16043
16044# The linker used to build libraries.
16045LD=$lt_LD_F77
16046
16047# Whether we need hard or soft links.
16048LN_S=$lt_LN_S
16049
16050# A BSD-compatible nm program.
16051NM=$lt_NM
16052
16053# A symbol stripping program
16054STRIP=$lt_STRIP
16055
16056# Used to examine libraries when file_magic_cmd begins "file"
16057MAGIC_CMD=$MAGIC_CMD
16058
16059# Used on cygwin: DLL creation program.
16060DLLTOOL="$DLLTOOL"
16061
16062# Used on cygwin: object dumper.
16063OBJDUMP="$OBJDUMP"
16064
16065# Used on cygwin: assembler.
16066AS="$AS"
16067
16068# The name of the directory that contains temporary libtool files.
16069objdir=$objdir
16070
16071# How to create reloadable object files.
16072reload_flag=$lt_reload_flag
16073reload_cmds=$lt_reload_cmds
16074
16075# How to pass a linker flag through the compiler.
16076wl=$lt_lt_prog_compiler_wl_F77
16077
16078# Object file suffix (normally "o").
16079objext="$ac_objext"
16080
16081# Old archive suffix (normally "a").
16082libext="$libext"
16083
16084# Shared library suffix (normally ".so").
16085shrext_cmds='$shrext_cmds'
16086
16087# Executable file suffix (normally "").
16088exeext="$exeext"
16089
16090# Additional compiler flags for building library objects.
16091pic_flag=$lt_lt_prog_compiler_pic_F77
16092pic_mode=$pic_mode
16093
16094# What is the maximum length of a command?
16095max_cmd_len=$lt_cv_sys_max_cmd_len
16096
16097# Does compiler simultaneously support -c and -o options?
16098compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16099
16100# Must we lock files when doing compilation?
16101need_locks=$lt_need_locks
16102
16103# Do we need the lib prefix for modules?
16104need_lib_prefix=$need_lib_prefix
16105
16106# Do we need a version for libraries?
16107need_version=$need_version
16108
16109# Whether dlopen is supported.
16110dlopen_support=$enable_dlopen
16111
16112# Whether dlopen of programs is supported.
16113dlopen_self=$enable_dlopen_self
16114
16115# Whether dlopen of statically linked programs is supported.
16116dlopen_self_static=$enable_dlopen_self_static
16117
16118# Compiler flag to prevent dynamic linking.
16119link_static_flag=$lt_lt_prog_compiler_static_F77
16120
16121# Compiler flag to turn off builtin functions.
16122no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16123
16124# Compiler flag to allow reflexive dlopens.
16125export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16126
16127# Compiler flag to generate shared objects directly from archives.
16128whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16129
16130# Compiler flag to generate thread-safe objects.
16131thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16132
16133# Library versioning type.
16134version_type=$version_type
16135
16136# Format of library name prefix.
16137libname_spec=$lt_libname_spec
16138
16139# List of archive names. First name is the real one, the rest are links.
16140# The last name is the one that the linker finds with -lNAME.
16141library_names_spec=$lt_library_names_spec
16142
16143# The coded name of the library, if different from the real name.
16144soname_spec=$lt_soname_spec
16145
16146# Commands used to build and install an old-style archive.
16147RANLIB=$lt_RANLIB
16148old_archive_cmds=$lt_old_archive_cmds_F77
16149old_postinstall_cmds=$lt_old_postinstall_cmds
16150old_postuninstall_cmds=$lt_old_postuninstall_cmds
16151
16152# Create an old-style archive from a shared archive.
16153old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16154
16155# Create a temporary old-style archive to link instead of a shared archive.
16156old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16157
16158# Commands used to build and install a shared archive.
16159archive_cmds=$lt_archive_cmds_F77
16160archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16161postinstall_cmds=$lt_postinstall_cmds
16162postuninstall_cmds=$lt_postuninstall_cmds
16163
16164# Commands used to build a loadable module (assumed same as above if empty)
16165module_cmds=$lt_module_cmds_F77
16166module_expsym_cmds=$lt_module_expsym_cmds_F77
16167
16168# Commands to strip libraries.
16169old_striplib=$lt_old_striplib
16170striplib=$lt_striplib
16171
16172# Dependencies to place before the objects being linked to create a
16173# shared library.
64ff59ba 16174predep_objects=$lt_predep_objects_F77
d9898ee8 16175
16176# Dependencies to place after the objects being linked to create a
16177# shared library.
64ff59ba 16178postdep_objects=$lt_postdep_objects_F77
d9898ee8 16179
16180# Dependencies to place before the objects being linked to create a
16181# shared library.
16182predeps=$lt_predeps_F77
16183
16184# Dependencies to place after the objects being linked to create a
16185# shared library.
16186postdeps=$lt_postdeps_F77
16187
16188# The library search path used internally by the compiler when linking
16189# a shared library.
64ff59ba 16190compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16191
16192# Method to check whether dependent libraries are shared objects.
16193deplibs_check_method=$lt_deplibs_check_method
16194
16195# Command to use when deplibs_check_method == file_magic.
16196file_magic_cmd=$lt_file_magic_cmd
16197
16198# Flag that allows shared libraries with undefined symbols to be built.
16199allow_undefined_flag=$lt_allow_undefined_flag_F77
16200
16201# Flag that forces no undefined symbols.
16202no_undefined_flag=$lt_no_undefined_flag_F77
16203
16204# Commands used to finish a libtool library installation in a directory.
16205finish_cmds=$lt_finish_cmds
16206
16207# Same as above, but a single script fragment to be evaled but not shown.
16208finish_eval=$lt_finish_eval
16209
16210# Take the output of nm and produce a listing of raw symbols and C names.
16211global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16212
16213# Transform the output of nm in a proper C declaration
16214global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16215
16216# Transform the output of nm in a C name address pair
16217global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16218
16219# This is the shared library runtime path variable.
16220runpath_var=$runpath_var
16221
16222# This is the shared library path variable.
16223shlibpath_var=$shlibpath_var
16224
16225# Is shlibpath searched before the hard-coded library search path?
16226shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16227
16228# How to hardcode a shared library path into an executable.
16229hardcode_action=$hardcode_action_F77
16230
16231# Whether we should hardcode library paths into libraries.
16232hardcode_into_libs=$hardcode_into_libs
16233
16234# Flag to hardcode \$libdir into a binary during linking.
16235# This must work even if \$libdir does not exist.
16236hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16237
16238# If ld is used when linking, flag to hardcode \$libdir into
16239# a binary during linking. This must work even if \$libdir does
16240# not exist.
16241hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16242
16243# Whether we need a single -rpath flag with a separated argument.
16244hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16245
16246# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16247# resulting binary.
16248hardcode_direct=$hardcode_direct_F77
16249
16250# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16251# resulting binary.
16252hardcode_minus_L=$hardcode_minus_L_F77
16253
16254# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16255# the resulting binary.
16256hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16257
16258# Set to yes if building a shared library automatically hardcodes DIR into the library
16259# and all subsequent libraries and executables linked against it.
16260hardcode_automatic=$hardcode_automatic_F77
16261
16262# Variables whose values should be saved in libtool wrapper scripts and
16263# restored at relink time.
16264variables_saved_for_relink="$variables_saved_for_relink"
16265
16266# Whether libtool must link a program against all its dependency libraries.
16267link_all_deplibs=$link_all_deplibs_F77
16268
16269# Compile-time system search path for libraries
64ff59ba 16270sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16271
16272# Run-time system search path for libraries
16273sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16274
16275# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 16276fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16277
16278# Set to yes if exported symbols are required.
16279always_export_symbols=$always_export_symbols_F77
16280
16281# The commands to list exported symbols.
16282export_symbols_cmds=$lt_export_symbols_cmds_F77
16283
16284# The commands to extract the exported symbol list from a shared archive.
16285extract_expsyms_cmds=$lt_extract_expsyms_cmds
16286
16287# Symbols that should not be listed in the preloaded symbols.
16288exclude_expsyms=$lt_exclude_expsyms_F77
16289
16290# Symbols that must always be exported.
16291include_expsyms=$lt_include_expsyms_F77
16292
16293# ### END LIBTOOL TAG CONFIG: $tagname
16294
16295__EOF__
16296
16297
16298else
16299 # If there is no Makefile yet, we rely on a make rule to execute
16300 # `config.status --recheck' to rerun these tests and create the
16301 # libtool script then.
16302 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16303 if test -f "$ltmain_in"; then
16304 test -f Makefile && make "$ltmain"
16305 fi
16306fi
16307
16308
16309ac_ext=c
16310ac_cpp='$CPP $CPPFLAGS'
16311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16313ac_compiler_gnu=$ac_cv_c_compiler_gnu
16314
16315CC="$lt_save_CC"
16316
16317 else
16318 tagname=""
16319 fi
16320 ;;
16321
16322 GCJ)
16323 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16324
16325
d9898ee8 16326# Source file extension for Java test sources.
16327ac_ext=java
16328
16329# Object file extension for compiled Java test sources.
16330objext=o
16331objext_GCJ=$objext
16332
16333# Code to be used in simple compile tests
0fde1ce3 16334lt_simple_compile_test_code="class foo {}"
d9898ee8 16335
16336# Code to be used in simple link tests
0fde1ce3 16337lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16338
16339# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16340
16341# If no C compiler was specified, use CC.
16342LTCC=${LTCC-"$CC"}
16343
16344# If no C compiler flags were specified, use CFLAGS.
16345LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16346
16347# Allow CC to be a program name with arguments.
16348compiler=$CC
16349
16350
16351# save warnings/boilerplate of simple test code
16352ac_outfile=conftest.$ac_objext
0fde1ce3 16353echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16354eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16355_lt_compiler_boilerplate=`cat conftest.err`
16356$rm conftest*
16357
16358ac_outfile=conftest.$ac_objext
0fde1ce3 16359echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16360eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16361_lt_linker_boilerplate=`cat conftest.err`
16362$rm conftest*
16363
16364
16365# Allow CC to be a program name with arguments.
16366lt_save_CC="$CC"
16367CC=${GCJ-"gcj"}
16368compiler=$CC
16369compiler_GCJ=$CC
16370for cc_temp in $compiler""; do
16371 case $cc_temp in
16372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16374 \-*) ;;
16375 *) break;;
16376 esac
16377done
16378cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16379
16380
16381# GCJ did not exist at the time GCC didn't implicitly link libc in.
16382archive_cmds_need_lc_GCJ=no
16383
16384old_archive_cmds_GCJ=$old_archive_cmds
16385
16386
16387lt_prog_compiler_no_builtin_flag_GCJ=
16388
16389if test "$GCC" = yes; then
16390 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16391
16392
64ff59ba 16393{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16394echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16395if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397else
16398 lt_cv_prog_compiler_rtti_exceptions=no
16399 ac_outfile=conftest.$ac_objext
0fde1ce3 16400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16401 lt_compiler_flag="-fno-rtti -fno-exceptions"
16402 # Insert the option either (1) after the last *FLAGS variable, or
16403 # (2) before a word containing "conftest.", or (3) at the end.
16404 # Note that $ac_compile itself does not contain backslashes and begins
16405 # with a dollar sign (not a hyphen), so the echo should work correctly.
16406 # The option is referenced via a variable to avoid confusing sed.
16407 lt_compile=`echo "$ac_compile" | $SED \
16408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16410 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16411 (eval echo "\"\$as_me:16411: $lt_compile\"" >&5)
d9898ee8 16412 (eval "$lt_compile" 2>conftest.err)
16413 ac_status=$?
16414 cat conftest.err >&5
0fde1ce3 16415 echo "$as_me:16415: \$? = $ac_status" >&5
d9898ee8 16416 if (exit $ac_status) && test -s "$ac_outfile"; then
16417 # The compiler can only warn and ignore the option if not recognized
16418 # So say no if there are warnings other than the usual output.
16419 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16421 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16422 lt_cv_prog_compiler_rtti_exceptions=yes
16423 fi
16424 fi
16425 $rm conftest*
16426
16427fi
64ff59ba 16428{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16429echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16430
16431if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16432 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16433else
16434 :
16435fi
16436
16437fi
16438
16439lt_prog_compiler_wl_GCJ=
16440lt_prog_compiler_pic_GCJ=
16441lt_prog_compiler_static_GCJ=
16442
64ff59ba 16443{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16444echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16445
16446 if test "$GCC" = yes; then
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 lt_prog_compiler_static_GCJ='-static'
16449
16450 case $host_os in
16451 aix*)
16452 # All AIX code is PIC.
16453 if test "$host_cpu" = ia64; then
16454 # AIX 5 now supports IA64 processor
16455 lt_prog_compiler_static_GCJ='-Bstatic'
16456 fi
16457 ;;
16458
16459 amigaos*)
16460 # FIXME: we need at least 68020 code to build shared libraries, but
16461 # adding the `-m68020' flag to GCC prevents building anything better,
16462 # like `-m68040'.
16463 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16464 ;;
16465
0fde1ce3 16466 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16467 # PIC is the default for these OSes.
16468 ;;
16469
0fde1ce3 16470 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16471 # This hack is so that the source file can tell whether it is being
16472 # built for inclusion in a dll (and should export symbols for example).
0fde1ce3 16473 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16474 # (--disable-auto-import) libraries
d9898ee8 16475 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16476 ;;
16477
16478 darwin* | rhapsody*)
16479 # PIC is the default on this platform
16480 # Common symbols not allowed in MH_DYLIB files
16481 lt_prog_compiler_pic_GCJ='-fno-common'
16482 ;;
16483
0fde1ce3 16484 interix[3-9]*)
d9898ee8 16485 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16486 # Instead, we relocate shared libraries at runtime.
16487 ;;
16488
16489 msdosdjgpp*)
16490 # Just because we use GCC doesn't mean we suddenly get shared libraries
16491 # on systems that don't support them.
16492 lt_prog_compiler_can_build_shared_GCJ=no
16493 enable_shared=no
16494 ;;
16495
16496 sysv4*MP*)
16497 if test -d /usr/nec; then
16498 lt_prog_compiler_pic_GCJ=-Kconform_pic
16499 fi
16500 ;;
16501
16502 hpux*)
16503 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16504 # not for PA HP-UX.
16505 case $host_cpu in
16506 hppa*64*|ia64*)
16507 # +Z the default
16508 ;;
16509 *)
16510 lt_prog_compiler_pic_GCJ='-fPIC'
16511 ;;
16512 esac
16513 ;;
16514
16515 *)
16516 lt_prog_compiler_pic_GCJ='-fPIC'
16517 ;;
16518 esac
16519 else
16520 # PORTME Check for flag to pass linker flags through the system compiler.
16521 case $host_os in
16522 aix*)
16523 lt_prog_compiler_wl_GCJ='-Wl,'
16524 if test "$host_cpu" = ia64; then
16525 # AIX 5 now supports IA64 processor
16526 lt_prog_compiler_static_GCJ='-Bstatic'
16527 else
16528 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16529 fi
16530 ;;
16531 darwin*)
16532 # PIC is the default on this platform
16533 # Common symbols not allowed in MH_DYLIB files
16534 case $cc_basename in
16535 xlc*)
16536 lt_prog_compiler_pic_GCJ='-qnocommon'
16537 lt_prog_compiler_wl_GCJ='-Wl,'
16538 ;;
16539 esac
16540 ;;
16541
0fde1ce3 16542 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16543 # This hack is so that the source file can tell whether it is being
16544 # built for inclusion in a dll (and should export symbols for example).
16545 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16546 ;;
16547
16548 hpux9* | hpux10* | hpux11*)
16549 lt_prog_compiler_wl_GCJ='-Wl,'
16550 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16551 # not for PA HP-UX.
16552 case $host_cpu in
16553 hppa*64*|ia64*)
16554 # +Z the default
16555 ;;
16556 *)
16557 lt_prog_compiler_pic_GCJ='+Z'
16558 ;;
16559 esac
16560 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16561 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16562 ;;
16563
16564 irix5* | irix6* | nonstopux*)
16565 lt_prog_compiler_wl_GCJ='-Wl,'
16566 # PIC (with -KPIC) is the default.
16567 lt_prog_compiler_static_GCJ='-non_shared'
16568 ;;
16569
16570 newsos6)
16571 lt_prog_compiler_pic_GCJ='-KPIC'
16572 lt_prog_compiler_static_GCJ='-Bstatic'
16573 ;;
16574
0fde1ce3 16575 linux* | k*bsd*-gnu)
d9898ee8 16576 case $cc_basename in
16577 icc* | ecc*)
16578 lt_prog_compiler_wl_GCJ='-Wl,'
16579 lt_prog_compiler_pic_GCJ='-KPIC'
16580 lt_prog_compiler_static_GCJ='-static'
16581 ;;
16582 pgcc* | pgf77* | pgf90* | pgf95*)
16583 # Portland Group compilers (*not* the Pentium gcc compiler,
16584 # which looks to be a dead project)
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 lt_prog_compiler_pic_GCJ='-fpic'
16587 lt_prog_compiler_static_GCJ='-Bstatic'
16588 ;;
16589 ccc*)
16590 lt_prog_compiler_wl_GCJ='-Wl,'
16591 # All Alpha code is PIC.
16592 lt_prog_compiler_static_GCJ='-non_shared'
16593 ;;
0fde1ce3 16594 *)
16595 case `$CC -V 2>&1 | sed 5q` in
16596 *Sun\ C*)
16597 # Sun C 5.9
16598 lt_prog_compiler_pic_GCJ='-KPIC'
16599 lt_prog_compiler_static_GCJ='-Bstatic'
16600 lt_prog_compiler_wl_GCJ='-Wl,'
16601 ;;
16602 *Sun\ F*)
16603 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16604 lt_prog_compiler_pic_GCJ='-KPIC'
16605 lt_prog_compiler_static_GCJ='-Bstatic'
16606 lt_prog_compiler_wl_GCJ=''
16607 ;;
16608 esac
16609 ;;
d9898ee8 16610 esac
16611 ;;
16612
16613 osf3* | osf4* | osf5*)
16614 lt_prog_compiler_wl_GCJ='-Wl,'
16615 # All OSF/1 code is PIC.
16616 lt_prog_compiler_static_GCJ='-non_shared'
16617 ;;
16618
0fde1ce3 16619 rdos*)
16620 lt_prog_compiler_static_GCJ='-non_shared'
16621 ;;
16622
d9898ee8 16623 solaris*)
16624 lt_prog_compiler_pic_GCJ='-KPIC'
16625 lt_prog_compiler_static_GCJ='-Bstatic'
16626 case $cc_basename in
16627 f77* | f90* | f95*)
16628 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16629 *)
16630 lt_prog_compiler_wl_GCJ='-Wl,';;
16631 esac
16632 ;;
16633
16634 sunos4*)
16635 lt_prog_compiler_wl_GCJ='-Qoption ld '
16636 lt_prog_compiler_pic_GCJ='-PIC'
16637 lt_prog_compiler_static_GCJ='-Bstatic'
16638 ;;
16639
16640 sysv4 | sysv4.2uw2* | sysv4.3*)
16641 lt_prog_compiler_wl_GCJ='-Wl,'
16642 lt_prog_compiler_pic_GCJ='-KPIC'
16643 lt_prog_compiler_static_GCJ='-Bstatic'
16644 ;;
16645
16646 sysv4*MP*)
16647 if test -d /usr/nec ;then
16648 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16649 lt_prog_compiler_static_GCJ='-Bstatic'
16650 fi
16651 ;;
16652
16653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16654 lt_prog_compiler_wl_GCJ='-Wl,'
16655 lt_prog_compiler_pic_GCJ='-KPIC'
16656 lt_prog_compiler_static_GCJ='-Bstatic'
16657 ;;
16658
16659 unicos*)
16660 lt_prog_compiler_wl_GCJ='-Wl,'
16661 lt_prog_compiler_can_build_shared_GCJ=no
16662 ;;
16663
16664 uts4*)
16665 lt_prog_compiler_pic_GCJ='-pic'
16666 lt_prog_compiler_static_GCJ='-Bstatic'
16667 ;;
16668
16669 *)
16670 lt_prog_compiler_can_build_shared_GCJ=no
16671 ;;
16672 esac
16673 fi
16674
64ff59ba 16675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16676echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16677
16678#
16679# Check to make sure the PIC flag actually works.
16680#
16681if test -n "$lt_prog_compiler_pic_GCJ"; then
16682
64ff59ba 16683{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16684echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16685if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687else
16688 lt_prog_compiler_pic_works_GCJ=no
16689 ac_outfile=conftest.$ac_objext
0fde1ce3 16690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16691 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16692 # Insert the option either (1) after the last *FLAGS variable, or
16693 # (2) before a word containing "conftest.", or (3) at the end.
16694 # Note that $ac_compile itself does not contain backslashes and begins
16695 # with a dollar sign (not a hyphen), so the echo should work correctly.
16696 # The option is referenced via a variable to avoid confusing sed.
16697 lt_compile=`echo "$ac_compile" | $SED \
16698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16700 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16701 (eval echo "\"\$as_me:16701: $lt_compile\"" >&5)
d9898ee8 16702 (eval "$lt_compile" 2>conftest.err)
16703 ac_status=$?
16704 cat conftest.err >&5
0fde1ce3 16705 echo "$as_me:16705: \$? = $ac_status" >&5
d9898ee8 16706 if (exit $ac_status) && test -s "$ac_outfile"; then
16707 # The compiler can only warn and ignore the option if not recognized
16708 # So say no if there are warnings other than the usual output.
16709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16712 lt_prog_compiler_pic_works_GCJ=yes
16713 fi
16714 fi
16715 $rm conftest*
16716
16717fi
64ff59ba 16718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16719echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16720
16721if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16722 case $lt_prog_compiler_pic_GCJ in
16723 "" | " "*) ;;
16724 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16725 esac
16726else
16727 lt_prog_compiler_pic_GCJ=
16728 lt_prog_compiler_can_build_shared_GCJ=no
16729fi
16730
16731fi
16732case $host_os in
16733 # For platforms which do not support PIC, -DPIC is meaningless:
16734 *djgpp*)
16735 lt_prog_compiler_pic_GCJ=
16736 ;;
16737 *)
16738 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16739 ;;
16740esac
16741
16742#
16743# Check to make sure the static flag actually works.
16744#
16745wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16746{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16747echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16748if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16750else
16751 lt_prog_compiler_static_works_GCJ=no
16752 save_LDFLAGS="$LDFLAGS"
16753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
0fde1ce3 16754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 16755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16756 # The linker can only warn and ignore the option if not recognized
16757 # So say no if there are warnings
16758 if test -s conftest.err; then
16759 # Append any errors to the config.log.
16760 cat conftest.err 1>&5
16761 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16763 if diff conftest.exp conftest.er2 >/dev/null; then
16764 lt_prog_compiler_static_works_GCJ=yes
16765 fi
16766 else
16767 lt_prog_compiler_static_works_GCJ=yes
16768 fi
16769 fi
16770 $rm conftest*
16771 LDFLAGS="$save_LDFLAGS"
16772
16773fi
64ff59ba 16774{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16775echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16776
16777if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16778 :
16779else
16780 lt_prog_compiler_static_GCJ=
16781fi
16782
16783
64ff59ba 16784{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16785echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16786if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16787 echo $ECHO_N "(cached) $ECHO_C" >&6
16788else
16789 lt_cv_prog_compiler_c_o_GCJ=no
16790 $rm -r conftest 2>/dev/null
16791 mkdir conftest
16792 cd conftest
16793 mkdir out
0fde1ce3 16794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16795
16796 lt_compiler_flag="-o out/conftest2.$ac_objext"
16797 # Insert the option either (1) after the last *FLAGS variable, or
16798 # (2) before a word containing "conftest.", or (3) at the end.
16799 # Note that $ac_compile itself does not contain backslashes and begins
16800 # with a dollar sign (not a hyphen), so the echo should work correctly.
16801 lt_compile=`echo "$ac_compile" | $SED \
16802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16804 -e 's:$: $lt_compiler_flag:'`
0fde1ce3 16805 (eval echo "\"\$as_me:16805: $lt_compile\"" >&5)
d9898ee8 16806 (eval "$lt_compile" 2>out/conftest.err)
16807 ac_status=$?
16808 cat out/conftest.err >&5
0fde1ce3 16809 echo "$as_me:16809: \$? = $ac_status" >&5
d9898ee8 16810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16811 then
16812 # The compiler can only warn and ignore the option if not recognized
16813 # So say no if there are warnings
16814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16817 lt_cv_prog_compiler_c_o_GCJ=yes
16818 fi
16819 fi
16820 chmod u+w . 2>&5
16821 $rm conftest*
16822 # SGI C++ compiler will create directory out/ii_files/ for
16823 # template instantiation
16824 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16825 $rm out/* && rmdir out
16826 cd ..
16827 rmdir conftest
16828 $rm conftest*
16829
16830fi
64ff59ba 16831{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16832echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16833
16834
16835hard_links="nottested"
16836if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16837 # do not overwrite the value of need_locks provided by the user
64ff59ba 16838 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16839echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16840 hard_links=yes
16841 $rm conftest*
16842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16843 touch conftest.a
16844 ln conftest.a conftest.b 2>&5 || hard_links=no
16845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 16846 { echo "$as_me:$LINENO: result: $hard_links" >&5
16847echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16848 if test "$hard_links" = no; then
16849 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16850echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16851 need_locks=warn
16852 fi
16853else
16854 need_locks=no
16855fi
16856
64ff59ba 16857{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16858echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16859
16860 runpath_var=
16861 allow_undefined_flag_GCJ=
16862 enable_shared_with_static_runtimes_GCJ=no
16863 archive_cmds_GCJ=
16864 archive_expsym_cmds_GCJ=
16865 old_archive_From_new_cmds_GCJ=
16866 old_archive_from_expsyms_cmds_GCJ=
16867 export_dynamic_flag_spec_GCJ=
16868 whole_archive_flag_spec_GCJ=
16869 thread_safe_flag_spec_GCJ=
16870 hardcode_libdir_flag_spec_GCJ=
16871 hardcode_libdir_flag_spec_ld_GCJ=
16872 hardcode_libdir_separator_GCJ=
16873 hardcode_direct_GCJ=no
16874 hardcode_minus_L_GCJ=no
16875 hardcode_shlibpath_var_GCJ=unsupported
16876 link_all_deplibs_GCJ=unknown
16877 hardcode_automatic_GCJ=no
16878 module_cmds_GCJ=
16879 module_expsym_cmds_GCJ=
16880 always_export_symbols_GCJ=no
16881 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16882 # include_expsyms should be a list of space-separated symbols to be *always*
16883 # included in the symbol list
16884 include_expsyms_GCJ=
16885 # exclude_expsyms can be an extended regexp of symbols to exclude
16886 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16887 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16888 # as well as any symbol that contains `d'.
16889 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16890 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16891 # platforms (ab)use it in PIC code, but their linkers get confused if
16892 # the symbol is explicitly referenced. Since portable code cannot
16893 # rely on this symbol name, it's probably fine to never include it in
16894 # preloaded symbol tables.
16895 extract_expsyms_cmds=
16896 # Just being paranoid about ensuring that cc_basename is set.
16897 for cc_temp in $compiler""; do
16898 case $cc_temp in
16899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16901 \-*) ;;
16902 *) break;;
16903 esac
16904done
16905cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16906
16907 case $host_os in
16908 cygwin* | mingw* | pw32*)
16909 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16910 # When not using gcc, we currently assume that we are using
16911 # Microsoft Visual C++.
16912 if test "$GCC" != yes; then
16913 with_gnu_ld=no
16914 fi
16915 ;;
16916 interix*)
16917 # we just hope/assume this is gcc and not c89 (= MSVC++)
16918 with_gnu_ld=yes
16919 ;;
16920 openbsd*)
16921 with_gnu_ld=no
16922 ;;
16923 esac
16924
16925 ld_shlibs_GCJ=yes
16926 if test "$with_gnu_ld" = yes; then
16927 # If archive_cmds runs LD, not CC, wlarc should be empty
16928 wlarc='${wl}'
16929
16930 # Set some defaults for GNU ld with shared library support. These
16931 # are reset later if shared libraries are not supported. Putting them
16932 # here allows them to be overridden if necessary.
16933 runpath_var=LD_RUN_PATH
16934 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16935 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16936 # ancient GNU ld didn't support --whole-archive et. al.
16937 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16938 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16939 else
16940 whole_archive_flag_spec_GCJ=
16941 fi
16942 supports_anon_versioning=no
16943 case `$LD -v 2>/dev/null` in
16944 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16945 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16946 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16947 *\ 2.11.*) ;; # other 2.11 versions
16948 *) supports_anon_versioning=yes ;;
16949 esac
16950
16951 # See if GNU ld supports shared libraries.
16952 case $host_os in
16953 aix3* | aix4* | aix5*)
16954 # On AIX/PPC, the GNU linker is very broken
16955 if test "$host_cpu" != ia64; then
16956 ld_shlibs_GCJ=no
16957 cat <<EOF 1>&2
16958
16959*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16960*** to be unable to reliably create shared libraries on AIX.
16961*** Therefore, libtool is disabling shared libraries support. If you
16962*** really care for shared libraries, you may want to modify your PATH
16963*** so that a non-GNU linker is found, and then restart.
16964
16965EOF
16966 fi
16967 ;;
16968
16969 amigaos*)
16970 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)'
16971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16972 hardcode_minus_L_GCJ=yes
16973
16974 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16975 # that the semantics of dynamic libraries on AmigaOS, at least up
16976 # to version 4, is to share data among multiple programs linked
16977 # with the same dynamic library. Since this doesn't match the
16978 # behavior of shared libraries on other platforms, we can't use
16979 # them.
16980 ld_shlibs_GCJ=no
16981 ;;
16982
16983 beos*)
16984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16985 allow_undefined_flag_GCJ=unsupported
16986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16987 # support --undefined. This deserves some investigation. FIXME
16988 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16989 else
16990 ld_shlibs_GCJ=no
16991 fi
16992 ;;
16993
16994 cygwin* | mingw* | pw32*)
16995 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16996 # as there is no search path for DLLs.
16997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16998 allow_undefined_flag_GCJ=unsupported
16999 always_export_symbols_GCJ=no
17000 enable_shared_with_static_runtimes_GCJ=yes
0fde1ce3 17001 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 17002
17003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17004 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17005 # If the export-symbols file already is a .def file (1st line
17006 # is EXPORTS), use it as is; otherwise, prepend...
17007 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17008 cp $export_symbols $output_objdir/$soname.def;
17009 else
17010 echo EXPORTS > $output_objdir/$soname.def;
17011 cat $export_symbols >> $output_objdir/$soname.def;
17012 fi~
17013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17014 else
17015 ld_shlibs_GCJ=no
17016 fi
17017 ;;
17018
0fde1ce3 17019 interix[3-9]*)
d9898ee8 17020 hardcode_direct_GCJ=no
17021 hardcode_shlibpath_var_GCJ=no
17022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17023 export_dynamic_flag_spec_GCJ='${wl}-E'
17024 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17025 # Instead, shared libraries are loaded at an image base (0x10000000 by
17026 # default) and relocated if they conflict, which is a slow very memory
17027 # consuming and fragmenting process. To avoid this, we pick a random,
17028 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17029 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17030 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'
17031 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'
17032 ;;
17033
0fde1ce3 17034 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17036 tmp_addflag=
17037 case $cc_basename,$host_cpu in
17038 pgcc*) # Portland Group C compiler
17039 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'
17040 tmp_addflag=' $pic_flag'
17041 ;;
17042 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17043 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'
17044 tmp_addflag=' $pic_flag -Mnomain' ;;
17045 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17046 tmp_addflag=' -i_dynamic' ;;
17047 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17048 tmp_addflag=' -i_dynamic -nofor_main' ;;
17049 ifc* | ifort*) # Intel Fortran compiler
17050 tmp_addflag=' -nofor_main' ;;
17051 esac
0fde1ce3 17052 case `$CC -V 2>&1 | sed 5q` in
17053 *Sun\ C*) # Sun C 5.9
17054 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17055 tmp_sharedflag='-G' ;;
17056 *Sun\ F*) # Sun Fortran 8.3
17057 tmp_sharedflag='-G' ;;
17058 *)
17059 tmp_sharedflag='-shared' ;;
17060 esac
17061 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17062
17063 if test $supports_anon_versioning = yes; then
17064 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17065 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17066 $echo "local: *; };" >> $output_objdir/$libname.ver~
0fde1ce3 17067 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17068 fi
17069 else
17070 ld_shlibs_GCJ=no
17071 fi
17072 ;;
17073
17074 netbsd*)
17075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17076 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17077 wlarc=
17078 else
17079 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17080 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17081 fi
17082 ;;
17083
17084 solaris*)
17085 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17086 ld_shlibs_GCJ=no
17087 cat <<EOF 1>&2
17088
17089*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17090*** create shared libraries on Solaris systems. Therefore, libtool
17091*** is disabling shared libraries support. We urge you to upgrade GNU
17092*** binutils to release 2.9.1 or newer. Another option is to modify
17093*** your PATH or compiler configuration so that the native linker is
17094*** used, and then restart.
17095
17096EOF
17097 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17098 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17099 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17100 else
17101 ld_shlibs_GCJ=no
17102 fi
17103 ;;
17104
17105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17106 case `$LD -v 2>&1` in
17107 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17108 ld_shlibs_GCJ=no
17109 cat <<_LT_EOF 1>&2
17110
17111*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17112*** reliably create shared libraries on SCO systems. Therefore, libtool
17113*** is disabling shared libraries support. We urge you to upgrade GNU
17114*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17115*** your PATH or compiler configuration so that the native linker is
17116*** used, and then restart.
17117
17118_LT_EOF
17119 ;;
17120 *)
17121 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17122 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17123 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17124 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17125 else
17126 ld_shlibs_GCJ=no
17127 fi
17128 ;;
17129 esac
17130 ;;
17131
17132 sunos4*)
17133 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17134 wlarc=
17135 hardcode_direct_GCJ=yes
17136 hardcode_shlibpath_var_GCJ=no
17137 ;;
17138
17139 *)
17140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17141 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17142 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17143 else
17144 ld_shlibs_GCJ=no
17145 fi
17146 ;;
17147 esac
17148
17149 if test "$ld_shlibs_GCJ" = no; then
17150 runpath_var=
17151 hardcode_libdir_flag_spec_GCJ=
17152 export_dynamic_flag_spec_GCJ=
17153 whole_archive_flag_spec_GCJ=
17154 fi
17155 else
17156 # PORTME fill in a description of your system's linker (not GNU ld)
17157 case $host_os in
17158 aix3*)
17159 allow_undefined_flag_GCJ=unsupported
17160 always_export_symbols_GCJ=yes
17161 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'
17162 # Note: this linker hardcodes the directories in LIBPATH if there
17163 # are no directories specified by -L.
17164 hardcode_minus_L_GCJ=yes
17165 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17166 # Neither direct hardcoding nor static linking is supported with a
17167 # broken collect2.
17168 hardcode_direct_GCJ=unsupported
17169 fi
17170 ;;
17171
17172 aix4* | aix5*)
17173 if test "$host_cpu" = ia64; then
17174 # On IA64, the linker does run time linking by default, so we don't
17175 # have to do anything special.
17176 aix_use_runtimelinking=no
17177 exp_sym_flag='-Bexport'
17178 no_entry_flag=""
17179 else
17180 # If we're using GNU nm, then we don't want the "-C" option.
17181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17183 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'
17184 else
17185 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'
17186 fi
17187 aix_use_runtimelinking=no
17188
17189 # Test if we are trying to use run time linking or normal
17190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17191 # need to do runtime linking.
17192 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17193 for ld_flag in $LDFLAGS; do
17194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17195 aix_use_runtimelinking=yes
17196 break
17197 fi
17198 done
17199 ;;
17200 esac
17201
17202 exp_sym_flag='-bexport'
17203 no_entry_flag='-bnoentry'
17204 fi
17205
17206 # When large executables or shared objects are built, AIX ld can
17207 # have problems creating the table of contents. If linking a library
17208 # or program results in "error TOC overflow" add -mminimal-toc to
17209 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17210 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17211
17212 archive_cmds_GCJ=''
17213 hardcode_direct_GCJ=yes
17214 hardcode_libdir_separator_GCJ=':'
17215 link_all_deplibs_GCJ=yes
17216
17217 if test "$GCC" = yes; then
17218 case $host_os in aix4.[012]|aix4.[012].*)
17219 # We only want to do this on AIX 4.2 and lower, the check
17220 # below for broken collect2 doesn't work under 4.3+
17221 collect2name=`${CC} -print-prog-name=collect2`
17222 if test -f "$collect2name" && \
17223 strings "$collect2name" | grep resolve_lib_name >/dev/null
17224 then
17225 # We have reworked collect2
0fde1ce3 17226 :
d9898ee8 17227 else
17228 # We have old collect2
17229 hardcode_direct_GCJ=unsupported
17230 # It fails to find uninstalled libraries when the uninstalled
17231 # path is not listed in the libpath. Setting hardcode_minus_L
17232 # to unsupported forces relinking
17233 hardcode_minus_L_GCJ=yes
17234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17235 hardcode_libdir_separator_GCJ=
17236 fi
17237 ;;
17238 esac
17239 shared_flag='-shared'
17240 if test "$aix_use_runtimelinking" = yes; then
17241 shared_flag="$shared_flag "'${wl}-G'
17242 fi
17243 else
17244 # not using gcc
17245 if test "$host_cpu" = ia64; then
17246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17247 # chokes on -Wl,-G. The following line is correct:
17248 shared_flag='-G'
17249 else
17250 if test "$aix_use_runtimelinking" = yes; then
17251 shared_flag='${wl}-G'
17252 else
17253 shared_flag='${wl}-bM:SRE'
17254 fi
17255 fi
17256 fi
17257
17258 # It seems that -bexpall does not export symbols beginning with
17259 # underscore (_), so it is better to generate a list of symbols to export.
17260 always_export_symbols_GCJ=yes
17261 if test "$aix_use_runtimelinking" = yes; then
17262 # Warning - without using the other runtime loading flags (-brtl),
17263 # -berok will link without error, but may produce a broken library.
17264 allow_undefined_flag_GCJ='-berok'
17265 # Determine the default libpath from the value encoded in an empty executable.
17266 cat >conftest.$ac_ext <<_ACEOF
17267/* confdefs.h. */
17268_ACEOF
17269cat confdefs.h >>conftest.$ac_ext
17270cat >>conftest.$ac_ext <<_ACEOF
17271/* end confdefs.h. */
17272
17273int
17274main ()
17275{
17276
17277 ;
17278 return 0;
17279}
17280_ACEOF
17281rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17282if { (ac_try="$ac_link"
17283case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17286esac
17287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_link") 2>conftest.er1
d9898ee8 17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17294 (exit $ac_status); } && {
17295 test -z "$ac_c_werror_flag" ||
17296 test ! -s conftest.err
17297 } && test -s conftest$ac_exeext &&
17298 $as_test_x conftest$ac_exeext; then
d9898ee8 17299
0fde1ce3 17300lt_aix_libpath_sed='
17301 /Import File Strings/,/^$/ {
17302 /^0/ {
17303 s/^0 *\(.*\)$/\1/
17304 p
17305 }
17306 }'
17307aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17308# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17309if test -z "$aix_libpath"; then
17310 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17311fi
d9898ee8 17312else
17313 echo "$as_me: failed program was:" >&5
17314sed 's/^/| /' conftest.$ac_ext >&5
17315
64ff59ba 17316
d9898ee8 17317fi
64ff59ba 17318
17319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17320 conftest$ac_exeext conftest.$ac_ext
17321if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17322
17323 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17324 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"
17325 else
17326 if test "$host_cpu" = ia64; then
17327 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17328 allow_undefined_flag_GCJ="-z nodefs"
17329 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"
17330 else
17331 # Determine the default libpath from the value encoded in an empty executable.
17332 cat >conftest.$ac_ext <<_ACEOF
17333/* confdefs.h. */
17334_ACEOF
17335cat confdefs.h >>conftest.$ac_ext
17336cat >>conftest.$ac_ext <<_ACEOF
17337/* end confdefs.h. */
17338
17339int
17340main ()
17341{
17342
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17348if { (ac_try="$ac_link"
17349case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17352esac
17353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>conftest.er1
d9898ee8 17355 ac_status=$?
17356 grep -v '^ *+' conftest.er1 >conftest.err
17357 rm -f conftest.er1
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17360 (exit $ac_status); } && {
17361 test -z "$ac_c_werror_flag" ||
17362 test ! -s conftest.err
17363 } && test -s conftest$ac_exeext &&
17364 $as_test_x conftest$ac_exeext; then
d9898ee8 17365
0fde1ce3 17366lt_aix_libpath_sed='
17367 /Import File Strings/,/^$/ {
17368 /^0/ {
17369 s/^0 *\(.*\)$/\1/
17370 p
17371 }
17372 }'
17373aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17374# Check for a 64-bit object if we didn't find anything.
0fde1ce3 17375if test -z "$aix_libpath"; then
17376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17377fi
d9898ee8 17378else
17379 echo "$as_me: failed program was:" >&5
17380sed 's/^/| /' conftest.$ac_ext >&5
17381
64ff59ba 17382
d9898ee8 17383fi
64ff59ba 17384
17385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17386 conftest$ac_exeext conftest.$ac_ext
17387if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17388
17389 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17390 # Warning - without using the other run time loading flags,
17391 # -berok will link without error, but may produce a broken library.
17392 no_undefined_flag_GCJ=' ${wl}-bernotok'
17393 allow_undefined_flag_GCJ=' ${wl}-berok'
17394 # Exported symbols can be pulled into shared objects from archives
17395 whole_archive_flag_spec_GCJ='$convenience'
17396 archive_cmds_need_lc_GCJ=yes
17397 # This is similar to how AIX traditionally builds its shared libraries.
17398 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'
17399 fi
17400 fi
17401 ;;
17402
17403 amigaos*)
17404 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)'
17405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17406 hardcode_minus_L_GCJ=yes
17407 # see comment about different semantics on the GNU ld section
17408 ld_shlibs_GCJ=no
17409 ;;
17410
17411 bsdi[45]*)
17412 export_dynamic_flag_spec_GCJ=-rdynamic
17413 ;;
17414
17415 cygwin* | mingw* | pw32*)
17416 # When not using gcc, we currently assume that we are using
17417 # Microsoft Visual C++.
17418 # hardcode_libdir_flag_spec is actually meaningless, as there is
17419 # no search path for DLLs.
17420 hardcode_libdir_flag_spec_GCJ=' '
17421 allow_undefined_flag_GCJ=unsupported
17422 # Tell ltmain to make .lib files, not .a files.
17423 libext=lib
17424 # Tell ltmain to make .dll files, not .so files.
17425 shrext_cmds=".dll"
17426 # FIXME: Setting linknames here is a bad hack.
17427 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17428 # The linker will automatically build a .lib file if we build a DLL.
17429 old_archive_From_new_cmds_GCJ='true'
17430 # FIXME: Should let the user specify the lib program.
0fde1ce3 17431 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17432 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17433 enable_shared_with_static_runtimes_GCJ=yes
17434 ;;
17435
17436 darwin* | rhapsody*)
17437 case $host_os in
17438 rhapsody* | darwin1.[012])
17439 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17440 ;;
17441 *) # Darwin 1.3 on
17442 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17443 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17444 else
17445 case ${MACOSX_DEPLOYMENT_TARGET} in
17446 10.[012])
17447 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17448 ;;
17449 10.*)
17450 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17451 ;;
17452 esac
17453 fi
17454 ;;
17455 esac
17456 archive_cmds_need_lc_GCJ=no
17457 hardcode_direct_GCJ=no
17458 hardcode_automatic_GCJ=yes
17459 hardcode_shlibpath_var_GCJ=unsupported
17460 whole_archive_flag_spec_GCJ=''
17461 link_all_deplibs_GCJ=yes
17462 if test "$GCC" = yes ; then
17463 output_verbose_link_cmd='echo'
17464 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17465 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17466 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17467 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}'
17468 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}'
17469 else
17470 case $cc_basename in
17471 xlc*)
17472 output_verbose_link_cmd='echo'
0fde1ce3 17473 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17474 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17475 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
0fde1ce3 17476 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 17477 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}'
17478 ;;
17479 *)
17480 ld_shlibs_GCJ=no
17481 ;;
17482 esac
17483 fi
17484 ;;
17485
17486 dgux*)
17487 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17488 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17489 hardcode_shlibpath_var_GCJ=no
17490 ;;
17491
17492 freebsd1*)
17493 ld_shlibs_GCJ=no
17494 ;;
17495
17496 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17497 # support. Future versions do this automatically, but an explicit c++rt0.o
17498 # does not break anything, and helps significantly (at the cost of a little
17499 # extra space).
17500 freebsd2.2*)
17501 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17502 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17503 hardcode_direct_GCJ=yes
17504 hardcode_shlibpath_var_GCJ=no
17505 ;;
17506
17507 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17508 freebsd2*)
17509 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17510 hardcode_direct_GCJ=yes
17511 hardcode_minus_L_GCJ=yes
17512 hardcode_shlibpath_var_GCJ=no
17513 ;;
17514
17515 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
0fde1ce3 17516 freebsd* | dragonfly*)
d9898ee8 17517 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17518 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17519 hardcode_direct_GCJ=yes
17520 hardcode_shlibpath_var_GCJ=no
17521 ;;
17522
17523 hpux9*)
17524 if test "$GCC" = yes; then
17525 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'
17526 else
17527 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'
17528 fi
17529 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17530 hardcode_libdir_separator_GCJ=:
17531 hardcode_direct_GCJ=yes
17532
17533 # hardcode_minus_L: Not really in the search PATH,
17534 # but as the default location of the library.
17535 hardcode_minus_L_GCJ=yes
17536 export_dynamic_flag_spec_GCJ='${wl}-E'
17537 ;;
17538
17539 hpux10*)
17540 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17541 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17542 else
17543 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17544 fi
17545 if test "$with_gnu_ld" = no; then
17546 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17547 hardcode_libdir_separator_GCJ=:
17548
17549 hardcode_direct_GCJ=yes
17550 export_dynamic_flag_spec_GCJ='${wl}-E'
17551
17552 # hardcode_minus_L: Not really in the search PATH,
17553 # but as the default location of the library.
17554 hardcode_minus_L_GCJ=yes
17555 fi
17556 ;;
17557
17558 hpux11*)
17559 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17560 case $host_cpu in
17561 hppa*64*)
17562 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17563 ;;
17564 ia64*)
17565 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17566 ;;
17567 *)
17568 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17569 ;;
17570 esac
17571 else
17572 case $host_cpu in
17573 hppa*64*)
17574 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17575 ;;
17576 ia64*)
17577 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17578 ;;
17579 *)
17580 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17581 ;;
17582 esac
17583 fi
17584 if test "$with_gnu_ld" = no; then
17585 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17586 hardcode_libdir_separator_GCJ=:
17587
17588 case $host_cpu in
17589 hppa*64*|ia64*)
17590 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17591 hardcode_direct_GCJ=no
17592 hardcode_shlibpath_var_GCJ=no
17593 ;;
17594 *)
17595 hardcode_direct_GCJ=yes
17596 export_dynamic_flag_spec_GCJ='${wl}-E'
17597
17598 # hardcode_minus_L: Not really in the search PATH,
17599 # but as the default location of the library.
17600 hardcode_minus_L_GCJ=yes
17601 ;;
17602 esac
17603 fi
17604 ;;
17605
17606 irix5* | irix6* | nonstopux*)
17607 if test "$GCC" = yes; then
17608 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'
17609 else
17610 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'
17611 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17612 fi
17613 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17614 hardcode_libdir_separator_GCJ=:
17615 link_all_deplibs_GCJ=yes
17616 ;;
17617
17618 netbsd*)
17619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17620 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17621 else
17622 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17623 fi
17624 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17625 hardcode_direct_GCJ=yes
17626 hardcode_shlibpath_var_GCJ=no
17627 ;;
17628
17629 newsos6)
17630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17631 hardcode_direct_GCJ=yes
17632 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17633 hardcode_libdir_separator_GCJ=:
17634 hardcode_shlibpath_var_GCJ=no
17635 ;;
17636
17637 openbsd*)
0fde1ce3 17638 if test -f /usr/libexec/ld.so; then
17639 hardcode_direct_GCJ=yes
17640 hardcode_shlibpath_var_GCJ=no
17641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17642 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17643 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17644 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17645 export_dynamic_flag_spec_GCJ='${wl}-E'
17646 else
17647 case $host_os in
17648 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17649 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17650 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17651 ;;
17652 *)
17653 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17654 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17655 ;;
17656 esac
17657 fi
d9898ee8 17658 else
0fde1ce3 17659 ld_shlibs_GCJ=no
d9898ee8 17660 fi
17661 ;;
17662
17663 os2*)
17664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17665 hardcode_minus_L_GCJ=yes
17666 allow_undefined_flag_GCJ=unsupported
17667 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'
17668 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17669 ;;
17670
17671 osf3*)
17672 if test "$GCC" = yes; then
17673 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17674 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'
17675 else
17676 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17677 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'
17678 fi
17679 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17680 hardcode_libdir_separator_GCJ=:
17681 ;;
17682
17683 osf4* | osf5*) # as osf3* with the addition of -msym flag
17684 if test "$GCC" = yes; then
17685 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17686 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'
17687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17688 else
17689 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17690 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'
17691 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~
17692 $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'
17693
17694 # Both c and cxx compiler support -rpath directly
17695 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17696 fi
17697 hardcode_libdir_separator_GCJ=:
17698 ;;
17699
17700 solaris*)
17701 no_undefined_flag_GCJ=' -z text'
17702 if test "$GCC" = yes; then
17703 wlarc='${wl}'
17704 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17705 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17706 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17707 else
17708 wlarc=''
17709 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17710 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17712 fi
17713 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17714 hardcode_shlibpath_var_GCJ=no
17715 case $host_os in
17716 solaris2.[0-5] | solaris2.[0-5].*) ;;
17717 *)
0fde1ce3 17718 # The compiler driver will combine and reorder linker options,
17719 # but understands `-z linker_flag'. GCC discards it without `$wl',
17720 # but is careful enough not to reorder.
d9898ee8 17721 # Supported since Solaris 2.6 (maybe 2.5.1?)
0fde1ce3 17722 if test "$GCC" = yes; then
17723 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17724 else
17725 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17726 fi
17727 ;;
d9898ee8 17728 esac
17729 link_all_deplibs_GCJ=yes
17730 ;;
17731
17732 sunos4*)
17733 if test "x$host_vendor" = xsequent; then
17734 # Use $CC to link under sequent, because it throws in some extra .o
17735 # files that make .init and .fini sections work.
17736 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17737 else
17738 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17739 fi
17740 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17741 hardcode_direct_GCJ=yes
17742 hardcode_minus_L_GCJ=yes
17743 hardcode_shlibpath_var_GCJ=no
17744 ;;
17745
17746 sysv4)
17747 case $host_vendor in
17748 sni)
17749 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17750 hardcode_direct_GCJ=yes # is this really true???
17751 ;;
17752 siemens)
17753 ## LD is ld it makes a PLAMLIB
17754 ## CC just makes a GrossModule.
17755 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17756 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17757 hardcode_direct_GCJ=no
17758 ;;
17759 motorola)
17760 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17761 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17762 ;;
17763 esac
17764 runpath_var='LD_RUN_PATH'
17765 hardcode_shlibpath_var_GCJ=no
17766 ;;
17767
17768 sysv4.3*)
17769 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17770 hardcode_shlibpath_var_GCJ=no
17771 export_dynamic_flag_spec_GCJ='-Bexport'
17772 ;;
17773
17774 sysv4*MP*)
17775 if test -d /usr/nec; then
17776 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17777 hardcode_shlibpath_var_GCJ=no
17778 runpath_var=LD_RUN_PATH
17779 hardcode_runpath_var=yes
17780 ld_shlibs_GCJ=yes
17781 fi
17782 ;;
17783
0fde1ce3 17784 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 17785 no_undefined_flag_GCJ='${wl}-z,text'
17786 archive_cmds_need_lc_GCJ=no
17787 hardcode_shlibpath_var_GCJ=no
17788 runpath_var='LD_RUN_PATH'
17789
17790 if test "$GCC" = yes; then
17791 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17792 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17793 else
17794 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17795 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17796 fi
17797 ;;
17798
17799 sysv5* | sco3.2v5* | sco5v6*)
17800 # Note: We can NOT use -z defs as we might desire, because we do not
17801 # link with -lc, and that would cause any symbols used from libc to
17802 # always be unresolved, which means just about no library would
17803 # ever link correctly. If we're not using GNU ld we use -z text
17804 # though, which does catch some bad symbols but isn't as heavy-handed
17805 # as -z defs.
17806 no_undefined_flag_GCJ='${wl}-z,text'
17807 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17808 archive_cmds_need_lc_GCJ=no
17809 hardcode_shlibpath_var_GCJ=no
17810 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17811 hardcode_libdir_separator_GCJ=':'
17812 link_all_deplibs_GCJ=yes
17813 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17814 runpath_var='LD_RUN_PATH'
17815
17816 if test "$GCC" = yes; then
17817 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17818 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17819 else
17820 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17821 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17822 fi
17823 ;;
17824
17825 uts4*)
17826 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17828 hardcode_shlibpath_var_GCJ=no
17829 ;;
17830
17831 *)
17832 ld_shlibs_GCJ=no
17833 ;;
17834 esac
17835 fi
17836
64ff59ba 17837{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17838echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17839test "$ld_shlibs_GCJ" = no && can_build_shared=no
17840
17841#
17842# Do we need to explicitly link libc?
17843#
17844case "x$archive_cmds_need_lc_GCJ" in
17845x|xyes)
17846 # Assume -lc should be added
17847 archive_cmds_need_lc_GCJ=yes
17848
17849 if test "$enable_shared" = yes && test "$GCC" = yes; then
17850 case $archive_cmds_GCJ in
17851 *'~'*)
17852 # FIXME: we may have to deal with multi-command sequences.
17853 ;;
17854 '$CC '*)
17855 # Test whether the compiler implicitly links with -lc since on some
17856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17857 # to ld, don't add -lc before -lgcc.
64ff59ba 17858 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17859echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17860 $rm conftest*
0fde1ce3 17861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 17862
17863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17864 (eval $ac_compile) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } 2>conftest.err; then
17868 soname=conftest
17869 lib=conftest
17870 libobjs=conftest.$ac_objext
17871 deplibs=
17872 wl=$lt_prog_compiler_wl_GCJ
17873 pic_flag=$lt_prog_compiler_pic_GCJ
17874 compiler_flags=-v
17875 linker_flags=-v
17876 verstring=
17877 output_objdir=.
17878 libname=conftest
17879 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17880 allow_undefined_flag_GCJ=
17881 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17882 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }
17886 then
17887 archive_cmds_need_lc_GCJ=no
17888 else
17889 archive_cmds_need_lc_GCJ=yes
17890 fi
17891 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17892 else
17893 cat conftest.err 1>&5
17894 fi
17895 $rm conftest*
64ff59ba 17896 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17897echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17898 ;;
17899 esac
17900 fi
17901 ;;
17902esac
17903
64ff59ba 17904{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17905echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17906library_names_spec=
17907libname_spec='lib$name'
17908soname_spec=
17909shrext_cmds=".so"
17910postinstall_cmds=
17911postuninstall_cmds=
17912finish_cmds=
17913finish_eval=
17914shlibpath_var=
17915shlibpath_overrides_runpath=unknown
17916version_type=none
17917dynamic_linker="$host_os ld.so"
17918sys_lib_dlsearch_path_spec="/lib /usr/lib"
0fde1ce3 17919
d9898ee8 17920need_lib_prefix=unknown
17921hardcode_into_libs=no
17922
17923# when you set need_version to no, make sure it does not cause -set_version
17924# flags to be left without arguments
17925need_version=unknown
17926
17927case $host_os in
17928aix3*)
17929 version_type=linux
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17931 shlibpath_var=LIBPATH
17932
17933 # AIX 3 has no versioning support, so we append a major version to the name.
17934 soname_spec='${libname}${release}${shared_ext}$major'
17935 ;;
17936
17937aix4* | aix5*)
17938 version_type=linux
17939 need_lib_prefix=no
17940 need_version=no
17941 hardcode_into_libs=yes
17942 if test "$host_cpu" = ia64; then
17943 # AIX 5 supports IA64
17944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17945 shlibpath_var=LD_LIBRARY_PATH
17946 else
17947 # With GCC up to 2.95.x, collect2 would create an import file
17948 # for dependence libraries. The import file would start with
17949 # the line `#! .'. This would cause the generated library to
17950 # depend on `.', always an invalid library. This was fixed in
17951 # development snapshots of GCC prior to 3.0.
17952 case $host_os in
17953 aix4 | aix4.[01] | aix4.[01].*)
17954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17955 echo ' yes '
17956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17957 :
17958 else
17959 can_build_shared=no
17960 fi
17961 ;;
17962 esac
17963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17964 # soname into executable. Probably we can add versioning support to
17965 # collect2, so additional links can be useful in future.
17966 if test "$aix_use_runtimelinking" = yes; then
17967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17968 # instead of lib<name>.a to let people know that these are not
17969 # typical AIX shared libraries.
17970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971 else
17972 # We preserve .a as extension for shared libraries through AIX4.2
17973 # and later when we are not doing run time linking.
17974 library_names_spec='${libname}${release}.a $libname.a'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 fi
17977 shlibpath_var=LIBPATH
17978 fi
17979 ;;
17980
17981amigaos*)
17982 library_names_spec='$libname.ixlibrary $libname.a'
17983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17984 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'
17985 ;;
17986
17987beos*)
17988 library_names_spec='${libname}${shared_ext}'
17989 dynamic_linker="$host_os ld.so"
17990 shlibpath_var=LIBRARY_PATH
17991 ;;
17992
17993bsdi[45]*)
17994 version_type=linux
17995 need_version=no
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17997 soname_spec='${libname}${release}${shared_ext}$major'
17998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17999 shlibpath_var=LD_LIBRARY_PATH
18000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18002 # the default ld.so.conf also contains /usr/contrib/lib and
18003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18004 # libtool to hard-code these into programs
18005 ;;
18006
18007cygwin* | mingw* | pw32*)
18008 version_type=windows
18009 shrext_cmds=".dll"
18010 need_version=no
18011 need_lib_prefix=no
18012
18013 case $GCC,$host_os in
18014 yes,cygwin* | yes,mingw* | yes,pw32*)
18015 library_names_spec='$libname.dll.a'
18016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18017 postinstall_cmds='base_file=`basename \${file}`~
18018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18019 dldir=$destdir/`dirname \$dlpath`~
18020 test -d \$dldir || mkdir -p \$dldir~
18021 $install_prog $dir/$dlname \$dldir/$dlname~
18022 chmod a+x \$dldir/$dlname'
18023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18024 dlpath=$dir/\$dldll~
18025 $rm \$dlpath'
18026 shlibpath_overrides_runpath=yes
18027
18028 case $host_os in
18029 cygwin*)
18030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18033 ;;
18034 mingw*)
18035 # MinGW DLLs use traditional 'lib' prefix
18036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18039 # It is most probably a Windows format PATH printed by
18040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18041 # path with ; separators, and with drive letters. We can handle the
18042 # drive letters (cygwin fileutils understands them), so leave them,
18043 # especially as we might pass files found there to a mingw objdump,
18044 # which wouldn't understand a cygwinified path. Ahh.
18045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18046 else
18047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18048 fi
18049 ;;
18050 pw32*)
18051 # pw32 DLLs use 'pw' prefix rather than 'lib'
18052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18053 ;;
18054 esac
18055 ;;
18056
18057 *)
18058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18059 ;;
18060 esac
18061 dynamic_linker='Win32 ld.exe'
18062 # FIXME: first we should search . and the directory the executable is in
18063 shlibpath_var=PATH
18064 ;;
18065
18066darwin* | rhapsody*)
18067 dynamic_linker="$host_os dyld"
18068 version_type=darwin
18069 need_lib_prefix=no
18070 need_version=no
18071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18072 soname_spec='${libname}${release}${major}$shared_ext'
18073 shlibpath_overrides_runpath=yes
18074 shlibpath_var=DYLD_LIBRARY_PATH
18075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
0fde1ce3 18076
d9898ee8 18077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18078 ;;
18079
18080dgux*)
18081 version_type=linux
18082 need_lib_prefix=no
18083 need_version=no
18084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18085 soname_spec='${libname}${release}${shared_ext}$major'
18086 shlibpath_var=LD_LIBRARY_PATH
18087 ;;
18088
18089freebsd1*)
18090 dynamic_linker=no
18091 ;;
18092
d9898ee8 18093freebsd* | dragonfly*)
18094 # DragonFly does not have aout. When/if they implement a new
18095 # versioning mechanism, adjust this.
18096 if test -x /usr/bin/objformat; then
18097 objformat=`/usr/bin/objformat`
18098 else
18099 case $host_os in
18100 freebsd[123]*) objformat=aout ;;
18101 *) objformat=elf ;;
18102 esac
18103 fi
18104 version_type=freebsd-$objformat
18105 case $version_type in
18106 freebsd-elf*)
18107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18108 need_version=no
18109 need_lib_prefix=no
18110 ;;
18111 freebsd-*)
18112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18113 need_version=yes
18114 ;;
18115 esac
18116 shlibpath_var=LD_LIBRARY_PATH
18117 case $host_os in
18118 freebsd2*)
18119 shlibpath_overrides_runpath=yes
18120 ;;
18121 freebsd3.[01]* | freebsdelf3.[01]*)
18122 shlibpath_overrides_runpath=yes
18123 hardcode_into_libs=yes
18124 ;;
18125 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18126 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18127 shlibpath_overrides_runpath=no
18128 hardcode_into_libs=yes
18129 ;;
0fde1ce3 18130 *) # from 4.6 on, and DragonFly
d9898ee8 18131 shlibpath_overrides_runpath=yes
18132 hardcode_into_libs=yes
18133 ;;
18134 esac
18135 ;;
18136
18137gnu*)
18138 version_type=linux
18139 need_lib_prefix=no
18140 need_version=no
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 shlibpath_var=LD_LIBRARY_PATH
18144 hardcode_into_libs=yes
18145 ;;
18146
18147hpux9* | hpux10* | hpux11*)
18148 # Give a soname corresponding to the major version so that dld.sl refuses to
18149 # link against other versions.
18150 version_type=sunos
18151 need_lib_prefix=no
18152 need_version=no
18153 case $host_cpu in
18154 ia64*)
18155 shrext_cmds='.so'
18156 hardcode_into_libs=yes
18157 dynamic_linker="$host_os dld.so"
18158 shlibpath_var=LD_LIBRARY_PATH
18159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161 soname_spec='${libname}${release}${shared_ext}$major'
18162 if test "X$HPUX_IA64_MODE" = X32; then
18163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18164 else
18165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18166 fi
18167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18168 ;;
18169 hppa*64*)
18170 shrext_cmds='.sl'
18171 hardcode_into_libs=yes
18172 dynamic_linker="$host_os dld.sl"
18173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18176 soname_spec='${libname}${release}${shared_ext}$major'
18177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18179 ;;
18180 *)
18181 shrext_cmds='.sl'
18182 dynamic_linker="$host_os dld.sl"
18183 shlibpath_var=SHLIB_PATH
18184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 ;;
18188 esac
18189 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18190 postinstall_cmds='chmod 555 $lib'
18191 ;;
18192
0fde1ce3 18193interix[3-9]*)
d9898ee8 18194 version_type=linux
18195 need_lib_prefix=no
18196 need_version=no
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18200 shlibpath_var=LD_LIBRARY_PATH
18201 shlibpath_overrides_runpath=no
18202 hardcode_into_libs=yes
18203 ;;
18204
18205irix5* | irix6* | nonstopux*)
18206 case $host_os in
18207 nonstopux*) version_type=nonstopux ;;
18208 *)
18209 if test "$lt_cv_prog_gnu_ld" = yes; then
18210 version_type=linux
18211 else
18212 version_type=irix
18213 fi ;;
18214 esac
18215 need_lib_prefix=no
18216 need_version=no
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18219 case $host_os in
18220 irix5* | nonstopux*)
18221 libsuff= shlibsuff=
18222 ;;
18223 *)
18224 case $LD in # libtool.m4 will add one of these switches to LD
18225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18226 libsuff= shlibsuff= libmagic=32-bit;;
18227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18228 libsuff=32 shlibsuff=N32 libmagic=N32;;
18229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18231 *) libsuff= shlibsuff= libmagic=never-match;;
18232 esac
18233 ;;
18234 esac
18235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18236 shlibpath_overrides_runpath=no
18237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18239 hardcode_into_libs=yes
18240 ;;
18241
18242# No shared lib support for Linux oldld, aout, or coff.
18243linux*oldld* | linux*aout* | linux*coff*)
18244 dynamic_linker=no
18245 ;;
18246
18247# This must be Linux ELF.
0fde1ce3 18248linux* | k*bsd*-gnu)
d9898ee8 18249 version_type=linux
18250 need_lib_prefix=no
18251 need_version=no
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253 soname_spec='${libname}${release}${shared_ext}$major'
18254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18255 shlibpath_var=LD_LIBRARY_PATH
18256 shlibpath_overrides_runpath=no
18257 # This implies no fast_install, which is unacceptable.
18258 # Some rework will be needed to allow for fast_install
18259 # before this can be enabled.
18260 hardcode_into_libs=yes
0fde1ce3 18261 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18262 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18263
18264 # Append ld.so.conf contents to the search path
18265 if test -f /etc/ld.so.conf; then
0fde1ce3 18266 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18267 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18268 fi
18269
18270 # We used to test for /lib/ld.so.1 and disable shared libraries on
18271 # powerpc, because MkLinux only supported shared libraries with the
18272 # GNU dynamic linker. Since this was broken with cross compilers,
18273 # most powerpc-linux boxes support dynamic linking these days and
18274 # people can always --disable-shared, the test was removed, and we
18275 # assume the GNU/Linux dynamic linker is in use.
18276 dynamic_linker='GNU/Linux ld.so'
18277 ;;
18278
d9898ee8 18279netbsd*)
18280 version_type=sunos
18281 need_lib_prefix=no
18282 need_version=no
18283 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18286 dynamic_linker='NetBSD (a.out) ld.so'
18287 else
18288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18289 soname_spec='${libname}${release}${shared_ext}$major'
18290 dynamic_linker='NetBSD ld.elf_so'
18291 fi
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=yes
18294 hardcode_into_libs=yes
18295 ;;
18296
18297newsos6)
18298 version_type=linux
18299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18300 shlibpath_var=LD_LIBRARY_PATH
18301 shlibpath_overrides_runpath=yes
18302 ;;
18303
18304nto-qnx*)
18305 version_type=linux
18306 need_lib_prefix=no
18307 need_version=no
18308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309 soname_spec='${libname}${release}${shared_ext}$major'
18310 shlibpath_var=LD_LIBRARY_PATH
18311 shlibpath_overrides_runpath=yes
18312 ;;
18313
18314openbsd*)
18315 version_type=sunos
18316 sys_lib_dlsearch_path_spec="/usr/lib"
18317 need_lib_prefix=no
18318 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18319 case $host_os in
18320 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18321 *) need_version=no ;;
18322 esac
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18325 shlibpath_var=LD_LIBRARY_PATH
18326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18327 case $host_os in
18328 openbsd2.[89] | openbsd2.[89].*)
18329 shlibpath_overrides_runpath=no
18330 ;;
18331 *)
18332 shlibpath_overrides_runpath=yes
18333 ;;
18334 esac
18335 else
18336 shlibpath_overrides_runpath=yes
18337 fi
18338 ;;
18339
18340os2*)
18341 libname_spec='$name'
18342 shrext_cmds=".dll"
18343 need_lib_prefix=no
18344 library_names_spec='$libname${shared_ext} $libname.a'
18345 dynamic_linker='OS/2 ld.exe'
18346 shlibpath_var=LIBPATH
18347 ;;
18348
18349osf3* | osf4* | osf5*)
18350 version_type=osf
18351 need_lib_prefix=no
18352 need_version=no
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355 shlibpath_var=LD_LIBRARY_PATH
18356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18357 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18358 ;;
18359
0fde1ce3 18360rdos*)
18361 dynamic_linker=no
18362 ;;
18363
d9898ee8 18364solaris*)
18365 version_type=linux
18366 need_lib_prefix=no
18367 need_version=no
18368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18369 soname_spec='${libname}${release}${shared_ext}$major'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 shlibpath_overrides_runpath=yes
18372 hardcode_into_libs=yes
18373 # ldd complains unless libraries are executable
18374 postinstall_cmds='chmod +x $lib'
18375 ;;
18376
18377sunos4*)
18378 version_type=sunos
18379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18381 shlibpath_var=LD_LIBRARY_PATH
18382 shlibpath_overrides_runpath=yes
18383 if test "$with_gnu_ld" = yes; then
18384 need_lib_prefix=no
18385 fi
18386 need_version=yes
18387 ;;
18388
18389sysv4 | sysv4.3*)
18390 version_type=linux
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 shlibpath_var=LD_LIBRARY_PATH
18394 case $host_vendor in
18395 sni)
18396 shlibpath_overrides_runpath=no
18397 need_lib_prefix=no
18398 export_dynamic_flag_spec='${wl}-Blargedynsym'
18399 runpath_var=LD_RUN_PATH
18400 ;;
18401 siemens)
18402 need_lib_prefix=no
18403 ;;
18404 motorola)
18405 need_lib_prefix=no
18406 need_version=no
18407 shlibpath_overrides_runpath=no
18408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18409 ;;
18410 esac
18411 ;;
18412
18413sysv4*MP*)
18414 if test -d /usr/nec ;then
18415 version_type=linux
18416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18417 soname_spec='$libname${shared_ext}.$major'
18418 shlibpath_var=LD_LIBRARY_PATH
18419 fi
18420 ;;
18421
18422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18423 version_type=freebsd-elf
18424 need_lib_prefix=no
18425 need_version=no
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18427 soname_spec='${libname}${release}${shared_ext}$major'
18428 shlibpath_var=LD_LIBRARY_PATH
18429 hardcode_into_libs=yes
18430 if test "$with_gnu_ld" = yes; then
18431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18432 shlibpath_overrides_runpath=no
18433 else
18434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18435 shlibpath_overrides_runpath=yes
18436 case $host_os in
18437 sco3.2v5*)
18438 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18439 ;;
18440 esac
18441 fi
18442 sys_lib_dlsearch_path_spec='/usr/lib'
18443 ;;
18444
18445uts4*)
18446 version_type=linux
18447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18448 soname_spec='${libname}${release}${shared_ext}$major'
18449 shlibpath_var=LD_LIBRARY_PATH
18450 ;;
18451
18452*)
18453 dynamic_linker=no
18454 ;;
18455esac
64ff59ba 18456{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18457echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18458test "$dynamic_linker" = no && can_build_shared=no
18459
18460variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18461if test "$GCC" = yes; then
18462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18463fi
18464
64ff59ba 18465{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18466echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18467hardcode_action_GCJ=
18468if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18469 test -n "$runpath_var_GCJ" || \
18470 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18471
18472 # We can hardcode non-existant directories.
18473 if test "$hardcode_direct_GCJ" != no &&
18474 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18475 # have to relink, otherwise we might link with an installed library
18476 # when we should be linking with a yet-to-be-installed one
18477 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18478 test "$hardcode_minus_L_GCJ" != no; then
18479 # Linking always hardcodes the temporary library directory.
18480 hardcode_action_GCJ=relink
18481 else
18482 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18483 hardcode_action_GCJ=immediate
18484 fi
18485else
18486 # We cannot hardcode anything, or else we can only hardcode existing
18487 # directories.
18488 hardcode_action_GCJ=unsupported
18489fi
64ff59ba 18490{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18491echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18492
18493if test "$hardcode_action_GCJ" = relink; then
18494 # Fast installation is not supported
18495 enable_fast_install=no
18496elif test "$shlibpath_overrides_runpath" = yes ||
18497 test "$enable_shared" = no; then
18498 # Fast installation is not necessary
18499 enable_fast_install=needless
18500fi
18501
18502
18503# The else clause should only fire when bootstrapping the
18504# libtool distribution, otherwise you forgot to ship ltmain.sh
18505# with your package, and you will get complaints that there are
18506# no rules to generate ltmain.sh.
18507if test -f "$ltmain"; then
18508 # See if we are running on zsh, and set the options which allow our commands through
18509 # without removal of \ escapes.
18510 if test -n "${ZSH_VERSION+set}" ; then
18511 setopt NO_GLOB_SUBST
18512 fi
18513 # Now quote all the things that may contain metacharacters while being
18514 # careful not to overquote the AC_SUBSTed values. We take copies of the
18515 # variables and quote the copies for generation of the libtool script.
18516 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18517 SED SHELL STRIP \
18518 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18519 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18520 deplibs_check_method reload_flag reload_cmds need_locks \
18521 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18522 lt_cv_sys_global_symbol_to_c_name_address \
18523 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18524 old_postinstall_cmds old_postuninstall_cmds \
18525 compiler_GCJ \
18526 CC_GCJ \
18527 LD_GCJ \
18528 lt_prog_compiler_wl_GCJ \
18529 lt_prog_compiler_pic_GCJ \
18530 lt_prog_compiler_static_GCJ \
18531 lt_prog_compiler_no_builtin_flag_GCJ \
18532 export_dynamic_flag_spec_GCJ \
18533 thread_safe_flag_spec_GCJ \
18534 whole_archive_flag_spec_GCJ \
18535 enable_shared_with_static_runtimes_GCJ \
18536 old_archive_cmds_GCJ \
18537 old_archive_from_new_cmds_GCJ \
18538 predep_objects_GCJ \
18539 postdep_objects_GCJ \
18540 predeps_GCJ \
18541 postdeps_GCJ \
18542 compiler_lib_search_path_GCJ \
18543 archive_cmds_GCJ \
18544 archive_expsym_cmds_GCJ \
18545 postinstall_cmds_GCJ \
18546 postuninstall_cmds_GCJ \
18547 old_archive_from_expsyms_cmds_GCJ \
18548 allow_undefined_flag_GCJ \
18549 no_undefined_flag_GCJ \
18550 export_symbols_cmds_GCJ \
18551 hardcode_libdir_flag_spec_GCJ \
18552 hardcode_libdir_flag_spec_ld_GCJ \
18553 hardcode_libdir_separator_GCJ \
18554 hardcode_automatic_GCJ \
18555 module_cmds_GCJ \
18556 module_expsym_cmds_GCJ \
18557 lt_cv_prog_compiler_c_o_GCJ \
0fde1ce3 18558 fix_srcfile_path_GCJ \
d9898ee8 18559 exclude_expsyms_GCJ \
18560 include_expsyms_GCJ; do
18561
18562 case $var in
18563 old_archive_cmds_GCJ | \
18564 old_archive_from_new_cmds_GCJ | \
18565 archive_cmds_GCJ | \
18566 archive_expsym_cmds_GCJ | \
18567 module_cmds_GCJ | \
18568 module_expsym_cmds_GCJ | \
18569 old_archive_from_expsyms_cmds_GCJ | \
18570 export_symbols_cmds_GCJ | \
18571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18572 postinstall_cmds | postuninstall_cmds | \
18573 old_postinstall_cmds | old_postuninstall_cmds | \
18574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18575 # Double-quote double-evaled strings.
18576 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18577 ;;
18578 *)
18579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18580 ;;
18581 esac
18582 done
18583
18584 case $lt_echo in
18585 *'\$0 --fallback-echo"')
18586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18587 ;;
18588 esac
18589
18590cfgfile="$ofile"
18591
18592 cat <<__EOF__ >> "$cfgfile"
18593# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18594
18595# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18596
18597# Shell to use when invoking shell scripts.
18598SHELL=$lt_SHELL
18599
18600# Whether or not to build shared libraries.
18601build_libtool_libs=$enable_shared
18602
18603# Whether or not to build static libraries.
18604build_old_libs=$enable_static
18605
18606# Whether or not to add -lc for building shared libraries.
18607build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18608
18609# Whether or not to disallow shared libs when runtime libs are static
18610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18611
18612# Whether or not to optimize for fast installation.
18613fast_install=$enable_fast_install
18614
18615# The host system.
18616host_alias=$host_alias
18617host=$host
18618host_os=$host_os
18619
18620# The build system.
18621build_alias=$build_alias
18622build=$build
18623build_os=$build_os
18624
18625# An echo program that does not interpret backslashes.
18626echo=$lt_echo
18627
18628# The archiver.
18629AR=$lt_AR
18630AR_FLAGS=$lt_AR_FLAGS
18631
18632# A C compiler.
18633LTCC=$lt_LTCC
18634
18635# LTCC compiler flags.
18636LTCFLAGS=$lt_LTCFLAGS
18637
18638# A language-specific compiler.
18639CC=$lt_compiler_GCJ
18640
18641# Is the compiler the GNU C compiler?
18642with_gcc=$GCC_GCJ
18643
d9898ee8 18644# An ERE matcher.
18645EGREP=$lt_EGREP
18646
18647# The linker used to build libraries.
18648LD=$lt_LD_GCJ
18649
18650# Whether we need hard or soft links.
18651LN_S=$lt_LN_S
18652
18653# A BSD-compatible nm program.
18654NM=$lt_NM
18655
18656# A symbol stripping program
18657STRIP=$lt_STRIP
18658
18659# Used to examine libraries when file_magic_cmd begins "file"
18660MAGIC_CMD=$MAGIC_CMD
18661
18662# Used on cygwin: DLL creation program.
18663DLLTOOL="$DLLTOOL"
18664
18665# Used on cygwin: object dumper.
18666OBJDUMP="$OBJDUMP"
18667
18668# Used on cygwin: assembler.
18669AS="$AS"
18670
18671# The name of the directory that contains temporary libtool files.
18672objdir=$objdir
18673
18674# How to create reloadable object files.
18675reload_flag=$lt_reload_flag
18676reload_cmds=$lt_reload_cmds
18677
18678# How to pass a linker flag through the compiler.
18679wl=$lt_lt_prog_compiler_wl_GCJ
18680
18681# Object file suffix (normally "o").
18682objext="$ac_objext"
18683
18684# Old archive suffix (normally "a").
18685libext="$libext"
18686
18687# Shared library suffix (normally ".so").
18688shrext_cmds='$shrext_cmds'
18689
18690# Executable file suffix (normally "").
18691exeext="$exeext"
18692
18693# Additional compiler flags for building library objects.
18694pic_flag=$lt_lt_prog_compiler_pic_GCJ
18695pic_mode=$pic_mode
18696
18697# What is the maximum length of a command?
18698max_cmd_len=$lt_cv_sys_max_cmd_len
18699
18700# Does compiler simultaneously support -c and -o options?
18701compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18702
18703# Must we lock files when doing compilation?
18704need_locks=$lt_need_locks
18705
18706# Do we need the lib prefix for modules?
18707need_lib_prefix=$need_lib_prefix
18708
18709# Do we need a version for libraries?
18710need_version=$need_version
18711
18712# Whether dlopen is supported.
18713dlopen_support=$enable_dlopen
18714
18715# Whether dlopen of programs is supported.
18716dlopen_self=$enable_dlopen_self
18717
18718# Whether dlopen of statically linked programs is supported.
18719dlopen_self_static=$enable_dlopen_self_static
18720
18721# Compiler flag to prevent dynamic linking.
18722link_static_flag=$lt_lt_prog_compiler_static_GCJ
18723
18724# Compiler flag to turn off builtin functions.
18725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18726
18727# Compiler flag to allow reflexive dlopens.
18728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18729
18730# Compiler flag to generate shared objects directly from archives.
18731whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18732
18733# Compiler flag to generate thread-safe objects.
18734thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18735
18736# Library versioning type.
18737version_type=$version_type
18738
18739# Format of library name prefix.
18740libname_spec=$lt_libname_spec
18741
18742# List of archive names. First name is the real one, the rest are links.
18743# The last name is the one that the linker finds with -lNAME.
18744library_names_spec=$lt_library_names_spec
18745
18746# The coded name of the library, if different from the real name.
18747soname_spec=$lt_soname_spec
18748
18749# Commands used to build and install an old-style archive.
18750RANLIB=$lt_RANLIB
18751old_archive_cmds=$lt_old_archive_cmds_GCJ
18752old_postinstall_cmds=$lt_old_postinstall_cmds
18753old_postuninstall_cmds=$lt_old_postuninstall_cmds
18754
18755# Create an old-style archive from a shared archive.
18756old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18757
18758# Create a temporary old-style archive to link instead of a shared archive.
18759old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18760
18761# Commands used to build and install a shared archive.
18762archive_cmds=$lt_archive_cmds_GCJ
18763archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18764postinstall_cmds=$lt_postinstall_cmds
18765postuninstall_cmds=$lt_postuninstall_cmds
18766
18767# Commands used to build a loadable module (assumed same as above if empty)
18768module_cmds=$lt_module_cmds_GCJ
18769module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18770
18771# Commands to strip libraries.
18772old_striplib=$lt_old_striplib
18773striplib=$lt_striplib
18774
18775# Dependencies to place before the objects being linked to create a
18776# shared library.
64ff59ba 18777predep_objects=$lt_predep_objects_GCJ
d9898ee8 18778
18779# Dependencies to place after the objects being linked to create a
18780# shared library.
64ff59ba 18781postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18782
18783# Dependencies to place before the objects being linked to create a
18784# shared library.
18785predeps=$lt_predeps_GCJ
18786
18787# Dependencies to place after the objects being linked to create a
18788# shared library.
18789postdeps=$lt_postdeps_GCJ
18790
18791# The library search path used internally by the compiler when linking
18792# a shared library.
64ff59ba 18793compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18794
18795# Method to check whether dependent libraries are shared objects.
18796deplibs_check_method=$lt_deplibs_check_method
18797
18798# Command to use when deplibs_check_method == file_magic.
18799file_magic_cmd=$lt_file_magic_cmd
18800
18801# Flag that allows shared libraries with undefined symbols to be built.
18802allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18803
18804# Flag that forces no undefined symbols.
18805no_undefined_flag=$lt_no_undefined_flag_GCJ
18806
18807# Commands used to finish a libtool library installation in a directory.
18808finish_cmds=$lt_finish_cmds
18809
18810# Same as above, but a single script fragment to be evaled but not shown.
18811finish_eval=$lt_finish_eval
18812
18813# Take the output of nm and produce a listing of raw symbols and C names.
18814global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18815
18816# Transform the output of nm in a proper C declaration
18817global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18818
18819# Transform the output of nm in a C name address pair
18820global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18821
18822# This is the shared library runtime path variable.
18823runpath_var=$runpath_var
18824
18825# This is the shared library path variable.
18826shlibpath_var=$shlibpath_var
18827
18828# Is shlibpath searched before the hard-coded library search path?
18829shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18830
18831# How to hardcode a shared library path into an executable.
18832hardcode_action=$hardcode_action_GCJ
18833
18834# Whether we should hardcode library paths into libraries.
18835hardcode_into_libs=$hardcode_into_libs
18836
18837# Flag to hardcode \$libdir into a binary during linking.
18838# This must work even if \$libdir does not exist.
18839hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18840
18841# If ld is used when linking, flag to hardcode \$libdir into
18842# a binary during linking. This must work even if \$libdir does
18843# not exist.
18844hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18845
18846# Whether we need a single -rpath flag with a separated argument.
18847hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18848
18849# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18850# resulting binary.
18851hardcode_direct=$hardcode_direct_GCJ
18852
18853# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18854# resulting binary.
18855hardcode_minus_L=$hardcode_minus_L_GCJ
18856
18857# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18858# the resulting binary.
18859hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18860
18861# Set to yes if building a shared library automatically hardcodes DIR into the library
18862# and all subsequent libraries and executables linked against it.
18863hardcode_automatic=$hardcode_automatic_GCJ
18864
18865# Variables whose values should be saved in libtool wrapper scripts and
18866# restored at relink time.
18867variables_saved_for_relink="$variables_saved_for_relink"
18868
18869# Whether libtool must link a program against all its dependency libraries.
18870link_all_deplibs=$link_all_deplibs_GCJ
18871
18872# Compile-time system search path for libraries
64ff59ba 18873sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18874
18875# Run-time system search path for libraries
18876sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18877
18878# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 18879fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 18880
18881# Set to yes if exported symbols are required.
18882always_export_symbols=$always_export_symbols_GCJ
18883
18884# The commands to list exported symbols.
18885export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18886
18887# The commands to extract the exported symbol list from a shared archive.
18888extract_expsyms_cmds=$lt_extract_expsyms_cmds
18889
18890# Symbols that should not be listed in the preloaded symbols.
18891exclude_expsyms=$lt_exclude_expsyms_GCJ
18892
18893# Symbols that must always be exported.
18894include_expsyms=$lt_include_expsyms_GCJ
18895
18896# ### END LIBTOOL TAG CONFIG: $tagname
18897
18898__EOF__
18899
18900
18901else
18902 # If there is no Makefile yet, we rely on a make rule to execute
18903 # `config.status --recheck' to rerun these tests and create the
18904 # libtool script then.
18905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18906 if test -f "$ltmain_in"; then
18907 test -f Makefile && make "$ltmain"
18908 fi
18909fi
18910
18911
18912ac_ext=c
18913ac_cpp='$CPP $CPPFLAGS'
18914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18916ac_compiler_gnu=$ac_cv_c_compiler_gnu
18917
18918CC="$lt_save_CC"
18919
18920 else
18921 tagname=""
18922 fi
18923 ;;
18924
18925 RC)
18926
18927
d9898ee8 18928# Source file extension for RC test sources.
18929ac_ext=rc
18930
18931# Object file extension for compiled RC test sources.
18932objext=o
18933objext_RC=$objext
18934
18935# Code to be used in simple compile tests
0fde1ce3 18936lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 18937
18938# Code to be used in simple link tests
18939lt_simple_link_test_code="$lt_simple_compile_test_code"
18940
18941# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18942
18943# If no C compiler was specified, use CC.
18944LTCC=${LTCC-"$CC"}
18945
18946# If no C compiler flags were specified, use CFLAGS.
18947LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18948
18949# Allow CC to be a program name with arguments.
18950compiler=$CC
18951
18952
18953# save warnings/boilerplate of simple test code
18954ac_outfile=conftest.$ac_objext
0fde1ce3 18955echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 18956eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18957_lt_compiler_boilerplate=`cat conftest.err`
18958$rm conftest*
18959
18960ac_outfile=conftest.$ac_objext
0fde1ce3 18961echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 18962eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18963_lt_linker_boilerplate=`cat conftest.err`
18964$rm conftest*
18965
18966
18967# Allow CC to be a program name with arguments.
18968lt_save_CC="$CC"
18969CC=${RC-"windres"}
18970compiler=$CC
18971compiler_RC=$CC
18972for cc_temp in $compiler""; do
18973 case $cc_temp in
18974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18976 \-*) ;;
18977 *) break;;
18978 esac
18979done
18980cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18981
18982lt_cv_prog_compiler_c_o_RC=yes
18983
18984# The else clause should only fire when bootstrapping the
18985# libtool distribution, otherwise you forgot to ship ltmain.sh
18986# with your package, and you will get complaints that there are
18987# no rules to generate ltmain.sh.
18988if test -f "$ltmain"; then
18989 # See if we are running on zsh, and set the options which allow our commands through
18990 # without removal of \ escapes.
18991 if test -n "${ZSH_VERSION+set}" ; then
18992 setopt NO_GLOB_SUBST
18993 fi
18994 # Now quote all the things that may contain metacharacters while being
18995 # careful not to overquote the AC_SUBSTed values. We take copies of the
18996 # variables and quote the copies for generation of the libtool script.
18997 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18998 SED SHELL STRIP \
18999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19001 deplibs_check_method reload_flag reload_cmds need_locks \
19002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19003 lt_cv_sys_global_symbol_to_c_name_address \
19004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19005 old_postinstall_cmds old_postuninstall_cmds \
19006 compiler_RC \
19007 CC_RC \
19008 LD_RC \
19009 lt_prog_compiler_wl_RC \
19010 lt_prog_compiler_pic_RC \
19011 lt_prog_compiler_static_RC \
19012 lt_prog_compiler_no_builtin_flag_RC \
19013 export_dynamic_flag_spec_RC \
19014 thread_safe_flag_spec_RC \
19015 whole_archive_flag_spec_RC \
19016 enable_shared_with_static_runtimes_RC \
19017 old_archive_cmds_RC \
19018 old_archive_from_new_cmds_RC \
19019 predep_objects_RC \
19020 postdep_objects_RC \
19021 predeps_RC \
19022 postdeps_RC \
19023 compiler_lib_search_path_RC \
19024 archive_cmds_RC \
19025 archive_expsym_cmds_RC \
19026 postinstall_cmds_RC \
19027 postuninstall_cmds_RC \
19028 old_archive_from_expsyms_cmds_RC \
19029 allow_undefined_flag_RC \
19030 no_undefined_flag_RC \
19031 export_symbols_cmds_RC \
19032 hardcode_libdir_flag_spec_RC \
19033 hardcode_libdir_flag_spec_ld_RC \
19034 hardcode_libdir_separator_RC \
19035 hardcode_automatic_RC \
19036 module_cmds_RC \
19037 module_expsym_cmds_RC \
19038 lt_cv_prog_compiler_c_o_RC \
0fde1ce3 19039 fix_srcfile_path_RC \
d9898ee8 19040 exclude_expsyms_RC \
19041 include_expsyms_RC; do
19042
19043 case $var in
19044 old_archive_cmds_RC | \
19045 old_archive_from_new_cmds_RC | \
19046 archive_cmds_RC | \
19047 archive_expsym_cmds_RC | \
19048 module_cmds_RC | \
19049 module_expsym_cmds_RC | \
19050 old_archive_from_expsyms_cmds_RC | \
19051 export_symbols_cmds_RC | \
19052 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19053 postinstall_cmds | postuninstall_cmds | \
19054 old_postinstall_cmds | old_postuninstall_cmds | \
19055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19056 # Double-quote double-evaled strings.
19057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19058 ;;
19059 *)
19060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19061 ;;
19062 esac
19063 done
19064
19065 case $lt_echo in
19066 *'\$0 --fallback-echo"')
19067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19068 ;;
19069 esac
19070
19071cfgfile="$ofile"
19072
19073 cat <<__EOF__ >> "$cfgfile"
19074# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19075
19076# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19077
19078# Shell to use when invoking shell scripts.
19079SHELL=$lt_SHELL
19080
19081# Whether or not to build shared libraries.
19082build_libtool_libs=$enable_shared
19083
19084# Whether or not to build static libraries.
19085build_old_libs=$enable_static
19086
19087# Whether or not to add -lc for building shared libraries.
19088build_libtool_need_lc=$archive_cmds_need_lc_RC
19089
19090# Whether or not to disallow shared libs when runtime libs are static
19091allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19092
19093# Whether or not to optimize for fast installation.
19094fast_install=$enable_fast_install
19095
19096# The host system.
19097host_alias=$host_alias
19098host=$host
19099host_os=$host_os
19100
19101# The build system.
19102build_alias=$build_alias
19103build=$build
19104build_os=$build_os
19105
19106# An echo program that does not interpret backslashes.
19107echo=$lt_echo
19108
19109# The archiver.
19110AR=$lt_AR
19111AR_FLAGS=$lt_AR_FLAGS
19112
19113# A C compiler.
19114LTCC=$lt_LTCC
19115
19116# LTCC compiler flags.
19117LTCFLAGS=$lt_LTCFLAGS
19118
19119# A language-specific compiler.
19120CC=$lt_compiler_RC
19121
19122# Is the compiler the GNU C compiler?
19123with_gcc=$GCC_RC
19124
d9898ee8 19125# An ERE matcher.
19126EGREP=$lt_EGREP
19127
19128# The linker used to build libraries.
19129LD=$lt_LD_RC
19130
19131# Whether we need hard or soft links.
19132LN_S=$lt_LN_S
19133
19134# A BSD-compatible nm program.
19135NM=$lt_NM
19136
19137# A symbol stripping program
19138STRIP=$lt_STRIP
19139
19140# Used to examine libraries when file_magic_cmd begins "file"
19141MAGIC_CMD=$MAGIC_CMD
19142
19143# Used on cygwin: DLL creation program.
19144DLLTOOL="$DLLTOOL"
19145
19146# Used on cygwin: object dumper.
19147OBJDUMP="$OBJDUMP"
19148
19149# Used on cygwin: assembler.
19150AS="$AS"
19151
19152# The name of the directory that contains temporary libtool files.
19153objdir=$objdir
19154
19155# How to create reloadable object files.
19156reload_flag=$lt_reload_flag
19157reload_cmds=$lt_reload_cmds
19158
19159# How to pass a linker flag through the compiler.
19160wl=$lt_lt_prog_compiler_wl_RC
19161
19162# Object file suffix (normally "o").
19163objext="$ac_objext"
19164
19165# Old archive suffix (normally "a").
19166libext="$libext"
19167
19168# Shared library suffix (normally ".so").
19169shrext_cmds='$shrext_cmds'
19170
19171# Executable file suffix (normally "").
19172exeext="$exeext"
19173
19174# Additional compiler flags for building library objects.
19175pic_flag=$lt_lt_prog_compiler_pic_RC
19176pic_mode=$pic_mode
19177
19178# What is the maximum length of a command?
19179max_cmd_len=$lt_cv_sys_max_cmd_len
19180
19181# Does compiler simultaneously support -c and -o options?
19182compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19183
19184# Must we lock files when doing compilation?
19185need_locks=$lt_need_locks
19186
19187# Do we need the lib prefix for modules?
19188need_lib_prefix=$need_lib_prefix
19189
19190# Do we need a version for libraries?
19191need_version=$need_version
19192
19193# Whether dlopen is supported.
19194dlopen_support=$enable_dlopen
19195
19196# Whether dlopen of programs is supported.
19197dlopen_self=$enable_dlopen_self
19198
19199# Whether dlopen of statically linked programs is supported.
19200dlopen_self_static=$enable_dlopen_self_static
19201
19202# Compiler flag to prevent dynamic linking.
19203link_static_flag=$lt_lt_prog_compiler_static_RC
19204
19205# Compiler flag to turn off builtin functions.
19206no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19207
19208# Compiler flag to allow reflexive dlopens.
19209export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19210
19211# Compiler flag to generate shared objects directly from archives.
19212whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19213
19214# Compiler flag to generate thread-safe objects.
19215thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19216
19217# Library versioning type.
19218version_type=$version_type
19219
19220# Format of library name prefix.
19221libname_spec=$lt_libname_spec
19222
19223# List of archive names. First name is the real one, the rest are links.
19224# The last name is the one that the linker finds with -lNAME.
19225library_names_spec=$lt_library_names_spec
19226
19227# The coded name of the library, if different from the real name.
19228soname_spec=$lt_soname_spec
19229
19230# Commands used to build and install an old-style archive.
19231RANLIB=$lt_RANLIB
19232old_archive_cmds=$lt_old_archive_cmds_RC
19233old_postinstall_cmds=$lt_old_postinstall_cmds
19234old_postuninstall_cmds=$lt_old_postuninstall_cmds
19235
19236# Create an old-style archive from a shared archive.
19237old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19238
19239# Create a temporary old-style archive to link instead of a shared archive.
19240old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19241
19242# Commands used to build and install a shared archive.
19243archive_cmds=$lt_archive_cmds_RC
19244archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19245postinstall_cmds=$lt_postinstall_cmds
19246postuninstall_cmds=$lt_postuninstall_cmds
19247
19248# Commands used to build a loadable module (assumed same as above if empty)
19249module_cmds=$lt_module_cmds_RC
19250module_expsym_cmds=$lt_module_expsym_cmds_RC
19251
19252# Commands to strip libraries.
19253old_striplib=$lt_old_striplib
19254striplib=$lt_striplib
19255
19256# Dependencies to place before the objects being linked to create a
19257# shared library.
64ff59ba 19258predep_objects=$lt_predep_objects_RC
d9898ee8 19259
19260# Dependencies to place after the objects being linked to create a
19261# shared library.
64ff59ba 19262postdep_objects=$lt_postdep_objects_RC
d9898ee8 19263
19264# Dependencies to place before the objects being linked to create a
19265# shared library.
19266predeps=$lt_predeps_RC
19267
19268# Dependencies to place after the objects being linked to create a
19269# shared library.
19270postdeps=$lt_postdeps_RC
19271
19272# The library search path used internally by the compiler when linking
19273# a shared library.
64ff59ba 19274compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19275
19276# Method to check whether dependent libraries are shared objects.
19277deplibs_check_method=$lt_deplibs_check_method
19278
19279# Command to use when deplibs_check_method == file_magic.
19280file_magic_cmd=$lt_file_magic_cmd
19281
19282# Flag that allows shared libraries with undefined symbols to be built.
19283allow_undefined_flag=$lt_allow_undefined_flag_RC
19284
19285# Flag that forces no undefined symbols.
19286no_undefined_flag=$lt_no_undefined_flag_RC
19287
19288# Commands used to finish a libtool library installation in a directory.
19289finish_cmds=$lt_finish_cmds
19290
19291# Same as above, but a single script fragment to be evaled but not shown.
19292finish_eval=$lt_finish_eval
19293
19294# Take the output of nm and produce a listing of raw symbols and C names.
19295global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19296
19297# Transform the output of nm in a proper C declaration
19298global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19299
19300# Transform the output of nm in a C name address pair
19301global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19302
19303# This is the shared library runtime path variable.
19304runpath_var=$runpath_var
19305
19306# This is the shared library path variable.
19307shlibpath_var=$shlibpath_var
19308
19309# Is shlibpath searched before the hard-coded library search path?
19310shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19311
19312# How to hardcode a shared library path into an executable.
19313hardcode_action=$hardcode_action_RC
19314
19315# Whether we should hardcode library paths into libraries.
19316hardcode_into_libs=$hardcode_into_libs
19317
19318# Flag to hardcode \$libdir into a binary during linking.
19319# This must work even if \$libdir does not exist.
19320hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19321
19322# If ld is used when linking, flag to hardcode \$libdir into
19323# a binary during linking. This must work even if \$libdir does
19324# not exist.
19325hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19326
19327# Whether we need a single -rpath flag with a separated argument.
19328hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19329
19330# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19331# resulting binary.
19332hardcode_direct=$hardcode_direct_RC
19333
19334# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19335# resulting binary.
19336hardcode_minus_L=$hardcode_minus_L_RC
19337
19338# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19339# the resulting binary.
19340hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19341
19342# Set to yes if building a shared library automatically hardcodes DIR into the library
19343# and all subsequent libraries and executables linked against it.
19344hardcode_automatic=$hardcode_automatic_RC
19345
19346# Variables whose values should be saved in libtool wrapper scripts and
19347# restored at relink time.
19348variables_saved_for_relink="$variables_saved_for_relink"
19349
19350# Whether libtool must link a program against all its dependency libraries.
19351link_all_deplibs=$link_all_deplibs_RC
19352
19353# Compile-time system search path for libraries
64ff59ba 19354sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19355
19356# Run-time system search path for libraries
19357sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19358
19359# Fix the shell variable \$srcfile for the compiler.
0fde1ce3 19360fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19361
19362# Set to yes if exported symbols are required.
19363always_export_symbols=$always_export_symbols_RC
19364
19365# The commands to list exported symbols.
19366export_symbols_cmds=$lt_export_symbols_cmds_RC
19367
19368# The commands to extract the exported symbol list from a shared archive.
19369extract_expsyms_cmds=$lt_extract_expsyms_cmds
19370
19371# Symbols that should not be listed in the preloaded symbols.
19372exclude_expsyms=$lt_exclude_expsyms_RC
19373
19374# Symbols that must always be exported.
19375include_expsyms=$lt_include_expsyms_RC
19376
19377# ### END LIBTOOL TAG CONFIG: $tagname
19378
19379__EOF__
19380
19381
19382else
19383 # If there is no Makefile yet, we rely on a make rule to execute
19384 # `config.status --recheck' to rerun these tests and create the
19385 # libtool script then.
19386 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19387 if test -f "$ltmain_in"; then
19388 test -f Makefile && make "$ltmain"
19389 fi
19390fi
19391
19392
19393ac_ext=c
19394ac_cpp='$CPP $CPPFLAGS'
19395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19397ac_compiler_gnu=$ac_cv_c_compiler_gnu
19398
19399CC="$lt_save_CC"
19400
19401 ;;
19402
19403 *)
19404 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19405echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19406 { (exit 1); exit 1; }; }
19407 ;;
19408 esac
19409
19410 # Append the new tag name to the list of available tags.
19411 if test -n "$tagname" ; then
19412 available_tags="$available_tags $tagname"
19413 fi
19414 fi
19415 done
19416 IFS="$lt_save_ifs"
19417
19418 # Now substitute the updated list of available tags.
19419 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19420 mv "${ofile}T" "$ofile"
19421 chmod +x "$ofile"
19422 else
19423 rm -f "${ofile}T"
19424 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19425echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19426 { (exit 1); exit 1; }; }
19427 fi
19428fi
19429
19430
19431
19432# This can be used to rebuild libtool when needed
19433LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19434
19435# Always use our own libtool.
19436LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19437
19438# Prevent multiple expansion
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468for ac_header in errno.h fcntl.h sys/fcntl.h sys/ioctl.h sys/file.h unistd.h sysexits.h
19469do
19470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 19471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19476fi
64ff59ba 19477ac_res=`eval echo '${'$as_ac_Header'}'`
19478 { echo "$as_me:$LINENO: result: $ac_res" >&5
19479echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19480else
19481 # Is the header compilable?
64ff59ba 19482{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19483echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19484cat >conftest.$ac_ext <<_ACEOF
19485/* confdefs.h. */
19486_ACEOF
19487cat confdefs.h >>conftest.$ac_ext
19488cat >>conftest.$ac_ext <<_ACEOF
19489/* end confdefs.h. */
19490$ac_includes_default
19491#include <$ac_header>
19492_ACEOF
19493rm -f conftest.$ac_objext
64ff59ba 19494if { (ac_try="$ac_compile"
19495case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19498esac
19499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19501 ac_status=$?
19502 grep -v '^ *+' conftest.er1 >conftest.err
19503 rm -f conftest.er1
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19506 (exit $ac_status); } && {
19507 test -z "$ac_c_werror_flag" ||
19508 test ! -s conftest.err
19509 } && test -s conftest.$ac_objext; then
d9898ee8 19510 ac_header_compiler=yes
19511else
19512 echo "$as_me: failed program was:" >&5
19513sed 's/^/| /' conftest.$ac_ext >&5
19514
64ff59ba 19515 ac_header_compiler=no
d9898ee8 19516fi
64ff59ba 19517
19518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19520echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19521
19522# Is the header present?
64ff59ba 19523{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19525cat >conftest.$ac_ext <<_ACEOF
19526/* confdefs.h. */
19527_ACEOF
19528cat confdefs.h >>conftest.$ac_ext
19529cat >>conftest.$ac_ext <<_ACEOF
19530/* end confdefs.h. */
19531#include <$ac_header>
19532_ACEOF
64ff59ba 19533if { (ac_try="$ac_cpp conftest.$ac_ext"
19534case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19537esac
19538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19540 ac_status=$?
19541 grep -v '^ *+' conftest.er1 >conftest.err
19542 rm -f conftest.er1
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19545 (exit $ac_status); } >/dev/null && {
19546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19547 test ! -s conftest.err
19548 }; then
d9898ee8 19549 ac_header_preproc=yes
19550else
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
19554 ac_header_preproc=no
19555fi
64ff59ba 19556
d9898ee8 19557rm -f conftest.err conftest.$ac_ext
64ff59ba 19558{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19559echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19560
19561# So? What about this header?
19562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19563 yes:no: )
19564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19568 ac_header_preproc=yes
19569 ;;
19570 no:yes:* )
19571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 19583 ( cat <<\_ASBOX
d9898ee8 19584## -------------------------------------------------- ##
19585## Report this to courier-users@lists.sourceforge.net ##
19586## -------------------------------------------------- ##
19587_ASBOX
64ff59ba 19588 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19589 ;;
19590esac
64ff59ba 19591{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595else
19596 eval "$as_ac_Header=\$ac_header_preproc"
19597fi
64ff59ba 19598ac_res=`eval echo '${'$as_ac_Header'}'`
19599 { echo "$as_me:$LINENO: result: $ac_res" >&5
19600echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19601
19602fi
19603if test `eval echo '${'$as_ac_Header'}'` = yes; then
19604 cat >>confdefs.h <<_ACEOF
19605#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19606_ACEOF
19607
19608fi
19609
19610done
19611
64ff59ba 19612{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19613echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19614if test "${ac_cv_header_stdc+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616else
19617 cat >conftest.$ac_ext <<_ACEOF
19618/* confdefs.h. */
19619_ACEOF
19620cat confdefs.h >>conftest.$ac_ext
19621cat >>conftest.$ac_ext <<_ACEOF
19622/* end confdefs.h. */
19623#include <stdlib.h>
19624#include <stdarg.h>
19625#include <string.h>
19626#include <float.h>
19627
19628int
19629main ()
19630{
19631
19632 ;
19633 return 0;
19634}
19635_ACEOF
19636rm -f conftest.$ac_objext
64ff59ba 19637if { (ac_try="$ac_compile"
19638case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19641esac
19642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19644 ac_status=$?
19645 grep -v '^ *+' conftest.er1 >conftest.err
19646 rm -f conftest.er1
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest.$ac_objext; then
d9898ee8 19653 ac_cv_header_stdc=yes
19654else
19655 echo "$as_me: failed program was:" >&5
19656sed 's/^/| /' conftest.$ac_ext >&5
19657
64ff59ba 19658 ac_cv_header_stdc=no
d9898ee8 19659fi
64ff59ba 19660
19661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19662
19663if test $ac_cv_header_stdc = yes; then
19664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19665 cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671#include <string.h>
19672
19673_ACEOF
19674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19675 $EGREP "memchr" >/dev/null 2>&1; then
19676 :
19677else
19678 ac_cv_header_stdc=no
19679fi
19680rm -f conftest*
19681
19682fi
19683
19684if test $ac_cv_header_stdc = yes; then
19685 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19686 cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692#include <stdlib.h>
19693
19694_ACEOF
19695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19696 $EGREP "free" >/dev/null 2>&1; then
19697 :
19698else
19699 ac_cv_header_stdc=no
19700fi
19701rm -f conftest*
19702
19703fi
19704
19705if test $ac_cv_header_stdc = yes; then
19706 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19707 if test "$cross_compiling" = yes; then
19708 :
19709else
19710 cat >conftest.$ac_ext <<_ACEOF
19711/* confdefs.h. */
19712_ACEOF
19713cat confdefs.h >>conftest.$ac_ext
19714cat >>conftest.$ac_ext <<_ACEOF
19715/* end confdefs.h. */
19716#include <ctype.h>
64ff59ba 19717#include <stdlib.h>
d9898ee8 19718#if ((' ' & 0x0FF) == 0x020)
19719# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19720# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19721#else
19722# define ISLOWER(c) \
19723 (('a' <= (c) && (c) <= 'i') \
19724 || ('j' <= (c) && (c) <= 'r') \
19725 || ('s' <= (c) && (c) <= 'z'))
19726# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19727#endif
19728
19729#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19730int
19731main ()
19732{
19733 int i;
19734 for (i = 0; i < 256; i++)
19735 if (XOR (islower (i), ISLOWER (i))
19736 || toupper (i) != TOUPPER (i))
64ff59ba 19737 return 2;
19738 return 0;
d9898ee8 19739}
19740_ACEOF
19741rm -f conftest$ac_exeext
64ff59ba 19742if { (ac_try="$ac_link"
19743case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746esac
19747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>&5
d9898ee8 19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 19752 { (case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755esac
19756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757 (eval "$ac_try") 2>&5
d9898ee8 19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 :
19762else
19763 echo "$as_me: program exited with status $ac_status" >&5
19764echo "$as_me: failed program was:" >&5
19765sed 's/^/| /' conftest.$ac_ext >&5
19766
19767( exit $ac_status )
19768ac_cv_header_stdc=no
19769fi
64ff59ba 19770rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19771fi
64ff59ba 19772
19773
d9898ee8 19774fi
19775fi
64ff59ba 19776{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19777echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19778if test $ac_cv_header_stdc = yes; then
19779
19780cat >>confdefs.h <<\_ACEOF
19781#define STDC_HEADERS 1
19782_ACEOF
19783
19784fi
19785
64ff59ba 19786{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19787echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
d9898ee8 19788if test "${ac_cv_header_sys_wait_h+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790else
19791 cat >conftest.$ac_ext <<_ACEOF
19792/* confdefs.h. */
19793_ACEOF
19794cat confdefs.h >>conftest.$ac_ext
19795cat >>conftest.$ac_ext <<_ACEOF
19796/* end confdefs.h. */
19797#include <sys/types.h>
19798#include <sys/wait.h>
19799#ifndef WEXITSTATUS
64ff59ba 19800# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
d9898ee8 19801#endif
19802#ifndef WIFEXITED
19803# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19804#endif
19805
19806int
19807main ()
19808{
19809 int s;
19810 wait (&s);
19811 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816rm -f conftest.$ac_objext
64ff59ba 19817if { (ac_try="$ac_compile"
19818case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821esac
19822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
d9898ee8 19833 ac_cv_header_sys_wait_h=yes
19834else
19835 echo "$as_me: failed program was:" >&5
19836sed 's/^/| /' conftest.$ac_ext >&5
19837
64ff59ba 19838 ac_cv_header_sys_wait_h=no
d9898ee8 19839fi
64ff59ba 19840
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19842fi
64ff59ba 19843{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19844echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
d9898ee8 19845if test $ac_cv_header_sys_wait_h = yes; then
19846
19847cat >>confdefs.h <<\_ACEOF
19848#define HAVE_SYS_WAIT_H 1
19849_ACEOF
19850
19851fi
19852
19853
19854
64ff59ba 19855{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19856echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19857if test "${ac_cv_c_const+set}" = set; then
19858 echo $ECHO_N "(cached) $ECHO_C" >&6
19859else
19860 cat >conftest.$ac_ext <<_ACEOF
19861/* confdefs.h. */
19862_ACEOF
19863cat confdefs.h >>conftest.$ac_ext
19864cat >>conftest.$ac_ext <<_ACEOF
19865/* end confdefs.h. */
19866
19867int
19868main ()
19869{
19870/* FIXME: Include the comments suggested by Paul. */
19871#ifndef __cplusplus
19872 /* Ultrix mips cc rejects this. */
19873 typedef int charset[2];
64ff59ba 19874 const charset cs;
d9898ee8 19875 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 19876 char const *const *pcpcc;
19877 char **ppc;
d9898ee8 19878 /* NEC SVR4.0.2 mips cc rejects this. */
19879 struct point {int x, y;};
19880 static struct point const zero = {0,0};
19881 /* AIX XL C 1.02.0.0 rejects this.
19882 It does not let you subtract one const X* pointer from another in
19883 an arm of an if-expression whose if-part is not a constant
19884 expression */
19885 const char *g = "string";
64ff59ba 19886 pcpcc = &g + (g ? g-g : 0);
d9898ee8 19887 /* HPUX 7.0 cc rejects these. */
64ff59ba 19888 ++pcpcc;
19889 ppc = (char**) pcpcc;
19890 pcpcc = (char const *const *) ppc;
d9898ee8 19891 { /* SCO 3.2v4 cc rejects this. */
19892 char *t;
19893 char const *s = 0 ? (char *) 0 : (char const *) 0;
19894
19895 *t++ = 0;
64ff59ba 19896 if (s) return 0;
d9898ee8 19897 }
19898 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19899 int x[] = {25, 17};
19900 const int *foo = &x[0];
19901 ++foo;
19902 }
19903 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19904 typedef const int *iptr;
19905 iptr p = 0;
19906 ++p;
19907 }
19908 { /* AIX XL C 1.02.0.0 rejects this saying
19909 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19910 struct s { int j; const int *ap[3]; };
19911 struct s *b; b->j = 5;
19912 }
19913 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19914 const int foo = 10;
64ff59ba 19915 if (!foo) return 0;
d9898ee8 19916 }
64ff59ba 19917 return !cs[0] && !zero.x;
d9898ee8 19918#endif
19919
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest.$ac_objext
64ff59ba 19925if { (ac_try="$ac_compile"
19926case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19929esac
19930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19932 ac_status=$?
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest.$ac_objext; then
d9898ee8 19941 ac_cv_c_const=yes
19942else
19943 echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
64ff59ba 19946 ac_cv_c_const=no
d9898ee8 19947fi
64ff59ba 19948
19949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19950fi
64ff59ba 19951{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19952echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 19953if test $ac_cv_c_const = no; then
19954
19955cat >>confdefs.h <<\_ACEOF
19956#define const
19957_ACEOF
19958
19959fi
19960
64ff59ba 19961{ echo "$as_me:$LINENO: checking for off_t" >&5
19962echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
d9898ee8 19963if test "${ac_cv_type_off_t+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966 cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h. */
19972$ac_includes_default
64ff59ba 19973typedef off_t ac__type_new_;
d9898ee8 19974int
19975main ()
19976{
64ff59ba 19977if ((ac__type_new_ *) 0)
d9898ee8 19978 return 0;
64ff59ba 19979if (sizeof (ac__type_new_))
d9898ee8 19980 return 0;
19981 ;
19982 return 0;
19983}
19984_ACEOF
19985rm -f conftest.$ac_objext
64ff59ba 19986if { (ac_try="$ac_compile"
19987case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19990esac
19991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19993 ac_status=$?
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19998 (exit $ac_status); } && {
19999 test -z "$ac_c_werror_flag" ||
20000 test ! -s conftest.err
20001 } && test -s conftest.$ac_objext; then
d9898ee8 20002 ac_cv_type_off_t=yes
20003else
20004 echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
64ff59ba 20007 ac_cv_type_off_t=no
d9898ee8 20008fi
64ff59ba 20009
20010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20011fi
64ff59ba 20012{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
20013echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
d9898ee8 20014if test $ac_cv_type_off_t = yes; then
20015 :
20016else
20017
20018cat >>confdefs.h <<_ACEOF
64ff59ba 20019#define off_t long int
d9898ee8 20020_ACEOF
20021
20022fi
20023
64ff59ba 20024{ echo "$as_me:$LINENO: checking for pid_t" >&5
20025echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 20026if test "${ac_cv_type_pid_t+set}" = set; then
20027 echo $ECHO_N "(cached) $ECHO_C" >&6
20028else
20029 cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035$ac_includes_default
64ff59ba 20036typedef pid_t ac__type_new_;
d9898ee8 20037int
20038main ()
20039{
64ff59ba 20040if ((ac__type_new_ *) 0)
d9898ee8 20041 return 0;
64ff59ba 20042if (sizeof (ac__type_new_))
d9898ee8 20043 return 0;
20044 ;
20045 return 0;
20046}
20047_ACEOF
20048rm -f conftest.$ac_objext
64ff59ba 20049if { (ac_try="$ac_compile"
20050case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20053esac
20054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20056 ac_status=$?
20057 grep -v '^ *+' conftest.er1 >conftest.err
20058 rm -f conftest.er1
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest.$ac_objext; then
d9898ee8 20065 ac_cv_type_pid_t=yes
20066else
20067 echo "$as_me: failed program was:" >&5
20068sed 's/^/| /' conftest.$ac_ext >&5
20069
64ff59ba 20070 ac_cv_type_pid_t=no
d9898ee8 20071fi
64ff59ba 20072
20073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20074fi
64ff59ba 20075{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20076echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 20077if test $ac_cv_type_pid_t = yes; then
20078 :
20079else
20080
20081cat >>confdefs.h <<_ACEOF
20082#define pid_t int
20083_ACEOF
20084
20085fi
20086
64ff59ba 20087{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20088echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d9898ee8 20089if test "${ac_cv_type_signal+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20091else
20092 cat >conftest.$ac_ext <<_ACEOF
20093/* confdefs.h. */
20094_ACEOF
20095cat confdefs.h >>conftest.$ac_ext
20096cat >>conftest.$ac_ext <<_ACEOF
20097/* end confdefs.h. */
20098#include <sys/types.h>
20099#include <signal.h>
d9898ee8 20100
20101int
20102main ()
20103{
64ff59ba 20104return *(signal (0, 0)) (0) == 1;
d9898ee8 20105 ;
20106 return 0;
20107}
20108_ACEOF
20109rm -f conftest.$ac_objext
64ff59ba 20110if { (ac_try="$ac_compile"
20111case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20114esac
20115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest.$ac_objext; then
20126 ac_cv_type_signal=int
d9898ee8 20127else
20128 echo "$as_me: failed program was:" >&5
20129sed 's/^/| /' conftest.$ac_ext >&5
20130
64ff59ba 20131 ac_cv_type_signal=void
d9898ee8 20132fi
64ff59ba 20133
20134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20135fi
64ff59ba 20136{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20137echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d9898ee8 20138
20139cat >>confdefs.h <<_ACEOF
20140#define RETSIGTYPE $ac_cv_type_signal
20141_ACEOF
20142
20143
20144
64ff59ba 20145{ echo "$as_me:$LINENO: checking for off64_t" >&5
20146echo $ECHO_N "checking for off64_t... $ECHO_C" >&6; }
d9898ee8 20147if test "${liblock_cv_hasoff64t+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20149else
20150 liblock_cv_hasoff64t="no"
20151cat >conftest.$ac_ext <<_ACEOF
20152/* confdefs.h. */
20153_ACEOF
20154cat confdefs.h >>conftest.$ac_ext
20155cat >>conftest.$ac_ext <<_ACEOF
20156/* end confdefs.h. */
20157
20158#include <sys/types.h>
20159
20160int
20161main ()
20162{
20163
20164off64_t n;
20165
20166 n=0;
20167
20168 ;
20169 return 0;
20170}
20171_ACEOF
20172rm -f conftest.$ac_objext
64ff59ba 20173if { (ac_try="$ac_compile"
20174case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177esac
20178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest.$ac_objext; then
d9898ee8 20189 liblock_cv_hasoff64t="yes"
20190else
20191 echo "$as_me: failed program was:" >&5
20192sed 's/^/| /' conftest.$ac_ext >&5
20193
64ff59ba 20194
d9898ee8 20195fi
64ff59ba 20196
20197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20198
20199
20200fi
64ff59ba 20201{ echo "$as_me:$LINENO: result: $liblock_cv_hasoff64t" >&5
20202echo "${ECHO_T}$liblock_cv_hasoff64t" >&6; }
d9898ee8 20203
20204if test "$liblock_cv_hasoff64t" = "yes"
20205then
20206 LL_OFFSET_TYPE=off64_t
20207else
20208 LL_OFFSET_TYPE=off_t
20209fi
20210
20211cat >>confdefs.h <<_ACEOF
20212#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20213_ACEOF
20214
20215
64ff59ba 20216{ echo "$as_me:$LINENO: checking for flock_t" >&5
20217echo $ECHO_N "checking for flock_t... $ECHO_C" >&6; }
d9898ee8 20218if test "${liblock_cv_hasflock_t+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220else
20221 liblock_cv_hasflock_t="no"
20222cat >conftest.$ac_ext <<_ACEOF
20223/* confdefs.h. */
20224_ACEOF
20225cat confdefs.h >>conftest.$ac_ext
20226cat >>conftest.$ac_ext <<_ACEOF
20227/* end confdefs.h. */
20228
20229#if HAVE_CONFIG_H
20230#include "config.h"
20231#endif
20232#include <sys/types.h>
20233#if HAVE_FCNTL_H
20234#include <fcntl.h>
20235#endif
20236#if HAVE_SYS_FCNTL_H
20237#include <sys/fcntl.h>
20238#endif
20239
20240int
20241main ()
20242{
20243
20244flock_t t;
20245
20246 ;
20247 return 0;
20248}
20249_ACEOF
20250rm -f conftest.$ac_objext
64ff59ba 20251if { (ac_try="$ac_compile"
20252case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255esac
20256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20258 ac_status=$?
20259 grep -v '^ *+' conftest.er1 >conftest.err
20260 rm -f conftest.er1
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest.$ac_objext; then
d9898ee8 20267 liblock_cv_hasflock_t="yes"
20268else
20269 echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
64ff59ba 20272
d9898ee8 20273fi
64ff59ba 20274
20275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20276fi
64ff59ba 20277{ echo "$as_me:$LINENO: result: $liblock_cv_hasflock_t" >&5
20278echo "${ECHO_T}$liblock_cv_hasflock_t" >&6; }
d9898ee8 20279
20280if test "$liblock_cv_hasflock_t" = "yes"
20281then
20282
20283cat >>confdefs.h <<_ACEOF
20284#define HAS_FLOCK_T 1
20285_ACEOF
20286
20287fi
20288
20289
20290
64ff59ba 20291
0fde1ce3 20292
20293for ac_func in getdtablesize setpgrp sysconf
d9898ee8 20294do
20295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 20296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20300else
20301 cat >conftest.$ac_ext <<_ACEOF
20302/* confdefs.h. */
20303_ACEOF
20304cat confdefs.h >>conftest.$ac_ext
20305cat >>conftest.$ac_ext <<_ACEOF
20306/* end confdefs.h. */
20307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20309#define $ac_func innocuous_$ac_func
20310
20311/* System header to define __stub macros and hopefully few prototypes,
20312 which can conflict with char $ac_func (); below.
20313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20314 <limits.h> exists even on freestanding compilers. */
20315
20316#ifdef __STDC__
20317# include <limits.h>
20318#else
20319# include <assert.h>
20320#endif
20321
20322#undef $ac_func
20323
64ff59ba 20324/* Override any GCC internal prototype to avoid an error.
20325 Use char because int might match the return type of a GCC
20326 builtin and then its argument prototype would still apply. */
d9898ee8 20327#ifdef __cplusplus
20328extern "C"
d9898ee8 20329#endif
d9898ee8 20330char $ac_func ();
20331/* The GNU C library defines this for functions which it implements
20332 to always fail with ENOSYS. Some functions are actually named
20333 something starting with __ and the normal name is an alias. */
64ff59ba 20334#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 20335choke me
d9898ee8 20336#endif
20337
20338int
20339main ()
20340{
64ff59ba 20341return $ac_func ();
d9898ee8 20342 ;
20343 return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20347if { (ac_try="$ac_link"
20348case "(($ac_try" in
20349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350 *) ac_try_echo=$ac_try;;
20351esac
20352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353 (eval "$ac_link") 2>conftest.er1
d9898ee8 20354 ac_status=$?
20355 grep -v '^ *+' conftest.er1 >conftest.err
20356 rm -f conftest.er1
20357 cat conftest.err >&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20359 (exit $ac_status); } && {
20360 test -z "$ac_c_werror_flag" ||
20361 test ! -s conftest.err
20362 } && test -s conftest$ac_exeext &&
20363 $as_test_x conftest$ac_exeext; then
d9898ee8 20364 eval "$as_ac_var=yes"
20365else
20366 echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
64ff59ba 20369 eval "$as_ac_var=no"
d9898ee8 20370fi
64ff59ba 20371
20372rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20373 conftest$ac_exeext conftest.$ac_ext
20374fi
64ff59ba 20375ac_res=`eval echo '${'$as_ac_var'}'`
20376 { echo "$as_me:$LINENO: result: $ac_res" >&5
20377echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20378if test `eval echo '${'$as_ac_var'}'` = yes; then
20379 cat >>confdefs.h <<_ACEOF
20380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20381_ACEOF
20382
20383fi
20384done
20385
64ff59ba 20386{ echo "$as_me:$LINENO: checking for setpgrp" >&5
20387echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; }
d9898ee8 20388if test "${ac_cv_func_setpgrp+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20390else
20391 cat >conftest.$ac_ext <<_ACEOF
20392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
20397/* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
20398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20399#define setpgrp innocuous_setpgrp
20400
20401/* System header to define __stub macros and hopefully few prototypes,
20402 which can conflict with char setpgrp (); below.
20403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20404 <limits.h> exists even on freestanding compilers. */
20405
20406#ifdef __STDC__
20407# include <limits.h>
20408#else
20409# include <assert.h>
20410#endif
20411
20412#undef setpgrp
20413
64ff59ba 20414/* Override any GCC internal prototype to avoid an error.
20415 Use char because int might match the return type of a GCC
20416 builtin and then its argument prototype would still apply. */
d9898ee8 20417#ifdef __cplusplus
20418extern "C"
d9898ee8 20419#endif
d9898ee8 20420char setpgrp ();
20421/* The GNU C library defines this for functions which it implements
20422 to always fail with ENOSYS. Some functions are actually named
20423 something starting with __ and the normal name is an alias. */
64ff59ba 20424#if defined __stub_setpgrp || defined __stub___setpgrp
d9898ee8 20425choke me
d9898ee8 20426#endif
20427
20428int
20429main ()
20430{
64ff59ba 20431return setpgrp ();
d9898ee8 20432 ;
20433 return 0;
20434}
20435_ACEOF
20436rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20437if { (ac_try="$ac_link"
20438case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20441esac
20442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_link") 2>conftest.er1
d9898ee8 20444 ac_status=$?
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest$ac_exeext &&
20453 $as_test_x conftest$ac_exeext; then
d9898ee8 20454 ac_cv_func_setpgrp=yes
20455else
20456 echo "$as_me: failed program was:" >&5
20457sed 's/^/| /' conftest.$ac_ext >&5
20458
64ff59ba 20459 ac_cv_func_setpgrp=no
d9898ee8 20460fi
64ff59ba 20461
20462rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20463 conftest$ac_exeext conftest.$ac_ext
20464fi
64ff59ba 20465{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
20466echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; }
d9898ee8 20467if test $ac_cv_func_setpgrp = yes; then
20468
64ff59ba 20469 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20470echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
d9898ee8 20471if test "${ac_cv_func_setpgrp_void+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20473else
20474 if test "$cross_compiling" = yes; then
20475 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20476echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20477 { (exit 1); exit 1; }; }
20478else
20479 cat >conftest.$ac_ext <<_ACEOF
20480/* confdefs.h. */
20481_ACEOF
20482cat confdefs.h >>conftest.$ac_ext
20483cat >>conftest.$ac_ext <<_ACEOF
20484/* end confdefs.h. */
64ff59ba 20485$ac_includes_default
d9898ee8 20486int
20487main ()
20488{
20489/* If this system has a BSD-style setpgrp which takes arguments,
20490 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20491 exit successfully. */
64ff59ba 20492 return setpgrp (1,1) != -1;
d9898ee8 20493 ;
20494 return 0;
20495}
20496_ACEOF
20497rm -f conftest$ac_exeext
64ff59ba 20498if { (ac_try="$ac_link"
20499case "(($ac_try" in
20500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20501 *) ac_try_echo=$ac_try;;
20502esac
20503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20504 (eval "$ac_link") 2>&5
d9898ee8 20505 ac_status=$?
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20508 { (case "(($ac_try" in
20509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510 *) ac_try_echo=$ac_try;;
20511esac
20512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513 (eval "$ac_try") 2>&5
d9898ee8 20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_func_setpgrp_void=no
20518else
20519 echo "$as_me: program exited with status $ac_status" >&5
20520echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523( exit $ac_status )
20524ac_cv_func_setpgrp_void=yes
20525fi
64ff59ba 20526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20527fi
64ff59ba 20528
20529
d9898ee8 20530fi
64ff59ba 20531{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20532echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
d9898ee8 20533if test $ac_cv_func_setpgrp_void = yes; then
20534
20535cat >>confdefs.h <<\_ACEOF
20536#define SETPGRP_VOID 1
20537_ACEOF
20538
20539fi
20540
20541
20542
20543fi
20544
20545
64ff59ba 20546{ echo "$as_me:$LINENO: checking for fcntl" >&5
20547echo $ECHO_N "checking for fcntl... $ECHO_C" >&6; }
d9898ee8 20548if test "${liblock_cv_hasfcntl+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20550else
20551 liblock_cv_hasfcntl="no"
20552cat >conftest.$ac_ext <<_ACEOF
20553/* confdefs.h. */
20554_ACEOF
20555cat confdefs.h >>conftest.$ac_ext
20556cat >>conftest.$ac_ext <<_ACEOF
20557/* end confdefs.h. */
20558
20559#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20560#include "${srcdir}/lockfcntl.c"
20561
20562int
20563main ()
20564{
20565
20566int n;
20567
20568 ;
20569 return 0;
20570}
20571_ACEOF
20572rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20573if { (ac_try="$ac_link"
20574case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20577esac
20578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_link") 2>conftest.er1
d9898ee8 20580 ac_status=$?
20581 grep -v '^ *+' conftest.er1 >conftest.err
20582 rm -f conftest.er1
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest$ac_exeext &&
20589 $as_test_x conftest$ac_exeext; then
d9898ee8 20590 liblock_cv_hasfcntl="yes"
20591else
20592 echo "$as_me: failed program was:" >&5
20593sed 's/^/| /' conftest.$ac_ext >&5
20594
64ff59ba 20595
d9898ee8 20596fi
64ff59ba 20597
20598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20599 conftest$ac_exeext conftest.$ac_ext
20600fi
64ff59ba 20601{ echo "$as_me:$LINENO: result: $liblock_cv_hasfcntl" >&5
20602echo "${ECHO_T}$liblock_cv_hasfcntl" >&6; }
d9898ee8 20603if test "$liblock_cv_hasfcntl" = "yes"
20604then
20605
20606cat >>confdefs.h <<_ACEOF
20607#define HAS_FCNTL 1
20608_ACEOF
20609
20610fi
20611
64ff59ba 20612{ echo "$as_me:$LINENO: checking for flock" >&5
20613echo $ECHO_N "checking for flock... $ECHO_C" >&6; }
d9898ee8 20614if test "${liblock_cv_hasflock+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20616else
20617 liblock_cv_hasflock="no"
20618cat >conftest.$ac_ext <<_ACEOF
20619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
20624
20625#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20626#include "${srcdir}/lockflock.c"
20627
20628int
20629main ()
20630{
20631
20632int n;
20633
20634 ;
20635 return 0;
20636}
20637_ACEOF
20638rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20639if { (ac_try="$ac_link"
20640case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643esac
20644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_link") 2>conftest.er1
d9898ee8 20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest$ac_exeext &&
20655 $as_test_x conftest$ac_exeext; then
d9898ee8 20656 liblock_cv_hasflock="yes"
20657else
20658 echo "$as_me: failed program was:" >&5
20659sed 's/^/| /' conftest.$ac_ext >&5
20660
64ff59ba 20661
d9898ee8 20662fi
64ff59ba 20663
20664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20665 conftest$ac_exeext conftest.$ac_ext
20666fi
64ff59ba 20667{ echo "$as_me:$LINENO: result: $liblock_cv_hasflock" >&5
20668echo "${ECHO_T}$liblock_cv_hasflock" >&6; }
d9898ee8 20669if test "$liblock_cv_hasflock" = "yes"
20670then
20671
20672cat >>confdefs.h <<_ACEOF
20673#define HAS_FLOCK 1
20674_ACEOF
20675
20676fi
20677
64ff59ba 20678{ echo "$as_me:$LINENO: checking for lockf" >&5
20679echo $ECHO_N "checking for lockf... $ECHO_C" >&6; }
d9898ee8 20680if test "${liblock_cv_haslockf+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682else
20683 liblock_cv_haslockf="no"
20684cat >conftest.$ac_ext <<_ACEOF
20685/* confdefs.h. */
20686_ACEOF
20687cat confdefs.h >>conftest.$ac_ext
20688cat >>conftest.$ac_ext <<_ACEOF
20689/* end confdefs.h. */
20690
20691#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20692#include "${srcdir}/locklockf.c"
20693
20694int
20695main ()
20696{
20697
20698int n;
20699
20700 ;
20701 return 0;
20702}
20703_ACEOF
20704rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20705if { (ac_try="$ac_link"
20706case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709esac
20710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20711 (eval "$ac_link") 2>conftest.er1
d9898ee8 20712 ac_status=$?
20713 grep -v '^ *+' conftest.er1 >conftest.err
20714 rm -f conftest.er1
20715 cat conftest.err >&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20717 (exit $ac_status); } && {
20718 test -z "$ac_c_werror_flag" ||
20719 test ! -s conftest.err
20720 } && test -s conftest$ac_exeext &&
20721 $as_test_x conftest$ac_exeext; then
d9898ee8 20722 liblock_cv_haslockf="yes"
20723else
20724 echo "$as_me: failed program was:" >&5
20725sed 's/^/| /' conftest.$ac_ext >&5
20726
64ff59ba 20727
d9898ee8 20728fi
64ff59ba 20729
20730rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20731 conftest$ac_exeext conftest.$ac_ext
20732fi
64ff59ba 20733{ echo "$as_me:$LINENO: result: $liblock_cv_haslockf" >&5
20734echo "${ECHO_T}$liblock_cv_haslockf" >&6; }
d9898ee8 20735if test "$liblock_cv_haslockf" = "yes"
20736then
20737
20738cat >>confdefs.h <<_ACEOF
20739#define HAS_LOCKF 1
20740_ACEOF
20741
20742fi
20743
64ff59ba 20744{ echo "$as_me:$LINENO: checking for locking method" >&5
20745echo $ECHO_N "checking for locking method... $ECHO_C" >&6; }
d9898ee8 20746
64ff59ba 20747# Check whether --with-locking-method was given.
d9898ee8 20748if test "${with_locking_method+set}" = set; then
64ff59ba 20749 withval=$with_locking_method; lockmethod="$withval"
d9898ee8 20750else
20751 lockmethod=""
64ff59ba 20752fi
20753
d9898ee8 20754
20755case x$lockmethod in
20756xfcntl)
20757 if test "$cross_compiling" = yes; then
20758 :
20759
20760else
20761 cat >conftest.$ac_ext <<_ACEOF
20762/* confdefs.h. */
20763_ACEOF
20764cat confdefs.h >>conftest.$ac_ext
20765cat >>conftest.$ac_ext <<_ACEOF
20766/* end confdefs.h. */
20767
20768#define USE_FCNTL 1
20769#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20770#include "${srcdir}/locktest.c"
20771
20772_ACEOF
20773rm -f conftest$ac_exeext
64ff59ba 20774if { (ac_try="$ac_link"
20775case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778esac
20779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_link") 2>&5
d9898ee8 20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20787esac
20788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
d9898ee8 20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20793 :
20794else
20795 echo "$as_me: program exited with status $ac_status" >&5
20796echo "$as_me: failed program was:" >&5
20797sed 's/^/| /' conftest.$ac_ext >&5
20798
20799( exit $ac_status )
20800{ { echo "$as_me:$LINENO: error: fcntl test failed." >&5
20801echo "$as_me: error: fcntl test failed." >&2;}
20802 { (exit 1); exit 1; }; }
20803fi
64ff59ba 20804rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20805fi
64ff59ba 20806
20807
d9898ee8 20808 ;;
20809x)
20810 if test "$cross_compiling" = yes; then
20811 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20812echo "$as_me: error: --with-locking-method option required" >&2;}
20813 { (exit 1); exit 1; }; }
20814else
20815 cat >conftest.$ac_ext <<_ACEOF
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
20821
20822#define USE_FCNTL 1
20823#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20824#include "${srcdir}/locktest.c"
20825
20826_ACEOF
20827rm -f conftest$ac_exeext
64ff59ba 20828if { (ac_try="$ac_link"
20829case "(($ac_try" in
20830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20831 *) ac_try_echo=$ac_try;;
20832esac
20833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20834 (eval "$ac_link") 2>&5
d9898ee8 20835 ac_status=$?
20836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20838 { (case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841esac
20842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_try") 2>&5
d9898ee8 20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 lockmethod=fcntl
20848else
20849 echo "$as_me: program exited with status $ac_status" >&5
20850echo "$as_me: failed program was:" >&5
20851sed 's/^/| /' conftest.$ac_ext >&5
20852
20853fi
64ff59ba 20854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20855fi
64ff59ba 20856
20857
d9898ee8 20858 ;;
20859esac
20860
20861case x$lockmethod in
20862xlockf)
20863 if test "$cross_compiling" = yes; then
20864 :
20865
20866else
20867 cat >conftest.$ac_ext <<_ACEOF
20868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873
20874#define USE_LOCKF 1
20875#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20876#include "${srcdir}/locktest.c"
20877
20878_ACEOF
20879rm -f conftest$ac_exeext
64ff59ba 20880if { (ac_try="$ac_link"
20881case "(($ac_try" in
20882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883 *) ac_try_echo=$ac_try;;
20884esac
20885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886 (eval "$ac_link") 2>&5
d9898ee8 20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20890 { (case "(($ac_try" in
20891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20892 *) ac_try_echo=$ac_try;;
20893esac
20894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20895 (eval "$ac_try") 2>&5
d9898ee8 20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 :
20900else
20901 echo "$as_me: program exited with status $ac_status" >&5
20902echo "$as_me: failed program was:" >&5
20903sed 's/^/| /' conftest.$ac_ext >&5
20904
20905( exit $ac_status )
20906{ { echo "$as_me:$LINENO: error: lockf test failed." >&5
20907echo "$as_me: error: lockf test failed." >&2;}
20908 { (exit 1); exit 1; }; }
20909fi
64ff59ba 20910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20911fi
64ff59ba 20912
20913
d9898ee8 20914 ;;
20915x)
20916 if test "$cross_compiling" = yes; then
20917 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
20918echo "$as_me: error: --with-locking-method option required" >&2;}
20919 { (exit 1); exit 1; }; }
20920else
20921 cat >conftest.$ac_ext <<_ACEOF
20922/* confdefs.h. */
20923_ACEOF
20924cat confdefs.h >>conftest.$ac_ext
20925cat >>conftest.$ac_ext <<_ACEOF
20926/* end confdefs.h. */
20927
20928#define USE_LOCKF 1
20929#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20930#include "${srcdir}/locktest.c"
20931
20932_ACEOF
20933rm -f conftest$ac_exeext
64ff59ba 20934if { (ac_try="$ac_link"
20935case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938esac
20939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_link") 2>&5
d9898ee8 20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20944 { (case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947esac
20948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_try") 2>&5
d9898ee8 20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 lockmethod=lockf
20954else
20955 echo "$as_me: program exited with status $ac_status" >&5
20956echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959fi
64ff59ba 20960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 20961fi
64ff59ba 20962
20963
d9898ee8 20964 ;;
20965esac
20966
20967
20968case x$lockmethod in
20969xflock)
20970 if test "$cross_compiling" = yes; then
20971 :
20972
20973else
20974 cat >conftest.$ac_ext <<_ACEOF
20975/* confdefs.h. */
20976_ACEOF
20977cat confdefs.h >>conftest.$ac_ext
20978cat >>conftest.$ac_ext <<_ACEOF
20979/* end confdefs.h. */
20980
20981#define USE_FLOCK 1
20982#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
20983#include "${srcdir}/locktest.c"
20984
20985_ACEOF
20986rm -f conftest$ac_exeext
64ff59ba 20987if { (ac_try="$ac_link"
20988case "(($ac_try" in
20989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990 *) ac_try_echo=$ac_try;;
20991esac
20992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993 (eval "$ac_link") 2>&5
d9898ee8 20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 20997 { (case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21000esac
21001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_try") 2>&5
d9898ee8 21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 :
21007else
21008 echo "$as_me: program exited with status $ac_status" >&5
21009echo "$as_me: failed program was:" >&5
21010sed 's/^/| /' conftest.$ac_ext >&5
21011
21012( exit $ac_status )
21013{ { echo "$as_me:$LINENO: error: flock test failed." >&5
21014echo "$as_me: error: flock test failed." >&2;}
21015 { (exit 1); exit 1; }; }
21016fi
64ff59ba 21017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 21018fi
64ff59ba 21019
21020
d9898ee8 21021 ;;
21022x)
21023 if test "$cross_compiling" = yes; then
21024 { { echo "$as_me:$LINENO: error: --with-locking-method option required" >&5
21025echo "$as_me: error: --with-locking-method option required" >&2;}
21026 { (exit 1); exit 1; }; }
21027else
21028 cat >conftest.$ac_ext <<_ACEOF
21029/* confdefs.h. */
21030_ACEOF
21031cat confdefs.h >>conftest.$ac_ext
21032cat >>conftest.$ac_ext <<_ACEOF
21033/* end confdefs.h. */
21034
21035#define USE_FLOCK 1
21036#define LL_OFFSET_TYPE $LL_OFFSET_TYPE
21037#include "${srcdir}/locktest.c"
21038
21039_ACEOF
21040rm -f conftest$ac_exeext
64ff59ba 21041if { (ac_try="$ac_link"
21042case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21045esac
21046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_link") 2>&5
d9898ee8 21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 21051 { (case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21054esac
21055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_try") 2>&5
d9898ee8 21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 lockmethod=flock
21061else
21062 echo "$as_me: program exited with status $ac_status" >&5
21063echo "$as_me: failed program was:" >&5
21064sed 's/^/| /' conftest.$ac_ext >&5
21065
21066fi
64ff59ba 21067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 21068fi
64ff59ba 21069
21070
d9898ee8 21071 ;;
21072esac
21073
21074case x$lockmethod in
21075xlockf)
21076 ;;
21077xflock)
21078 ;;
21079xfcntl)
21080 ;;
21081*)
21082 { { echo "$as_me:$LINENO: error: must specify --with-locking-method option" >&5
21083echo "$as_me: error: must specify --with-locking-method option" >&2;}
21084 { (exit 1); exit 1; }; }
21085 ;;
21086esac
21087
64ff59ba 21088{ echo "$as_me:$LINENO: result: $lockmethod" >&5
21089echo "${ECHO_T}$lockmethod" >&6; }
d9898ee8 21090
64ff59ba 21091 if test "$lockmethod" = "fcntl"; then
d9898ee8 21092 USE_FCNTL_TRUE=
21093 USE_FCNTL_FALSE='#'
21094else
21095 USE_FCNTL_TRUE='#'
21096 USE_FCNTL_FALSE=
21097fi
21098
64ff59ba 21099 if test "$lockmethod" = "flock"; then
d9898ee8 21100 USE_FLOCK_TRUE=
21101 USE_FLOCK_FALSE='#'
21102else
21103 USE_FLOCK_TRUE='#'
21104 USE_FLOCK_FALSE=
21105fi
21106
64ff59ba 21107 if test "$lockmethod" = "lockf"; then
d9898ee8 21108 USE_LOCKF_TRUE=
21109 USE_LOCKF_FALSE='#'
21110else
21111 USE_LOCKF_TRUE='#'
21112 USE_LOCKF_FALSE=
21113fi
21114
21115
64ff59ba 21116 if test -d ${srcdir}/../docbook; then
d9898ee8 21117 HAVE_SGML_TRUE=
21118 HAVE_SGML_FALSE='#'
21119else
21120 HAVE_SGML_TRUE='#'
21121 HAVE_SGML_FALSE=
21122fi
21123
21124
21125
21126cat >>confdefs.h <<_ACEOF
21127#define liblock_config_h 1
21128_ACEOF
21129
21130
64ff59ba 21131ac_config_files="$ac_config_files Makefile"
21132
d9898ee8 21133cat >confcache <<\_ACEOF
21134# This file is a shell script that caches the results of configure
21135# tests run on this system so they can be shared between configure
21136# scripts and configure runs, see configure's option --config-cache.
21137# It is not useful on other systems. If it contains results you don't
21138# want to keep, you may remove or edit it.
21139#
21140# config.status only pays attention to the cache file if you give it
21141# the --recheck option to rerun configure.
21142#
21143# `ac_cv_env_foo' variables (set or unset) will be overridden when
21144# loading this file, other *unset* `ac_cv_foo' will be assigned the
21145# following values.
21146
21147_ACEOF
21148
21149# The following way of writing the cache mishandles newlines in values,
21150# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 21151# So, we kill variables containing newlines.
d9898ee8 21152# Ultrix sh set writes to stderr and can't be redirected directly,
21153# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 21154(
21155 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21156 eval ac_val=\$$ac_var
21157 case $ac_val in #(
21158 *${as_nl}*)
21159 case $ac_var in #(
21160 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21161echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21162 esac
21163 case $ac_var in #(
21164 _ | IFS | as_nl) ;; #(
21165 *) $as_unset $ac_var ;;
21166 esac ;;
21167 esac
21168 done
21169
d9898ee8 21170 (set) 2>&1 |
64ff59ba 21171 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21172 *${as_nl}ac_space=\ *)
d9898ee8 21173 # `set' does not quote correctly, so add quotes (double-quote
21174 # substitution turns \\\\ into \\, and sed turns \\ into \).
21175 sed -n \
21176 "s/'/'\\\\''/g;
21177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 21178 ;; #(
d9898ee8 21179 *)
21180 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 21181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 21182 ;;
64ff59ba 21183 esac |
21184 sort
21185) |
d9898ee8 21186 sed '
64ff59ba 21187 /^ac_cv_env_/b end
d9898ee8 21188 t clear
64ff59ba 21189 :clear
d9898ee8 21190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21191 t end
64ff59ba 21192 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21193 :end' >>confcache
21194if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21195 if test -w "$cache_file"; then
21196 test "x$cache_file" != "x/dev/null" &&
21197 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21198echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 21199 cat confcache >$cache_file
21200 else
64ff59ba 21201 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21202echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 21203 fi
21204fi
21205rm -f confcache
21206
21207test "x$prefix" = xNONE && prefix=$ac_default_prefix
21208# Let make expand exec_prefix.
21209test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21210
d9898ee8 21211DEFS=-DHAVE_CONFIG_H
21212
21213ac_libobjs=
21214ac_ltlibobjs=
21215for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21216 # 1. Remove the extension, and $U if already installed.
64ff59ba 21217 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21218 ac_i=`echo "$ac_i" | sed "$ac_script"`
21219 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21220 # will be set to the directory where LIBOBJS objects are built.
21221 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21222 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 21223done
21224LIBOBJS=$ac_libobjs
21225
21226LTLIBOBJS=$ac_ltlibobjs
21227
21228
21229if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21230 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21231Usually this means the macro was only invoked conditionally." >&5
21232echo "$as_me: error: conditional \"AMDEP\" was never defined.
21233Usually this means the macro was only invoked conditionally." >&2;}
21234 { (exit 1); exit 1; }; }
21235fi
21236if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21237 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21238Usually this means the macro was only invoked conditionally." >&5
21239echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21240Usually this means the macro was only invoked conditionally." >&2;}
21241 { (exit 1); exit 1; }; }
21242fi
21243if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21244 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21245Usually this means the macro was only invoked conditionally." >&5
21246echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21247Usually this means the macro was only invoked conditionally." >&2;}
21248 { (exit 1); exit 1; }; }
21249fi
21250if test -z "${USE_FCNTL_TRUE}" && test -z "${USE_FCNTL_FALSE}"; then
21251 { { echo "$as_me:$LINENO: error: conditional \"USE_FCNTL\" was never defined.
21252Usually this means the macro was only invoked conditionally." >&5
21253echo "$as_me: error: conditional \"USE_FCNTL\" was never defined.
21254Usually this means the macro was only invoked conditionally." >&2;}
21255 { (exit 1); exit 1; }; }
21256fi
21257if test -z "${USE_FLOCK_TRUE}" && test -z "${USE_FLOCK_FALSE}"; then
21258 { { echo "$as_me:$LINENO: error: conditional \"USE_FLOCK\" was never defined.
21259Usually this means the macro was only invoked conditionally." >&5
21260echo "$as_me: error: conditional \"USE_FLOCK\" was never defined.
21261Usually this means the macro was only invoked conditionally." >&2;}
21262 { (exit 1); exit 1; }; }
21263fi
21264if test -z "${USE_LOCKF_TRUE}" && test -z "${USE_LOCKF_FALSE}"; then
21265 { { echo "$as_me:$LINENO: error: conditional \"USE_LOCKF\" was never defined.
21266Usually this means the macro was only invoked conditionally." >&5
21267echo "$as_me: error: conditional \"USE_LOCKF\" was never defined.
21268Usually this means the macro was only invoked conditionally." >&2;}
21269 { (exit 1); exit 1; }; }
21270fi
21271if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
21272 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
21273Usually this means the macro was only invoked conditionally." >&5
21274echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
21275Usually this means the macro was only invoked conditionally." >&2;}
21276 { (exit 1); exit 1; }; }
21277fi
21278
21279: ${CONFIG_STATUS=./config.status}
21280ac_clean_files_save=$ac_clean_files
21281ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21282{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21283echo "$as_me: creating $CONFIG_STATUS" >&6;}
21284cat >$CONFIG_STATUS <<_ACEOF
21285#! $SHELL
21286# Generated by $as_me.
21287# Run this file to recreate the current configuration.
21288# Compiler output produced by configure, useful for debugging
21289# configure, is in config.log if it exists.
21290
21291debug=false
21292ac_cs_recheck=false
21293ac_cs_silent=false
21294SHELL=\${CONFIG_SHELL-$SHELL}
21295_ACEOF
21296
21297cat >>$CONFIG_STATUS <<\_ACEOF
21298## --------------------- ##
21299## M4sh Initialization. ##
21300## --------------------- ##
21301
64ff59ba 21302# Be more Bourne compatible
21303DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 21304if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21305 emulate sh
21306 NULLCMD=:
21307 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21308 # is contrary to our usage. Disable this feature.
21309 alias -g '${1+"$@"}'='"$@"'
64ff59ba 21310 setopt NO_GLOB_SUBST
21311else
21312 case `(set -o) 2>/dev/null` in
21313 *posix*) set -o posix ;;
21314esac
21315
21316fi
21317
21318
21319
21320
21321# PATH needs CR
21322# Avoid depending upon Character Ranges.
21323as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21324as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21325as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21326as_cr_digits='0123456789'
21327as_cr_alnum=$as_cr_Letters$as_cr_digits
21328
21329# The user is always right.
21330if test "${PATH_SEPARATOR+set}" != set; then
21331 echo "#! /bin/sh" >conf$$.sh
21332 echo "exit 0" >>conf$$.sh
21333 chmod +x conf$$.sh
21334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21335 PATH_SEPARATOR=';'
21336 else
21337 PATH_SEPARATOR=:
21338 fi
21339 rm -f conf$$.sh
d9898ee8 21340fi
d9898ee8 21341
21342# Support unset when possible.
21343if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21344 as_unset=unset
21345else
21346 as_unset=false
21347fi
21348
21349
64ff59ba 21350# IFS
21351# We need space, tab and new line, in precisely that order. Quoting is
21352# there to prevent editors from complaining about space-tab.
21353# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21354# splitting by setting IFS to empty value.)
21355as_nl='
21356'
21357IFS=" "" $as_nl"
21358
21359# Find who we are. Look in the path if we contain no directory separator.
21360case $0 in
21361 *[\\/]* ) as_myself=$0 ;;
21362 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21363for as_dir in $PATH
21364do
21365 IFS=$as_save_IFS
21366 test -z "$as_dir" && as_dir=.
21367 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21368done
21369IFS=$as_save_IFS
21370
21371 ;;
21372esac
21373# We did not find ourselves, most probably we were run as `sh COMMAND'
21374# in which case we are not to be found in the path.
21375if test "x$as_myself" = x; then
21376 as_myself=$0
21377fi
21378if test ! -f "$as_myself"; then
21379 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21380 { (exit 1); exit 1; }
21381fi
21382
d9898ee8 21383# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 21384for as_var in ENV MAIL MAILPATH
21385do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21386done
d9898ee8 21387PS1='$ '
21388PS2='> '
21389PS4='+ '
21390
21391# NLS nuisances.
21392for as_var in \
21393 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21394 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21395 LC_TELEPHONE LC_TIME
21396do
21397 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21398 eval $as_var=C; export $as_var
21399 else
64ff59ba 21400 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 21401 fi
21402done
21403
21404# Required to use basename.
64ff59ba 21405if expr a : '\(a\)' >/dev/null 2>&1 &&
21406 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21407 as_expr=expr
21408else
21409 as_expr=false
21410fi
21411
64ff59ba 21412if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 21413 as_basename=basename
21414else
21415 as_basename=false
21416fi
21417
21418
21419# Name of the executable.
64ff59ba 21420as_me=`$as_basename -- "$0" ||
d9898ee8 21421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21422 X"$0" : 'X\(//\)$' \| \
64ff59ba 21423 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21424echo X/"$0" |
64ff59ba 21425 sed '/^.*\/\([^/][^/]*\)\/*$/{
21426 s//\1/
21427 q
21428 }
21429 /^X\/\(\/\/\)$/{
21430 s//\1/
21431 q
21432 }
21433 /^X\/\(\/\).*/{
21434 s//\1/
21435 q
21436 }
21437 s/.*/./; q'`
d9898ee8 21438
64ff59ba 21439# CDPATH.
21440$as_unset CDPATH
d9898ee8 21441
21442
d9898ee8 21443
d9898ee8 21444 as_lineno_1=$LINENO
21445 as_lineno_2=$LINENO
d9898ee8 21446 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 21447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 21448
21449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21450 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 21451 # line-number line after each line using $LINENO; the second 'sed'
21452 # does the real work. The second script uses 'N' to pair each
21453 # line-number line with the line containing $LINENO, and appends
21454 # trailing '-' during substitution so that $LINENO is not a special
21455 # case at line end.
d9898ee8 21456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 21457 # scripts with optimization help from Paolo Bonzini. Blame Lee
21458 # E. McMahon (1931-1989) for sed's syntax. :-)
21459 sed -n '
21460 p
21461 /[$]LINENO/=
21462 ' <$as_myself |
d9898ee8 21463 sed '
64ff59ba 21464 s/[$]LINENO.*/&-/
21465 t lineno
21466 b
21467 :lineno
d9898ee8 21468 N
64ff59ba 21469 :loop
21470 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 21471 t loop
64ff59ba 21472 s/-\n.*//
d9898ee8 21473 ' >$as_me.lineno &&
64ff59ba 21474 chmod +x "$as_me.lineno" ||
21475 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 21476 { (exit 1); exit 1; }; }
21477
21478 # Don't try to exec as it changes $[0], causing all sort of problems
21479 # (the dirname of $[0] is not the place where we might find the
64ff59ba 21480 # original and so on. Autoconf is especially sensitive to this).
21481 . "./$as_me.lineno"
d9898ee8 21482 # Exit status is that of the last command.
21483 exit
21484}
21485
21486
64ff59ba 21487if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21488 as_dirname=dirname
21489else
21490 as_dirname=false
21491fi
21492
21493ECHO_C= ECHO_N= ECHO_T=
21494case `echo -n x` in
21495-n*)
21496 case `echo 'x\c'` in
21497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21498 *) ECHO_C='\c';;
21499 esac;;
21500*)
21501 ECHO_N='-n';;
d9898ee8 21502esac
21503
64ff59ba 21504if expr a : '\(a\)' >/dev/null 2>&1 &&
21505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 21506 as_expr=expr
21507else
21508 as_expr=false
21509fi
21510
21511rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 21512if test -d conf$$.dir; then
21513 rm -f conf$$.dir/conf$$.file
21514else
21515 rm -f conf$$.dir
21516 mkdir conf$$.dir
21517fi
d9898ee8 21518echo >conf$$.file
21519if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 21520 as_ln_s='ln -s'
21521 # ... but there are two gotchas:
21522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21524 # In both cases, we have to default to `cp -p'.
21525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 21526 as_ln_s='cp -p'
d9898ee8 21527elif ln conf$$.file conf$$ 2>/dev/null; then
21528 as_ln_s=ln
21529else
21530 as_ln_s='cp -p'
21531fi
64ff59ba 21532rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21533rmdir conf$$.dir 2>/dev/null
d9898ee8 21534
21535if mkdir -p . 2>/dev/null; then
21536 as_mkdir_p=:
21537else
21538 test -d ./-p && rmdir ./-p
21539 as_mkdir_p=false
21540fi
21541
64ff59ba 21542if test -x / >/dev/null 2>&1; then
21543 as_test_x='test -x'
21544else
21545 if ls -dL / >/dev/null 2>&1; then
21546 as_ls_L_option=L
21547 else
21548 as_ls_L_option=
21549 fi
21550 as_test_x='
21551 eval sh -c '\''
21552 if test -d "$1"; then
21553 test -d "$1/.";
21554 else
21555 case $1 in
21556 -*)set "./$1";;
21557 esac;
21558 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21559 ???[sx]*):;;*)false;;esac;fi
21560 '\'' sh
21561 '
21562fi
21563as_executable_p=$as_test_x
d9898ee8 21564
21565# Sed expression to map a string onto a valid CPP name.
21566as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21567
21568# Sed expression to map a string onto a valid variable name.
21569as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21570
21571
d9898ee8 21572exec 6>&1
21573
64ff59ba 21574# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21575# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 21576# values after options handling.
21577ac_log="
d9898ee8 21578This file was extended by liblock $as_me 0.60, which was
64ff59ba 21579generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21580
21581 CONFIG_FILES = $CONFIG_FILES
21582 CONFIG_HEADERS = $CONFIG_HEADERS
21583 CONFIG_LINKS = $CONFIG_LINKS
21584 CONFIG_COMMANDS = $CONFIG_COMMANDS
21585 $ $0 $@
21586
64ff59ba 21587on `(hostname || uname -n) 2>/dev/null | sed 1q`
21588"
21589
d9898ee8 21590_ACEOF
21591
64ff59ba 21592cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21593# Files that config.status was made for.
64ff59ba 21594config_files="$ac_config_files"
21595config_headers="$ac_config_headers"
21596config_commands="$ac_config_commands"
d9898ee8 21597
64ff59ba 21598_ACEOF
d9898ee8 21599
21600cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21601ac_cs_usage="\
21602\`$as_me' instantiates files from templates according to the
21603current configuration.
21604
21605Usage: $0 [OPTIONS] [FILE]...
21606
21607 -h, --help print this help, then exit
64ff59ba 21608 -V, --version print version number and configuration settings, then exit
d9898ee8 21609 -q, --quiet do not print progress messages
21610 -d, --debug don't remove temporary files
21611 --recheck update $as_me by reconfiguring in the same conditions
21612 --file=FILE[:TEMPLATE]
21613 instantiate the configuration file FILE
21614 --header=FILE[:TEMPLATE]
21615 instantiate the configuration header FILE
21616
21617Configuration files:
21618$config_files
21619
21620Configuration headers:
21621$config_headers
21622
21623Configuration commands:
21624$config_commands
21625
21626Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21627
64ff59ba 21628_ACEOF
d9898ee8 21629cat >>$CONFIG_STATUS <<_ACEOF
21630ac_cs_version="\\
21631liblock config.status 0.60
64ff59ba 21632configured by $0, generated by GNU Autoconf 2.61,
21633 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21634
64ff59ba 21635Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21636This config.status script is free software; the Free Software Foundation
21637gives unlimited permission to copy, distribute and modify it."
64ff59ba 21638
21639ac_pwd='$ac_pwd'
21640srcdir='$srcdir'
21641INSTALL='$INSTALL'
21642MKDIR_P='$MKDIR_P'
d9898ee8 21643_ACEOF
21644
21645cat >>$CONFIG_STATUS <<\_ACEOF
21646# If no file are specified by the user, then we need to provide default
21647# value. By we need to know if files were specified by the user.
21648ac_need_defaults=:
21649while test $# != 0
21650do
21651 case $1 in
21652 --*=*)
64ff59ba 21653 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21654 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21655 ac_shift=:
21656 ;;
64ff59ba 21657 *)
d9898ee8 21658 ac_option=$1
21659 ac_optarg=$2
21660 ac_shift=shift
21661 ;;
d9898ee8 21662 esac
21663
21664 case $ac_option in
21665 # Handling of the options.
d9898ee8 21666 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21667 ac_cs_recheck=: ;;
64ff59ba 21668 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21669 echo "$ac_cs_version"; exit ;;
21670 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21671 debug=: ;;
21672 --file | --fil | --fi | --f )
21673 $ac_shift
21674 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21675 ac_need_defaults=false;;
21676 --header | --heade | --head | --hea )
21677 $ac_shift
21678 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21679 ac_need_defaults=false;;
64ff59ba 21680 --he | --h)
21681 # Conflict between --help and --header
21682 { echo "$as_me: error: ambiguous option: $1
21683Try \`$0 --help' for more information." >&2
21684 { (exit 1); exit 1; }; };;
21685 --help | --hel | -h )
21686 echo "$ac_cs_usage"; exit ;;
d9898ee8 21687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21688 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21689 ac_cs_silent=: ;;
21690
21691 # This is an error.
64ff59ba 21692 -*) { echo "$as_me: error: unrecognized option: $1
21693Try \`$0 --help' for more information." >&2
d9898ee8 21694 { (exit 1); exit 1; }; } ;;
21695
64ff59ba 21696 *) ac_config_targets="$ac_config_targets $1"
21697 ac_need_defaults=false ;;
d9898ee8 21698
21699 esac
21700 shift
21701done
21702
21703ac_configure_extra_args=
21704
21705if $ac_cs_silent; then
21706 exec 6>/dev/null
21707 ac_configure_extra_args="$ac_configure_extra_args --silent"
21708fi
21709
21710_ACEOF
21711cat >>$CONFIG_STATUS <<_ACEOF
21712if \$ac_cs_recheck; then
64ff59ba 21713 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21714 CONFIG_SHELL=$SHELL
21715 export CONFIG_SHELL
21716 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21717fi
21718
21719_ACEOF
64ff59ba 21720cat >>$CONFIG_STATUS <<\_ACEOF
21721exec 5>>config.log
21722{
21723 echo
21724 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21725## Running $as_me. ##
21726_ASBOX
21727 echo "$ac_log"
21728} >&5
d9898ee8 21729
64ff59ba 21730_ACEOF
d9898ee8 21731cat >>$CONFIG_STATUS <<_ACEOF
21732#
64ff59ba 21733# INIT-COMMANDS
d9898ee8 21734#
d9898ee8 21735AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21736
21737_ACEOF
21738
d9898ee8 21739cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21740
21741# Handling of arguments.
d9898ee8 21742for ac_config_target in $ac_config_targets
21743do
64ff59ba 21744 case $ac_config_target in
21745 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21746 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21747 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21748
d9898ee8 21749 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21750echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21751 { (exit 1); exit 1; }; };;
21752 esac
21753done
21754
64ff59ba 21755
d9898ee8 21756# If the user did not use the arguments to specify the items to instantiate,
21757# then the envvar interface is used. Set only those that are not.
21758# We use the long form for the default assignment because of an extremely
21759# bizarre bug on SunOS 4.1.3.
21760if $ac_need_defaults; then
21761 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21762 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21763 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21764fi
21765
21766# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 21767# simply because there is no reason against having it here, and in addition,
d9898ee8 21768# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 21769# Hook for its removal unless debugging.
21770# Note that there is a small window in which the directory will not be cleaned:
21771# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21772$debug ||
21773{
64ff59ba 21774 tmp=
21775 trap 'exit_status=$?
21776 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21777' 0
d9898ee8 21778 trap '{ (exit 1); exit 1; }' 1 2 13 15
21779}
d9898ee8 21780# Create a (secure) tmp directory for tmp files.
21781
21782{
64ff59ba 21783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21784 test -n "$tmp" && test -d "$tmp"
21785} ||
21786{
64ff59ba 21787 tmp=./conf$$-$RANDOM
21788 (umask 077 && mkdir "$tmp")
d9898ee8 21789} ||
21790{
21791 echo "$me: cannot create a temporary directory in ." >&2
21792 { (exit 1); exit 1; }
21793}
21794
d9898ee8 21795#
64ff59ba 21796# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21797#
21798
21799# No need to generate the scripts if there are no CONFIG_FILES.
21800# This happens for instance when ./config.status config.h
64ff59ba 21801if test -n "$CONFIG_FILES"; then
d9898ee8 21802
21803_ACEOF
21804
64ff59ba 21805
21806
21807ac_delim='%!_!# '
21808for ac_last_try in false false false false false :; do
21809 cat >conf$$subs.sed <<_ACEOF
21810SHELL!$SHELL$ac_delim
21811PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21812PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21813PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21814PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21815PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21816PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21817exec_prefix!$exec_prefix$ac_delim
21818prefix!$prefix$ac_delim
21819program_transform_name!$program_transform_name$ac_delim
21820bindir!$bindir$ac_delim
21821sbindir!$sbindir$ac_delim
21822libexecdir!$libexecdir$ac_delim
21823datarootdir!$datarootdir$ac_delim
21824datadir!$datadir$ac_delim
21825sysconfdir!$sysconfdir$ac_delim
21826sharedstatedir!$sharedstatedir$ac_delim
21827localstatedir!$localstatedir$ac_delim
21828includedir!$includedir$ac_delim
21829oldincludedir!$oldincludedir$ac_delim
21830docdir!$docdir$ac_delim
21831infodir!$infodir$ac_delim
21832htmldir!$htmldir$ac_delim
21833dvidir!$dvidir$ac_delim
21834pdfdir!$pdfdir$ac_delim
21835psdir!$psdir$ac_delim
21836libdir!$libdir$ac_delim
21837localedir!$localedir$ac_delim
21838mandir!$mandir$ac_delim
21839DEFS!$DEFS$ac_delim
21840ECHO_C!$ECHO_C$ac_delim
21841ECHO_N!$ECHO_N$ac_delim
21842ECHO_T!$ECHO_T$ac_delim
21843LIBS!$LIBS$ac_delim
21844build_alias!$build_alias$ac_delim
21845host_alias!$host_alias$ac_delim
21846target_alias!$target_alias$ac_delim
21847INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21848INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21849INSTALL_DATA!$INSTALL_DATA$ac_delim
21850am__isrc!$am__isrc$ac_delim
21851CYGPATH_W!$CYGPATH_W$ac_delim
21852PACKAGE!$PACKAGE$ac_delim
21853VERSION!$VERSION$ac_delim
21854ACLOCAL!$ACLOCAL$ac_delim
21855AUTOCONF!$AUTOCONF$ac_delim
21856AUTOMAKE!$AUTOMAKE$ac_delim
21857AUTOHEADER!$AUTOHEADER$ac_delim
21858MAKEINFO!$MAKEINFO$ac_delim
21859install_sh!$install_sh$ac_delim
21860STRIP!$STRIP$ac_delim
21861INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21862mkdir_p!$mkdir_p$ac_delim
21863AWK!$AWK$ac_delim
21864SET_MAKE!$SET_MAKE$ac_delim
21865am__leading_dot!$am__leading_dot$ac_delim
21866AMTAR!$AMTAR$ac_delim
21867am__tar!$am__tar$ac_delim
21868am__untar!$am__untar$ac_delim
21869CC!$CC$ac_delim
21870CFLAGS!$CFLAGS$ac_delim
21871LDFLAGS!$LDFLAGS$ac_delim
21872CPPFLAGS!$CPPFLAGS$ac_delim
21873ac_ct_CC!$ac_ct_CC$ac_delim
21874EXEEXT!$EXEEXT$ac_delim
21875OBJEXT!$OBJEXT$ac_delim
21876DEPDIR!$DEPDIR$ac_delim
21877am__include!$am__include$ac_delim
21878am__quote!$am__quote$ac_delim
21879AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21880AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21881AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21882CCDEPMODE!$CCDEPMODE$ac_delim
21883am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21884am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21885LN_S!$LN_S$ac_delim
21886build!$build$ac_delim
21887build_cpu!$build_cpu$ac_delim
21888build_vendor!$build_vendor$ac_delim
21889build_os!$build_os$ac_delim
21890host!$host$ac_delim
21891host_cpu!$host_cpu$ac_delim
21892host_vendor!$host_vendor$ac_delim
21893host_os!$host_os$ac_delim
21894SED!$SED$ac_delim
21895GREP!$GREP$ac_delim
21896EGREP!$EGREP$ac_delim
21897ECHO!$ECHO$ac_delim
21898AR!$AR$ac_delim
21899RANLIB!$RANLIB$ac_delim
21900CPP!$CPP$ac_delim
21901CXX!$CXX$ac_delim
21902CXXFLAGS!$CXXFLAGS$ac_delim
21903ac_ct_CXX!$ac_ct_CXX$ac_delim
21904CXXDEPMODE!$CXXDEPMODE$ac_delim
21905am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21906am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21907_ACEOF
21908
21909 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21910 break
21911 elif $ac_last_try; then
21912 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21913echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21914 { (exit 1); exit 1; }; }
21915 else
21916 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21917 fi
64ff59ba 21918done
21919
21920ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21921if test -n "$ac_eof"; then
21922 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21923 ac_eof=`expr $ac_eof + 1`
21924fi
21925
21926cat >>$CONFIG_STATUS <<_ACEOF
21927cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21929_ACEOF
21930sed '
21931s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21932s/^/s,@/; s/!/@,|#_!!_#|/
21933:n
21934t n
21935s/'"$ac_delim"'$/,g/; t
21936s/$/\\/; p
21937N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21938' >>$CONFIG_STATUS <conf$$subs.sed
21939rm -f conf$$subs.sed
21940cat >>$CONFIG_STATUS <<_ACEOF
21941CEOF$ac_eof
21942_ACEOF
21943
21944
21945ac_delim='%!_!# '
21946for ac_last_try in false false false false false :; do
21947 cat >conf$$subs.sed <<_ACEOF
21948CXXCPP!$CXXCPP$ac_delim
21949F77!$F77$ac_delim
21950FFLAGS!$FFLAGS$ac_delim
21951ac_ct_F77!$ac_ct_F77$ac_delim
21952LIBTOOL!$LIBTOOL$ac_delim
21953USE_FCNTL_TRUE!$USE_FCNTL_TRUE$ac_delim
21954USE_FCNTL_FALSE!$USE_FCNTL_FALSE$ac_delim
21955USE_FLOCK_TRUE!$USE_FLOCK_TRUE$ac_delim
21956USE_FLOCK_FALSE!$USE_FLOCK_FALSE$ac_delim
21957USE_LOCKF_TRUE!$USE_LOCKF_TRUE$ac_delim
21958USE_LOCKF_FALSE!$USE_LOCKF_FALSE$ac_delim
21959HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21960HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21961LIBOBJS!$LIBOBJS$ac_delim
21962LTLIBOBJS!$LTLIBOBJS$ac_delim
21963_ACEOF
21964
21965 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
21966 break
21967 elif $ac_last_try; then
21968 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21969echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21970 { (exit 1); exit 1; }; }
21971 else
21972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21973 fi
21974done
21975
21976ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21977if test -n "$ac_eof"; then
21978 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21979 ac_eof=`expr $ac_eof + 1`
21980fi
d9898ee8 21981
64ff59ba 21982cat >>$CONFIG_STATUS <<_ACEOF
21983cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21984/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21985_ACEOF
21986sed '
21987s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21988s/^/s,@/; s/!/@,|#_!!_#|/
21989:n
21990t n
21991s/'"$ac_delim"'$/,g/; t
21992s/$/\\/; p
21993N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21994' >>$CONFIG_STATUS <conf$$subs.sed
21995rm -f conf$$subs.sed
21996cat >>$CONFIG_STATUS <<_ACEOF
21997:end
21998s/|#_!!_#|//g
21999CEOF$ac_eof
d9898ee8 22000_ACEOF
64ff59ba 22001
22002
22003# VPATH may cause trouble with some makes, so we remove $(srcdir),
22004# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22005# trailing colons and then remove the whole line if VPATH becomes empty
22006# (actually we leave an empty line to preserve line numbers).
22007if test "x$srcdir" = x.; then
22008 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22009s/:*\$(srcdir):*/:/
22010s/:*\${srcdir}:*/:/
22011s/:*@srcdir@:*/:/
22012s/^\([^=]*=[ ]*\):*/\1/
22013s/:*$//
22014s/^[^=]*=[ ]*$//
22015}'
22016fi
22017
d9898ee8 22018cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 22019fi # test -n "$CONFIG_FILES"
22020
22021
22022for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22023do
22024 case $ac_tag in
22025 :[FHLC]) ac_mode=$ac_tag; continue;;
22026 esac
22027 case $ac_mode$ac_tag in
22028 :[FHL]*:*);;
22029 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22030echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22031 { (exit 1); exit 1; }; };;
22032 :[FH]-) ac_tag=-:-;;
22033 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22034 esac
22035 ac_save_IFS=$IFS
22036 IFS=:
22037 set x $ac_tag
22038 IFS=$ac_save_IFS
22039 shift
22040 ac_file=$1
22041 shift
22042
22043 case $ac_mode in
22044 :L) ac_source=$1;;
22045 :[FH])
22046 ac_file_inputs=
22047 for ac_f
22048 do
22049 case $ac_f in
22050 -) ac_f="$tmp/stdin";;
22051 *) # Look for the file first in the build tree, then in the source tree
22052 # (if the path is not absolute). The absolute path cannot be DOS-style,
22053 # because $ac_f cannot contain `:'.
22054 test -f "$ac_f" ||
22055 case $ac_f in
22056 [\\/$]*) false;;
22057 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22058 esac ||
22059 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22060echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22061 { (exit 1); exit 1; }; };;
22062 esac
22063 ac_file_inputs="$ac_file_inputs $ac_f"
22064 done
22065
22066 # Let's still pretend it is `configure' which instantiates (i.e., don't
22067 # use $as_me), people would be surprised to read:
22068 # /* config.h. Generated by config.status. */
22069 configure_input="Generated from "`IFS=:
22070 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22071 if test x"$ac_file" != x-; then
22072 configure_input="$ac_file. $configure_input"
22073 { echo "$as_me:$LINENO: creating $ac_file" >&5
22074echo "$as_me: creating $ac_file" >&6;}
22075 fi
22076
22077 case $ac_tag in
22078 *:-:* | *:-) cat >"$tmp/stdin";;
22079 esac
22080 ;;
d9898ee8 22081 esac
22082
64ff59ba 22083 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 22084$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22085 X"$ac_file" : 'X\(//\)[^/]' \| \
22086 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 22087 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22088echo X"$ac_file" |
64ff59ba 22089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22090 s//\1/
22091 q
22092 }
22093 /^X\(\/\/\)[^/].*/{
22094 s//\1/
22095 q
22096 }
22097 /^X\(\/\/\)$/{
22098 s//\1/
22099 q
22100 }
22101 /^X\(\/\).*/{
22102 s//\1/
22103 q
22104 }
22105 s/.*/./; q'`
22106 { as_dir="$ac_dir"
22107 case $as_dir in #(
22108 -*) as_dir=./$as_dir;;
22109 esac
22110 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22111 as_dirs=
64ff59ba 22112 while :; do
22113 case $as_dir in #(
22114 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22115 *) as_qdir=$as_dir;;
22116 esac
22117 as_dirs="'$as_qdir' $as_dirs"
22118 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22120 X"$as_dir" : 'X\(//\)[^/]' \| \
22121 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 22122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22123echo X"$as_dir" |
64ff59ba 22124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22125 s//\1/
22126 q
22127 }
22128 /^X\(\/\/\)[^/].*/{
22129 s//\1/
22130 q
22131 }
22132 /^X\(\/\/\)$/{
22133 s//\1/
22134 q
22135 }
22136 /^X\(\/\).*/{
22137 s//\1/
22138 q
22139 }
22140 s/.*/./; q'`
22141 test -d "$as_dir" && break
d9898ee8 22142 done
64ff59ba 22143 test -z "$as_dirs" || eval "mkdir $as_dirs"
22144 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22145echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22146 { (exit 1); exit 1; }; }; }
d9898ee8 22147 ac_builddir=.
22148
64ff59ba 22149case "$ac_dir" in
22150.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22151*)
d9898ee8 22152 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 22153 # A ".." for each directory in $ac_dir_suffix.
22154 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22155 case $ac_top_builddir_sub in
22156 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22157 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22158 esac ;;
22159esac
22160ac_abs_top_builddir=$ac_pwd
22161ac_abs_builddir=$ac_pwd$ac_dir_suffix
22162# for backward compatibility:
22163ac_top_builddir=$ac_top_build_prefix
d9898ee8 22164
22165case $srcdir in
64ff59ba 22166 .) # We are building in place.
d9898ee8 22167 ac_srcdir=.
64ff59ba 22168 ac_top_srcdir=$ac_top_builddir_sub
22169 ac_abs_top_srcdir=$ac_pwd ;;
22170 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 22171 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 22172 ac_top_srcdir=$srcdir
22173 ac_abs_top_srcdir=$srcdir ;;
22174 *) # Relative name.
22175 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22176 ac_top_srcdir=$ac_top_build_prefix$srcdir
22177 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 22178esac
64ff59ba 22179ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 22180
d9898ee8 22181
64ff59ba 22182 case $ac_mode in
22183 :F)
22184 #
22185 # CONFIG_FILE
22186 #
d9898ee8 22187
22188 case $INSTALL in
22189 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 22190 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22191 esac
22192 ac_MKDIR_P=$MKDIR_P
22193 case $MKDIR_P in
22194 [\\/$]* | ?:[\\/]* ) ;;
22195 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 22196 esac
64ff59ba 22197_ACEOF
d9898ee8 22198
64ff59ba 22199cat >>$CONFIG_STATUS <<\_ACEOF
22200# If the template does not know about datarootdir, expand it.
22201# FIXME: This hack should be removed a few years after 2.60.
22202ac_datarootdir_hack=; ac_datarootdir_seen=
22203
22204case `sed -n '/datarootdir/ {
22205 p
22206 q
22207}
22208/@datadir@/p
22209/@docdir@/p
22210/@infodir@/p
22211/@localedir@/p
22212/@mandir@/p
22213' $ac_file_inputs` in
22214*datarootdir*) ac_datarootdir_seen=yes;;
22215*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22216 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22217echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 22218_ACEOF
64ff59ba 22219cat >>$CONFIG_STATUS <<_ACEOF
22220 ac_datarootdir_hack='
22221 s&@datadir@&$datadir&g
22222 s&@docdir@&$docdir&g
22223 s&@infodir@&$infodir&g
22224 s&@localedir@&$localedir&g
22225 s&@mandir@&$mandir&g
22226 s&\\\${datarootdir}&$datarootdir&g' ;;
22227esac
22228_ACEOF
22229
22230# Neutralize VPATH when `$srcdir' = `.'.
22231# Shell code in configure.ac might set extrasub.
22232# FIXME: do we really want to maintain this feature?
d9898ee8 22233cat >>$CONFIG_STATUS <<_ACEOF
22234 sed "$ac_vpsub
22235$extrasub
22236_ACEOF
22237cat >>$CONFIG_STATUS <<\_ACEOF
22238:t
22239/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 22240s&@configure_input@&$configure_input&;t t
22241s&@top_builddir@&$ac_top_builddir_sub&;t t
22242s&@srcdir@&$ac_srcdir&;t t
22243s&@abs_srcdir@&$ac_abs_srcdir&;t t
22244s&@top_srcdir@&$ac_top_srcdir&;t t
22245s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22246s&@builddir@&$ac_builddir&;t t
22247s&@abs_builddir@&$ac_abs_builddir&;t t
22248s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22249s&@INSTALL@&$ac_INSTALL&;t t
22250s&@MKDIR_P@&$ac_MKDIR_P&;t t
22251$ac_datarootdir_hack
22252" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22253
22254test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22257 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22258which seems to be undefined. Please make sure it is defined." >&5
22259echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22260which seems to be undefined. Please make sure it is defined." >&2;}
22261
22262 rm -f "$tmp/stdin"
d9898ee8 22263 case $ac_file in
64ff59ba 22264 -) cat "$tmp/out"; rm -f "$tmp/out";;
22265 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 22266 esac
64ff59ba 22267 ;;
22268 :H)
22269 #
22270 # CONFIG_HEADER
22271 #
d9898ee8 22272_ACEOF
22273
64ff59ba 22274# Transform confdefs.h into a sed script `conftest.defines', that
22275# substitutes the proper values into config.h.in to produce config.h.
22276rm -f conftest.defines conftest.tail
22277# First, append a space to every undef/define line, to ease matching.
22278echo 's/$/ /' >conftest.defines
22279# Then, protect against being on the right side of a sed subst, or in
22280# an unquoted here document, in config.status. If some macros were
22281# called several times there might be several #defines for the same
22282# symbol, which is useless. But do not sort them, since the last
22283# AC_DEFINE must be honored.
22284ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22285# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22286# NAME is the cpp macro being defined, VALUE is the value it is being given.
22287# PARAMS is the parameter list in the macro definition--in most cases, it's
22288# just an empty string.
22289ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22290ac_dB='\\)[ (].*,\\1define\\2'
22291ac_dC=' '
22292ac_dD=' ,'
22293
22294uniq confdefs.h |
22295 sed -n '
22296 t rset
22297 :rset
22298 s/^[ ]*#[ ]*define[ ][ ]*//
22299 t ok
22300 d
22301 :ok
22302 s/[\\&,]/\\&/g
22303 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22304 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22305 ' >>conftest.defines
22306
22307# Remove the space that was appended to ease matching.
22308# Then replace #undef with comments. This is necessary, for
d9898ee8 22309# example, in the case of _POSIX_SOURCE, which is predefined and required
22310# on some systems where configure will not decide to define it.
64ff59ba 22311# (The regexp can be short, since the line contains either #define or #undef.)
22312echo 's/ $//
22313s,^[ #]*u.*,/* & */,' >>conftest.defines
22314
22315# Break up conftest.defines:
22316ac_max_sed_lines=50
22317
22318# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22319# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22320# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22321# et cetera.
22322ac_in='$ac_file_inputs'
22323ac_out='"$tmp/out1"'
22324ac_nxt='"$tmp/out2"'
22325
22326while :
d9898ee8 22327do
64ff59ba 22328 # Write a here document:
22329 cat >>$CONFIG_STATUS <<_ACEOF
22330 # First, check the format of the line:
22331 cat >"\$tmp/defines.sed" <<\\CEOF
22332/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22333/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22334b
22335:def
22336_ACEOF
22337 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 22338 echo 'CEOF
64ff59ba 22339 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22340 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22341 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22342 grep . conftest.tail >/dev/null || break
d9898ee8 22343 rm -f conftest.defines
22344 mv conftest.tail conftest.defines
22345done
64ff59ba 22346rm -f conftest.defines conftest.tail
d9898ee8 22347
64ff59ba 22348echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 22349cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 22350 if test x"$ac_file" != x-; then
64ff59ba 22351 echo "/* $configure_input */" >"$tmp/config.h"
22352 cat "$ac_result" >>"$tmp/config.h"
22353 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 22354 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22355echo "$as_me: $ac_file is unchanged" >&6;}
22356 else
d9898ee8 22357 rm -f $ac_file
64ff59ba 22358 mv "$tmp/config.h" $ac_file
d9898ee8 22359 fi
22360 else
64ff59ba 22361 echo "/* $configure_input */"
22362 cat "$ac_result"
d9898ee8 22363 fi
64ff59ba 22364 rm -f "$tmp/out12"
d9898ee8 22365# Compute $ac_file's index in $config_headers.
0fde1ce3 22366_am_arg=$ac_file
d9898ee8 22367_am_stamp_count=1
22368for _am_header in $config_headers :; do
22369 case $_am_header in
0fde1ce3 22370 $_am_arg | $_am_arg:* )
d9898ee8 22371 break ;;
22372 * )
22373 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22374 esac
22375done
0fde1ce3 22376echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22377$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378 X"$_am_arg" : 'X\(//\)[^/]' \| \
22379 X"$_am_arg" : 'X\(//\)$' \| \
22380 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22381echo X"$_am_arg" |
64ff59ba 22382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383 s//\1/
22384 q
22385 }
22386 /^X\(\/\/\)[^/].*/{
22387 s//\1/
22388 q
22389 }
22390 /^X\(\/\/\)$/{
22391 s//\1/
22392 q
22393 }
22394 /^X\(\/\).*/{
22395 s//\1/
22396 q
22397 }
22398 s/.*/./; q'`/stamp-h$_am_stamp_count
22399 ;;
d9898ee8 22400
64ff59ba 22401 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22402echo "$as_me: executing $ac_file commands" >&6;}
22403 ;;
22404 esac
d9898ee8 22405
22406
64ff59ba 22407 case $ac_file$ac_mode in
22408 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 22409 # Strip MF so we end up with the name of the file.
22410 mf=`echo "$mf" | sed -e 's/:.*$//'`
22411 # Check whether this is an Automake generated Makefile or not.
22412 # We used to match only the files named `Makefile.in', but
22413 # some people rename them; so instead we look at the file content.
22414 # Grep'ing the first line is not enough: some people post-process
22415 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 22416 # Grep'ing the whole file is not good either: AIX grep has a line
22417 # limit of 2048, but all sed's we know have understand at least 4000.
0fde1ce3 22418 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
64ff59ba 22419 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 22420$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22421 X"$mf" : 'X\(//\)[^/]' \| \
22422 X"$mf" : 'X\(//\)$' \| \
64ff59ba 22423 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22424echo X"$mf" |
64ff59ba 22425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22426 s//\1/
22427 q
22428 }
22429 /^X\(\/\/\)[^/].*/{
22430 s//\1/
22431 q
22432 }
22433 /^X\(\/\/\)$/{
22434 s//\1/
22435 q
22436 }
22437 /^X\(\/\).*/{
22438 s//\1/
22439 q
22440 }
22441 s/.*/./; q'`
d9898ee8 22442 else
22443 continue
22444 fi
22445 # Extract the definition of DEPDIR, am__include, and am__quote
22446 # from the Makefile without running `make'.
22447 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22448 test -z "$DEPDIR" && continue
22449 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22450 test -z "am__include" && continue
22451 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22452 # When using ansi2knr, U may be empty or an underscore; expand it
22453 U=`sed -n 's/^U = //p' < "$mf"`
22454 # Find all dependency output files, they are included files with
22455 # $(DEPDIR) in their names. We invoke sed twice because it is the
22456 # simplest approach to changing $(DEPDIR) to its actual value in the
22457 # expansion.
22458 for file in `sed -n "
22459 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22460 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22461 # Make sure the directory exists.
22462 test -f "$dirpart/$file" && continue
64ff59ba 22463 fdir=`$as_dirname -- "$file" ||
d9898ee8 22464$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22465 X"$file" : 'X\(//\)[^/]' \| \
22466 X"$file" : 'X\(//\)$' \| \
64ff59ba 22467 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22468echo X"$file" |
64ff59ba 22469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22470 s//\1/
22471 q
22472 }
22473 /^X\(\/\/\)[^/].*/{
22474 s//\1/
22475 q
22476 }
22477 /^X\(\/\/\)$/{
22478 s//\1/
22479 q
22480 }
22481 /^X\(\/\).*/{
22482 s//\1/
22483 q
22484 }
22485 s/.*/./; q'`
22486 { as_dir=$dirpart/$fdir
22487 case $as_dir in #(
22488 -*) as_dir=./$as_dir;;
22489 esac
22490 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 22491 as_dirs=
64ff59ba 22492 while :; do
22493 case $as_dir in #(
22494 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22495 *) as_qdir=$as_dir;;
22496 esac
22497 as_dirs="'$as_qdir' $as_dirs"
22498 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 22499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22500 X"$as_dir" : 'X\(//\)[^/]' \| \
22501 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 22502 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 22503echo X"$as_dir" |
64ff59ba 22504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22505 s//\1/
22506 q
22507 }
22508 /^X\(\/\/\)[^/].*/{
22509 s//\1/
22510 q
22511 }
22512 /^X\(\/\/\)$/{
22513 s//\1/
22514 q
22515 }
22516 /^X\(\/\).*/{
22517 s//\1/
22518 q
22519 }
22520 s/.*/./; q'`
22521 test -d "$as_dir" && break
d9898ee8 22522 done
64ff59ba 22523 test -z "$as_dirs" || eval "mkdir $as_dirs"
22524 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22525echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 22526 { (exit 1); exit 1; }; }; }
d9898ee8 22527 # echo "creating $dirpart/$file"
22528 echo '# dummy' > "$dirpart/$file"
22529 done
22530done
22531 ;;
64ff59ba 22532
d9898ee8 22533 esac
64ff59ba 22534done # for ac_tag
d9898ee8 22535
d9898ee8 22536
22537{ (exit 0); exit 0; }
22538_ACEOF
22539chmod +x $CONFIG_STATUS
22540ac_clean_files=$ac_clean_files_save
22541
22542
22543# configure is writing to config.log, and then calls config.status.
22544# config.status does its own redirection, appending to config.log.
22545# Unfortunately, on DOS this fails, as config.log is still kept open
22546# by configure, so config.status won't be able to write to it; its
22547# output is simply discarded. So we exec the FD to /dev/null,
22548# effectively closing config.log, so it can be properly (re)opened and
22549# appended to by config.status. When coming back to configure, we
22550# need to make the FD available again.
22551if test "$no_create" != yes; then
22552 ac_cs_success=:
22553 ac_config_status_args=
22554 test "$silent" = yes &&
22555 ac_config_status_args="$ac_config_status_args --quiet"
22556 exec 5>/dev/null
22557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22558 exec 5>>config.log
22559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22560 # would make configure fail if this is the last instruction.
22561 $ac_cs_success || { (exit 1); exit 1; }
22562fi
22563