Imported Debian patch 0.60.1-1
[hcoop/debian/courier-authlib.git] / userdb / 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 libuserdb 0.10.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
64ff59ba 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
64ff59ba 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
64ff59ba 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
64ff59ba 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
64ff59ba 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
64ff59ba 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
64ff59ba 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
64ff59ba 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
64ff59ba 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
64ff59ba 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
64ff59ba 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
64ff59ba 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
64ff59ba 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
64ff59ba 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
64ff59ba 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
64ff59ba 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
64ff59ba 228 case $as_dir in
d9898ee8 229 /*)
64ff59ba 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
64ff59ba 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
64ff59ba 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
64ff59ba 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
64ff59ba 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
64ff59ba 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
64ff59ba 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
64ff59ba 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
64ff59ba 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
64ff59ba 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
64ff59ba 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
64ff59ba 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
64ff59ba 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='libuserdb'
730PACKAGE_TARNAME='libuserdb'
731PACKAGE_VERSION='0.10'
732PACKAGE_STRING='libuserdb 0.10'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="userdb.c"
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
874PERL
875userdb
876USERDB
877userdbtmpdir
878tmpdir
879makedat
880MD5LIB
881SHA1LIB
882HMACLIB
883CRYPTLIBS
884HAVE_SGML_TRUE
885HAVE_SGML_FALSE
886LIBOBJS
887LTLIBOBJS'
d9898ee8 888ac_subst_files=''
64ff59ba 889 ac_precious_vars='build_alias
890host_alias
891target_alias
892CC
893CFLAGS
894LDFLAGS
895LIBS
896CPPFLAGS
897CPP
898CXX
899CXXFLAGS
900CCC
901CXXCPP
902F77
903FFLAGS'
904
d9898ee8 905
906# Initialize some variables set by options.
907ac_init_help=
908ac_init_version=false
909# The variables have the same names as the options, with
910# dashes changed to underlines.
911cache_file=/dev/null
912exec_prefix=NONE
913no_create=
914no_recursion=
915prefix=NONE
916program_prefix=NONE
917program_suffix=NONE
918program_transform_name=s,x,x,
919silent=
920site=
921srcdir=
922verbose=
923x_includes=NONE
924x_libraries=NONE
925
926# Installation directory options.
927# These are left unexpanded so users can "make install exec_prefix=/foo"
928# and all the variables that are supposed to be based on exec_prefix
929# by default will actually change.
930# Use braces instead of parens because sh, perl, etc. also accept them.
64ff59ba 931# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 932bindir='${exec_prefix}/bin'
933sbindir='${exec_prefix}/sbin'
934libexecdir='${exec_prefix}/libexec'
64ff59ba 935datarootdir='${prefix}/share'
936datadir='${datarootdir}'
d9898ee8 937sysconfdir='${prefix}/etc'
938sharedstatedir='${prefix}/com'
939localstatedir='${prefix}/var'
d9898ee8 940includedir='${prefix}/include'
941oldincludedir='/usr/include'
64ff59ba 942docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
943infodir='${datarootdir}/info'
944htmldir='${docdir}'
945dvidir='${docdir}'
946pdfdir='${docdir}'
947psdir='${docdir}'
948libdir='${exec_prefix}/lib'
949localedir='${datarootdir}/locale'
950mandir='${datarootdir}/man'
d9898ee8 951
952ac_prev=
64ff59ba 953ac_dashdash=
d9898ee8 954for ac_option
955do
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
64ff59ba 958 eval $ac_prev=\$ac_option
d9898ee8 959 ac_prev=
960 continue
961 fi
962
64ff59ba 963 case $ac_option in
964 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 *) ac_optarg=yes ;;
966 esac
d9898ee8 967
968 # Accept the important Cygnus configure options, so we can diagnose typos.
969
64ff59ba 970 case $ac_dashdash$ac_option in
971 --)
972 ac_dashdash=yes ;;
d9898ee8 973
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
978
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
983
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
990
991 --config-cache | -C)
992 cache_file=config.cache ;;
993
64ff59ba 994 -datadir | --datadir | --datadi | --datad)
d9898ee8 995 ac_prev=datadir ;;
64ff59ba 996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 997 datadir=$ac_optarg ;;
998
64ff59ba 999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1005
d9898ee8 1006 -disable-* | --disable-*)
1007 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
64ff59ba 1009 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1010 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011 { (exit 1); exit 1; }; }
64ff59ba 1012 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013 eval enable_$ac_feature=no ;;
1014
1015 -docdir | --docdir | --docdi | --doc | --do)
1016 ac_prev=docdir ;;
1017 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1018 docdir=$ac_optarg ;;
1019
1020 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1021 ac_prev=dvidir ;;
1022 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1023 dvidir=$ac_optarg ;;
d9898ee8 1024
1025 -enable-* | --enable-*)
1026 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1027 # Reject names that are not valid shell variable names.
64ff59ba 1028 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1029 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1030 { (exit 1); exit 1; }; }
64ff59ba 1031 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1032 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1033
1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1036 | --exec | --exe | --ex)
1037 ac_prev=exec_prefix ;;
1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1040 | --exec=* | --exe=* | --ex=*)
1041 exec_prefix=$ac_optarg ;;
1042
1043 -gas | --gas | --ga | --g)
1044 # Obsolete; use --with-gas.
1045 with_gas=yes ;;
1046
1047 -help | --help | --hel | --he | -h)
1048 ac_init_help=long ;;
1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1050 ac_init_help=recursive ;;
1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1052 ac_init_help=short ;;
1053
1054 -host | --host | --hos | --ho)
1055 ac_prev=host_alias ;;
1056 -host=* | --host=* | --hos=* | --ho=*)
1057 host_alias=$ac_optarg ;;
1058
64ff59ba 1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060 ac_prev=htmldir ;;
1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062 | --ht=*)
1063 htmldir=$ac_optarg ;;
1064
d9898ee8 1065 -includedir | --includedir | --includedi | --included | --include \
1066 | --includ | --inclu | --incl | --inc)
1067 ac_prev=includedir ;;
1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1069 | --includ=* | --inclu=* | --incl=* | --inc=*)
1070 includedir=$ac_optarg ;;
1071
1072 -infodir | --infodir | --infodi | --infod | --info | --inf)
1073 ac_prev=infodir ;;
1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1075 infodir=$ac_optarg ;;
1076
1077 -libdir | --libdir | --libdi | --libd)
1078 ac_prev=libdir ;;
1079 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1080 libdir=$ac_optarg ;;
1081
1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1083 | --libexe | --libex | --libe)
1084 ac_prev=libexecdir ;;
1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1086 | --libexe=* | --libex=* | --libe=*)
1087 libexecdir=$ac_optarg ;;
1088
64ff59ba 1089 -localedir | --localedir | --localedi | --localed | --locale)
1090 ac_prev=localedir ;;
1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1092 localedir=$ac_optarg ;;
1093
d9898ee8 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \
64ff59ba 1095 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1096 ac_prev=localstatedir ;;
1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
64ff59ba 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1099 localstatedir=$ac_optarg ;;
1100
1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102 ac_prev=mandir ;;
1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1104 mandir=$ac_optarg ;;
1105
1106 -nfp | --nfp | --nf)
1107 # Obsolete; use --without-fp.
1108 with_fp=no ;;
1109
1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1111 | --no-cr | --no-c | -n)
1112 no_create=yes ;;
1113
1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1116 no_recursion=yes ;;
1117
1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1120 | --oldin | --oldi | --old | --ol | --o)
1121 ac_prev=oldincludedir ;;
1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1125 oldincludedir=$ac_optarg ;;
1126
1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128 ac_prev=prefix ;;
1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1130 prefix=$ac_optarg ;;
1131
1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1133 | --program-pre | --program-pr | --program-p)
1134 ac_prev=program_prefix ;;
1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1137 program_prefix=$ac_optarg ;;
1138
1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1140 | --program-suf | --program-su | --program-s)
1141 ac_prev=program_suffix ;;
1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1144 program_suffix=$ac_optarg ;;
1145
1146 -program-transform-name | --program-transform-name \
1147 | --program-transform-nam | --program-transform-na \
1148 | --program-transform-n | --program-transform- \
1149 | --program-transform | --program-transfor \
1150 | --program-transfo | --program-transf \
1151 | --program-trans | --program-tran \
1152 | --progr-tra | --program-tr | --program-t)
1153 ac_prev=program_transform_name ;;
1154 -program-transform-name=* | --program-transform-name=* \
1155 | --program-transform-nam=* | --program-transform-na=* \
1156 | --program-transform-n=* | --program-transform-=* \
1157 | --program-transform=* | --program-transfor=* \
1158 | --program-transfo=* | --program-transf=* \
1159 | --program-trans=* | --program-tran=* \
1160 | --progr-tra=* | --program-tr=* | --program-t=*)
1161 program_transform_name=$ac_optarg ;;
1162
64ff59ba 1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164 ac_prev=pdfdir ;;
1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1166 pdfdir=$ac_optarg ;;
1167
1168 -psdir | --psdir | --psdi | --psd | --ps)
1169 ac_prev=psdir ;;
1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1171 psdir=$ac_optarg ;;
1172
d9898ee8 1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1174 | -silent | --silent | --silen | --sile | --sil)
1175 silent=yes ;;
1176
1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178 ac_prev=sbindir ;;
1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180 | --sbi=* | --sb=*)
1181 sbindir=$ac_optarg ;;
1182
1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1185 | --sharedst | --shareds | --shared | --share | --shar \
1186 | --sha | --sh)
1187 ac_prev=sharedstatedir ;;
1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191 | --sha=* | --sh=*)
1192 sharedstatedir=$ac_optarg ;;
1193
1194 -site | --site | --sit)
1195 ac_prev=site ;;
1196 -site=* | --site=* | --sit=*)
1197 site=$ac_optarg ;;
1198
1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200 ac_prev=srcdir ;;
1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1202 srcdir=$ac_optarg ;;
1203
1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1205 | --syscon | --sysco | --sysc | --sys | --sy)
1206 ac_prev=sysconfdir ;;
1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1209 sysconfdir=$ac_optarg ;;
1210
1211 -target | --target | --targe | --targ | --tar | --ta | --t)
1212 ac_prev=target_alias ;;
1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1214 target_alias=$ac_optarg ;;
1215
1216 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1217 verbose=yes ;;
1218
1219 -version | --version | --versio | --versi | --vers | -V)
1220 ac_init_version=: ;;
1221
1222 -with-* | --with-*)
1223 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1224 # Reject names that are not valid shell variable names.
64ff59ba 1225 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1226 { echo "$as_me: error: invalid package name: $ac_package" >&2
1227 { (exit 1); exit 1; }; }
64ff59ba 1228 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1229 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1230
1231 -without-* | --without-*)
1232 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
64ff59ba 1234 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1235 { echo "$as_me: error: invalid package name: $ac_package" >&2
1236 { (exit 1); exit 1; }; }
64ff59ba 1237 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238 eval with_$ac_package=no ;;
d9898ee8 1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) { echo "$as_me: error: unrecognized option: $ac_option
1259Try \`$0 --help' for more information." >&2
1260 { (exit 1); exit 1; }; }
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1268 { (exit 1); exit 1; }; }
64ff59ba 1269 eval $ac_envvar=\$ac_optarg
d9898ee8 1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 ;;
1279
1280 esac
1281done
1282
1283if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 { echo "$as_me: error: missing argument to $ac_option" >&2
1286 { (exit 1); exit 1; }; }
1287fi
1288
64ff59ba 1289# Be sure to have absolute directory names.
1290for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291 datadir sysconfdir sharedstatedir localstatedir includedir \
1292 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293 libdir localedir mandir
d9898ee8 1294do
64ff59ba 1295 eval ac_val=\$$ac_var
d9898ee8 1296 case $ac_val in
64ff59ba 1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1299 esac
64ff59ba 1300 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1301 { (exit 1); exit 1; }; }
d9898ee8 1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
64ff59ba 1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 { echo "$as_me: error: Working directory cannot be determined" >&2
1332 { (exit 1); exit 1; }; }
1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 { echo "$as_me: error: pwd does not report name of working directory" >&2
1335 { (exit 1); exit 1; }; }
1336
1337
d9898ee8 1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
64ff59ba 1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1343$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$0" : 'X\(//\)[^/]' \| \
1345 X"$0" : 'X\(//\)$' \| \
64ff59ba 1346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1347echo X"$0" |
64ff59ba 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
d9898ee8 1365 srcdir=$ac_confdir
64ff59ba 1366 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1367 srcdir=..
1368 fi
1369else
1370 ac_srcdir_defaulted=no
1371fi
64ff59ba 1372if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1375 { (exit 1); exit 1; }; }
d9898ee8 1376fi
64ff59ba 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1380 { (exit 1); exit 1; }; }
64ff59ba 1381 pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
1392for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397done
d9898ee8 1398
1399#
1400# Report the --help message.
1401#
1402if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406\`configure' configures libuserdb 0.10 to adapt to many kinds of systems.
1407
1408Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411VAR=VALUE. See below for descriptions of some of the useful variables.
1412
1413Defaults for the options are specified in brackets.
1414
1415Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1425
d9898ee8 1426Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1431
1432By default, \`make install' will install all the files in
1433\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435for instance \`--prefix=\$HOME'.
1436
1437For better control, use the options below.
1438
1439Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
64ff59ba 1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/libuserdb]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1459_ACEOF
1460
1461 cat <<\_ACEOF
1462
1463Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468System types:
1469 --build=BUILD configure for building on BUILD [guessed]
1470 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of libuserdb 0.10:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480Optional Features:
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --disable-dependency-tracking speeds up one-time build
1484 --enable-dependency-tracking do not reject slow dependency extractors
64ff59ba 1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490
1491Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
64ff59ba 1497 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1498
1499 --with-random=/dev/urandom - location of the system random file generator
1500--without-random - there is no system random file generator
1501
1502Some influential environment variables:
1503 CC C compiler command
1504 CFLAGS C compiler flags
1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1506 nonstandard directory <lib dir>
64ff59ba 1507 LIBS libraries to pass to the linker, e.g. -l<library>
1508 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1509 you have headers in a nonstandard directory <include dir>
d9898ee8 1510 CPP C preprocessor
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
1516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
1520Report bugs to <courier-users@lists.sourceforge.net>.
1521_ACEOF
64ff59ba 1522ac_status=$?
d9898ee8 1523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
d9898ee8 1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
64ff59ba 1528 test -d "$ac_dir" || continue
d9898ee8 1529 ac_builddir=.
1530
64ff59ba 1531case "$ac_dir" in
1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533*)
d9898ee8 1534 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541esac
1542ac_abs_top_builddir=$ac_pwd
1543ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544# for backward compatibility:
1545ac_top_builddir=$ac_top_build_prefix
d9898ee8 1546
1547case $srcdir in
64ff59ba 1548 .) # We are building in place.
d9898ee8 1549 ac_srcdir=.
64ff59ba 1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1553 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1560esac
64ff59ba 1561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1571 else
1572 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
64ff59ba 1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1575 done
1576fi
1577
64ff59ba 1578test -n "$ac_init_help" && exit $ac_status
d9898ee8 1579if $ac_init_version; then
1580 cat <<\_ACEOF
1581libuserdb configure 0.10
64ff59ba 1582generated by GNU Autoconf 2.61
d9898ee8 1583
64ff59ba 1584Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15852002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1586This configure script is free software; the Free Software Foundation
1587gives unlimited permission to copy, distribute and modify it.
1588_ACEOF
64ff59ba 1589 exit
d9898ee8 1590fi
64ff59ba 1591cat >config.log <<_ACEOF
d9898ee8 1592This file contains any messages produced by compilers while
1593running configure, to aid debugging if configure makes a mistake.
1594
1595It was created by libuserdb $as_me 0.10, which was
64ff59ba 1596generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1597
1598 $ $0 $@
1599
1600_ACEOF
64ff59ba 1601exec 5>>config.log
d9898ee8 1602{
1603cat <<_ASUNAME
1604## --------- ##
1605## Platform. ##
1606## --------- ##
1607
1608hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1609uname -m = `(uname -m) 2>/dev/null || echo unknown`
1610uname -r = `(uname -r) 2>/dev/null || echo unknown`
1611uname -s = `(uname -s) 2>/dev/null || echo unknown`
1612uname -v = `(uname -v) 2>/dev/null || echo unknown`
1613
1614/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1615/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1616
1617/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1618/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1619/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
64ff59ba 1620/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1621/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1622/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1623/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1624
1625_ASUNAME
1626
1627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628for as_dir in $PATH
1629do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 echo "PATH: $as_dir"
1633done
64ff59ba 1634IFS=$as_save_IFS
d9898ee8 1635
1636} >&5
1637
1638cat >&5 <<_ACEOF
1639
1640
1641## ----------- ##
1642## Core tests. ##
1643## ----------- ##
1644
1645_ACEOF
1646
1647
1648# Keep a trace of the command line.
1649# Strip out --no-create and --no-recursion so they do not pile up.
1650# Strip out --silent because we don't want to record it for future runs.
1651# Also quote any args containing shell meta-characters.
1652# Make two passes to allow for proper duplicate-argument suppression.
1653ac_configure_args=
1654ac_configure_args0=
1655ac_configure_args1=
d9898ee8 1656ac_must_keep_next=false
1657for ac_pass in 1 2
1658do
1659 for ac_arg
1660 do
1661 case $ac_arg in
1662 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1663 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1664 | -silent | --silent | --silen | --sile | --sil)
1665 continue ;;
64ff59ba 1666 *\'*)
d9898ee8 1667 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1668 esac
1669 case $ac_pass in
1670 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1671 2)
1672 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1673 if test $ac_must_keep_next = true; then
1674 ac_must_keep_next=false # Got value, back to normal.
1675 else
1676 case $ac_arg in
1677 *=* | --config-cache | -C | -disable-* | --disable-* \
1678 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1679 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1680 | -with-* | --with-* | -without-* | --without-* | --x)
1681 case "$ac_configure_args0 " in
1682 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1683 esac
1684 ;;
1685 -* ) ac_must_keep_next=true ;;
1686 esac
1687 fi
64ff59ba 1688 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1689 ;;
1690 esac
1691 done
1692done
1693$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1694$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1695
1696# When interrupted or exit'd, cleanup temporary files, and complete
1697# config.log. We remove comments because anyway the quotes in there
1698# would cause problems or look ugly.
64ff59ba 1699# WARNING: Use '\'' to represent an apostrophe within the trap.
1700# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1701trap 'exit_status=$?
1702 # Save into config.log some information that might help in debugging.
1703 {
1704 echo
1705
1706 cat <<\_ASBOX
1707## ---------------- ##
1708## Cache variables. ##
1709## ---------------- ##
1710_ASBOX
1711 echo
1712 # The following way of writing the cache mishandles newlines in values,
64ff59ba 1713(
1714 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1715 eval ac_val=\$$ac_var
1716 case $ac_val in #(
1717 *${as_nl}*)
1718 case $ac_var in #(
1719 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1720echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1721 esac
1722 case $ac_var in #(
1723 _ | IFS | as_nl) ;; #(
1724 *) $as_unset $ac_var ;;
1725 esac ;;
1726 esac
1727 done
d9898ee8 1728 (set) 2>&1 |
64ff59ba 1729 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1730 *${as_nl}ac_space=\ *)
d9898ee8 1731 sed -n \
64ff59ba 1732 "s/'\''/'\''\\\\'\'''\''/g;
1733 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1734 ;; #(
d9898ee8 1735 *)
64ff59ba 1736 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1737 ;;
64ff59ba 1738 esac |
1739 sort
1740)
d9898ee8 1741 echo
1742
1743 cat <<\_ASBOX
1744## ----------------- ##
1745## Output variables. ##
1746## ----------------- ##
1747_ASBOX
1748 echo
1749 for ac_var in $ac_subst_vars
1750 do
64ff59ba 1751 eval ac_val=\$$ac_var
1752 case $ac_val in
1753 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1754 esac
1755 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1756 done | sort
1757 echo
1758
1759 if test -n "$ac_subst_files"; then
1760 cat <<\_ASBOX
64ff59ba 1761## ------------------- ##
1762## File substitutions. ##
1763## ------------------- ##
d9898ee8 1764_ASBOX
1765 echo
1766 for ac_var in $ac_subst_files
1767 do
64ff59ba 1768 eval ac_val=\$$ac_var
1769 case $ac_val in
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 esac
1772 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1773 done | sort
1774 echo
1775 fi
1776
1777 if test -s confdefs.h; then
1778 cat <<\_ASBOX
1779## ----------- ##
1780## confdefs.h. ##
1781## ----------- ##
1782_ASBOX
1783 echo
64ff59ba 1784 cat confdefs.h
d9898ee8 1785 echo
1786 fi
1787 test "$ac_signal" != 0 &&
1788 echo "$as_me: caught signal $ac_signal"
1789 echo "$as_me: exit $exit_status"
1790 } >&5
64ff59ba 1791 rm -f core *.core core.conftest.* &&
1792 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1793 exit $exit_status
64ff59ba 1794' 0
d9898ee8 1795for ac_signal in 1 2 13 15; do
1796 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1797done
1798ac_signal=0
1799
1800# confdefs.h avoids OS command line length limits that DEFS can exceed.
64ff59ba 1801rm -f -r conftest* confdefs.h
d9898ee8 1802
1803# Predefined preprocessor variables.
1804
1805cat >>confdefs.h <<_ACEOF
1806#define PACKAGE_NAME "$PACKAGE_NAME"
1807_ACEOF
1808
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_VERSION "$PACKAGE_VERSION"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_STRING "$PACKAGE_STRING"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1827_ACEOF
1828
1829
1830# Let the site file select an alternate cache file if it wants to.
1831# Prefer explicitly selected file to automatically selected ones.
64ff59ba 1832if test -n "$CONFIG_SITE"; then
1833 set x "$CONFIG_SITE"
1834elif test "x$prefix" != xNONE; then
1835 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1836else
1837 set x "$ac_default_prefix/share/config.site" \
1838 "$ac_default_prefix/etc/config.site"
d9898ee8 1839fi
64ff59ba 1840shift
1841for ac_site_file
1842do
d9898ee8 1843 if test -r "$ac_site_file"; then
1844 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1845echo "$as_me: loading site script $ac_site_file" >&6;}
1846 sed 's/^/| /' "$ac_site_file" >&5
1847 . "$ac_site_file"
1848 fi
1849done
1850
1851if test -r "$cache_file"; then
1852 # Some versions of bash will fail to source /dev/null (special
1853 # files actually), so we avoid doing that.
1854 if test -f "$cache_file"; then
1855 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1856echo "$as_me: loading cache $cache_file" >&6;}
1857 case $cache_file in
64ff59ba 1858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1859 *) . "./$cache_file";;
d9898ee8 1860 esac
1861 fi
1862else
1863 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1864echo "$as_me: creating cache $cache_file" >&6;}
1865 >$cache_file
1866fi
1867
1868# Check that the precious variables saved in the cache have kept the same
1869# value.
1870ac_cache_corrupted=false
64ff59ba 1871for ac_var in $ac_precious_vars; do
d9898ee8 1872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1873 eval ac_new_set=\$ac_env_${ac_var}_set
64ff59ba 1874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1875 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1876 case $ac_old_set,$ac_new_set in
1877 set,)
1878 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1879echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1880 ac_cache_corrupted=: ;;
1881 ,set)
1882 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1883echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1884 ac_cache_corrupted=: ;;
1885 ,);;
1886 *)
1887 if test "x$ac_old_val" != "x$ac_new_val"; then
1888 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1889echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1890 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1891echo "$as_me: former value: $ac_old_val" >&2;}
1892 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1893echo "$as_me: current value: $ac_new_val" >&2;}
1894 ac_cache_corrupted=:
1895 fi;;
1896 esac
1897 # Pass precious variables to config.status.
1898 if test "$ac_new_set" = set; then
1899 case $ac_new_val in
64ff59ba 1900 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1901 *) ac_arg=$ac_var=$ac_new_val ;;
1902 esac
1903 case " $ac_configure_args " in
1904 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1905 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 esac
1907 fi
1908done
1909if $ac_cache_corrupted; then
1910 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1911echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1912 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1913echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1914 { (exit 1); exit 1; }; }
1915fi
1916
d9898ee8 1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
64ff59ba 1941ac_ext=c
1942ac_cpp='$CPP $CPPFLAGS'
1943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1945ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1946
1947
1948
1949>confdefs.h # Kill PACKAGE_ macros.
1950
1951LPATH="$PATH:/usr/local/bin"
1952
1953
64ff59ba 1954am__api_version='1.10'
1955
d9898ee8 1956ac_aux_dir=
64ff59ba 1957for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1958 if test -f "$ac_dir/install-sh"; then
d9898ee8 1959 ac_aux_dir=$ac_dir
1960 ac_install_sh="$ac_aux_dir/install-sh -c"
1961 break
64ff59ba 1962 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1963 ac_aux_dir=$ac_dir
1964 ac_install_sh="$ac_aux_dir/install.sh -c"
1965 break
64ff59ba 1966 elif test -f "$ac_dir/shtool"; then
d9898ee8 1967 ac_aux_dir=$ac_dir
1968 ac_install_sh="$ac_aux_dir/shtool install -c"
1969 break
1970 fi
1971done
1972if test -z "$ac_aux_dir"; then
64ff59ba 1973 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1974echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1975 { (exit 1); exit 1; }; }
1976fi
64ff59ba 1977
1978# These three variables are undocumented and unsupported,
1979# and are intended to be withdrawn in a future Autoconf release.
1980# They can cause serious problems if a builder's source tree is in a directory
1981# whose full name contains unusual characters.
1982ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1983ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1984ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1985
d9898ee8 1986
1987# Find a good install program. We prefer a C program (faster),
1988# so one script is as good as another. But avoid the broken or
1989# incompatible versions:
1990# SysV /etc/install, /usr/sbin/install
1991# SunOS /usr/etc/install
1992# IRIX /sbin/install
1993# AIX /bin/install
1994# AmigaOS /C/install, which installs bootblocks on floppy discs
1995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1998# OS/2's system install, which has a completely different semantic
1999# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 2000{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 2002if test -z "$INSTALL"; then
2003if test "${ac_cv_path_install+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009 IFS=$as_save_IFS
2010 test -z "$as_dir" && as_dir=.
2011 # Account for people who put trailing slashes in PATH elements.
2012case $as_dir/ in
2013 ./ | .// | /cC/* | \
2014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2016 /usr/ucb/* ) ;;
2017 *)
2018 # OSF1 and SCO ODT 3.0 have their own names for install.
2019 # Don't use installbsd from OSF since it installs stuff as root
2020 # by default.
2021 for ac_prog in ginstall scoinst install; do
2022 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2023 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2024 if test $ac_prog = install &&
2025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2026 # AIX install. It has an incompatible calling convention.
2027 :
2028 elif test $ac_prog = install &&
2029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2030 # program-specific install script used by HP pwplus--don't use.
2031 :
2032 else
2033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2034 break 3
2035 fi
2036 fi
2037 done
2038 done
2039 ;;
2040esac
2041done
64ff59ba 2042IFS=$as_save_IFS
d9898ee8 2043
2044
2045fi
2046 if test "${ac_cv_path_install+set}" = set; then
2047 INSTALL=$ac_cv_path_install
2048 else
64ff59ba 2049 # As a last resort, use the slow shell script. Don't cache a
2050 # value for INSTALL within a source directory, because that will
d9898ee8 2051 # break other packages using the cache if that directory is
64ff59ba 2052 # removed, or if the value is a relative name.
d9898ee8 2053 INSTALL=$ac_install_sh
2054 fi
2055fi
64ff59ba 2056{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2057echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2058
2059# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2060# It thinks the first close brace ends the variable substitution.
2061test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2062
2063test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2064
2065test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2066
64ff59ba 2067{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2068echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2069# Just in case
2070sleep 1
2071echo timestamp > conftest.file
2072# Do `set' in a subshell so we don't clobber the current shell's
2073# arguments. Must try -L first in case configure is actually a
2074# symlink; some systems play weird games with the mod time of symlinks
2075# (eg FreeBSD returns the mod time of the symlink's containing
2076# directory).
2077if (
2078 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2079 if test "$*" = "X"; then
2080 # -L didn't work.
2081 set X `ls -t $srcdir/configure conftest.file`
2082 fi
2083 rm -f conftest.file
2084 if test "$*" != "X $srcdir/configure conftest.file" \
2085 && test "$*" != "X conftest.file $srcdir/configure"; then
2086
2087 # If neither matched, then we have a broken ls. This can happen
2088 # if, for instance, CONFIG_SHELL is bash and it inherits a
2089 # broken ls alias from the environment. This has actually
2090 # happened. Such a system could not be considered "sane".
2091 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2092alias in your environment" >&5
2093echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2094alias in your environment" >&2;}
2095 { (exit 1); exit 1; }; }
2096 fi
2097
2098 test "$2" = conftest.file
2099 )
2100then
2101 # Ok.
2102 :
2103else
2104 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2105Check your system clock" >&5
2106echo "$as_me: error: newly created file is older than distributed files!
2107Check your system clock" >&2;}
2108 { (exit 1); exit 1; }; }
2109fi
64ff59ba 2110{ echo "$as_me:$LINENO: result: yes" >&5
2111echo "${ECHO_T}yes" >&6; }
d9898ee8 2112test "$program_prefix" != NONE &&
64ff59ba 2113 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2114# Use a double $ so make ignores it.
2115test "$program_suffix" != NONE &&
64ff59ba 2116 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2117# Double any \ or $. echo might interpret backslashes.
2118# By default was `s,x,x', remove it if useless.
2119cat <<\_ACEOF >conftest.sed
2120s/[\\$]/&&/g;s/;s,x,x,$//
2121_ACEOF
2122program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
64ff59ba 2123rm -f conftest.sed
d9898ee8 2124
2125# expand $ac_aux_dir to an absolute path
2126am_aux_dir=`cd $ac_aux_dir && pwd`
2127
2128test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2129# Use eval to expand $SHELL
2130if eval "$MISSING --run true"; then
2131 am_missing_run="$MISSING --run "
2132else
2133 am_missing_run=
2134 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2135echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2136fi
2137
64ff59ba 2138{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2139echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2140if test -z "$MKDIR_P"; then
2141 if test "${ac_cv_path_mkdir+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2146do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_prog in mkdir gmkdir; do
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2152 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2153 'mkdir (GNU coreutils) '* | \
2154 'mkdir (coreutils) '* | \
2155 'mkdir (fileutils) '4.1*)
2156 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2157 break 3;;
2158 esac
2159 done
2160 done
2161done
2162IFS=$as_save_IFS
2163
2164fi
2165
2166 if test "${ac_cv_path_mkdir+set}" = set; then
2167 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2168 else
64ff59ba 2169 # As a last resort, use the slow shell script. Don't cache a
2170 # value for MKDIR_P within a source directory, because that will
2171 # break other packages using the cache if that directory is
2172 # removed, or if the value is a relative name.
2173 test -d ./--version && rmdir ./--version
2174 MKDIR_P="$ac_install_sh -d"
d9898ee8 2175 fi
2176fi
64ff59ba 2177{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2178echo "${ECHO_T}$MKDIR_P" >&6; }
2179
2180mkdir_p="$MKDIR_P"
2181case $mkdir_p in
2182 [\\/$]* | ?:[\\/]*) ;;
2183 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2184esac
d9898ee8 2185
2186for ac_prog in gawk mawk nawk awk
2187do
2188 # Extract the first word of "$ac_prog", so it can be a program name with args.
2189set dummy $ac_prog; ac_word=$2
64ff59ba 2190{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2192if test "${ac_cv_prog_AWK+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195 if test -n "$AWK"; then
2196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2197else
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2205 ac_cv_prog_AWK="$ac_prog"
2206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207 break 2
2208 fi
2209done
2210done
64ff59ba 2211IFS=$as_save_IFS
d9898ee8 2212
2213fi
2214fi
2215AWK=$ac_cv_prog_AWK
2216if test -n "$AWK"; then
64ff59ba 2217 { echo "$as_me:$LINENO: result: $AWK" >&5
2218echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2219else
64ff59ba 2220 { echo "$as_me:$LINENO: result: no" >&5
2221echo "${ECHO_T}no" >&6; }
d9898ee8 2222fi
2223
64ff59ba 2224
d9898ee8 2225 test -n "$AWK" && break
2226done
2227
64ff59ba 2228{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2229echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2230set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2231if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2232 echo $ECHO_N "(cached) $ECHO_C" >&6
2233else
2234 cat >conftest.make <<\_ACEOF
64ff59ba 2235SHELL = /bin/sh
d9898ee8 2236all:
64ff59ba 2237 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2238_ACEOF
2239# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
64ff59ba 2240case `${MAKE-make} -f conftest.make 2>/dev/null` in
2241 *@@@%%%=?*=@@@%%%*)
2242 eval ac_cv_prog_make_${ac_make}_set=yes;;
2243 *)
2244 eval ac_cv_prog_make_${ac_make}_set=no;;
2245esac
d9898ee8 2246rm -f conftest.make
2247fi
64ff59ba 2248if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2249 { echo "$as_me:$LINENO: result: yes" >&5
2250echo "${ECHO_T}yes" >&6; }
d9898ee8 2251 SET_MAKE=
2252else
64ff59ba 2253 { echo "$as_me:$LINENO: result: no" >&5
2254echo "${ECHO_T}no" >&6; }
d9898ee8 2255 SET_MAKE="MAKE=${MAKE-make}"
2256fi
2257
2258rm -rf .tst 2>/dev/null
2259mkdir .tst 2>/dev/null
2260if test -d .tst; then
2261 am__leading_dot=.
2262else
2263 am__leading_dot=_
2264fi
2265rmdir .tst 2>/dev/null
2266
64ff59ba 2267if test "`cd $srcdir && pwd`" != "`pwd`"; then
2268 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2269 # is not polluted with repeated "-I."
2270 am__isrc=' -I$(srcdir)'
2271 # test to see if srcdir already configured
2272 if test -f $srcdir/config.status; then
2273 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2274echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2275 { (exit 1); exit 1; }; }
64ff59ba 2276 fi
d9898ee8 2277fi
2278
2279# test whether we have cygpath
2280if test -z "$CYGPATH_W"; then
2281 if (cygpath --version) >/dev/null 2>/dev/null; then
2282 CYGPATH_W='cygpath -w'
2283 else
2284 CYGPATH_W=echo
2285 fi
2286fi
2287
2288
2289# Define the identity of the package.
2290 PACKAGE='libuserdb'
2291 VERSION='0.10'
2292
2293
2294# Some tools Automake needs.
2295
2296ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2297
2298
2299AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2300
2301
2302AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2303
2304
2305AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2306
2307
2308MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2309
64ff59ba 2310install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2311
2312# Installed binaries are usually stripped using `strip' when the user
2313# run `make install-strip'. However `strip' might not be the right
2314# tool to use in cross-compilation environments, therefore Automake
2315# will honor the `STRIP' environment variable to overrule this program.
2316if test "$cross_compiling" != no; then
2317 if test -n "$ac_tool_prefix"; then
2318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2319set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 2320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2322if test "${ac_cv_prog_STRIP+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325 if test -n "$STRIP"; then
2326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2327else
2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329for as_dir in $PATH
2330do
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2338 fi
2339done
2340done
64ff59ba 2341IFS=$as_save_IFS
d9898ee8 2342
2343fi
2344fi
2345STRIP=$ac_cv_prog_STRIP
2346if test -n "$STRIP"; then
64ff59ba 2347 { echo "$as_me:$LINENO: result: $STRIP" >&5
2348echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2349else
64ff59ba 2350 { echo "$as_me:$LINENO: result: no" >&5
2351echo "${ECHO_T}no" >&6; }
d9898ee8 2352fi
2353
64ff59ba 2354
d9898ee8 2355fi
2356if test -z "$ac_cv_prog_STRIP"; then
2357 ac_ct_STRIP=$STRIP
2358 # Extract the first word of "strip", so it can be a program name with args.
2359set dummy strip; ac_word=$2
64ff59ba 2360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2362if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365 if test -n "$ac_ct_STRIP"; then
2366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2367else
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2375 ac_cv_prog_ac_ct_STRIP="strip"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 break 2
2378 fi
2379done
2380done
64ff59ba 2381IFS=$as_save_IFS
d9898ee8 2382
d9898ee8 2383fi
2384fi
2385ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2386if test -n "$ac_ct_STRIP"; then
64ff59ba 2387 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2388echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2389else
64ff59ba 2390 { echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6; }
d9898ee8 2392fi
2393
64ff59ba 2394 if test "x$ac_ct_STRIP" = x; then
2395 STRIP=":"
2396 else
2397 case $cross_compiling:$ac_tool_warned in
2398yes:)
2399{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400whose name does not start with the host triplet. If you think this
2401configuration is useful to you, please write to autoconf@gnu.org." >&5
2402echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403whose name does not start with the host triplet. If you think this
2404configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405ac_tool_warned=yes ;;
2406esac
2407 STRIP=$ac_ct_STRIP
2408 fi
d9898ee8 2409else
2410 STRIP="$ac_cv_prog_STRIP"
2411fi
2412
2413fi
64ff59ba 2414INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2415
2416# We need awk for the "check" target. The system "awk" is bad on
2417# some platforms.
2418# Always define AMTAR for backward compatibility.
2419
2420AMTAR=${AMTAR-"${am_missing_run}tar"}
2421
2422am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2423
2424
2425
2426
2427
2428
2429for ac_prog in gawk mawk nawk awk
2430do
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432set dummy $ac_prog; ac_word=$2
64ff59ba 2433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2435if test "${ac_cv_prog_AWK+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438 if test -n "$AWK"; then
2439 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2448 ac_cv_prog_AWK="$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 break 2
2451 fi
2452done
2453done
64ff59ba 2454IFS=$as_save_IFS
d9898ee8 2455
2456fi
2457fi
2458AWK=$ac_cv_prog_AWK
2459if test -n "$AWK"; then
64ff59ba 2460 { echo "$as_me:$LINENO: result: $AWK" >&5
2461echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2462else
64ff59ba 2463 { echo "$as_me:$LINENO: result: no" >&5
2464echo "${ECHO_T}no" >&6; }
d9898ee8 2465fi
2466
64ff59ba 2467
d9898ee8 2468 test -n "$AWK" && break
2469done
2470
2471ac_ext=c
2472ac_cpp='$CPP $CPPFLAGS'
2473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475ac_compiler_gnu=$ac_cv_c_compiler_gnu
2476if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2478set dummy ${ac_tool_prefix}gcc; ac_word=$2
64ff59ba 2479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2481if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
64ff59ba 2500IFS=$as_save_IFS
d9898ee8 2501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
64ff59ba 2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6; }
d9898ee8 2508else
64ff59ba 2509 { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
d9898ee8 2511fi
2512
64ff59ba 2513
d9898ee8 2514fi
2515if test -z "$ac_cv_prog_CC"; then
2516 ac_ct_CC=$CC
2517 # Extract the first word of "gcc", so it can be a program name with args.
2518set dummy gcc; ac_word=$2
64ff59ba 2519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2521if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523else
2524 if test -n "$ac_ct_CC"; then
2525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2526else
2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2528for as_dir in $PATH
2529do
2530 IFS=$as_save_IFS
2531 test -z "$as_dir" && as_dir=.
2532 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2534 ac_cv_prog_ac_ct_CC="gcc"
2535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2536 break 2
2537 fi
2538done
2539done
64ff59ba 2540IFS=$as_save_IFS
d9898ee8 2541
2542fi
2543fi
2544ac_ct_CC=$ac_cv_prog_ac_ct_CC
2545if test -n "$ac_ct_CC"; then
64ff59ba 2546 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2547echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2548else
64ff59ba 2549 { echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6; }
d9898ee8 2551fi
2552
64ff59ba 2553 if test "x$ac_ct_CC" = x; then
2554 CC=""
2555 else
2556 case $cross_compiling:$ac_tool_warned in
2557yes:)
2558{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2559whose name does not start with the host triplet. If you think this
2560configuration is useful to you, please write to autoconf@gnu.org." >&5
2561echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2562whose name does not start with the host triplet. If you think this
2563configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2564ac_tool_warned=yes ;;
2565esac
2566 CC=$ac_ct_CC
2567 fi
d9898ee8 2568else
2569 CC="$ac_cv_prog_CC"
2570fi
2571
2572if test -z "$CC"; then
64ff59ba 2573 if test -n "$ac_tool_prefix"; then
2574 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2575set dummy ${ac_tool_prefix}cc; ac_word=$2
64ff59ba 2576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2578if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2591 ac_cv_prog_CC="${ac_tool_prefix}cc"
2592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596done
64ff59ba 2597IFS=$as_save_IFS
d9898ee8 2598
2599fi
2600fi
2601CC=$ac_cv_prog_CC
2602if test -n "$CC"; then
64ff59ba 2603 { echo "$as_me:$LINENO: result: $CC" >&5
2604echo "${ECHO_T}$CC" >&6; }
d9898ee8 2605else
64ff59ba 2606 { echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6; }
d9898ee8 2608fi
2609
d9898ee8 2610
64ff59ba 2611 fi
d9898ee8 2612fi
2613if test -z "$CC"; then
2614 # Extract the first word of "cc", so it can be a program name with args.
2615set dummy cc; ac_word=$2
64ff59ba 2616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2618if test "${ac_cv_prog_CC+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
2624 ac_prog_rejected=no
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2632 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2633 ac_prog_rejected=yes
2634 continue
2635 fi
2636 ac_cv_prog_CC="cc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640done
2641done
64ff59ba 2642IFS=$as_save_IFS
d9898ee8 2643
2644if test $ac_prog_rejected = yes; then
2645 # We found a bogon in the path, so make sure we never use it.
2646 set dummy $ac_cv_prog_CC
2647 shift
2648 if test $# != 0; then
2649 # We chose a different compiler from the bogus one.
2650 # However, it has the same basename, so the bogon will be chosen
2651 # first if we set CC to just the basename; use the full file name.
2652 shift
2653 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2654 fi
2655fi
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
64ff59ba 2660 { echo "$as_me:$LINENO: result: $CC" >&5
2661echo "${ECHO_T}$CC" >&6; }
d9898ee8 2662else
64ff59ba 2663 { echo "$as_me:$LINENO: result: no" >&5
2664echo "${ECHO_T}no" >&6; }
d9898ee8 2665fi
2666
64ff59ba 2667
d9898ee8 2668fi
2669if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
64ff59ba 2671 for ac_prog in cl.exe
d9898ee8 2672 do
2673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 2675{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2677if test "${ac_cv_prog_CC+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2679else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682else
2683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684for as_dir in $PATH
2685do
2686 IFS=$as_save_IFS
2687 test -z "$as_dir" && as_dir=.
2688 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2690 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2693 fi
2694done
2695done
64ff59ba 2696IFS=$as_save_IFS
d9898ee8 2697
2698fi
2699fi
2700CC=$ac_cv_prog_CC
2701if test -n "$CC"; then
64ff59ba 2702 { echo "$as_me:$LINENO: result: $CC" >&5
2703echo "${ECHO_T}$CC" >&6; }
d9898ee8 2704else
64ff59ba 2705 { echo "$as_me:$LINENO: result: no" >&5
2706echo "${ECHO_T}no" >&6; }
d9898ee8 2707fi
2708
64ff59ba 2709
d9898ee8 2710 test -n "$CC" && break
2711 done
2712fi
2713if test -z "$CC"; then
2714 ac_ct_CC=$CC
64ff59ba 2715 for ac_prog in cl.exe
d9898ee8 2716do
2717 # Extract the first word of "$ac_prog", so it can be a program name with args.
2718set dummy $ac_prog; ac_word=$2
64ff59ba 2719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2721if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2723else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2734 ac_cv_prog_ac_ct_CC="$ac_prog"
2735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2737 fi
2738done
2739done
64ff59ba 2740IFS=$as_save_IFS
d9898ee8 2741
2742fi
2743fi
2744ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745if test -n "$ac_ct_CC"; then
64ff59ba 2746 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2747echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2748else
64ff59ba 2749 { echo "$as_me:$LINENO: result: no" >&5
2750echo "${ECHO_T}no" >&6; }
d9898ee8 2751fi
2752
64ff59ba 2753
d9898ee8 2754 test -n "$ac_ct_CC" && break
2755done
2756
64ff59ba 2757 if test "x$ac_ct_CC" = x; then
2758 CC=""
2759 else
2760 case $cross_compiling:$ac_tool_warned in
2761yes:)
2762{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2763whose name does not start with the host triplet. If you think this
2764configuration is useful to you, please write to autoconf@gnu.org." >&5
2765echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2766whose name does not start with the host triplet. If you think this
2767configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2768ac_tool_warned=yes ;;
2769esac
2770 CC=$ac_ct_CC
2771 fi
d9898ee8 2772fi
2773
2774fi
2775
2776
2777test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2778See \`config.log' for more details." >&5
2779echo "$as_me: error: no acceptable C compiler found in \$PATH
2780See \`config.log' for more details." >&2;}
2781 { (exit 1); exit 1; }; }
2782
2783# Provide some information about the compiler.
64ff59ba 2784echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2785ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 2786{ (ac_try="$ac_compiler --version >&5"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }
64ff59ba 2796{ (ac_try="$ac_compiler -v >&5"
2797case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800esac
2801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
64ff59ba 2806{ (ac_try="$ac_compiler -V >&5"
2807case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816
2817cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h. */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h. */
2823
2824int
2825main ()
2826{
2827
2828 ;
2829 return 0;
2830}
2831_ACEOF
2832ac_clean_files_save=$ac_clean_files
2833ac_clean_files="$ac_clean_files a.out a.exe b.out"
2834# Try to create an executable without -o first, disregard a.out.
2835# It will help us diagnose broken compilers, and finding out an intuition
2836# of exeext.
64ff59ba 2837{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2838echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2839ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
64ff59ba 2840#
2841# List of possible output files, starting from the most likely.
2842# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2843# only as a last resort. b.out is created by i960 compilers.
2844ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2845#
2846# The IRIX 6 linker writes into existing files which may not be
2847# executable, retaining their permissions. Remove them first so a
2848# subsequent execution test works.
2849ac_rmfiles=
2850for ac_file in $ac_files
2851do
2852 case $ac_file in
2853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2854 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 esac
2856done
2857rm -f $ac_rmfiles
2858
2859if { (ac_try="$ac_link_default"
2860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_link_default") 2>&5
d9898ee8 2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; then
64ff59ba 2869 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2870# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2871# in a Makefile. We should not override ac_cv_exeext if it was cached,
2872# so that the user can short-circuit this test for compilers unknown to
2873# Autoconf.
2874for ac_file in $ac_files ''
d9898ee8 2875do
2876 test -f "$ac_file" || continue
2877 case $ac_file in
64ff59ba 2878 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2879 ;;
2880 [ab].out )
2881 # We found the default executable, but exeext='' is most
2882 # certainly right.
2883 break;;
2884 *.* )
64ff59ba 2885 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2886 then :; else
2887 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2888 fi
2889 # We set ac_cv_exeext here because the later test for it is not
2890 # safe: cross compilers may not add the suffix if given an `-o'
2891 # argument, so we may need to know it at that point already.
2892 # Even if this section looks crufty: it has the advantage of
2893 # actually working.
d9898ee8 2894 break;;
2895 * )
2896 break;;
2897 esac
2898done
64ff59ba 2899test "$ac_cv_exeext" = no && ac_cv_exeext=
2900
d9898ee8 2901else
64ff59ba 2902 ac_file=''
2903fi
2904
2905{ echo "$as_me:$LINENO: result: $ac_file" >&5
2906echo "${ECHO_T}$ac_file" >&6; }
2907if test -z "$ac_file"; then
d9898ee8 2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2912See \`config.log' for more details." >&5
2913echo "$as_me: error: C compiler cannot create executables
2914See \`config.log' for more details." >&2;}
2915 { (exit 77); exit 77; }; }
2916fi
2917
2918ac_exeext=$ac_cv_exeext
d9898ee8 2919
64ff59ba 2920# Check that the compiler produces executables we can run. If not, either
d9898ee8 2921# the compiler is broken, or we cross compile.
64ff59ba 2922{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2923echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2924# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2925# If not cross compiling, check that we can run a simple program.
2926if test "$cross_compiling" != yes; then
2927 if { ac_try='./$ac_file'
64ff59ba 2928 { (case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931esac
2932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_try") 2>&5
d9898ee8 2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 cross_compiling=no
2938 else
2939 if test "$cross_compiling" = maybe; then
2940 cross_compiling=yes
2941 else
2942 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2943If you meant to cross compile, use \`--host'.
2944See \`config.log' for more details." >&5
2945echo "$as_me: error: cannot run C compiled programs.
2946If you meant to cross compile, use \`--host'.
2947See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2949 fi
2950 fi
2951fi
64ff59ba 2952{ echo "$as_me:$LINENO: result: yes" >&5
2953echo "${ECHO_T}yes" >&6; }
d9898ee8 2954
2955rm -f a.out a.exe conftest$ac_cv_exeext b.out
2956ac_clean_files=$ac_clean_files_save
64ff59ba 2957# Check that the compiler produces executables we can run. If not, either
d9898ee8 2958# the compiler is broken, or we cross compile.
64ff59ba 2959{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2960echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2961{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2962echo "${ECHO_T}$cross_compiling" >&6; }
2963
2964{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2965echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2966if { (ac_try="$ac_link"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_link") 2>&5
d9898ee8 2973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
2976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2978# work properly (i.e., refer to `conftest.exe'), while it won't with
2979# `rm'.
2980for ac_file in conftest.exe conftest conftest.*; do
2981 test -f "$ac_file" || continue
2982 case $ac_file in
64ff59ba 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2985 break;;
2986 * ) break;;
2987 esac
2988done
2989else
2990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2991See \`config.log' for more details." >&5
2992echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2993See \`config.log' for more details." >&2;}
2994 { (exit 1); exit 1; }; }
2995fi
2996
2997rm -f conftest$ac_cv_exeext
64ff59ba 2998{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2999echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 3000
3001rm -f conftest.$ac_ext
3002EXEEXT=$ac_cv_exeext
3003ac_exeext=$EXEEXT
64ff59ba 3004{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3005echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 3006if test "${ac_cv_objext+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015
3016int
3017main ()
3018{
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.o conftest.obj
64ff59ba 3025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>&5
d9898ee8 3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; then
64ff59ba 3035 for ac_file in conftest.o conftest.obj conftest.*; do
3036 test -f "$ac_file" || continue;
d9898ee8 3037 case $ac_file in
64ff59ba 3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 3039 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3040 break;;
3041 esac
3042done
3043else
3044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3048See \`config.log' for more details." >&5
3049echo "$as_me: error: cannot compute suffix of object files: cannot compile
3050See \`config.log' for more details." >&2;}
3051 { (exit 1); exit 1; }; }
3052fi
3053
3054rm -f conftest.$ac_cv_objext conftest.$ac_ext
3055fi
64ff59ba 3056{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3057echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3058OBJEXT=$ac_cv_objext
3059ac_objext=$OBJEXT
64ff59ba 3060{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3061echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3062if test "${ac_cv_c_compiler_gnu+set}" = set; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065 cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
3071
3072int
3073main ()
3074{
3075#ifndef __GNUC__
3076 choke me
3077#endif
3078
3079 ;
3080 return 0;
3081}
3082_ACEOF
3083rm -f conftest.$ac_objext
64ff59ba 3084if { (ac_try="$ac_compile"
3085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
3089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3096 (exit $ac_status); } && {
3097 test -z "$ac_c_werror_flag" ||
3098 test ! -s conftest.err
3099 } && test -s conftest.$ac_objext; then
d9898ee8 3100 ac_compiler_gnu=yes
3101else
3102 echo "$as_me: failed program was:" >&5
3103sed 's/^/| /' conftest.$ac_ext >&5
3104
64ff59ba 3105 ac_compiler_gnu=no
d9898ee8 3106fi
64ff59ba 3107
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3109ac_cv_c_compiler_gnu=$ac_compiler_gnu
3110
3111fi
64ff59ba 3112{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3113echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3114GCC=`test $ac_compiler_gnu = yes && echo yes`
3115ac_test_CFLAGS=${CFLAGS+set}
3116ac_save_CFLAGS=$CFLAGS
64ff59ba 3117{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3118echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3119if test "${ac_cv_prog_cc_g+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3121else
64ff59ba 3122 ac_save_c_werror_flag=$ac_c_werror_flag
3123 ac_c_werror_flag=yes
3124 ac_cv_prog_cc_g=no
3125 CFLAGS="-g"
3126 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
64ff59ba 3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3154 (exit $ac_status); } && {
3155 test -z "$ac_c_werror_flag" ||
3156 test ! -s conftest.err
3157 } && test -s conftest.$ac_objext; then
3158 ac_cv_prog_cc_g=yes
3159else
3160 echo "$as_me: failed program was:" >&5
3161sed 's/^/| /' conftest.$ac_ext >&5
3162
3163 CFLAGS=""
3164 cat >conftest.$ac_ext <<_ACEOF
3165/* confdefs.h. */
3166_ACEOF
3167cat confdefs.h >>conftest.$ac_ext
3168cat >>conftest.$ac_ext <<_ACEOF
3169/* end confdefs.h. */
3170
3171int
3172main ()
3173{
3174
3175 ;
3176 return 0;
3177}
3178_ACEOF
3179rm -f conftest.$ac_objext
3180if { (ac_try="$ac_compile"
3181case "(($ac_try" in
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3184esac
3185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3187 ac_status=$?
64ff59ba 3188 grep -v '^ *+' conftest.er1 >conftest.err
3189 rm -f conftest.er1
3190 cat conftest.err >&5
d9898ee8 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3192 (exit $ac_status); } && {
3193 test -z "$ac_c_werror_flag" ||
3194 test ! -s conftest.err
3195 } && test -s conftest.$ac_objext; then
3196 :
3197else
3198 echo "$as_me: failed program was:" >&5
3199sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 ac_c_werror_flag=$ac_save_c_werror_flag
3202 CFLAGS="-g"
3203 cat >conftest.$ac_ext <<_ACEOF
3204/* confdefs.h. */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h. */
3209
3210int
3211main ()
3212{
3213
3214 ;
3215 return 0;
3216}
3217_ACEOF
3218rm -f conftest.$ac_objext
3219if { (ac_try="$ac_compile"
3220case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3226 ac_status=$?
64ff59ba 3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
d9898ee8 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3231 (exit $ac_status); } && {
3232 test -z "$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 } && test -s conftest.$ac_objext; then
d9898ee8 3235 ac_cv_prog_cc_g=yes
3236else
3237 echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
64ff59ba 3240
3241fi
3242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3244fi
3245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3247fi
64ff59ba 3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3251fi
64ff59ba 3252{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3254if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268fi
64ff59ba 3269{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
64ff59ba 3274 ac_cv_prog_cc_c89=no
d9898ee8 3275ac_save_CC=$CC
3276cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <stdarg.h>
3283#include <stdio.h>
3284#include <sys/types.h>
3285#include <sys/stat.h>
3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287struct buf { int x; };
3288FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289static char *e (p, i)
3290 char **p;
3291 int i;
3292{
3293 return p[i];
3294}
3295static char *f (char * (*g) (char **, int), char **p, ...)
3296{
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303}
3304
3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
64ff59ba 3308 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
64ff59ba 3311 that's true only with -std. */
d9898ee8 3312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
64ff59ba 3314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316#define FOO(x) 'x'
3317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318
d9898ee8 3319int test (int i, double x);
3320struct s1 {int (*f) (int a);};
3321struct s2 {int (*f) (double a);};
3322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323int argc;
3324char **argv;
3325int
3326main ()
3327{
3328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 ;
3330 return 0;
3331}
3332_ACEOF
64ff59ba 3333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3335do
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
64ff59ba 3338if { (ac_try="$ac_compile"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3354 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3355else
3356 echo "$as_me: failed program was:" >&5
3357sed 's/^/| /' conftest.$ac_ext >&5
3358
64ff59ba 3359
d9898ee8 3360fi
64ff59ba 3361
3362rm -f core conftest.err conftest.$ac_objext
3363 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3364done
64ff59ba 3365rm -f conftest.$ac_ext
d9898ee8 3366CC=$ac_save_CC
3367
3368fi
64ff59ba 3369# AC_CACHE_VAL
3370case "x$ac_cv_prog_cc_c89" in
3371 x)
3372 { echo "$as_me:$LINENO: result: none needed" >&5
3373echo "${ECHO_T}none needed" >&6; } ;;
3374 xno)
3375 { echo "$as_me:$LINENO: result: unsupported" >&5
3376echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3377 *)
64ff59ba 3378 CC="$CC $ac_cv_prog_cc_c89"
3379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3380echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3381esac
3382
d9898ee8 3383
d9898ee8 3384ac_ext=c
3385ac_cpp='$CPP $CPPFLAGS'
3386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389DEPDIR="${am__leading_dot}deps"
3390
64ff59ba 3391ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3392
3393
3394am_make=${MAKE-make}
3395cat > confinc << 'END'
3396am__doit:
3397 @echo done
3398.PHONY: am__doit
3399END
3400# If we don't find an include directive, just comment out the code.
64ff59ba 3401{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3402echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3403am__include="#"
3404am__quote=
3405_am_result=none
3406# First try GNU make style include.
3407echo "include confinc" > confmf
3408# We grep out `Entering directory' and `Leaving directory'
3409# messages which can occur if `w' ends up in MAKEFLAGS.
3410# In particular we don't look at `^make:' because GNU make might
3411# be invoked under some other name (usually "gmake"), in which
3412# case it prints its new name instead of `make'.
3413if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3414 am__include=include
3415 am__quote=
3416 _am_result=GNU
3417fi
3418# Now try BSD make style include.
3419if test "$am__include" = "#"; then
3420 echo '.include "confinc"' > confmf
3421 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3422 am__include=.include
3423 am__quote="\""
3424 _am_result=BSD
3425 fi
3426fi
3427
3428
64ff59ba 3429{ echo "$as_me:$LINENO: result: $_am_result" >&5
3430echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3431rm -f confinc confmf
3432
64ff59ba 3433# Check whether --enable-dependency-tracking was given.
d9898ee8 3434if test "${enable_dependency_tracking+set}" = set; then
64ff59ba 3435 enableval=$enable_dependency_tracking;
3436fi
d9898ee8 3437
d9898ee8 3438if test "x$enable_dependency_tracking" != xno; then
3439 am_depcomp="$ac_aux_dir/depcomp"
3440 AMDEPBACKSLASH='\'
3441fi
64ff59ba 3442 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3443 AMDEP_TRUE=
3444 AMDEP_FALSE='#'
3445else
3446 AMDEP_TRUE='#'
3447 AMDEP_FALSE=
3448fi
3449
3450
3451
d9898ee8 3452depcc="$CC" am_compiler_list=
3453
64ff59ba 3454{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3455echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3456if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3460 # We make a subdir and do the tests there. Otherwise we can end up
3461 # making bogus files that we don't know about and never remove. For
3462 # instance it was reported that on HP-UX the gcc test will end up
3463 # making a dummy file named `D' -- because `-MD' means `put the output
3464 # in D'.
3465 mkdir conftest.dir
3466 # Copy depcomp to subdir because otherwise we won't find it if we're
3467 # using a relative directory.
3468 cp "$am_depcomp" conftest.dir
3469 cd conftest.dir
3470 # We will build objects and dependencies in a subdirectory because
3471 # it helps to detect inapplicable dependency modes. For instance
3472 # both Tru64's cc and ICC support -MD to output dependencies as a
3473 # side effect of compilation, but ICC will put the dependencies in
3474 # the current directory while Tru64 will put them in the object
3475 # directory.
3476 mkdir sub
3477
3478 am_cv_CC_dependencies_compiler_type=none
3479 if test "$am_compiler_list" = ""; then
3480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3481 fi
3482 for depmode in $am_compiler_list; do
3483 # Setup a source with many dependencies, because some compilers
3484 # like to wrap large dependency lists on column 80 (with \), and
3485 # we should not choose a depcomp mode which is confused by this.
3486 #
3487 # We need to recreate these files for each test, as the compiler may
3488 # overwrite some of them when testing with obscure command lines.
3489 # This happens at least with the AIX C compiler.
3490 : > sub/conftest.c
3491 for i in 1 2 3 4 5 6; do
3492 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3493 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3494 # Solaris 8's {/usr,}/bin/sh.
3495 touch sub/conftst$i.h
3496 done
3497 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3498
3499 case $depmode in
3500 nosideeffect)
3501 # after this tag, mechanisms are not by side-effect, so they'll
3502 # only be used when explicitly requested
3503 if test "x$enable_dependency_tracking" = xyes; then
3504 continue
3505 else
3506 break
3507 fi
3508 ;;
3509 none) break ;;
3510 esac
3511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3512 # mode. It turns out that the SunPro C++ compiler does not properly
3513 # handle `-M -o', and we need to detect this.
3514 if depmode=$depmode \
3515 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3517 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3518 >/dev/null 2>conftest.err &&
64ff59ba 3519 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3521 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3523 # icc doesn't choke on unknown options, it will just issue warnings
3524 # or remarks (even with -Werror). So we grep stderr for any message
3525 # that says an option was ignored or not supported.
3526 # When given -MP, icc 7.0 and 7.1 complain thusly:
3527 # icc: Command line warning: ignoring option '-M'; no argument required
3528 # The diagnosis changed in icc 8.0:
3529 # icc: Command line remark: option '-MP' not supported
3530 if (grep 'ignoring option' conftest.err ||
3531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3532 am_cv_CC_dependencies_compiler_type=$depmode
3533 break
3534 fi
3535 fi
3536 done
3537
3538 cd ..
3539 rm -rf conftest.dir
3540else
3541 am_cv_CC_dependencies_compiler_type=none
3542fi
3543
3544fi
64ff59ba 3545{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3546echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3547CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3548
64ff59ba 3549 if
d9898ee8 3550 test "x$enable_dependency_tracking" != xno \
3551 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3552 am__fastdepCC_TRUE=
3553 am__fastdepCC_FALSE='#'
3554else
3555 am__fastdepCC_TRUE='#'
3556 am__fastdepCC_FALSE=
3557fi
3558
3559
3560# Find a good install program. We prefer a C program (faster),
3561# so one script is as good as another. But avoid the broken or
3562# incompatible versions:
3563# SysV /etc/install, /usr/sbin/install
3564# SunOS /usr/etc/install
3565# IRIX /sbin/install
3566# AIX /bin/install
3567# AmigaOS /C/install, which installs bootblocks on floppy discs
3568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3569# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3571# OS/2's system install, which has a completely different semantic
3572# ./install, which can be erroneously created by make from ./install.sh.
64ff59ba 3573{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3574echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 3575if test -z "$INSTALL"; then
3576if test "${ac_cv_path_install+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582 IFS=$as_save_IFS
3583 test -z "$as_dir" && as_dir=.
3584 # Account for people who put trailing slashes in PATH elements.
3585case $as_dir/ in
3586 ./ | .// | /cC/* | \
3587 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3588 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3589 /usr/ucb/* ) ;;
3590 *)
3591 # OSF1 and SCO ODT 3.0 have their own names for install.
3592 # Don't use installbsd from OSF since it installs stuff as root
3593 # by default.
3594 for ac_prog in ginstall scoinst install; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 3596 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 3597 if test $ac_prog = install &&
3598 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3599 # AIX install. It has an incompatible calling convention.
3600 :
3601 elif test $ac_prog = install &&
3602 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3603 # program-specific install script used by HP pwplus--don't use.
3604 :
3605 else
3606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3607 break 3
3608 fi
3609 fi
3610 done
3611 done
3612 ;;
3613esac
3614done
64ff59ba 3615IFS=$as_save_IFS
d9898ee8 3616
3617
3618fi
3619 if test "${ac_cv_path_install+set}" = set; then
3620 INSTALL=$ac_cv_path_install
3621 else
64ff59ba 3622 # As a last resort, use the slow shell script. Don't cache a
3623 # value for INSTALL within a source directory, because that will
d9898ee8 3624 # break other packages using the cache if that directory is
64ff59ba 3625 # removed, or if the value is a relative name.
d9898ee8 3626 INSTALL=$ac_install_sh
3627 fi
3628fi
64ff59ba 3629{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3630echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 3631
3632# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3633# It thinks the first close brace ends the variable substitution.
3634test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3635
3636test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3637
3638test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3639
64ff59ba 3640{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3641echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 3642LN_S=$as_ln_s
3643if test "$LN_S" = "ln -s"; then
64ff59ba 3644 { echo "$as_me:$LINENO: result: yes" >&5
3645echo "${ECHO_T}yes" >&6; }
d9898ee8 3646else
64ff59ba 3647 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3648echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 3649fi
3650
64ff59ba 3651# Check whether --enable-shared was given.
d9898ee8 3652if test "${enable_shared+set}" = set; then
64ff59ba 3653 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 3654 case $enableval in
3655 yes) enable_shared=yes ;;
3656 no) enable_shared=no ;;
3657 *)
3658 enable_shared=no
3659 # Look at the argument we got. We use all the common list separators.
3660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3661 for pkg in $enableval; do
3662 IFS="$lt_save_ifs"
3663 if test "X$pkg" = "X$p"; then
3664 enable_shared=yes
3665 fi
3666 done
3667 IFS="$lt_save_ifs"
3668 ;;
3669 esac
3670else
3671 enable_shared=yes
64ff59ba 3672fi
3673
d9898ee8 3674
64ff59ba 3675# Check whether --enable-static was given.
d9898ee8 3676if test "${enable_static+set}" = set; then
64ff59ba 3677 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 3678 case $enableval in
3679 yes) enable_static=yes ;;
3680 no) enable_static=no ;;
3681 *)
3682 enable_static=no
3683 # Look at the argument we got. We use all the common list separators.
3684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3685 for pkg in $enableval; do
3686 IFS="$lt_save_ifs"
3687 if test "X$pkg" = "X$p"; then
3688 enable_static=yes
3689 fi
3690 done
3691 IFS="$lt_save_ifs"
3692 ;;
3693 esac
3694else
3695 enable_static=yes
64ff59ba 3696fi
3697
d9898ee8 3698
64ff59ba 3699# Check whether --enable-fast-install was given.
d9898ee8 3700if test "${enable_fast_install+set}" = set; then
64ff59ba 3701 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 3702 case $enableval in
3703 yes) enable_fast_install=yes ;;
3704 no) enable_fast_install=no ;;
3705 *)
3706 enable_fast_install=no
3707 # Look at the argument we got. We use all the common list separators.
3708 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3709 for pkg in $enableval; do
3710 IFS="$lt_save_ifs"
3711 if test "X$pkg" = "X$p"; then
3712 enable_fast_install=yes
3713 fi
3714 done
3715 IFS="$lt_save_ifs"
3716 ;;
3717 esac
3718else
3719 enable_fast_install=yes
64ff59ba 3720fi
3721
d9898ee8 3722
3723# Make sure we can run config.sub.
64ff59ba 3724$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3725 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3726echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 3727 { (exit 1); exit 1; }; }
3728
64ff59ba 3729{ echo "$as_me:$LINENO: checking build system type" >&5
3730echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 3731if test "${ac_cv_build+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
64ff59ba 3734 ac_build_alias=$build_alias
3735test "x$ac_build_alias" = x &&
3736 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3737test "x$ac_build_alias" = x &&
d9898ee8 3738 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3739echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3740 { (exit 1); exit 1; }; }
64ff59ba 3741ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3742 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3743echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 3744 { (exit 1); exit 1; }; }
3745
3746fi
64ff59ba 3747{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3748echo "${ECHO_T}$ac_cv_build" >&6; }
3749case $ac_cv_build in
3750*-*-*) ;;
3751*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3752echo "$as_me: error: invalid value of canonical build" >&2;}
3753 { (exit 1); exit 1; }; };;
3754esac
d9898ee8 3755build=$ac_cv_build
64ff59ba 3756ac_save_IFS=$IFS; IFS='-'
3757set x $ac_cv_build
3758shift
3759build_cpu=$1
3760build_vendor=$2
3761shift; shift
3762# Remember, the first character of IFS is used to create $*,
3763# except with old shells:
3764build_os=$*
3765IFS=$ac_save_IFS
3766case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3767
3768
3769{ echo "$as_me:$LINENO: checking host system type" >&5
3770echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 3771if test "${ac_cv_host+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
64ff59ba 3774 if test "x$host_alias" = x; then
3775 ac_cv_host=$ac_cv_build
3776else
3777 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3778 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3779echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 3780 { (exit 1); exit 1; }; }
64ff59ba 3781fi
d9898ee8 3782
3783fi
64ff59ba 3784{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3785echo "${ECHO_T}$ac_cv_host" >&6; }
3786case $ac_cv_host in
3787*-*-*) ;;
3788*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3789echo "$as_me: error: invalid value of canonical host" >&2;}
3790 { (exit 1); exit 1; }; };;
3791esac
d9898ee8 3792host=$ac_cv_host
64ff59ba 3793ac_save_IFS=$IFS; IFS='-'
3794set x $ac_cv_host
3795shift
3796host_cpu=$1
3797host_vendor=$2
3798shift; shift
3799# Remember, the first character of IFS is used to create $*,
3800# except with old shells:
3801host_os=$*
3802IFS=$ac_save_IFS
3803case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3804
3805
3806{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3807echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 3808if test "${lt_cv_path_SED+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 # Loop through the user's path and test for sed and gsed.
3812# Then use that list of sed's as ones to test for truncation.
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for lt_ac_prog in sed gsed; do
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3821 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3822 fi
3823 done
3824 done
3825done
3826IFS=$as_save_IFS
3827lt_ac_max=0
3828lt_ac_count=0
3829# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3830# along with /bin/sed that truncates output.
3831for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3832 test ! -f $lt_ac_sed && continue
3833 cat /dev/null > conftest.in
3834 lt_ac_count=0
3835 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3836 # Check for GNU sed and select it if it is found.
3837 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3838 lt_cv_path_SED=$lt_ac_sed
3839 break
3840 fi
3841 while true; do
3842 cat conftest.in conftest.in >conftest.tmp
3843 mv conftest.tmp conftest.in
3844 cp conftest.in conftest.nl
3845 echo >>conftest.nl
3846 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3847 cmp -s conftest.out conftest.nl || break
3848 # 10000 chars as input seems more than enough
3849 test $lt_ac_count -gt 10 && break
3850 lt_ac_count=`expr $lt_ac_count + 1`
3851 if test $lt_ac_count -gt $lt_ac_max; then
3852 lt_ac_max=$lt_ac_count
3853 lt_cv_path_SED=$lt_ac_sed
3854 fi
3855 done
3856done
3857
3858fi
3859
3860SED=$lt_cv_path_SED
3861
64ff59ba 3862{ echo "$as_me:$LINENO: result: $SED" >&5
3863echo "${ECHO_T}$SED" >&6; }
3864
3865{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3866echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3867if test "${ac_cv_path_GREP+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3869else
3870 # Extract the first word of "grep ggrep" to use in msg output
3871if test -z "$GREP"; then
3872set dummy grep ggrep; ac_prog_name=$2
3873if test "${ac_cv_path_GREP+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 ac_path_GREP_found=false
3877# Loop through the user's path and test for each of PROGNAME-LIST
3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3880do
3881 IFS=$as_save_IFS
3882 test -z "$as_dir" && as_dir=.
3883 for ac_prog in grep ggrep; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3887 # Check for GNU ac_path_GREP and select it if it is found.
3888 # Check for GNU $ac_path_GREP
3889case `"$ac_path_GREP" --version 2>&1` in
3890*GNU*)
3891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3892*)
3893 ac_count=0
3894 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3895 while :
3896 do
3897 cat "conftest.in" "conftest.in" >"conftest.tmp"
3898 mv "conftest.tmp" "conftest.in"
3899 cp "conftest.in" "conftest.nl"
3900 echo 'GREP' >> "conftest.nl"
3901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903 ac_count=`expr $ac_count + 1`
3904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905 # Best one so far, save it but keep looking for a better one
3906 ac_cv_path_GREP="$ac_path_GREP"
3907 ac_path_GREP_max=$ac_count
3908 fi
3909 # 10*(2^10) chars as input seems more than enough
3910 test $ac_count -gt 10 && break
3911 done
3912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3913esac
3914
3915
3916 $ac_path_GREP_found && break 3
3917 done
3918done
3919
3920done
3921IFS=$as_save_IFS
3922
3923
3924fi
3925
3926GREP="$ac_cv_path_GREP"
3927if test -z "$GREP"; then
3928 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3929echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3930 { (exit 1); exit 1; }; }
3931fi
3932
3933else
3934 ac_cv_path_GREP=$GREP
3935fi
3936
d9898ee8 3937
64ff59ba 3938fi
3939{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3940echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
3942
3943
3944{ echo "$as_me:$LINENO: checking for egrep" >&5
3945echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3946if test "${ac_cv_path_EGREP+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 # Extract the first word of "egrep" to use in msg output
3953if test -z "$EGREP"; then
3954set dummy egrep; ac_prog_name=$2
3955if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957else
64ff59ba 3958 ac_path_EGREP_found=false
3959# Loop through the user's path and test for each of PROGNAME-LIST
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in egrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3969 # Check for GNU ac_path_EGREP and select it if it is found.
3970 # Check for GNU $ac_path_EGREP
3971case `"$ac_path_EGREP" --version 2>&1` in
3972*GNU*)
3973 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3974*)
3975 ac_count=0
3976 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3977 while :
3978 do
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 echo 'EGREP' >> "conftest.nl"
3983 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 ac_count=`expr $ac_count + 1`
3986 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_EGREP="$ac_path_EGREP"
3989 ac_path_EGREP_max=$ac_count
d9898ee8 3990 fi
64ff59ba 3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3993 done
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3995esac
3996
3997
3998 $ac_path_EGREP_found && break 3
3999 done
4000done
4001
4002done
4003IFS=$as_save_IFS
4004
4005
4006fi
4007
4008EGREP="$ac_cv_path_EGREP"
4009if test -z "$EGREP"; then
4010 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4011echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4012 { (exit 1); exit 1; }; }
4013fi
4014
4015else
4016 ac_cv_path_EGREP=$EGREP
4017fi
4018
4019
4020 fi
d9898ee8 4021fi
64ff59ba 4022{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4023echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4024 EGREP="$ac_cv_path_EGREP"
d9898ee8 4025
4026
4027
64ff59ba 4028# Check whether --with-gnu-ld was given.
d9898ee8 4029if test "${with_gnu_ld+set}" = set; then
64ff59ba 4030 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4031else
4032 with_gnu_ld=no
64ff59ba 4033fi
4034
d9898ee8 4035ac_prog=ld
4036if test "$GCC" = yes; then
4037 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 4038 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4039echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4040 case $host in
4041 *-*-mingw*)
4042 # gcc leaves a trailing carriage return which upsets mingw
4043 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4044 *)
4045 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4046 esac
4047 case $ac_prog in
4048 # Accept absolute paths.
4049 [\\/]* | ?:[\\/]*)
4050 re_direlt='/[^/][^/]*/\.\./'
4051 # Canonicalize the pathname of ld
4052 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4053 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4054 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4055 done
4056 test -z "$LD" && LD="$ac_prog"
4057 ;;
4058 "")
4059 # If it fails, then pretend we aren't using GCC.
4060 ac_prog=ld
4061 ;;
4062 *)
4063 # If it is relative, then search for the first ld in PATH.
4064 with_gnu_ld=unknown
4065 ;;
4066 esac
4067elif test "$with_gnu_ld" = yes; then
64ff59ba 4068 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4069echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4070else
64ff59ba 4071 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4072echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4073fi
4074if test "${lt_cv_path_LD+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077 if test -z "$LD"; then
4078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4079 for ac_dir in $PATH; do
4080 IFS="$lt_save_ifs"
4081 test -z "$ac_dir" && ac_dir=.
4082 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4083 lt_cv_path_LD="$ac_dir/$ac_prog"
4084 # Check to see if the program is GNU ld. I'd rather use --version,
4085 # but apparently some variants of GNU ld only accept -v.
4086 # Break only if it was the GNU/non-GNU ld that we prefer.
4087 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4088 *GNU* | *'with BFD'*)
4089 test "$with_gnu_ld" != no && break
4090 ;;
4091 *)
4092 test "$with_gnu_ld" != yes && break
4093 ;;
4094 esac
4095 fi
4096 done
4097 IFS="$lt_save_ifs"
4098else
4099 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4100fi
4101fi
4102
4103LD="$lt_cv_path_LD"
4104if test -n "$LD"; then
64ff59ba 4105 { echo "$as_me:$LINENO: result: $LD" >&5
4106echo "${ECHO_T}$LD" >&6; }
d9898ee8 4107else
64ff59ba 4108 { echo "$as_me:$LINENO: result: no" >&5
4109echo "${ECHO_T}no" >&6; }
d9898ee8 4110fi
4111test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4112echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4113 { (exit 1); exit 1; }; }
64ff59ba 4114{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4115echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4116if test "${lt_cv_prog_gnu_ld+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118else
4119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4120case `$LD -v 2>&1 </dev/null` in
4121*GNU* | *'with BFD'*)
4122 lt_cv_prog_gnu_ld=yes
4123 ;;
4124*)
4125 lt_cv_prog_gnu_ld=no
4126 ;;
4127esac
4128fi
64ff59ba 4129{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4130echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4131with_gnu_ld=$lt_cv_prog_gnu_ld
4132
4133
64ff59ba 4134{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4135echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4136if test "${lt_cv_ld_reload_flag+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139 lt_cv_ld_reload_flag='-r'
4140fi
64ff59ba 4141{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4142echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4143reload_flag=$lt_cv_ld_reload_flag
4144case $reload_flag in
4145"" | " "*) ;;
4146*) reload_flag=" $reload_flag" ;;
4147esac
4148reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149case $host_os in
4150 darwin*)
4151 if test "$GCC" = yes; then
4152 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4153 else
4154 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4155 fi
4156 ;;
4157esac
4158
64ff59ba 4159{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4160echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4161if test "${lt_cv_path_NM+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164 if test -n "$NM"; then
4165 # Let the user override the test.
4166 lt_cv_path_NM="$NM"
4167else
4168 lt_nm_to_check="${ac_tool_prefix}nm"
4169 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4170 lt_nm_to_check="$lt_nm_to_check nm"
4171 fi
4172 for lt_tmp_nm in $lt_nm_to_check; do
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4175 IFS="$lt_save_ifs"
4176 test -z "$ac_dir" && ac_dir=.
4177 tmp_nm="$ac_dir/$lt_tmp_nm"
4178 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4179 # Check to see if the nm accepts a BSD-compat flag.
4180 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4181 # nm: unknown option "B" ignored
4182 # Tru64's nm complains that /dev/null is an invalid object file
4183 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4184 */dev/null* | *'Invalid file or object type'*)
4185 lt_cv_path_NM="$tmp_nm -B"
4186 break
4187 ;;
4188 *)
4189 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4190 */dev/null*)
4191 lt_cv_path_NM="$tmp_nm -p"
4192 break
4193 ;;
4194 *)
4195 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4196 continue # so that we can try to find one that supports BSD flags
4197 ;;
4198 esac
4199 ;;
4200 esac
4201 fi
4202 done
4203 IFS="$lt_save_ifs"
4204 done
4205 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4206fi
4207fi
64ff59ba 4208{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4209echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4210NM="$lt_cv_path_NM"
4211
64ff59ba 4212{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4213echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
d9898ee8 4214if test "${lt_cv_deplibs_check_method+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216else
4217 lt_cv_file_magic_cmd='$MAGIC_CMD'
4218lt_cv_file_magic_test_file=
4219lt_cv_deplibs_check_method='unknown'
4220# Need to set the preceding variable on all platforms that support
4221# interlibrary dependencies.
4222# 'none' -- dependencies not supported.
4223# `unknown' -- same as none, but documents that we really don't know.
4224# 'pass_all' -- all dependencies passed with no checks.
4225# 'test_compile' -- check by making test program.
4226# 'file_magic [[regex]]' -- check by looking for files in library path
4227# which responds to the $file_magic_cmd with a given extended regex.
4228# If you have `file' or equivalent on your system and you're not sure
4229# whether `pass_all' will *always* work, you probably want this one.
4230
4231case $host_os in
4232aix4* | aix5*)
4233 lt_cv_deplibs_check_method=pass_all
4234 ;;
4235
4236beos*)
4237 lt_cv_deplibs_check_method=pass_all
4238 ;;
4239
4240bsdi[45]*)
4241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4242 lt_cv_file_magic_cmd='/usr/bin/file -L'
4243 lt_cv_file_magic_test_file=/shlib/libc.so
4244 ;;
4245
4246cygwin*)
4247 # func_win32_libid is a shell function defined in ltmain.sh
4248 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4249 lt_cv_file_magic_cmd='func_win32_libid'
4250 ;;
4251
4252mingw* | pw32*)
4253 # Base MSYS/MinGW do not provide the 'file' command needed by
4254 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4255 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4256 lt_cv_file_magic_cmd='$OBJDUMP -f'
4257 ;;
4258
4259darwin* | rhapsody*)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262
4263freebsd* | kfreebsd*-gnu | dragonfly*)
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
4301interix3*)
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.
4317linux*)
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
4351solaris*)
4352 lt_cv_deplibs_check_method=pass_all
4353 ;;
4354
4355sysv4 | sysv4.3*)
4356 case $host_vendor in
4357 motorola)
4358 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]'
4359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4360 ;;
4361 ncr)
4362 lt_cv_deplibs_check_method=pass_all
4363 ;;
4364 sequent)
4365 lt_cv_file_magic_cmd='/bin/file'
4366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4367 ;;
4368 sni)
4369 lt_cv_file_magic_cmd='/bin/file'
4370 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4371 lt_cv_file_magic_test_file=/lib/libc.so
4372 ;;
4373 siemens)
4374 lt_cv_deplibs_check_method=pass_all
4375 ;;
4376 pc)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379 esac
4380 ;;
4381
4382sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4383 lt_cv_deplibs_check_method=pass_all
4384 ;;
4385esac
4386
4387fi
64ff59ba 4388{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4389echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 4390file_magic_cmd=$lt_cv_file_magic_cmd
4391deplibs_check_method=$lt_cv_deplibs_check_method
4392test -z "$deplibs_check_method" && deplibs_check_method=unknown
4393
4394
4395
4396
4397# If no C compiler was specified, use CC.
4398LTCC=${LTCC-"$CC"}
4399
4400# If no C compiler flags were specified, use CFLAGS.
4401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4402
4403# Allow CC to be a program name with arguments.
4404compiler=$CC
4405
4406
64ff59ba 4407# Check whether --enable-libtool-lock was given.
d9898ee8 4408if test "${enable_libtool_lock+set}" = set; then
64ff59ba 4409 enableval=$enable_libtool_lock;
4410fi
d9898ee8 4411
d9898ee8 4412test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4413
4414# Some flags need to be propagated to the compiler or linker for good
4415# libtool support.
4416case $host in
4417ia64-*-hpux*)
4418 # Find out which ABI we are using.
4419 echo 'int i;' > conftest.$ac_ext
4420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4421 (eval $ac_compile) 2>&5
4422 ac_status=$?
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; then
4425 case `/usr/bin/file conftest.$ac_objext` in
4426 *ELF-32*)
4427 HPUX_IA64_MODE="32"
4428 ;;
4429 *ELF-64*)
4430 HPUX_IA64_MODE="64"
4431 ;;
4432 esac
4433 fi
4434 rm -rf conftest*
4435 ;;
4436*-*-irix6*)
4437 # Find out which ABI we are using.
64ff59ba 4438 echo '#line 4438 "configure"' > conftest.$ac_ext
d9898ee8 4439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4440 (eval $ac_compile) 2>&5
4441 ac_status=$?
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; then
4444 if test "$lt_cv_prog_gnu_ld" = yes; then
4445 case `/usr/bin/file conftest.$ac_objext` in
4446 *32-bit*)
4447 LD="${LD-ld} -melf32bsmip"
4448 ;;
4449 *N32*)
4450 LD="${LD-ld} -melf32bmipn32"
4451 ;;
4452 *64-bit*)
4453 LD="${LD-ld} -melf64bmip"
4454 ;;
4455 esac
4456 else
4457 case `/usr/bin/file conftest.$ac_objext` in
4458 *32-bit*)
4459 LD="${LD-ld} -32"
4460 ;;
4461 *N32*)
4462 LD="${LD-ld} -n32"
4463 ;;
4464 *64-bit*)
4465 LD="${LD-ld} -64"
4466 ;;
4467 esac
4468 fi
4469 fi
4470 rm -rf conftest*
4471 ;;
4472
4473x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4474 # Find out which ABI we are using.
4475 echo 'int i;' > conftest.$ac_ext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4477 (eval $ac_compile) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; then
4481 case `/usr/bin/file conftest.o` in
4482 *32-bit*)
4483 case $host in
4484 x86_64-*linux*)
4485 LD="${LD-ld} -m elf_i386"
4486 ;;
4487 ppc64-*linux*|powerpc64-*linux*)
4488 LD="${LD-ld} -m elf32ppclinux"
4489 ;;
4490 s390x-*linux*)
4491 LD="${LD-ld} -m elf_s390"
4492 ;;
4493 sparc64-*linux*)
4494 LD="${LD-ld} -m elf32_sparc"
4495 ;;
4496 esac
4497 ;;
4498 *64-bit*)
4499 case $host in
4500 x86_64-*linux*)
4501 LD="${LD-ld} -m elf_x86_64"
4502 ;;
4503 ppc*-*linux*|powerpc*-*linux*)
4504 LD="${LD-ld} -m elf64ppc"
4505 ;;
4506 s390*-*linux*)
4507 LD="${LD-ld} -m elf64_s390"
4508 ;;
4509 sparc*-*linux*)
4510 LD="${LD-ld} -m elf64_sparc"
4511 ;;
4512 esac
4513 ;;
4514 esac
4515 fi
4516 rm -rf conftest*
4517 ;;
4518
4519*-*-sco3.2v5*)
4520 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4521 SAVE_CFLAGS="$CFLAGS"
4522 CFLAGS="$CFLAGS -belf"
64ff59ba 4523 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4524echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 4525if test "${lt_cv_cc_needs_belf+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527else
4528 ac_ext=c
4529ac_cpp='$CPP $CPPFLAGS'
4530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534 cat >conftest.$ac_ext <<_ACEOF
4535/* confdefs.h. */
4536_ACEOF
4537cat confdefs.h >>conftest.$ac_ext
4538cat >>conftest.$ac_ext <<_ACEOF
4539/* end confdefs.h. */
4540
4541int
4542main ()
4543{
4544
4545 ;
4546 return 0;
4547}
4548_ACEOF
4549rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 4550if { (ac_try="$ac_link"
4551case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554esac
4555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_link") 2>conftest.er1
d9898ee8 4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest$ac_exeext &&
4566 $as_test_x conftest$ac_exeext; then
d9898ee8 4567 lt_cv_cc_needs_belf=yes
4568else
4569 echo "$as_me: failed program was:" >&5
4570sed 's/^/| /' conftest.$ac_ext >&5
4571
64ff59ba 4572 lt_cv_cc_needs_belf=no
d9898ee8 4573fi
64ff59ba 4574
4575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 4576 conftest$ac_exeext conftest.$ac_ext
4577 ac_ext=c
4578ac_cpp='$CPP $CPPFLAGS'
4579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582
4583fi
64ff59ba 4584{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4585echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 4586 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4587 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4588 CFLAGS="$SAVE_CFLAGS"
4589 fi
4590 ;;
4591sparc*-*solaris*)
4592 # Find out which ABI we are using.
4593 echo 'int i;' > conftest.$ac_ext
4594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; then
4599 case `/usr/bin/file conftest.o` in
4600 *64-bit*)
4601 case $lt_cv_prog_gnu_ld in
4602 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4603 *) LD="${LD-ld} -64" ;;
4604 esac
4605 ;;
4606 esac
4607 fi
4608 rm -rf conftest*
4609 ;;
4610
4611
4612esac
4613
4614need_locks="$enable_libtool_lock"
4615
4616
4617ac_ext=c
4618ac_cpp='$CPP $CPPFLAGS'
4619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621ac_compiler_gnu=$ac_cv_c_compiler_gnu
64ff59ba 4622{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4623echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 4624# On Suns, sometimes $CPP names a directory.
4625if test -n "$CPP" && test -d "$CPP"; then
4626 CPP=
4627fi
4628if test -z "$CPP"; then
4629 if test "${ac_cv_prog_CPP+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4631else
4632 # Double quotes because CPP needs to be expanded
4633 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4634 do
4635 ac_preproc_ok=false
4636for ac_c_preproc_warn_flag in '' yes
4637do
4638 # Use a header file that comes with gcc, so configuring glibc
4639 # with a fresh cross-compiler works.
4640 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4641 # <limits.h> exists even on freestanding compilers.
4642 # On the NeXT, cc -E runs the code through the compiler's parser,
4643 # not just through cpp. "Syntax error" is here to catch this case.
4644 cat >conftest.$ac_ext <<_ACEOF
4645/* confdefs.h. */
4646_ACEOF
4647cat confdefs.h >>conftest.$ac_ext
4648cat >>conftest.$ac_ext <<_ACEOF
4649/* end confdefs.h. */
4650#ifdef __STDC__
4651# include <limits.h>
4652#else
4653# include <assert.h>
4654#endif
4655 Syntax error
4656_ACEOF
64ff59ba 4657if { (ac_try="$ac_cpp conftest.$ac_ext"
4658case "(($ac_try" in
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4661esac
4662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4664 ac_status=$?
4665 grep -v '^ *+' conftest.er1 >conftest.err
4666 rm -f conftest.er1
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4669 (exit $ac_status); } >/dev/null && {
4670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4671 test ! -s conftest.err
4672 }; then
d9898ee8 4673 :
4674else
4675 echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678 # Broken: fails on valid input.
4679continue
4680fi
64ff59ba 4681
d9898ee8 4682rm -f conftest.err conftest.$ac_ext
4683
64ff59ba 4684 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4685 # can be detected and how.
4686 cat >conftest.$ac_ext <<_ACEOF
4687/* confdefs.h. */
4688_ACEOF
4689cat confdefs.h >>conftest.$ac_ext
4690cat >>conftest.$ac_ext <<_ACEOF
4691/* end confdefs.h. */
4692#include <ac_nonexistent.h>
4693_ACEOF
64ff59ba 4694if { (ac_try="$ac_cpp conftest.$ac_ext"
4695case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698esac
4699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4706 (exit $ac_status); } >/dev/null && {
4707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 }; then
d9898ee8 4710 # Broken: success on invalid input.
4711continue
4712else
4713 echo "$as_me: failed program was:" >&5
4714sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 # Passes both tests.
4717ac_preproc_ok=:
4718break
4719fi
64ff59ba 4720
d9898ee8 4721rm -f conftest.err conftest.$ac_ext
4722
4723done
4724# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4725rm -f conftest.err conftest.$ac_ext
4726if $ac_preproc_ok; then
4727 break
4728fi
4729
4730 done
4731 ac_cv_prog_CPP=$CPP
4732
4733fi
4734 CPP=$ac_cv_prog_CPP
4735else
4736 ac_cv_prog_CPP=$CPP
4737fi
64ff59ba 4738{ echo "$as_me:$LINENO: result: $CPP" >&5
4739echo "${ECHO_T}$CPP" >&6; }
d9898ee8 4740ac_preproc_ok=false
4741for ac_c_preproc_warn_flag in '' yes
4742do
4743 # Use a header file that comes with gcc, so configuring glibc
4744 # with a fresh cross-compiler works.
4745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 # <limits.h> exists even on freestanding compilers.
4747 # On the NeXT, cc -E runs the code through the compiler's parser,
4748 # not just through cpp. "Syntax error" is here to catch this case.
4749 cat >conftest.$ac_ext <<_ACEOF
4750/* confdefs.h. */
4751_ACEOF
4752cat confdefs.h >>conftest.$ac_ext
4753cat >>conftest.$ac_ext <<_ACEOF
4754/* end confdefs.h. */
4755#ifdef __STDC__
4756# include <limits.h>
4757#else
4758# include <assert.h>
4759#endif
4760 Syntax error
4761_ACEOF
64ff59ba 4762if { (ac_try="$ac_cpp conftest.$ac_ext"
4763case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766esac
4767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4769 ac_status=$?
4770 grep -v '^ *+' conftest.er1 >conftest.err
4771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4774 (exit $ac_status); } >/dev/null && {
4775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4776 test ! -s conftest.err
4777 }; then
d9898ee8 4778 :
4779else
4780 echo "$as_me: failed program was:" >&5
4781sed 's/^/| /' conftest.$ac_ext >&5
4782
4783 # Broken: fails on valid input.
4784continue
4785fi
64ff59ba 4786
d9898ee8 4787rm -f conftest.err conftest.$ac_ext
4788
64ff59ba 4789 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 4790 # can be detected and how.
4791 cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797#include <ac_nonexistent.h>
4798_ACEOF
64ff59ba 4799if { (ac_try="$ac_cpp conftest.$ac_ext"
4800case "(($ac_try" in
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4803esac
4804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4806 ac_status=$?
4807 grep -v '^ *+' conftest.er1 >conftest.err
4808 rm -f conftest.er1
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4811 (exit $ac_status); } >/dev/null && {
4812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4813 test ! -s conftest.err
4814 }; then
d9898ee8 4815 # Broken: success on invalid input.
4816continue
4817else
4818 echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 # Passes both tests.
4822ac_preproc_ok=:
4823break
4824fi
64ff59ba 4825
d9898ee8 4826rm -f conftest.err conftest.$ac_ext
4827
4828done
4829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4830rm -f conftest.err conftest.$ac_ext
4831if $ac_preproc_ok; then
4832 :
4833else
4834 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4835See \`config.log' for more details." >&5
4836echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4837See \`config.log' for more details." >&2;}
4838 { (exit 1); exit 1; }; }
4839fi
4840
4841ac_ext=c
4842ac_cpp='$CPP $CPPFLAGS'
4843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
4847
64ff59ba 4848{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4849echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4850if test "${ac_cv_header_stdc+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852else
4853 cat >conftest.$ac_ext <<_ACEOF
4854/* confdefs.h. */
4855_ACEOF
4856cat confdefs.h >>conftest.$ac_ext
4857cat >>conftest.$ac_ext <<_ACEOF
4858/* end confdefs.h. */
4859#include <stdlib.h>
4860#include <stdarg.h>
4861#include <string.h>
4862#include <float.h>
4863
4864int
4865main ()
4866{
4867
4868 ;
4869 return 0;
4870}
4871_ACEOF
4872rm -f conftest.$ac_objext
64ff59ba 4873if { (ac_try="$ac_compile"
4874case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877esac
4878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4880 ac_status=$?
4881 grep -v '^ *+' conftest.er1 >conftest.err
4882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 4885 (exit $ac_status); } && {
4886 test -z "$ac_c_werror_flag" ||
4887 test ! -s conftest.err
4888 } && test -s conftest.$ac_objext; then
d9898ee8 4889 ac_cv_header_stdc=yes
4890else
4891 echo "$as_me: failed program was:" >&5
4892sed 's/^/| /' conftest.$ac_ext >&5
4893
64ff59ba 4894 ac_cv_header_stdc=no
d9898ee8 4895fi
64ff59ba 4896
4897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4898
4899if test $ac_cv_header_stdc = yes; then
4900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4901 cat >conftest.$ac_ext <<_ACEOF
4902/* confdefs.h. */
4903_ACEOF
4904cat confdefs.h >>conftest.$ac_ext
4905cat >>conftest.$ac_ext <<_ACEOF
4906/* end confdefs.h. */
4907#include <string.h>
4908
4909_ACEOF
4910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4911 $EGREP "memchr" >/dev/null 2>&1; then
4912 :
4913else
4914 ac_cv_header_stdc=no
4915fi
4916rm -f conftest*
4917
4918fi
4919
4920if test $ac_cv_header_stdc = yes; then
4921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4922 cat >conftest.$ac_ext <<_ACEOF
4923/* confdefs.h. */
4924_ACEOF
4925cat confdefs.h >>conftest.$ac_ext
4926cat >>conftest.$ac_ext <<_ACEOF
4927/* end confdefs.h. */
4928#include <stdlib.h>
4929
4930_ACEOF
4931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4932 $EGREP "free" >/dev/null 2>&1; then
4933 :
4934else
4935 ac_cv_header_stdc=no
4936fi
4937rm -f conftest*
4938
4939fi
4940
4941if test $ac_cv_header_stdc = yes; then
4942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4943 if test "$cross_compiling" = yes; then
4944 :
4945else
4946 cat >conftest.$ac_ext <<_ACEOF
4947/* confdefs.h. */
4948_ACEOF
4949cat confdefs.h >>conftest.$ac_ext
4950cat >>conftest.$ac_ext <<_ACEOF
4951/* end confdefs.h. */
4952#include <ctype.h>
64ff59ba 4953#include <stdlib.h>
d9898ee8 4954#if ((' ' & 0x0FF) == 0x020)
4955# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4956# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4957#else
4958# define ISLOWER(c) \
4959 (('a' <= (c) && (c) <= 'i') \
4960 || ('j' <= (c) && (c) <= 'r') \
4961 || ('s' <= (c) && (c) <= 'z'))
4962# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4963#endif
4964
4965#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4966int
4967main ()
4968{
4969 int i;
4970 for (i = 0; i < 256; i++)
4971 if (XOR (islower (i), ISLOWER (i))
4972 || toupper (i) != TOUPPER (i))
64ff59ba 4973 return 2;
4974 return 0;
d9898ee8 4975}
4976_ACEOF
4977rm -f conftest$ac_exeext
64ff59ba 4978if { (ac_try="$ac_link"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_link") 2>&5
d9898ee8 4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 4988 { (case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
4992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4993 (eval "$ac_try") 2>&5
d9898ee8 4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 :
4998else
4999 echo "$as_me: program exited with status $ac_status" >&5
5000echo "$as_me: failed program was:" >&5
5001sed 's/^/| /' conftest.$ac_ext >&5
5002
5003( exit $ac_status )
5004ac_cv_header_stdc=no
5005fi
64ff59ba 5006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 5007fi
64ff59ba 5008
5009
d9898ee8 5010fi
5011fi
64ff59ba 5012{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5013echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 5014if test $ac_cv_header_stdc = yes; then
5015
5016cat >>confdefs.h <<\_ACEOF
5017#define STDC_HEADERS 1
5018_ACEOF
5019
5020fi
5021
5022# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5033 inttypes.h stdint.h unistd.h
5034do
5035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5036{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040else
5041 cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h. */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h. */
5047$ac_includes_default
5048
5049#include <$ac_header>
5050_ACEOF
5051rm -f conftest.$ac_objext
64ff59ba 5052if { (ac_try="$ac_compile"
5053case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056esac
5057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest.$ac_objext; then
d9898ee8 5068 eval "$as_ac_Header=yes"
5069else
5070 echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
64ff59ba 5073 eval "$as_ac_Header=no"
d9898ee8 5074fi
64ff59ba 5075
5076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5077fi
64ff59ba 5078ac_res=`eval echo '${'$as_ac_Header'}'`
5079 { echo "$as_me:$LINENO: result: $ac_res" >&5
5080echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5081if test `eval echo '${'$as_ac_Header'}'` = yes; then
5082 cat >>confdefs.h <<_ACEOF
5083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5084_ACEOF
5085
5086fi
5087
5088done
5089
5090
5091
5092for ac_header in dlfcn.h
5093do
5094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 5095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100fi
64ff59ba 5101ac_res=`eval echo '${'$as_ac_Header'}'`
5102 { echo "$as_me:$LINENO: result: $ac_res" >&5
5103echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5104else
5105 # Is the header compilable?
64ff59ba 5106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5108cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h. */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h. */
5114$ac_includes_default
5115#include <$ac_header>
5116_ACEOF
5117rm -f conftest.$ac_objext
64ff59ba 5118if { (ac_try="$ac_compile"
5119case "(($ac_try" in
5120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5121 *) ac_try_echo=$ac_try;;
5122esac
5123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5124 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5125 ac_status=$?
5126 grep -v '^ *+' conftest.er1 >conftest.err
5127 rm -f conftest.er1
5128 cat conftest.err >&5
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5130 (exit $ac_status); } && {
5131 test -z "$ac_c_werror_flag" ||
5132 test ! -s conftest.err
5133 } && test -s conftest.$ac_objext; then
d9898ee8 5134 ac_header_compiler=yes
5135else
5136 echo "$as_me: failed program was:" >&5
5137sed 's/^/| /' conftest.$ac_ext >&5
5138
64ff59ba 5139 ac_header_compiler=no
d9898ee8 5140fi
64ff59ba 5141
5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5144echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5145
5146# Is the header present?
64ff59ba 5147{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5149cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
5155#include <$ac_header>
5156_ACEOF
64ff59ba 5157if { (ac_try="$ac_cpp conftest.$ac_ext"
5158case "(($ac_try" in
5159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160 *) ac_try_echo=$ac_try;;
5161esac
5162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5164 ac_status=$?
5165 grep -v '^ *+' conftest.er1 >conftest.err
5166 rm -f conftest.er1
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5169 (exit $ac_status); } >/dev/null && {
5170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5171 test ! -s conftest.err
5172 }; then
d9898ee8 5173 ac_header_preproc=yes
5174else
5175 echo "$as_me: failed program was:" >&5
5176sed 's/^/| /' conftest.$ac_ext >&5
5177
5178 ac_header_preproc=no
5179fi
64ff59ba 5180
d9898ee8 5181rm -f conftest.err conftest.$ac_ext
64ff59ba 5182{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5183echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5184
5185# So? What about this header?
5186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5187 yes:no: )
5188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5192 ac_header_preproc=yes
5193 ;;
5194 no:yes:* )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 5207 ( cat <<\_ASBOX
d9898ee8 5208## -------------------------------------------------- ##
5209## Report this to courier-users@lists.sourceforge.net ##
5210## -------------------------------------------------- ##
5211_ASBOX
64ff59ba 5212 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5213 ;;
5214esac
64ff59ba 5215{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219else
5220 eval "$as_ac_Header=\$ac_header_preproc"
5221fi
64ff59ba 5222ac_res=`eval echo '${'$as_ac_Header'}'`
5223 { echo "$as_me:$LINENO: result: $ac_res" >&5
5224echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5225
5226fi
5227if test `eval echo '${'$as_ac_Header'}'` = yes; then
5228 cat >>confdefs.h <<_ACEOF
5229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5230_ACEOF
5231
5232fi
5233
5234done
5235
64ff59ba 5236ac_ext=cpp
d9898ee8 5237ac_cpp='$CXXCPP $CPPFLAGS'
5238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5241if test -z "$CXX"; then
5242 if test -n "$CCC"; then
5243 CXX=$CCC
5244 else
5245 if test -n "$ac_tool_prefix"; then
5246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5247 do
5248 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5249set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5252if test "${ac_cv_prog_CXX+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254else
5255 if test -n "$CXX"; then
5256 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5257else
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261 IFS=$as_save_IFS
5262 test -z "$as_dir" && as_dir=.
5263 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5265 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5267 break 2
5268 fi
5269done
5270done
64ff59ba 5271IFS=$as_save_IFS
d9898ee8 5272
5273fi
5274fi
5275CXX=$ac_cv_prog_CXX
5276if test -n "$CXX"; then
64ff59ba 5277 { echo "$as_me:$LINENO: result: $CXX" >&5
5278echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5279else
64ff59ba 5280 { echo "$as_me:$LINENO: result: no" >&5
5281echo "${ECHO_T}no" >&6; }
d9898ee8 5282fi
5283
64ff59ba 5284
d9898ee8 5285 test -n "$CXX" && break
5286 done
5287fi
5288if test -z "$CXX"; then
5289 ac_ct_CXX=$CXX
64ff59ba 5290 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5291do
5292 # Extract the first word of "$ac_prog", so it can be a program name with args.
5293set dummy $ac_prog; ac_word=$2
64ff59ba 5294{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5296if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299 if test -n "$ac_ct_CXX"; then
5300 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5309 ac_cv_prog_ac_ct_CXX="$ac_prog"
5310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313done
5314done
64ff59ba 5315IFS=$as_save_IFS
d9898ee8 5316
5317fi
5318fi
5319ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5320if test -n "$ac_ct_CXX"; then
64ff59ba 5321 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5322echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5323else
64ff59ba 5324 { echo "$as_me:$LINENO: result: no" >&5
5325echo "${ECHO_T}no" >&6; }
d9898ee8 5326fi
5327
64ff59ba 5328
d9898ee8 5329 test -n "$ac_ct_CXX" && break
5330done
d9898ee8 5331
64ff59ba 5332 if test "x$ac_ct_CXX" = x; then
5333 CXX="g++"
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336yes:)
5337{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5338whose name does not start with the host triplet. If you think this
5339configuration is useful to you, please write to autoconf@gnu.org." >&5
5340echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5341whose name does not start with the host triplet. If you think this
5342configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5343ac_tool_warned=yes ;;
5344esac
5345 CXX=$ac_ct_CXX
5346 fi
d9898ee8 5347fi
5348
64ff59ba 5349 fi
5350fi
d9898ee8 5351# Provide some information about the compiler.
64ff59ba 5352echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5353ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 5354{ (ac_try="$ac_compiler --version >&5"
5355case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }
64ff59ba 5364{ (ac_try="$ac_compiler -v >&5"
5365case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368esac
5369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }
64ff59ba 5374{ (ac_try="$ac_compiler -V >&5"
5375case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378esac
5379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5380 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }
5384
64ff59ba 5385{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5386echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5387if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390 cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396
5397int
5398main ()
5399{
5400#ifndef __GNUC__
5401 choke me
5402#endif
5403
5404 ;
5405 return 0;
5406}
5407_ACEOF
5408rm -f conftest.$ac_objext
64ff59ba 5409if { (ac_try="$ac_compile"
5410case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413esac
5414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5416 ac_status=$?
5417 grep -v '^ *+' conftest.er1 >conftest.err
5418 rm -f conftest.er1
5419 cat conftest.err >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5421 (exit $ac_status); } && {
5422 test -z "$ac_cxx_werror_flag" ||
5423 test ! -s conftest.err
5424 } && test -s conftest.$ac_objext; then
d9898ee8 5425 ac_compiler_gnu=yes
5426else
5427 echo "$as_me: failed program was:" >&5
5428sed 's/^/| /' conftest.$ac_ext >&5
5429
64ff59ba 5430 ac_compiler_gnu=no
d9898ee8 5431fi
64ff59ba 5432
5433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5434ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5435
5436fi
64ff59ba 5437{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5438echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5439GXX=`test $ac_compiler_gnu = yes && echo yes`
5440ac_test_CXXFLAGS=${CXXFLAGS+set}
5441ac_save_CXXFLAGS=$CXXFLAGS
64ff59ba 5442{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5443echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5444if test "${ac_cv_prog_cxx_g+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
64ff59ba 5447 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5448 ac_cxx_werror_flag=yes
5449 ac_cv_prog_cxx_g=no
5450 CXXFLAGS="-g"
5451 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5452/* confdefs.h. */
5453_ACEOF
5454cat confdefs.h >>conftest.$ac_ext
5455cat >>conftest.$ac_ext <<_ACEOF
5456/* end confdefs.h. */
5457
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466rm -f conftest.$ac_objext
64ff59ba 5467if { (ac_try="$ac_compile"
5468case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471esac
5472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5479 (exit $ac_status); } && {
5480 test -z "$ac_cxx_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest.$ac_objext; then
d9898ee8 5483 ac_cv_prog_cxx_g=yes
5484else
5485 echo "$as_me: failed program was:" >&5
5486sed 's/^/| /' conftest.$ac_ext >&5
5487
64ff59ba 5488 CXXFLAGS=""
5489 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5490/* confdefs.h. */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h. */
64ff59ba 5495
d9898ee8 5496int
5497main ()
5498{
64ff59ba 5499
d9898ee8 5500 ;
5501 return 0;
5502}
5503_ACEOF
5504rm -f conftest.$ac_objext
64ff59ba 5505if { (ac_try="$ac_compile"
5506case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5517 (exit $ac_status); } && {
5518 test -z "$ac_cxx_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.$ac_objext; then
d9898ee8 5521 :
5522else
5523 echo "$as_me: failed program was:" >&5
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
64ff59ba 5526 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5527 CXXFLAGS="-g"
5528 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5529/* confdefs.h. */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h. */
64ff59ba 5534
d9898ee8 5535int
5536main ()
5537{
64ff59ba 5538
d9898ee8 5539 ;
5540 return 0;
5541}
5542_ACEOF
5543rm -f conftest.$ac_objext
64ff59ba 5544if { (ac_try="$ac_compile"
5545case "(($ac_try" in
5546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547 *) ac_try_echo=$ac_try;;
5548esac
5549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5551 ac_status=$?
5552 grep -v '^ *+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5556 (exit $ac_status); } && {
5557 test -z "$ac_cxx_werror_flag" ||
5558 test ! -s conftest.err
5559 } && test -s conftest.$ac_objext; then
5560 ac_cv_prog_cxx_g=yes
d9898ee8 5561else
5562 echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
64ff59ba 5565
d9898ee8 5566fi
64ff59ba 5567
5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569fi
5570
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5572fi
5573
64ff59ba 5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5576fi
5577{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5578echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5579if test "$ac_test_CXXFLAGS" = set; then
5580 CXXFLAGS=$ac_save_CXXFLAGS
5581elif test $ac_cv_prog_cxx_g = yes; then
5582 if test "$GXX" = yes; then
5583 CXXFLAGS="-g -O2"
5584 else
5585 CXXFLAGS="-g"
5586 fi
5587else
5588 if test "$GXX" = yes; then
5589 CXXFLAGS="-O2"
5590 else
5591 CXXFLAGS=
5592 fi
5593fi
5594ac_ext=cpp
d9898ee8 5595ac_cpp='$CXXCPP $CPPFLAGS'
5596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5599
5600depcc="$CXX" am_compiler_list=
5601
64ff59ba 5602{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5603echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5604if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5608 # We make a subdir and do the tests there. Otherwise we can end up
5609 # making bogus files that we don't know about and never remove. For
5610 # instance it was reported that on HP-UX the gcc test will end up
5611 # making a dummy file named `D' -- because `-MD' means `put the output
5612 # in D'.
5613 mkdir conftest.dir
5614 # Copy depcomp to subdir because otherwise we won't find it if we're
5615 # using a relative directory.
5616 cp "$am_depcomp" conftest.dir
5617 cd conftest.dir
5618 # We will build objects and dependencies in a subdirectory because
5619 # it helps to detect inapplicable dependency modes. For instance
5620 # both Tru64's cc and ICC support -MD to output dependencies as a
5621 # side effect of compilation, but ICC will put the dependencies in
5622 # the current directory while Tru64 will put them in the object
5623 # directory.
5624 mkdir sub
5625
5626 am_cv_CXX_dependencies_compiler_type=none
5627 if test "$am_compiler_list" = ""; then
5628 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5629 fi
5630 for depmode in $am_compiler_list; do
5631 # Setup a source with many dependencies, because some compilers
5632 # like to wrap large dependency lists on column 80 (with \), and
5633 # we should not choose a depcomp mode which is confused by this.
5634 #
5635 # We need to recreate these files for each test, as the compiler may
5636 # overwrite some of them when testing with obscure command lines.
5637 # This happens at least with the AIX C compiler.
5638 : > sub/conftest.c
5639 for i in 1 2 3 4 5 6; do
5640 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5641 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5642 # Solaris 8's {/usr,}/bin/sh.
5643 touch sub/conftst$i.h
5644 done
5645 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5646
5647 case $depmode in
5648 nosideeffect)
5649 # after this tag, mechanisms are not by side-effect, so they'll
5650 # only be used when explicitly requested
5651 if test "x$enable_dependency_tracking" = xyes; then
5652 continue
5653 else
5654 break
5655 fi
5656 ;;
5657 none) break ;;
5658 esac
5659 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5660 # mode. It turns out that the SunPro C++ compiler does not properly
5661 # handle `-M -o', and we need to detect this.
5662 if depmode=$depmode \
5663 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5665 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5666 >/dev/null 2>conftest.err &&
64ff59ba 5667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5669 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5671 # icc doesn't choke on unknown options, it will just issue warnings
5672 # or remarks (even with -Werror). So we grep stderr for any message
5673 # that says an option was ignored or not supported.
5674 # When given -MP, icc 7.0 and 7.1 complain thusly:
5675 # icc: Command line warning: ignoring option '-M'; no argument required
5676 # The diagnosis changed in icc 8.0:
5677 # icc: Command line remark: option '-MP' not supported
5678 if (grep 'ignoring option' conftest.err ||
5679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5680 am_cv_CXX_dependencies_compiler_type=$depmode
5681 break
5682 fi
5683 fi
5684 done
5685
5686 cd ..
5687 rm -rf conftest.dir
5688else
5689 am_cv_CXX_dependencies_compiler_type=none
5690fi
5691
5692fi
64ff59ba 5693{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5694echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5695CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5696
64ff59ba 5697 if
d9898ee8 5698 test "x$enable_dependency_tracking" != xno \
5699 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5700 am__fastdepCXX_TRUE=
5701 am__fastdepCXX_FALSE='#'
5702else
5703 am__fastdepCXX_TRUE='#'
5704 am__fastdepCXX_FALSE=
5705fi
5706
5707
5708
5709
5710if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5711 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5712 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 5713 ac_ext=cpp
d9898ee8 5714ac_cpp='$CXXCPP $CPPFLAGS'
5715ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5716ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5717ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64ff59ba 5718{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5719echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5720if test -z "$CXXCPP"; then
5721 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724 # Double quotes because CXXCPP needs to be expanded
5725 for CXXCPP in "$CXX -E" "/lib/cpp"
5726 do
5727 ac_preproc_ok=false
5728for ac_cxx_preproc_warn_flag in '' yes
5729do
5730 # Use a header file that comes with gcc, so configuring glibc
5731 # with a fresh cross-compiler works.
5732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5733 # <limits.h> exists even on freestanding compilers.
5734 # On the NeXT, cc -E runs the code through the compiler's parser,
5735 # not just through cpp. "Syntax error" is here to catch this case.
5736 cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742#ifdef __STDC__
5743# include <limits.h>
5744#else
5745# include <assert.h>
5746#endif
5747 Syntax error
5748_ACEOF
64ff59ba 5749if { (ac_try="$ac_cpp conftest.$ac_ext"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5761 (exit $ac_status); } >/dev/null && {
5762 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 }; then
d9898ee8 5765 :
5766else
5767 echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770 # Broken: fails on valid input.
5771continue
5772fi
64ff59ba 5773
d9898ee8 5774rm -f conftest.err conftest.$ac_ext
5775
64ff59ba 5776 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5777 # can be detected and how.
5778 cat >conftest.$ac_ext <<_ACEOF
5779/* confdefs.h. */
5780_ACEOF
5781cat confdefs.h >>conftest.$ac_ext
5782cat >>conftest.$ac_ext <<_ACEOF
5783/* end confdefs.h. */
5784#include <ac_nonexistent.h>
5785_ACEOF
64ff59ba 5786if { (ac_try="$ac_cpp conftest.$ac_ext"
5787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5798 (exit $ac_status); } >/dev/null && {
5799 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5800 test ! -s conftest.err
5801 }; then
d9898ee8 5802 # Broken: success on invalid input.
5803continue
5804else
5805 echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 # Passes both tests.
5809ac_preproc_ok=:
5810break
5811fi
64ff59ba 5812
d9898ee8 5813rm -f conftest.err conftest.$ac_ext
5814
5815done
5816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5817rm -f conftest.err conftest.$ac_ext
5818if $ac_preproc_ok; then
5819 break
5820fi
5821
5822 done
5823 ac_cv_prog_CXXCPP=$CXXCPP
5824
5825fi
5826 CXXCPP=$ac_cv_prog_CXXCPP
5827else
5828 ac_cv_prog_CXXCPP=$CXXCPP
5829fi
64ff59ba 5830{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5831echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5832ac_preproc_ok=false
5833for ac_cxx_preproc_warn_flag in '' yes
5834do
5835 # Use a header file that comes with gcc, so configuring glibc
5836 # with a fresh cross-compiler works.
5837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5838 # <limits.h> exists even on freestanding compilers.
5839 # On the NeXT, cc -E runs the code through the compiler's parser,
5840 # not just through cpp. "Syntax error" is here to catch this case.
5841 cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
5847#ifdef __STDC__
5848# include <limits.h>
5849#else
5850# include <assert.h>
5851#endif
5852 Syntax error
5853_ACEOF
64ff59ba 5854if { (ac_try="$ac_cpp conftest.$ac_ext"
5855case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5866 (exit $ac_status); } >/dev/null && {
5867 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5868 test ! -s conftest.err
5869 }; then
d9898ee8 5870 :
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875 # Broken: fails on valid input.
5876continue
5877fi
64ff59ba 5878
d9898ee8 5879rm -f conftest.err conftest.$ac_ext
5880
64ff59ba 5881 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5882 # can be detected and how.
5883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
5889#include <ac_nonexistent.h>
5890_ACEOF
64ff59ba 5891if { (ac_try="$ac_cpp conftest.$ac_ext"
5892case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 5903 (exit $ac_status); } >/dev/null && {
5904 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5905 test ! -s conftest.err
5906 }; then
d9898ee8 5907 # Broken: success on invalid input.
5908continue
5909else
5910 echo "$as_me: failed program was:" >&5
5911sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 # Passes both tests.
5914ac_preproc_ok=:
5915break
5916fi
64ff59ba 5917
d9898ee8 5918rm -f conftest.err conftest.$ac_ext
5919
5920done
5921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5922rm -f conftest.err conftest.$ac_ext
5923if $ac_preproc_ok; then
5924 :
5925else
5926 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5927See \`config.log' for more details." >&5
5928echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5929See \`config.log' for more details." >&2;}
5930 { (exit 1); exit 1; }; }
5931fi
5932
64ff59ba 5933ac_ext=cpp
d9898ee8 5934ac_cpp='$CXXCPP $CPPFLAGS'
5935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5938
5939fi
5940
5941
5942ac_ext=f
5943ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5944ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5945ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5946if test -n "$ac_tool_prefix"; then
64ff59ba 5947 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 5948 do
5949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
64ff59ba 5951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5953if test "${ac_cv_prog_F77+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955else
5956 if test -n "$F77"; then
5957 ac_cv_prog_F77="$F77" # Let the user override the test.
5958else
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 5965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5966 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970done
5971done
64ff59ba 5972IFS=$as_save_IFS
d9898ee8 5973
5974fi
5975fi
5976F77=$ac_cv_prog_F77
5977if test -n "$F77"; then
64ff59ba 5978 { echo "$as_me:$LINENO: result: $F77" >&5
5979echo "${ECHO_T}$F77" >&6; }
d9898ee8 5980else
64ff59ba 5981 { echo "$as_me:$LINENO: result: no" >&5
5982echo "${ECHO_T}no" >&6; }
d9898ee8 5983fi
5984
64ff59ba 5985
d9898ee8 5986 test -n "$F77" && break
5987 done
5988fi
5989if test -z "$F77"; then
5990 ac_ct_F77=$F77
64ff59ba 5991 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 5992do
5993 # Extract the first word of "$ac_prog", so it can be a program name with args.
5994set dummy $ac_prog; ac_word=$2
64ff59ba 5995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5997if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000 if test -n "$ac_ct_F77"; then
6001 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6002else
6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6010 ac_cv_prog_ac_ct_F77="$ac_prog"
6011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6013 fi
6014done
6015done
64ff59ba 6016IFS=$as_save_IFS
d9898ee8 6017
6018fi
6019fi
6020ac_ct_F77=$ac_cv_prog_ac_ct_F77
6021if test -n "$ac_ct_F77"; then
64ff59ba 6022 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6023echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6024else
64ff59ba 6025 { echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6; }
d9898ee8 6027fi
6028
64ff59ba 6029
d9898ee8 6030 test -n "$ac_ct_F77" && break
6031done
6032
64ff59ba 6033 if test "x$ac_ct_F77" = x; then
6034 F77=""
6035 else
6036 case $cross_compiling:$ac_tool_warned in
6037yes:)
6038{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6039whose name does not start with the host triplet. If you think this
6040configuration is useful to you, please write to autoconf@gnu.org." >&5
6041echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6042whose name does not start with the host triplet. If you think this
6043configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6044ac_tool_warned=yes ;;
6045esac
6046 F77=$ac_ct_F77
6047 fi
d9898ee8 6048fi
6049
6050
6051# Provide some information about the compiler.
64ff59ba 6052echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6053ac_compiler=`set X $ac_compile; echo $2`
64ff59ba 6054{ (ac_try="$ac_compiler --version >&5"
6055case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058esac
6059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); }
64ff59ba 6064{ (ac_try="$ac_compiler -v >&5"
6065case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068esac
6069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6070 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }
64ff59ba 6074{ (ac_try="$ac_compiler -V >&5"
6075case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078esac
6079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6081 ac_status=$?
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }
6084rm -f a.out
6085
6086# If we don't use `.F' as extension, the preprocessor is not run on the
6087# input file. (Note that this only needs to work for GNU compilers.)
6088ac_save_ext=$ac_ext
6089ac_ext=F
64ff59ba 6090{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6091echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6092if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6094else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 program main
6097#ifndef __GNUC__
6098 choke me
6099#endif
6100
6101 end
6102_ACEOF
6103rm -f conftest.$ac_objext
64ff59ba 6104if { (ac_try="$ac_compile"
6105case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108esac
6109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6116 (exit $ac_status); } && {
6117 test -z "$ac_f77_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
d9898ee8 6120 ac_compiler_gnu=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
64ff59ba 6125 ac_compiler_gnu=no
d9898ee8 6126fi
64ff59ba 6127
6128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6129ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6130
6131fi
64ff59ba 6132{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6133echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6134ac_ext=$ac_save_ext
6135ac_test_FFLAGS=${FFLAGS+set}
6136ac_save_FFLAGS=$FFLAGS
6137FFLAGS=
64ff59ba 6138{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6139echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6140if test "${ac_cv_prog_f77_g+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 FFLAGS=-g
6144cat >conftest.$ac_ext <<_ACEOF
6145 program main
6146
6147 end
6148_ACEOF
6149rm -f conftest.$ac_objext
64ff59ba 6150if { (ac_try="$ac_compile"
6151case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 6162 (exit $ac_status); } && {
6163 test -z "$ac_f77_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
d9898ee8 6166 ac_cv_prog_f77_g=yes
6167else
6168 echo "$as_me: failed program was:" >&5
6169sed 's/^/| /' conftest.$ac_ext >&5
6170
64ff59ba 6171 ac_cv_prog_f77_g=no
d9898ee8 6172fi
64ff59ba 6173
6174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6175
6176fi
64ff59ba 6177{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6178echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6179if test "$ac_test_FFLAGS" = set; then
6180 FFLAGS=$ac_save_FFLAGS
6181elif test $ac_cv_prog_f77_g = yes; then
6182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6183 FFLAGS="-g -O2"
6184 else
6185 FFLAGS="-g"
6186 fi
6187else
6188 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6189 FFLAGS="-O2"
6190 else
6191 FFLAGS=
6192 fi
6193fi
6194
6195G77=`test $ac_compiler_gnu = yes && echo yes`
6196ac_ext=c
6197ac_cpp='$CPP $CPPFLAGS'
6198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201
6202
6203
6204# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6205
6206# find the maximum length of command line arguments
64ff59ba 6207{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6208echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6209if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6210 echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212 i=0
6213 teststring="ABCD"
6214
6215 case $build_os in
6216 msdosdjgpp*)
6217 # On DJGPP, this test can blow up pretty badly due to problems in libc
6218 # (any single argument exceeding 2000 bytes causes a buffer overrun
6219 # during glob expansion). Even if it were fixed, the result of this
6220 # check would be larger than it should be.
6221 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6222 ;;
6223
6224 gnu*)
6225 # Under GNU Hurd, this test is not required because there is
6226 # no limit to the length of command line arguments.
6227 # Libtool will interpret -1 as no limit whatsoever
6228 lt_cv_sys_max_cmd_len=-1;
6229 ;;
6230
6231 cygwin* | mingw*)
6232 # On Win9x/ME, this test blows up -- it succeeds, but takes
6233 # about 5 minutes as the teststring grows exponentially.
6234 # Worse, since 9x/ME are not pre-emptively multitasking,
6235 # you end up with a "frozen" computer, even though with patience
6236 # the test eventually succeeds (with a max line length of 256k).
6237 # Instead, let's just punt: use the minimum linelength reported by
6238 # all of the supported platforms: 8192 (on NT/2K/XP).
6239 lt_cv_sys_max_cmd_len=8192;
6240 ;;
6241
6242 amigaos*)
6243 # On AmigaOS with pdksh, this test takes hours, literally.
6244 # So we just punt and use a minimum line length of 8192.
6245 lt_cv_sys_max_cmd_len=8192;
6246 ;;
6247
6248 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6249 # This has been around since 386BSD, at least. Likely further.
6250 if test -x /sbin/sysctl; then
6251 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6252 elif test -x /usr/sbin/sysctl; then
6253 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6254 else
6255 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6256 fi
6257 # And add a safety zone
6258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6259 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6260 ;;
6261
6262 interix*)
6263 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6264 lt_cv_sys_max_cmd_len=196608
6265 ;;
6266
6267 osf*)
6268 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6269 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6270 # nice to cause kernel panics so lets avoid the loop below.
6271 # First set a reasonable default.
6272 lt_cv_sys_max_cmd_len=16384
6273 #
6274 if test -x /sbin/sysconfig; then
6275 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6276 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6277 esac
6278 fi
6279 ;;
6280 sco3.2v5*)
6281 lt_cv_sys_max_cmd_len=102400
6282 ;;
6283 sysv5* | sco5v6* | sysv4.2uw2*)
6284 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6285 if test -n "$kargmax"; then
6286 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6287 else
6288 lt_cv_sys_max_cmd_len=32768
6289 fi
6290 ;;
6291 *)
6292 # If test is not a shell built-in, we'll probably end up computing a
6293 # maximum length that is only half of the actual maximum length, but
6294 # we can't tell.
6295 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6296 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6297 = "XX$teststring") >/dev/null 2>&1 &&
6298 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6299 lt_cv_sys_max_cmd_len=$new_result &&
6300 test $i != 17 # 1/2 MB should be enough
6301 do
6302 i=`expr $i + 1`
6303 teststring=$teststring$teststring
6304 done
6305 teststring=
6306 # Add a significant safety factor because C++ compilers can tack on massive
6307 # amounts of additional arguments before passing them to the linker.
6308 # It appears as though 1/2 is a usable value.
6309 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6310 ;;
6311 esac
6312
6313fi
6314
6315if test -n $lt_cv_sys_max_cmd_len ; then
64ff59ba 6316 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6317echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6318else
64ff59ba 6319 { echo "$as_me:$LINENO: result: none" >&5
6320echo "${ECHO_T}none" >&6; }
d9898ee8 6321fi
6322
6323
6324
6325
6326# Check for command to grab the raw symbol name followed by C symbol from nm.
64ff59ba 6327{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6328echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6329if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332
6333# These are sane defaults that work on at least a few old systems.
6334# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6335
6336# Character class describing NM global symbol codes.
6337symcode='[BCDEGRST]'
6338
6339# Regexp to match symbols that can be accessed directly from C.
6340sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6341
6342# Transform an extracted symbol line into a proper C declaration
6343lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6344
6345# Transform an extracted symbol line into symbol name and symbol address
6346lt_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'"
6347
6348# Define system-specific variables.
6349case $host_os in
6350aix*)
6351 symcode='[BCDT]'
6352 ;;
6353cygwin* | mingw* | pw32*)
6354 symcode='[ABCDGISTW]'
6355 ;;
6356hpux*) # Its linker distinguishes data from code symbols
6357 if test "$host_cpu" = ia64; then
6358 symcode='[ABCDEGRST]'
6359 fi
6360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6361 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6362 ;;
6363linux*)
6364 if test "$host_cpu" = ia64; then
6365 symcode='[ABCDGIRSTW]'
6366 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6367 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'"
6368 fi
6369 ;;
6370irix* | nonstopux*)
6371 symcode='[BCDEGRST]'
6372 ;;
6373osf*)
6374 symcode='[BCDEGQRST]'
6375 ;;
6376solaris*)
6377 symcode='[BDRT]'
6378 ;;
6379sco3.2v5*)
6380 symcode='[DT]'
6381 ;;
6382sysv4.2uw2*)
6383 symcode='[DT]'
6384 ;;
6385sysv5* | sco5v6* | unixware* | OpenUNIX*)
6386 symcode='[ABDT]'
6387 ;;
6388sysv4)
6389 symcode='[DFNSTU]'
6390 ;;
6391esac
6392
6393# Handle CRLF in mingw tool chain
6394opt_cr=
6395case $build_os in
6396mingw*)
6397 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6398 ;;
6399esac
6400
6401# If we're using GNU nm, then use its standard symbol codes.
6402case `$NM -V 2>&1` in
6403*GNU* | *'with BFD'*)
6404 symcode='[ABCDGIRSTW]' ;;
6405esac
6406
6407# Try without a prefix undercore, then with it.
6408for ac_symprfx in "" "_"; do
6409
6410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6411 symxfrm="\\1 $ac_symprfx\\2 \\2"
6412
6413 # Write the raw and C identifiers.
6414 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6415
6416 # Check to see that the pipe works correctly.
6417 pipe_works=no
6418
6419 rm -f conftest*
6420 cat > conftest.$ac_ext <<EOF
6421#ifdef __cplusplus
6422extern "C" {
6423#endif
6424char nm_test_var;
6425void nm_test_func(){}
6426#ifdef __cplusplus
6427}
6428#endif
6429int main(){nm_test_var='a';nm_test_func();return(0);}
6430EOF
6431
6432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433 (eval $ac_compile) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); }; then
6437 # Now try to grab the symbols.
6438 nlist=conftest.nm
6439 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6440 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && test -s "$nlist"; then
6444 # Try sorting and uniquifying the output.
6445 if sort "$nlist" | uniq > "$nlist"T; then
6446 mv -f "$nlist"T "$nlist"
6447 else
6448 rm -f "$nlist"T
6449 fi
6450
6451 # Make sure that we snagged all the symbols we need.
6452 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6453 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6454 cat <<EOF > conftest.$ac_ext
6455#ifdef __cplusplus
6456extern "C" {
6457#endif
6458
6459EOF
6460 # Now generate the symbol file.
6461 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6462
6463 cat <<EOF >> conftest.$ac_ext
6464#if defined (__STDC__) && __STDC__
6465# define lt_ptr_t void *
6466#else
6467# define lt_ptr_t char *
6468# define const
6469#endif
6470
6471/* The mapping between symbol names and symbols. */
6472const struct {
6473 const char *name;
6474 lt_ptr_t address;
6475}
6476lt_preloaded_symbols[] =
6477{
6478EOF
6479 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6480 cat <<\EOF >> conftest.$ac_ext
6481 {0, (lt_ptr_t) 0}
6482};
6483
6484#ifdef __cplusplus
6485}
6486#endif
6487EOF
6488 # Now try linking the two files.
6489 mv conftest.$ac_objext conftstm.$ac_objext
6490 lt_save_LIBS="$LIBS"
6491 lt_save_CFLAGS="$CFLAGS"
6492 LIBS="conftstm.$ac_objext"
6493 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6495 (eval $ac_link) 2>&5
6496 ac_status=$?
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6499 pipe_works=yes
6500 fi
6501 LIBS="$lt_save_LIBS"
6502 CFLAGS="$lt_save_CFLAGS"
6503 else
6504 echo "cannot find nm_test_func in $nlist" >&5
6505 fi
6506 else
6507 echo "cannot find nm_test_var in $nlist" >&5
6508 fi
6509 else
6510 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6511 fi
6512 else
6513 echo "$progname: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6515 fi
6516 rm -f conftest* conftst*
6517
6518 # Do not use the global_symbol_pipe unless it works.
6519 if test "$pipe_works" = yes; then
6520 break
6521 else
6522 lt_cv_sys_global_symbol_pipe=
6523 fi
6524done
6525
6526fi
6527
6528if test -z "$lt_cv_sys_global_symbol_pipe"; then
6529 lt_cv_sys_global_symbol_to_cdecl=
6530fi
6531if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
64ff59ba 6532 { echo "$as_me:$LINENO: result: failed" >&5
6533echo "${ECHO_T}failed" >&6; }
d9898ee8 6534else
64ff59ba 6535 { echo "$as_me:$LINENO: result: ok" >&5
6536echo "${ECHO_T}ok" >&6; }
d9898ee8 6537fi
6538
64ff59ba 6539{ echo "$as_me:$LINENO: checking for objdir" >&5
6540echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6541if test "${lt_cv_objdir+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6543else
6544 rm -f .libs 2>/dev/null
6545mkdir .libs 2>/dev/null
6546if test -d .libs; then
6547 lt_cv_objdir=.libs
6548else
6549 # MS-DOS does not allow filenames that begin with a dot.
6550 lt_cv_objdir=_libs
6551fi
6552rmdir .libs 2>/dev/null
6553fi
64ff59ba 6554{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6555echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6556objdir=$lt_cv_objdir
6557
6558
6559
6560
6561
6562case $host_os in
6563aix3*)
6564 # AIX sometimes has problems with the GCC collect2 program. For some
6565 # reason, if we set the COLLECT_NAMES environment variable, the problems
6566 # vanish in a puff of smoke.
6567 if test "X${COLLECT_NAMES+set}" != Xset; then
6568 COLLECT_NAMES=
6569 export COLLECT_NAMES
6570 fi
6571 ;;
6572esac
6573
6574# Sed substitution that helps us do robust quoting. It backslashifies
6575# metacharacters that are still active within double-quoted strings.
6576Xsed='sed -e 1s/^X//'
6577sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6578
6579# Same as above, but do not quote variable references.
6580double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6581
6582# Sed substitution to delay expansion of an escaped shell variable in a
6583# double_quote_subst'ed string.
6584delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6585
6586# Sed substitution to avoid accidental globbing in evaled expressions
6587no_glob_subst='s/\*/\\\*/g'
6588
6589# Constants:
6590rm="rm -f"
6591
6592# Global variables:
6593default_ofile=libtool
6594can_build_shared=yes
6595
6596# All known linkers require a `.a' archive for static linking (except MSVC,
6597# which needs '.lib').
6598libext=a
6599ltmain="$ac_aux_dir/ltmain.sh"
6600ofile="$default_ofile"
6601with_gnu_ld="$lt_cv_prog_gnu_ld"
6602
6603if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6605set dummy ${ac_tool_prefix}ar; ac_word=$2
64ff59ba 6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6608if test "${ac_cv_prog_AR+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 if test -n "$AR"; then
6612 ac_cv_prog_AR="$AR" # Let the user override the test.
6613else
6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615for as_dir in $PATH
6616do
6617 IFS=$as_save_IFS
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6621 ac_cv_prog_AR="${ac_tool_prefix}ar"
6622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 break 2
6624 fi
6625done
6626done
64ff59ba 6627IFS=$as_save_IFS
d9898ee8 6628
6629fi
6630fi
6631AR=$ac_cv_prog_AR
6632if test -n "$AR"; then
64ff59ba 6633 { echo "$as_me:$LINENO: result: $AR" >&5
6634echo "${ECHO_T}$AR" >&6; }
d9898ee8 6635else
64ff59ba 6636 { echo "$as_me:$LINENO: result: no" >&5
6637echo "${ECHO_T}no" >&6; }
d9898ee8 6638fi
6639
64ff59ba 6640
d9898ee8 6641fi
6642if test -z "$ac_cv_prog_AR"; then
6643 ac_ct_AR=$AR
6644 # Extract the first word of "ar", so it can be a program name with args.
6645set dummy ar; ac_word=$2
64ff59ba 6646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6648if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651 if test -n "$ac_ct_AR"; then
6652 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6653else
6654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655for as_dir in $PATH
6656do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6661 ac_cv_prog_ac_ct_AR="ar"
6662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665done
6666done
64ff59ba 6667IFS=$as_save_IFS
d9898ee8 6668
d9898ee8 6669fi
6670fi
6671ac_ct_AR=$ac_cv_prog_ac_ct_AR
6672if test -n "$ac_ct_AR"; then
64ff59ba 6673 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6674echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6675else
64ff59ba 6676 { echo "$as_me:$LINENO: result: no" >&5
6677echo "${ECHO_T}no" >&6; }
d9898ee8 6678fi
6679
64ff59ba 6680 if test "x$ac_ct_AR" = x; then
6681 AR="false"
6682 else
6683 case $cross_compiling:$ac_tool_warned in
6684yes:)
6685{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6686whose name does not start with the host triplet. If you think this
6687configuration is useful to you, please write to autoconf@gnu.org." >&5
6688echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6689whose name does not start with the host triplet. If you think this
6690configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6691ac_tool_warned=yes ;;
6692esac
6693 AR=$ac_ct_AR
6694 fi
d9898ee8 6695else
6696 AR="$ac_cv_prog_AR"
6697fi
6698
6699if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6701set dummy ${ac_tool_prefix}ranlib; ac_word=$2
64ff59ba 6702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6704if test "${ac_cv_prog_RANLIB+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706else
6707 if test -n "$RANLIB"; then
6708 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6717 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721done
6722done
64ff59ba 6723IFS=$as_save_IFS
d9898ee8 6724
6725fi
6726fi
6727RANLIB=$ac_cv_prog_RANLIB
6728if test -n "$RANLIB"; then
64ff59ba 6729 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6730echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6731else
64ff59ba 6732 { echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6; }
d9898ee8 6734fi
6735
64ff59ba 6736
d9898ee8 6737fi
6738if test -z "$ac_cv_prog_RANLIB"; then
6739 ac_ct_RANLIB=$RANLIB
6740 # Extract the first word of "ranlib", so it can be a program name with args.
6741set dummy ranlib; ac_word=$2
64ff59ba 6742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6744if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746else
6747 if test -n "$ac_ct_RANLIB"; then
6748 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6749else
6750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6757 ac_cv_prog_ac_ct_RANLIB="ranlib"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
6762done
64ff59ba 6763IFS=$as_save_IFS
d9898ee8 6764
d9898ee8 6765fi
6766fi
6767ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6768if test -n "$ac_ct_RANLIB"; then
64ff59ba 6769 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6770echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6771else
64ff59ba 6772 { echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6; }
d9898ee8 6774fi
6775
64ff59ba 6776 if test "x$ac_ct_RANLIB" = x; then
6777 RANLIB=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780yes:)
6781{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6782whose name does not start with the host triplet. If you think this
6783configuration is useful to you, please write to autoconf@gnu.org." >&5
6784echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6785whose name does not start with the host triplet. If you think this
6786configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6787ac_tool_warned=yes ;;
6788esac
6789 RANLIB=$ac_ct_RANLIB
6790 fi
d9898ee8 6791else
6792 RANLIB="$ac_cv_prog_RANLIB"
6793fi
6794
6795if test -n "$ac_tool_prefix"; then
6796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6797set dummy ${ac_tool_prefix}strip; ac_word=$2
64ff59ba 6798{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6800if test "${ac_cv_prog_STRIP+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6802else
6803 if test -n "$STRIP"; then
6804 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6813 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817done
6818done
64ff59ba 6819IFS=$as_save_IFS
d9898ee8 6820
6821fi
6822fi
6823STRIP=$ac_cv_prog_STRIP
6824if test -n "$STRIP"; then
64ff59ba 6825 { echo "$as_me:$LINENO: result: $STRIP" >&5
6826echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6827else
64ff59ba 6828 { echo "$as_me:$LINENO: result: no" >&5
6829echo "${ECHO_T}no" >&6; }
d9898ee8 6830fi
6831
64ff59ba 6832
d9898ee8 6833fi
6834if test -z "$ac_cv_prog_STRIP"; then
6835 ac_ct_STRIP=$STRIP
6836 # Extract the first word of "strip", so it can be a program name with args.
6837set dummy strip; ac_word=$2
64ff59ba 6838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6840if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842else
6843 if test -n "$ac_ct_STRIP"; then
6844 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6853 ac_cv_prog_ac_ct_STRIP="strip"
6854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857done
6858done
64ff59ba 6859IFS=$as_save_IFS
d9898ee8 6860
d9898ee8 6861fi
6862fi
6863ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6864if test -n "$ac_ct_STRIP"; then
64ff59ba 6865 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6866echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 6867else
64ff59ba 6868 { echo "$as_me:$LINENO: result: no" >&5
6869echo "${ECHO_T}no" >&6; }
d9898ee8 6870fi
6871
64ff59ba 6872 if test "x$ac_ct_STRIP" = x; then
6873 STRIP=":"
6874 else
6875 case $cross_compiling:$ac_tool_warned in
6876yes:)
6877{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6878whose name does not start with the host triplet. If you think this
6879configuration is useful to you, please write to autoconf@gnu.org." >&5
6880echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6881whose name does not start with the host triplet. If you think this
6882configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6883ac_tool_warned=yes ;;
6884esac
6885 STRIP=$ac_ct_STRIP
6886 fi
d9898ee8 6887else
6888 STRIP="$ac_cv_prog_STRIP"
6889fi
6890
6891
6892old_CC="$CC"
6893old_CFLAGS="$CFLAGS"
6894
6895# Set sane defaults for various variables
6896test -z "$AR" && AR=ar
6897test -z "$AR_FLAGS" && AR_FLAGS=cru
6898test -z "$AS" && AS=as
6899test -z "$CC" && CC=cc
6900test -z "$LTCC" && LTCC=$CC
6901test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6902test -z "$DLLTOOL" && DLLTOOL=dlltool
6903test -z "$LD" && LD=ld
6904test -z "$LN_S" && LN_S="ln -s"
6905test -z "$MAGIC_CMD" && MAGIC_CMD=file
6906test -z "$NM" && NM=nm
6907test -z "$SED" && SED=sed
6908test -z "$OBJDUMP" && OBJDUMP=objdump
6909test -z "$RANLIB" && RANLIB=:
6910test -z "$STRIP" && STRIP=:
6911test -z "$ac_objext" && ac_objext=o
6912
6913# Determine commands to create old-style static archives.
6914old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6915old_postinstall_cmds='chmod 644 $oldlib'
6916old_postuninstall_cmds=
6917
6918if test -n "$RANLIB"; then
6919 case $host_os in
6920 openbsd*)
6921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6922 ;;
6923 *)
6924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6925 ;;
6926 esac
6927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6928fi
6929
6930for cc_temp in $compiler""; do
6931 case $cc_temp in
6932 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6933 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6934 \-*) ;;
6935 *) break;;
6936 esac
6937done
6938cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6939
6940
6941# Only perform the check for file, if the check method requires it
6942case $deplibs_check_method in
6943file_magic*)
6944 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
64ff59ba 6945 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6946echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 6947if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949else
6950 case $MAGIC_CMD in
6951[\\/*] | ?:[\\/]*)
6952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6953 ;;
6954*)
6955 lt_save_MAGIC_CMD="$MAGIC_CMD"
6956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6958 for ac_dir in $ac_dummy; do
6959 IFS="$lt_save_ifs"
6960 test -z "$ac_dir" && ac_dir=.
6961 if test -f $ac_dir/${ac_tool_prefix}file; then
6962 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6963 if test -n "$file_magic_test_file"; then
6964 case $deplibs_check_method in
6965 "file_magic "*)
6966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6969 $EGREP "$file_magic_regex" > /dev/null; then
6970 :
6971 else
6972 cat <<EOF 1>&2
6973
6974*** Warning: the command libtool uses to detect shared libraries,
6975*** $file_magic_cmd, produces output that libtool cannot recognize.
6976*** The result is that libtool may fail to recognize shared libraries
6977*** as such. This will affect the creation of libtool libraries that
6978*** depend on shared libraries, but programs linked with such libtool
6979*** libraries will work regardless of this problem. Nevertheless, you
6980*** may want to report the problem to your system manager and/or to
6981*** bug-libtool@gnu.org
6982
6983EOF
6984 fi ;;
6985 esac
6986 fi
6987 break
6988 fi
6989 done
6990 IFS="$lt_save_ifs"
6991 MAGIC_CMD="$lt_save_MAGIC_CMD"
6992 ;;
6993esac
6994fi
6995
6996MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997if test -n "$MAGIC_CMD"; then
64ff59ba 6998 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6999echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7000else
64ff59ba 7001 { echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6; }
d9898ee8 7003fi
7004
7005if test -z "$lt_cv_path_MAGIC_CMD"; then
7006 if test -n "$ac_tool_prefix"; then
64ff59ba 7007 { echo "$as_me:$LINENO: checking for file" >&5
7008echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7009if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 case $MAGIC_CMD in
7013[\\/*] | ?:[\\/]*)
7014 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7015 ;;
7016*)
7017 lt_save_MAGIC_CMD="$MAGIC_CMD"
7018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7020 for ac_dir in $ac_dummy; do
7021 IFS="$lt_save_ifs"
7022 test -z "$ac_dir" && ac_dir=.
7023 if test -f $ac_dir/file; then
7024 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7025 if test -n "$file_magic_test_file"; then
7026 case $deplibs_check_method in
7027 "file_magic "*)
7028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7031 $EGREP "$file_magic_regex" > /dev/null; then
7032 :
7033 else
7034 cat <<EOF 1>&2
7035
7036*** Warning: the command libtool uses to detect shared libraries,
7037*** $file_magic_cmd, produces output that libtool cannot recognize.
7038*** The result is that libtool may fail to recognize shared libraries
7039*** as such. This will affect the creation of libtool libraries that
7040*** depend on shared libraries, but programs linked with such libtool
7041*** libraries will work regardless of this problem. Nevertheless, you
7042*** may want to report the problem to your system manager and/or to
7043*** bug-libtool@gnu.org
7044
7045EOF
7046 fi ;;
7047 esac
7048 fi
7049 break
7050 fi
7051 done
7052 IFS="$lt_save_ifs"
7053 MAGIC_CMD="$lt_save_MAGIC_CMD"
7054 ;;
7055esac
7056fi
7057
7058MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7059if test -n "$MAGIC_CMD"; then
64ff59ba 7060 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7061echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7062else
64ff59ba 7063 { echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6; }
d9898ee8 7065fi
7066
7067 else
7068 MAGIC_CMD=:
7069 fi
7070fi
7071
7072 fi
7073 ;;
7074esac
7075
7076enable_dlopen=no
7077enable_win32_dll=no
7078
64ff59ba 7079# Check whether --enable-libtool-lock was given.
d9898ee8 7080if test "${enable_libtool_lock+set}" = set; then
64ff59ba 7081 enableval=$enable_libtool_lock;
7082fi
d9898ee8 7083
d9898ee8 7084test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7085
7086
64ff59ba 7087# Check whether --with-pic was given.
d9898ee8 7088if test "${with_pic+set}" = set; then
64ff59ba 7089 withval=$with_pic; pic_mode="$withval"
d9898ee8 7090else
7091 pic_mode=default
64ff59ba 7092fi
7093
d9898ee8 7094test -z "$pic_mode" && pic_mode=default
7095
7096# Use C for the default configuration in the libtool script
7097tagname=
7098lt_save_CC="$CC"
7099ac_ext=c
7100ac_cpp='$CPP $CPPFLAGS'
7101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103ac_compiler_gnu=$ac_cv_c_compiler_gnu
7104
7105
7106# Source file extension for C test sources.
7107ac_ext=c
7108
7109# Object file extension for compiled C test sources.
7110objext=o
7111objext=$objext
7112
7113# Code to be used in simple compile tests
7114lt_simple_compile_test_code="int some_variable = 0;\n"
7115
7116# Code to be used in simple link tests
7117lt_simple_link_test_code='int main(){return(0);}\n'
7118
7119
7120# If no C compiler was specified, use CC.
7121LTCC=${LTCC-"$CC"}
7122
7123# If no C compiler flags were specified, use CFLAGS.
7124LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7125
7126# Allow CC to be a program name with arguments.
7127compiler=$CC
7128
7129
7130# save warnings/boilerplate of simple test code
7131ac_outfile=conftest.$ac_objext
7132printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7134_lt_compiler_boilerplate=`cat conftest.err`
7135$rm conftest*
7136
7137ac_outfile=conftest.$ac_objext
7138printf "$lt_simple_link_test_code" >conftest.$ac_ext
7139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7140_lt_linker_boilerplate=`cat conftest.err`
7141$rm conftest*
7142
7143
7144
7145lt_prog_compiler_no_builtin_flag=
7146
7147if test "$GCC" = yes; then
7148 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7149
7150
64ff59ba 7151{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7152echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7153if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156 lt_cv_prog_compiler_rtti_exceptions=no
7157 ac_outfile=conftest.$ac_objext
7158 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7159 lt_compiler_flag="-fno-rtti -fno-exceptions"
7160 # Insert the option either (1) after the last *FLAGS variable, or
7161 # (2) before a word containing "conftest.", or (3) at the end.
7162 # Note that $ac_compile itself does not contain backslashes and begins
7163 # with a dollar sign (not a hyphen), so the echo should work correctly.
7164 # The option is referenced via a variable to avoid confusing sed.
7165 lt_compile=`echo "$ac_compile" | $SED \
7166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7168 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7169 (eval echo "\"\$as_me:7169: $lt_compile\"" >&5)
d9898ee8 7170 (eval "$lt_compile" 2>conftest.err)
7171 ac_status=$?
7172 cat conftest.err >&5
64ff59ba 7173 echo "$as_me:7173: \$? = $ac_status" >&5
d9898ee8 7174 if (exit $ac_status) && test -s "$ac_outfile"; then
7175 # The compiler can only warn and ignore the option if not recognized
7176 # So say no if there are warnings other than the usual output.
7177 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7180 lt_cv_prog_compiler_rtti_exceptions=yes
7181 fi
7182 fi
7183 $rm conftest*
7184
7185fi
64ff59ba 7186{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7187echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7188
7189if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7190 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7191else
7192 :
7193fi
7194
7195fi
7196
7197lt_prog_compiler_wl=
7198lt_prog_compiler_pic=
7199lt_prog_compiler_static=
7200
64ff59ba 7201{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7202echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7203
7204 if test "$GCC" = yes; then
7205 lt_prog_compiler_wl='-Wl,'
7206 lt_prog_compiler_static='-static'
7207
7208 case $host_os in
7209 aix*)
7210 # All AIX code is PIC.
7211 if test "$host_cpu" = ia64; then
7212 # AIX 5 now supports IA64 processor
7213 lt_prog_compiler_static='-Bstatic'
7214 fi
7215 ;;
7216
7217 amigaos*)
7218 # FIXME: we need at least 68020 code to build shared libraries, but
7219 # adding the `-m68020' flag to GCC prevents building anything better,
7220 # like `-m68040'.
7221 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7222 ;;
7223
7224 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7225 # PIC is the default for these OSes.
7226 ;;
7227
7228 mingw* | pw32* | os2*)
7229 # This hack is so that the source file can tell whether it is being
7230 # built for inclusion in a dll (and should export symbols for example).
7231 lt_prog_compiler_pic='-DDLL_EXPORT'
7232 ;;
7233
7234 darwin* | rhapsody*)
7235 # PIC is the default on this platform
7236 # Common symbols not allowed in MH_DYLIB files
7237 lt_prog_compiler_pic='-fno-common'
7238 ;;
7239
7240 interix3*)
7241 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7242 # Instead, we relocate shared libraries at runtime.
7243 ;;
7244
7245 msdosdjgpp*)
7246 # Just because we use GCC doesn't mean we suddenly get shared libraries
7247 # on systems that don't support them.
7248 lt_prog_compiler_can_build_shared=no
7249 enable_shared=no
7250 ;;
7251
7252 sysv4*MP*)
7253 if test -d /usr/nec; then
7254 lt_prog_compiler_pic=-Kconform_pic
7255 fi
7256 ;;
7257
7258 hpux*)
7259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7260 # not for PA HP-UX.
7261 case $host_cpu in
7262 hppa*64*|ia64*)
7263 # +Z the default
7264 ;;
7265 *)
7266 lt_prog_compiler_pic='-fPIC'
7267 ;;
7268 esac
7269 ;;
7270
7271 *)
7272 lt_prog_compiler_pic='-fPIC'
7273 ;;
7274 esac
7275 else
7276 # PORTME Check for flag to pass linker flags through the system compiler.
7277 case $host_os in
7278 aix*)
7279 lt_prog_compiler_wl='-Wl,'
7280 if test "$host_cpu" = ia64; then
7281 # AIX 5 now supports IA64 processor
7282 lt_prog_compiler_static='-Bstatic'
7283 else
7284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7285 fi
7286 ;;
7287 darwin*)
7288 # PIC is the default on this platform
7289 # Common symbols not allowed in MH_DYLIB files
7290 case $cc_basename in
7291 xlc*)
7292 lt_prog_compiler_pic='-qnocommon'
7293 lt_prog_compiler_wl='-Wl,'
7294 ;;
7295 esac
7296 ;;
7297
7298 mingw* | pw32* | os2*)
7299 # This hack is so that the source file can tell whether it is being
7300 # built for inclusion in a dll (and should export symbols for example).
7301 lt_prog_compiler_pic='-DDLL_EXPORT'
7302 ;;
7303
7304 hpux9* | hpux10* | hpux11*)
7305 lt_prog_compiler_wl='-Wl,'
7306 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7307 # not for PA HP-UX.
7308 case $host_cpu in
7309 hppa*64*|ia64*)
7310 # +Z the default
7311 ;;
7312 *)
7313 lt_prog_compiler_pic='+Z'
7314 ;;
7315 esac
7316 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7317 lt_prog_compiler_static='${wl}-a ${wl}archive'
7318 ;;
7319
7320 irix5* | irix6* | nonstopux*)
7321 lt_prog_compiler_wl='-Wl,'
7322 # PIC (with -KPIC) is the default.
7323 lt_prog_compiler_static='-non_shared'
7324 ;;
7325
7326 newsos6)
7327 lt_prog_compiler_pic='-KPIC'
7328 lt_prog_compiler_static='-Bstatic'
7329 ;;
7330
7331 linux*)
7332 case $cc_basename in
7333 icc* | ecc*)
7334 lt_prog_compiler_wl='-Wl,'
7335 lt_prog_compiler_pic='-KPIC'
7336 lt_prog_compiler_static='-static'
7337 ;;
7338 pgcc* | pgf77* | pgf90* | pgf95*)
7339 # Portland Group compilers (*not* the Pentium gcc compiler,
7340 # which looks to be a dead project)
7341 lt_prog_compiler_wl='-Wl,'
7342 lt_prog_compiler_pic='-fpic'
7343 lt_prog_compiler_static='-Bstatic'
7344 ;;
7345 ccc*)
7346 lt_prog_compiler_wl='-Wl,'
7347 # All Alpha code is PIC.
7348 lt_prog_compiler_static='-non_shared'
7349 ;;
7350 esac
7351 ;;
7352
7353 osf3* | osf4* | osf5*)
7354 lt_prog_compiler_wl='-Wl,'
7355 # All OSF/1 code is PIC.
7356 lt_prog_compiler_static='-non_shared'
7357 ;;
7358
7359 solaris*)
7360 lt_prog_compiler_pic='-KPIC'
7361 lt_prog_compiler_static='-Bstatic'
7362 case $cc_basename in
7363 f77* | f90* | f95*)
7364 lt_prog_compiler_wl='-Qoption ld ';;
7365 *)
7366 lt_prog_compiler_wl='-Wl,';;
7367 esac
7368 ;;
7369
7370 sunos4*)
7371 lt_prog_compiler_wl='-Qoption ld '
7372 lt_prog_compiler_pic='-PIC'
7373 lt_prog_compiler_static='-Bstatic'
7374 ;;
7375
7376 sysv4 | sysv4.2uw2* | sysv4.3*)
7377 lt_prog_compiler_wl='-Wl,'
7378 lt_prog_compiler_pic='-KPIC'
7379 lt_prog_compiler_static='-Bstatic'
7380 ;;
7381
7382 sysv4*MP*)
7383 if test -d /usr/nec ;then
7384 lt_prog_compiler_pic='-Kconform_pic'
7385 lt_prog_compiler_static='-Bstatic'
7386 fi
7387 ;;
7388
7389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7390 lt_prog_compiler_wl='-Wl,'
7391 lt_prog_compiler_pic='-KPIC'
7392 lt_prog_compiler_static='-Bstatic'
7393 ;;
7394
7395 unicos*)
7396 lt_prog_compiler_wl='-Wl,'
7397 lt_prog_compiler_can_build_shared=no
7398 ;;
7399
7400 uts4*)
7401 lt_prog_compiler_pic='-pic'
7402 lt_prog_compiler_static='-Bstatic'
7403 ;;
7404
7405 *)
7406 lt_prog_compiler_can_build_shared=no
7407 ;;
7408 esac
7409 fi
7410
64ff59ba 7411{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7412echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7413
7414#
7415# Check to make sure the PIC flag actually works.
7416#
7417if test -n "$lt_prog_compiler_pic"; then
7418
64ff59ba 7419{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7420echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7421if test "${lt_prog_compiler_pic_works+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7423else
7424 lt_prog_compiler_pic_works=no
7425 ac_outfile=conftest.$ac_objext
7426 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7427 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7428 # Insert the option either (1) after the last *FLAGS variable, or
7429 # (2) before a word containing "conftest.", or (3) at the end.
7430 # Note that $ac_compile itself does not contain backslashes and begins
7431 # with a dollar sign (not a hyphen), so the echo should work correctly.
7432 # The option is referenced via a variable to avoid confusing sed.
7433 lt_compile=`echo "$ac_compile" | $SED \
7434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7436 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7437 (eval echo "\"\$as_me:7437: $lt_compile\"" >&5)
d9898ee8 7438 (eval "$lt_compile" 2>conftest.err)
7439 ac_status=$?
7440 cat conftest.err >&5
64ff59ba 7441 echo "$as_me:7441: \$? = $ac_status" >&5
d9898ee8 7442 if (exit $ac_status) && test -s "$ac_outfile"; then
7443 # The compiler can only warn and ignore the option if not recognized
7444 # So say no if there are warnings other than the usual output.
7445 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7447 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7448 lt_prog_compiler_pic_works=yes
7449 fi
7450 fi
7451 $rm conftest*
7452
7453fi
64ff59ba 7454{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7455echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7456
7457if test x"$lt_prog_compiler_pic_works" = xyes; then
7458 case $lt_prog_compiler_pic in
7459 "" | " "*) ;;
7460 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7461 esac
7462else
7463 lt_prog_compiler_pic=
7464 lt_prog_compiler_can_build_shared=no
7465fi
7466
7467fi
7468case $host_os in
7469 # For platforms which do not support PIC, -DPIC is meaningless:
7470 *djgpp*)
7471 lt_prog_compiler_pic=
7472 ;;
7473 *)
7474 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7475 ;;
7476esac
7477
7478#
7479# Check to make sure the static flag actually works.
7480#
7481wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
64ff59ba 7482{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7483echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7484if test "${lt_prog_compiler_static_works+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7486else
7487 lt_prog_compiler_static_works=no
7488 save_LDFLAGS="$LDFLAGS"
7489 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7490 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7491 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7492 # The linker can only warn and ignore the option if not recognized
7493 # So say no if there are warnings
7494 if test -s conftest.err; then
7495 # Append any errors to the config.log.
7496 cat conftest.err 1>&5
7497 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7499 if diff conftest.exp conftest.er2 >/dev/null; then
7500 lt_prog_compiler_static_works=yes
7501 fi
7502 else
7503 lt_prog_compiler_static_works=yes
7504 fi
7505 fi
7506 $rm conftest*
7507 LDFLAGS="$save_LDFLAGS"
7508
7509fi
64ff59ba 7510{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7511echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7512
7513if test x"$lt_prog_compiler_static_works" = xyes; then
7514 :
7515else
7516 lt_prog_compiler_static=
7517fi
7518
7519
64ff59ba 7520{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7521echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7522if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524else
7525 lt_cv_prog_compiler_c_o=no
7526 $rm -r conftest 2>/dev/null
7527 mkdir conftest
7528 cd conftest
7529 mkdir out
7530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7531
7532 lt_compiler_flag="-o out/conftest2.$ac_objext"
7533 # Insert the option either (1) after the last *FLAGS variable, or
7534 # (2) before a word containing "conftest.", or (3) at the end.
7535 # Note that $ac_compile itself does not contain backslashes and begins
7536 # with a dollar sign (not a hyphen), so the echo should work correctly.
7537 lt_compile=`echo "$ac_compile" | $SED \
7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540 -e 's:$: $lt_compiler_flag:'`
64ff59ba 7541 (eval echo "\"\$as_me:7541: $lt_compile\"" >&5)
d9898ee8 7542 (eval "$lt_compile" 2>out/conftest.err)
7543 ac_status=$?
7544 cat out/conftest.err >&5
64ff59ba 7545 echo "$as_me:7545: \$? = $ac_status" >&5
d9898ee8 7546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7547 then
7548 # The compiler can only warn and ignore the option if not recognized
7549 # So say no if there are warnings
7550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7551 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7552 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7553 lt_cv_prog_compiler_c_o=yes
7554 fi
7555 fi
7556 chmod u+w . 2>&5
7557 $rm conftest*
7558 # SGI C++ compiler will create directory out/ii_files/ for
7559 # template instantiation
7560 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7561 $rm out/* && rmdir out
7562 cd ..
7563 rmdir conftest
7564 $rm conftest*
7565
7566fi
64ff59ba 7567{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7568echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7569
7570
7571hard_links="nottested"
7572if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7573 # do not overwrite the value of need_locks provided by the user
64ff59ba 7574 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7575echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7576 hard_links=yes
7577 $rm conftest*
7578 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7579 touch conftest.a
7580 ln conftest.a conftest.b 2>&5 || hard_links=no
7581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 7582 { echo "$as_me:$LINENO: result: $hard_links" >&5
7583echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7584 if test "$hard_links" = no; then
7585 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7586echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7587 need_locks=warn
7588 fi
7589else
7590 need_locks=no
7591fi
7592
64ff59ba 7593{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7594echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7595
7596 runpath_var=
7597 allow_undefined_flag=
7598 enable_shared_with_static_runtimes=no
7599 archive_cmds=
7600 archive_expsym_cmds=
7601 old_archive_From_new_cmds=
7602 old_archive_from_expsyms_cmds=
7603 export_dynamic_flag_spec=
7604 whole_archive_flag_spec=
7605 thread_safe_flag_spec=
7606 hardcode_libdir_flag_spec=
7607 hardcode_libdir_flag_spec_ld=
7608 hardcode_libdir_separator=
7609 hardcode_direct=no
7610 hardcode_minus_L=no
7611 hardcode_shlibpath_var=unsupported
7612 link_all_deplibs=unknown
7613 hardcode_automatic=no
7614 module_cmds=
7615 module_expsym_cmds=
7616 always_export_symbols=no
7617 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7618 # include_expsyms should be a list of space-separated symbols to be *always*
7619 # included in the symbol list
7620 include_expsyms=
7621 # exclude_expsyms can be an extended regexp of symbols to exclude
7622 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7623 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7624 # as well as any symbol that contains `d'.
7625 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7626 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7627 # platforms (ab)use it in PIC code, but their linkers get confused if
7628 # the symbol is explicitly referenced. Since portable code cannot
7629 # rely on this symbol name, it's probably fine to never include it in
7630 # preloaded symbol tables.
7631 extract_expsyms_cmds=
7632 # Just being paranoid about ensuring that cc_basename is set.
7633 for cc_temp in $compiler""; do
7634 case $cc_temp in
7635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7637 \-*) ;;
7638 *) break;;
7639 esac
7640done
7641cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7642
7643 case $host_os in
7644 cygwin* | mingw* | pw32*)
7645 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7646 # When not using gcc, we currently assume that we are using
7647 # Microsoft Visual C++.
7648 if test "$GCC" != yes; then
7649 with_gnu_ld=no
7650 fi
7651 ;;
7652 interix*)
7653 # we just hope/assume this is gcc and not c89 (= MSVC++)
7654 with_gnu_ld=yes
7655 ;;
7656 openbsd*)
7657 with_gnu_ld=no
7658 ;;
7659 esac
7660
7661 ld_shlibs=yes
7662 if test "$with_gnu_ld" = yes; then
7663 # If archive_cmds runs LD, not CC, wlarc should be empty
7664 wlarc='${wl}'
7665
7666 # Set some defaults for GNU ld with shared library support. These
7667 # are reset later if shared libraries are not supported. Putting them
7668 # here allows them to be overridden if necessary.
7669 runpath_var=LD_RUN_PATH
7670 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7671 export_dynamic_flag_spec='${wl}--export-dynamic'
7672 # ancient GNU ld didn't support --whole-archive et. al.
7673 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7674 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7675 else
7676 whole_archive_flag_spec=
7677 fi
7678 supports_anon_versioning=no
7679 case `$LD -v 2>/dev/null` in
7680 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7681 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7682 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7683 *\ 2.11.*) ;; # other 2.11 versions
7684 *) supports_anon_versioning=yes ;;
7685 esac
7686
7687 # See if GNU ld supports shared libraries.
7688 case $host_os in
7689 aix3* | aix4* | aix5*)
7690 # On AIX/PPC, the GNU linker is very broken
7691 if test "$host_cpu" != ia64; then
7692 ld_shlibs=no
7693 cat <<EOF 1>&2
7694
7695*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7696*** to be unable to reliably create shared libraries on AIX.
7697*** Therefore, libtool is disabling shared libraries support. If you
7698*** really care for shared libraries, you may want to modify your PATH
7699*** so that a non-GNU linker is found, and then restart.
7700
7701EOF
7702 fi
7703 ;;
7704
7705 amigaos*)
7706 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)'
7707 hardcode_libdir_flag_spec='-L$libdir'
7708 hardcode_minus_L=yes
7709
7710 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7711 # that the semantics of dynamic libraries on AmigaOS, at least up
7712 # to version 4, is to share data among multiple programs linked
7713 # with the same dynamic library. Since this doesn't match the
7714 # behavior of shared libraries on other platforms, we can't use
7715 # them.
7716 ld_shlibs=no
7717 ;;
7718
7719 beos*)
7720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7721 allow_undefined_flag=unsupported
7722 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7723 # support --undefined. This deserves some investigation. FIXME
7724 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7725 else
7726 ld_shlibs=no
7727 fi
7728 ;;
7729
7730 cygwin* | mingw* | pw32*)
7731 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7732 # as there is no search path for DLLs.
7733 hardcode_libdir_flag_spec='-L$libdir'
7734 allow_undefined_flag=unsupported
7735 always_export_symbols=no
7736 enable_shared_with_static_runtimes=yes
7737 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7738
7739 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7741 # If the export-symbols file already is a .def file (1st line
7742 # is EXPORTS), use it as is; otherwise, prepend...
7743 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7744 cp $export_symbols $output_objdir/$soname.def;
7745 else
7746 echo EXPORTS > $output_objdir/$soname.def;
7747 cat $export_symbols >> $output_objdir/$soname.def;
7748 fi~
7749 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7750 else
7751 ld_shlibs=no
7752 fi
7753 ;;
7754
7755 interix3*)
7756 hardcode_direct=no
7757 hardcode_shlibpath_var=no
7758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7759 export_dynamic_flag_spec='${wl}-E'
7760 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7761 # Instead, shared libraries are loaded at an image base (0x10000000 by
7762 # default) and relocated if they conflict, which is a slow very memory
7763 # consuming and fragmenting process. To avoid this, we pick a random,
7764 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7765 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7767 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'
7768 ;;
7769
7770 linux*)
7771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7772 tmp_addflag=
7773 case $cc_basename,$host_cpu in
7774 pgcc*) # Portland Group C compiler
7775 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'
7776 tmp_addflag=' $pic_flag'
7777 ;;
7778 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7779 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'
7780 tmp_addflag=' $pic_flag -Mnomain' ;;
7781 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7782 tmp_addflag=' -i_dynamic' ;;
7783 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7784 tmp_addflag=' -i_dynamic -nofor_main' ;;
7785 ifc* | ifort*) # Intel Fortran compiler
7786 tmp_addflag=' -nofor_main' ;;
7787 esac
7788 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7789
7790 if test $supports_anon_versioning = yes; then
7791 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7792 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7793 $echo "local: *; };" >> $output_objdir/$libname.ver~
7794 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7795 fi
7796 else
7797 ld_shlibs=no
7798 fi
7799 ;;
7800
7801 netbsd*)
7802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7803 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7804 wlarc=
7805 else
7806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7807 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7808 fi
7809 ;;
7810
7811 solaris*)
7812 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7813 ld_shlibs=no
7814 cat <<EOF 1>&2
7815
7816*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7817*** create shared libraries on Solaris systems. Therefore, libtool
7818*** is disabling shared libraries support. We urge you to upgrade GNU
7819*** binutils to release 2.9.1 or newer. Another option is to modify
7820*** your PATH or compiler configuration so that the native linker is
7821*** used, and then restart.
7822
7823EOF
7824 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7827 else
7828 ld_shlibs=no
7829 fi
7830 ;;
7831
7832 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7833 case `$LD -v 2>&1` in
7834 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7835 ld_shlibs=no
7836 cat <<_LT_EOF 1>&2
7837
7838*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7839*** reliably create shared libraries on SCO systems. Therefore, libtool
7840*** is disabling shared libraries support. We urge you to upgrade GNU
7841*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7842*** your PATH or compiler configuration so that the native linker is
7843*** used, and then restart.
7844
7845_LT_EOF
7846 ;;
7847 *)
7848 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7849 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7852 else
7853 ld_shlibs=no
7854 fi
7855 ;;
7856 esac
7857 ;;
7858
7859 sunos4*)
7860 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7861 wlarc=
7862 hardcode_direct=yes
7863 hardcode_shlibpath_var=no
7864 ;;
7865
7866 *)
7867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7868 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7869 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7870 else
7871 ld_shlibs=no
7872 fi
7873 ;;
7874 esac
7875
7876 if test "$ld_shlibs" = no; then
7877 runpath_var=
7878 hardcode_libdir_flag_spec=
7879 export_dynamic_flag_spec=
7880 whole_archive_flag_spec=
7881 fi
7882 else
7883 # PORTME fill in a description of your system's linker (not GNU ld)
7884 case $host_os in
7885 aix3*)
7886 allow_undefined_flag=unsupported
7887 always_export_symbols=yes
7888 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'
7889 # Note: this linker hardcodes the directories in LIBPATH if there
7890 # are no directories specified by -L.
7891 hardcode_minus_L=yes
7892 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7893 # Neither direct hardcoding nor static linking is supported with a
7894 # broken collect2.
7895 hardcode_direct=unsupported
7896 fi
7897 ;;
7898
7899 aix4* | aix5*)
7900 if test "$host_cpu" = ia64; then
7901 # On IA64, the linker does run time linking by default, so we don't
7902 # have to do anything special.
7903 aix_use_runtimelinking=no
7904 exp_sym_flag='-Bexport'
7905 no_entry_flag=""
7906 else
7907 # If we're using GNU nm, then we don't want the "-C" option.
7908 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7909 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7910 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'
7911 else
7912 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'
7913 fi
7914 aix_use_runtimelinking=no
7915
7916 # Test if we are trying to use run time linking or normal
7917 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7918 # need to do runtime linking.
7919 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7920 for ld_flag in $LDFLAGS; do
7921 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7922 aix_use_runtimelinking=yes
7923 break
7924 fi
7925 done
7926 ;;
7927 esac
7928
7929 exp_sym_flag='-bexport'
7930 no_entry_flag='-bnoentry'
7931 fi
7932
7933 # When large executables or shared objects are built, AIX ld can
7934 # have problems creating the table of contents. If linking a library
7935 # or program results in "error TOC overflow" add -mminimal-toc to
7936 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7937 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7938
7939 archive_cmds=''
7940 hardcode_direct=yes
7941 hardcode_libdir_separator=':'
7942 link_all_deplibs=yes
7943
7944 if test "$GCC" = yes; then
7945 case $host_os in aix4.[012]|aix4.[012].*)
7946 # We only want to do this on AIX 4.2 and lower, the check
7947 # below for broken collect2 doesn't work under 4.3+
7948 collect2name=`${CC} -print-prog-name=collect2`
7949 if test -f "$collect2name" && \
7950 strings "$collect2name" | grep resolve_lib_name >/dev/null
7951 then
7952 # We have reworked collect2
7953 hardcode_direct=yes
7954 else
7955 # We have old collect2
7956 hardcode_direct=unsupported
7957 # It fails to find uninstalled libraries when the uninstalled
7958 # path is not listed in the libpath. Setting hardcode_minus_L
7959 # to unsupported forces relinking
7960 hardcode_minus_L=yes
7961 hardcode_libdir_flag_spec='-L$libdir'
7962 hardcode_libdir_separator=
7963 fi
7964 ;;
7965 esac
7966 shared_flag='-shared'
7967 if test "$aix_use_runtimelinking" = yes; then
7968 shared_flag="$shared_flag "'${wl}-G'
7969 fi
7970 else
7971 # not using gcc
7972 if test "$host_cpu" = ia64; then
7973 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7974 # chokes on -Wl,-G. The following line is correct:
7975 shared_flag='-G'
7976 else
7977 if test "$aix_use_runtimelinking" = yes; then
7978 shared_flag='${wl}-G'
7979 else
7980 shared_flag='${wl}-bM:SRE'
7981 fi
7982 fi
7983 fi
7984
7985 # It seems that -bexpall does not export symbols beginning with
7986 # underscore (_), so it is better to generate a list of symbols to export.
7987 always_export_symbols=yes
7988 if test "$aix_use_runtimelinking" = yes; then
7989 # Warning - without using the other runtime loading flags (-brtl),
7990 # -berok will link without error, but may produce a broken library.
7991 allow_undefined_flag='-berok'
7992 # Determine the default libpath from the value encoded in an empty executable.
7993 cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
7999
8000int
8001main ()
8002{
8003
8004 ;
8005 return 0;
8006}
8007_ACEOF
8008rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8009if { (ac_try="$ac_link"
8010case "(($ac_try" in
8011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8012 *) ac_try_echo=$ac_try;;
8013esac
8014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8015 (eval "$ac_link") 2>conftest.er1
d9898ee8 8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8021 (exit $ac_status); } && {
8022 test -z "$ac_c_werror_flag" ||
8023 test ! -s conftest.err
8024 } && test -s conftest$ac_exeext &&
8025 $as_test_x conftest$ac_exeext; then
d9898ee8 8026
8027aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8028}'`
8029# Check for a 64-bit object if we didn't find anything.
8030if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8031}'`; fi
8032else
8033 echo "$as_me: failed program was:" >&5
8034sed 's/^/| /' conftest.$ac_ext >&5
8035
64ff59ba 8036
d9898ee8 8037fi
64ff59ba 8038
8039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8040 conftest$ac_exeext conftest.$ac_ext
8041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8042
8043 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8044 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"
8045 else
8046 if test "$host_cpu" = ia64; then
8047 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8048 allow_undefined_flag="-z nodefs"
8049 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"
8050 else
8051 # Determine the default libpath from the value encoded in an empty executable.
8052 cat >conftest.$ac_ext <<_ACEOF
8053/* confdefs.h. */
8054_ACEOF
8055cat confdefs.h >>conftest.$ac_ext
8056cat >>conftest.$ac_ext <<_ACEOF
8057/* end confdefs.h. */
8058
8059int
8060main ()
8061{
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 8068if { (ac_try="$ac_link"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_link") 2>conftest.er1
d9898ee8 8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest$ac_exeext &&
8084 $as_test_x conftest$ac_exeext; then
d9898ee8 8085
8086aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8087}'`
8088# Check for a 64-bit object if we didn't find anything.
8089if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8090}'`; fi
8091else
8092 echo "$as_me: failed program was:" >&5
8093sed 's/^/| /' conftest.$ac_ext >&5
8094
64ff59ba 8095
d9898ee8 8096fi
64ff59ba 8097
8098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8099 conftest$ac_exeext conftest.$ac_ext
8100if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8101
8102 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8103 # Warning - without using the other run time loading flags,
8104 # -berok will link without error, but may produce a broken library.
8105 no_undefined_flag=' ${wl}-bernotok'
8106 allow_undefined_flag=' ${wl}-berok'
8107 # Exported symbols can be pulled into shared objects from archives
8108 whole_archive_flag_spec='$convenience'
8109 archive_cmds_need_lc=yes
8110 # This is similar to how AIX traditionally builds its shared libraries.
8111 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'
8112 fi
8113 fi
8114 ;;
8115
8116 amigaos*)
8117 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)'
8118 hardcode_libdir_flag_spec='-L$libdir'
8119 hardcode_minus_L=yes
8120 # see comment about different semantics on the GNU ld section
8121 ld_shlibs=no
8122 ;;
8123
8124 bsdi[45]*)
8125 export_dynamic_flag_spec=-rdynamic
8126 ;;
8127
8128 cygwin* | mingw* | pw32*)
8129 # When not using gcc, we currently assume that we are using
8130 # Microsoft Visual C++.
8131 # hardcode_libdir_flag_spec is actually meaningless, as there is
8132 # no search path for DLLs.
8133 hardcode_libdir_flag_spec=' '
8134 allow_undefined_flag=unsupported
8135 # Tell ltmain to make .lib files, not .a files.
8136 libext=lib
8137 # Tell ltmain to make .dll files, not .so files.
8138 shrext_cmds=".dll"
8139 # FIXME: Setting linknames here is a bad hack.
8140 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8141 # The linker will automatically build a .lib file if we build a DLL.
8142 old_archive_From_new_cmds='true'
8143 # FIXME: Should let the user specify the lib program.
8144 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8145 fix_srcfile_path='`cygpath -w "$srcfile"`'
8146 enable_shared_with_static_runtimes=yes
8147 ;;
8148
8149 darwin* | rhapsody*)
8150 case $host_os in
8151 rhapsody* | darwin1.[012])
8152 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8153 ;;
8154 *) # Darwin 1.3 on
8155 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8156 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8157 else
8158 case ${MACOSX_DEPLOYMENT_TARGET} in
8159 10.[012])
8160 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8161 ;;
8162 10.*)
8163 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8164 ;;
8165 esac
8166 fi
8167 ;;
8168 esac
8169 archive_cmds_need_lc=no
8170 hardcode_direct=no
8171 hardcode_automatic=yes
8172 hardcode_shlibpath_var=unsupported
8173 whole_archive_flag_spec=''
8174 link_all_deplibs=yes
8175 if test "$GCC" = yes ; then
8176 output_verbose_link_cmd='echo'
8177 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8178 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8179 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8180 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}'
8181 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}'
8182 else
8183 case $cc_basename in
8184 xlc*)
8185 output_verbose_link_cmd='echo'
8186 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8187 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8188 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8189 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8190 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}'
8191 ;;
8192 *)
8193 ld_shlibs=no
8194 ;;
8195 esac
8196 fi
8197 ;;
8198
8199 dgux*)
8200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8201 hardcode_libdir_flag_spec='-L$libdir'
8202 hardcode_shlibpath_var=no
8203 ;;
8204
8205 freebsd1*)
8206 ld_shlibs=no
8207 ;;
8208
8209 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8210 # support. Future versions do this automatically, but an explicit c++rt0.o
8211 # does not break anything, and helps significantly (at the cost of a little
8212 # extra space).
8213 freebsd2.2*)
8214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8215 hardcode_libdir_flag_spec='-R$libdir'
8216 hardcode_direct=yes
8217 hardcode_shlibpath_var=no
8218 ;;
8219
8220 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8221 freebsd2*)
8222 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8223 hardcode_direct=yes
8224 hardcode_minus_L=yes
8225 hardcode_shlibpath_var=no
8226 ;;
8227
8228 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8229 freebsd* | kfreebsd*-gnu | dragonfly*)
8230 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8231 hardcode_libdir_flag_spec='-R$libdir'
8232 hardcode_direct=yes
8233 hardcode_shlibpath_var=no
8234 ;;
8235
8236 hpux9*)
8237 if test "$GCC" = yes; then
8238 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'
8239 else
8240 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'
8241 fi
8242 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8243 hardcode_libdir_separator=:
8244 hardcode_direct=yes
8245
8246 # hardcode_minus_L: Not really in the search PATH,
8247 # but as the default location of the library.
8248 hardcode_minus_L=yes
8249 export_dynamic_flag_spec='${wl}-E'
8250 ;;
8251
8252 hpux10*)
8253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8254 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8255 else
8256 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8257 fi
8258 if test "$with_gnu_ld" = no; then
8259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8260 hardcode_libdir_separator=:
8261
8262 hardcode_direct=yes
8263 export_dynamic_flag_spec='${wl}-E'
8264
8265 # hardcode_minus_L: Not really in the search PATH,
8266 # but as the default location of the library.
8267 hardcode_minus_L=yes
8268 fi
8269 ;;
8270
8271 hpux11*)
8272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8273 case $host_cpu in
8274 hppa*64*)
8275 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8276 ;;
8277 ia64*)
8278 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8279 ;;
8280 *)
8281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8282 ;;
8283 esac
8284 else
8285 case $host_cpu in
8286 hppa*64*)
8287 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8288 ;;
8289 ia64*)
8290 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8291 ;;
8292 *)
8293 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8294 ;;
8295 esac
8296 fi
8297 if test "$with_gnu_ld" = no; then
8298 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8299 hardcode_libdir_separator=:
8300
8301 case $host_cpu in
8302 hppa*64*|ia64*)
8303 hardcode_libdir_flag_spec_ld='+b $libdir'
8304 hardcode_direct=no
8305 hardcode_shlibpath_var=no
8306 ;;
8307 *)
8308 hardcode_direct=yes
8309 export_dynamic_flag_spec='${wl}-E'
8310
8311 # hardcode_minus_L: Not really in the search PATH,
8312 # but as the default location of the library.
8313 hardcode_minus_L=yes
8314 ;;
8315 esac
8316 fi
8317 ;;
8318
8319 irix5* | irix6* | nonstopux*)
8320 if test "$GCC" = yes; then
8321 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'
8322 else
8323 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'
8324 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8325 fi
8326 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8327 hardcode_libdir_separator=:
8328 link_all_deplibs=yes
8329 ;;
8330
8331 netbsd*)
8332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8334 else
8335 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8336 fi
8337 hardcode_libdir_flag_spec='-R$libdir'
8338 hardcode_direct=yes
8339 hardcode_shlibpath_var=no
8340 ;;
8341
8342 newsos6)
8343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8344 hardcode_direct=yes
8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346 hardcode_libdir_separator=:
8347 hardcode_shlibpath_var=no
8348 ;;
8349
8350 openbsd*)
8351 hardcode_direct=yes
8352 hardcode_shlibpath_var=no
8353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8355 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8357 export_dynamic_flag_spec='${wl}-E'
8358 else
8359 case $host_os in
8360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8362 hardcode_libdir_flag_spec='-R$libdir'
8363 ;;
8364 *)
8365 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8367 ;;
8368 esac
8369 fi
8370 ;;
8371
8372 os2*)
8373 hardcode_libdir_flag_spec='-L$libdir'
8374 hardcode_minus_L=yes
8375 allow_undefined_flag=unsupported
8376 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'
8377 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8378 ;;
8379
8380 osf3*)
8381 if test "$GCC" = yes; then
8382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8383 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'
8384 else
8385 allow_undefined_flag=' -expect_unresolved \*'
8386 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'
8387 fi
8388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8389 hardcode_libdir_separator=:
8390 ;;
8391
8392 osf4* | osf5*) # as osf3* with the addition of -msym flag
8393 if test "$GCC" = yes; then
8394 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8395 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'
8396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8397 else
8398 allow_undefined_flag=' -expect_unresolved \*'
8399 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'
8400 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8401 $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'
8402
8403 # Both c and cxx compiler support -rpath directly
8404 hardcode_libdir_flag_spec='-rpath $libdir'
8405 fi
8406 hardcode_libdir_separator=:
8407 ;;
8408
8409 solaris*)
8410 no_undefined_flag=' -z text'
8411 if test "$GCC" = yes; then
8412 wlarc='${wl}'
8413 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8414 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8415 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8416 else
8417 wlarc=''
8418 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8419 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8420 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8421 fi
8422 hardcode_libdir_flag_spec='-R$libdir'
8423 hardcode_shlibpath_var=no
8424 case $host_os in
8425 solaris2.[0-5] | solaris2.[0-5].*) ;;
8426 *)
8427 # The compiler driver will combine linker options so we
8428 # cannot just pass the convience library names through
8429 # without $wl, iff we do not link with $LD.
8430 # Luckily, gcc supports the same syntax we need for Sun Studio.
8431 # Supported since Solaris 2.6 (maybe 2.5.1?)
8432 case $wlarc in
8433 '')
8434 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8435 *)
8436 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8437 esac ;;
8438 esac
8439 link_all_deplibs=yes
8440 ;;
8441
8442 sunos4*)
8443 if test "x$host_vendor" = xsequent; then
8444 # Use $CC to link under sequent, because it throws in some extra .o
8445 # files that make .init and .fini sections work.
8446 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8447 else
8448 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8449 fi
8450 hardcode_libdir_flag_spec='-L$libdir'
8451 hardcode_direct=yes
8452 hardcode_minus_L=yes
8453 hardcode_shlibpath_var=no
8454 ;;
8455
8456 sysv4)
8457 case $host_vendor in
8458 sni)
8459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8460 hardcode_direct=yes # is this really true???
8461 ;;
8462 siemens)
8463 ## LD is ld it makes a PLAMLIB
8464 ## CC just makes a GrossModule.
8465 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8466 reload_cmds='$CC -r -o $output$reload_objs'
8467 hardcode_direct=no
8468 ;;
8469 motorola)
8470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8471 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8472 ;;
8473 esac
8474 runpath_var='LD_RUN_PATH'
8475 hardcode_shlibpath_var=no
8476 ;;
8477
8478 sysv4.3*)
8479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8480 hardcode_shlibpath_var=no
8481 export_dynamic_flag_spec='-Bexport'
8482 ;;
8483
8484 sysv4*MP*)
8485 if test -d /usr/nec; then
8486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8487 hardcode_shlibpath_var=no
8488 runpath_var=LD_RUN_PATH
8489 hardcode_runpath_var=yes
8490 ld_shlibs=yes
8491 fi
8492 ;;
8493
8494 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8495 no_undefined_flag='${wl}-z,text'
8496 archive_cmds_need_lc=no
8497 hardcode_shlibpath_var=no
8498 runpath_var='LD_RUN_PATH'
8499
8500 if test "$GCC" = yes; then
8501 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8502 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8503 else
8504 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8505 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8506 fi
8507 ;;
8508
8509 sysv5* | sco3.2v5* | sco5v6*)
8510 # Note: We can NOT use -z defs as we might desire, because we do not
8511 # link with -lc, and that would cause any symbols used from libc to
8512 # always be unresolved, which means just about no library would
8513 # ever link correctly. If we're not using GNU ld we use -z text
8514 # though, which does catch some bad symbols but isn't as heavy-handed
8515 # as -z defs.
8516 no_undefined_flag='${wl}-z,text'
8517 allow_undefined_flag='${wl}-z,nodefs'
8518 archive_cmds_need_lc=no
8519 hardcode_shlibpath_var=no
8520 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8521 hardcode_libdir_separator=':'
8522 link_all_deplibs=yes
8523 export_dynamic_flag_spec='${wl}-Bexport'
8524 runpath_var='LD_RUN_PATH'
8525
8526 if test "$GCC" = yes; then
8527 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8529 else
8530 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 fi
8533 ;;
8534
8535 uts4*)
8536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8537 hardcode_libdir_flag_spec='-L$libdir'
8538 hardcode_shlibpath_var=no
8539 ;;
8540
8541 *)
8542 ld_shlibs=no
8543 ;;
8544 esac
8545 fi
8546
64ff59ba 8547{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8548echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8549test "$ld_shlibs" = no && can_build_shared=no
8550
8551#
8552# Do we need to explicitly link libc?
8553#
8554case "x$archive_cmds_need_lc" in
8555x|xyes)
8556 # Assume -lc should be added
8557 archive_cmds_need_lc=yes
8558
8559 if test "$enable_shared" = yes && test "$GCC" = yes; then
8560 case $archive_cmds in
8561 *'~'*)
8562 # FIXME: we may have to deal with multi-command sequences.
8563 ;;
8564 '$CC '*)
8565 # Test whether the compiler implicitly links with -lc since on some
8566 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8567 # to ld, don't add -lc before -lgcc.
64ff59ba 8568 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8569echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8570 $rm conftest*
8571 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8572
8573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8574 (eval $ac_compile) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } 2>conftest.err; then
8578 soname=conftest
8579 lib=conftest
8580 libobjs=conftest.$ac_objext
8581 deplibs=
8582 wl=$lt_prog_compiler_wl
8583 pic_flag=$lt_prog_compiler_pic
8584 compiler_flags=-v
8585 linker_flags=-v
8586 verstring=
8587 output_objdir=.
8588 libname=conftest
8589 lt_save_allow_undefined_flag=$allow_undefined_flag
8590 allow_undefined_flag=
8591 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8592 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8593 ac_status=$?
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }
8596 then
8597 archive_cmds_need_lc=no
8598 else
8599 archive_cmds_need_lc=yes
8600 fi
8601 allow_undefined_flag=$lt_save_allow_undefined_flag
8602 else
8603 cat conftest.err 1>&5
8604 fi
8605 $rm conftest*
64ff59ba 8606 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8607echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8608 ;;
8609 esac
8610 fi
8611 ;;
8612esac
8613
64ff59ba 8614{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8615echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8616library_names_spec=
8617libname_spec='lib$name'
8618soname_spec=
8619shrext_cmds=".so"
8620postinstall_cmds=
8621postuninstall_cmds=
8622finish_cmds=
8623finish_eval=
8624shlibpath_var=
8625shlibpath_overrides_runpath=unknown
8626version_type=none
8627dynamic_linker="$host_os ld.so"
8628sys_lib_dlsearch_path_spec="/lib /usr/lib"
8629if test "$GCC" = yes; then
8630 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8631 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8632 # if the path contains ";" then we assume it to be the separator
8633 # otherwise default to the standard path separator (i.e. ":") - it is
8634 # assumed that no part of a normal pathname contains ";" but that should
8635 # okay in the real world where ";" in dirpaths is itself problematic.
8636 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8637 else
8638 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8639 fi
8640else
8641 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8642fi
8643need_lib_prefix=unknown
8644hardcode_into_libs=no
8645
8646# when you set need_version to no, make sure it does not cause -set_version
8647# flags to be left without arguments
8648need_version=unknown
8649
8650case $host_os in
8651aix3*)
8652 version_type=linux
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8654 shlibpath_var=LIBPATH
8655
8656 # AIX 3 has no versioning support, so we append a major version to the name.
8657 soname_spec='${libname}${release}${shared_ext}$major'
8658 ;;
8659
8660aix4* | aix5*)
8661 version_type=linux
8662 need_lib_prefix=no
8663 need_version=no
8664 hardcode_into_libs=yes
8665 if test "$host_cpu" = ia64; then
8666 # AIX 5 supports IA64
8667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 else
8670 # With GCC up to 2.95.x, collect2 would create an import file
8671 # for dependence libraries. The import file would start with
8672 # the line `#! .'. This would cause the generated library to
8673 # depend on `.', always an invalid library. This was fixed in
8674 # development snapshots of GCC prior to 3.0.
8675 case $host_os in
8676 aix4 | aix4.[01] | aix4.[01].*)
8677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8678 echo ' yes '
8679 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8680 :
8681 else
8682 can_build_shared=no
8683 fi
8684 ;;
8685 esac
8686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8687 # soname into executable. Probably we can add versioning support to
8688 # collect2, so additional links can be useful in future.
8689 if test "$aix_use_runtimelinking" = yes; then
8690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8691 # instead of lib<name>.a to let people know that these are not
8692 # typical AIX shared libraries.
8693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694 else
8695 # We preserve .a as extension for shared libraries through AIX4.2
8696 # and later when we are not doing run time linking.
8697 library_names_spec='${libname}${release}.a $libname.a'
8698 soname_spec='${libname}${release}${shared_ext}$major'
8699 fi
8700 shlibpath_var=LIBPATH
8701 fi
8702 ;;
8703
8704amigaos*)
8705 library_names_spec='$libname.ixlibrary $libname.a'
8706 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8707 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'
8708 ;;
8709
8710beos*)
8711 library_names_spec='${libname}${shared_ext}'
8712 dynamic_linker="$host_os ld.so"
8713 shlibpath_var=LIBRARY_PATH
8714 ;;
8715
8716bsdi[45]*)
8717 version_type=linux
8718 need_version=no
8719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720 soname_spec='${libname}${release}${shared_ext}$major'
8721 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8722 shlibpath_var=LD_LIBRARY_PATH
8723 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8724 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8725 # the default ld.so.conf also contains /usr/contrib/lib and
8726 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8727 # libtool to hard-code these into programs
8728 ;;
8729
8730cygwin* | mingw* | pw32*)
8731 version_type=windows
8732 shrext_cmds=".dll"
8733 need_version=no
8734 need_lib_prefix=no
8735
8736 case $GCC,$host_os in
8737 yes,cygwin* | yes,mingw* | yes,pw32*)
8738 library_names_spec='$libname.dll.a'
8739 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8740 postinstall_cmds='base_file=`basename \${file}`~
8741 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8742 dldir=$destdir/`dirname \$dlpath`~
8743 test -d \$dldir || mkdir -p \$dldir~
8744 $install_prog $dir/$dlname \$dldir/$dlname~
8745 chmod a+x \$dldir/$dlname'
8746 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8747 dlpath=$dir/\$dldll~
8748 $rm \$dlpath'
8749 shlibpath_overrides_runpath=yes
8750
8751 case $host_os in
8752 cygwin*)
8753 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8754 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8756 ;;
8757 mingw*)
8758 # MinGW DLLs use traditional 'lib' prefix
8759 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8762 # It is most probably a Windows format PATH printed by
8763 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8764 # path with ; separators, and with drive letters. We can handle the
8765 # drive letters (cygwin fileutils understands them), so leave them,
8766 # especially as we might pass files found there to a mingw objdump,
8767 # which wouldn't understand a cygwinified path. Ahh.
8768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769 else
8770 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8771 fi
8772 ;;
8773 pw32*)
8774 # pw32 DLLs use 'pw' prefix rather than 'lib'
8775 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8776 ;;
8777 esac
8778 ;;
8779
8780 *)
8781 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8782 ;;
8783 esac
8784 dynamic_linker='Win32 ld.exe'
8785 # FIXME: first we should search . and the directory the executable is in
8786 shlibpath_var=PATH
8787 ;;
8788
8789darwin* | rhapsody*)
8790 dynamic_linker="$host_os dyld"
8791 version_type=darwin
8792 need_lib_prefix=no
8793 need_version=no
8794 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8795 soname_spec='${libname}${release}${major}$shared_ext'
8796 shlibpath_overrides_runpath=yes
8797 shlibpath_var=DYLD_LIBRARY_PATH
8798 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8799 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8800 if test "$GCC" = yes; then
8801 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8802 else
8803 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8804 fi
8805 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8806 ;;
8807
8808dgux*)
8809 version_type=linux
8810 need_lib_prefix=no
8811 need_version=no
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 ;;
8816
8817freebsd1*)
8818 dynamic_linker=no
8819 ;;
8820
8821kfreebsd*-gnu)
8822 version_type=linux
8823 need_lib_prefix=no
8824 need_version=no
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=no
8829 hardcode_into_libs=yes
8830 dynamic_linker='GNU ld.so'
8831 ;;
8832
8833freebsd* | dragonfly*)
8834 # DragonFly does not have aout. When/if they implement a new
8835 # versioning mechanism, adjust this.
8836 if test -x /usr/bin/objformat; then
8837 objformat=`/usr/bin/objformat`
8838 else
8839 case $host_os in
8840 freebsd[123]*) objformat=aout ;;
8841 *) objformat=elf ;;
8842 esac
8843 fi
8844 version_type=freebsd-$objformat
8845 case $version_type in
8846 freebsd-elf*)
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8848 need_version=no
8849 need_lib_prefix=no
8850 ;;
8851 freebsd-*)
8852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8853 need_version=yes
8854 ;;
8855 esac
8856 shlibpath_var=LD_LIBRARY_PATH
8857 case $host_os in
8858 freebsd2*)
8859 shlibpath_overrides_runpath=yes
8860 ;;
8861 freebsd3.[01]* | freebsdelf3.[01]*)
8862 shlibpath_overrides_runpath=yes
8863 hardcode_into_libs=yes
8864 ;;
8865 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8866 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8867 shlibpath_overrides_runpath=no
8868 hardcode_into_libs=yes
8869 ;;
8870 freebsd*) # from 4.6 on
8871 shlibpath_overrides_runpath=yes
8872 hardcode_into_libs=yes
8873 ;;
8874 esac
8875 ;;
8876
8877gnu*)
8878 version_type=linux
8879 need_lib_prefix=no
8880 need_version=no
8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8882 soname_spec='${libname}${release}${shared_ext}$major'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 hardcode_into_libs=yes
8885 ;;
8886
8887hpux9* | hpux10* | hpux11*)
8888 # Give a soname corresponding to the major version so that dld.sl refuses to
8889 # link against other versions.
8890 version_type=sunos
8891 need_lib_prefix=no
8892 need_version=no
8893 case $host_cpu in
8894 ia64*)
8895 shrext_cmds='.so'
8896 hardcode_into_libs=yes
8897 dynamic_linker="$host_os dld.so"
8898 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8901 soname_spec='${libname}${release}${shared_ext}$major'
8902 if test "X$HPUX_IA64_MODE" = X32; then
8903 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8904 else
8905 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8906 fi
8907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8908 ;;
8909 hppa*64*)
8910 shrext_cmds='.sl'
8911 hardcode_into_libs=yes
8912 dynamic_linker="$host_os dld.sl"
8913 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8918 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8919 ;;
8920 *)
8921 shrext_cmds='.sl'
8922 dynamic_linker="$host_os dld.sl"
8923 shlibpath_var=SHLIB_PATH
8924 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 ;;
8928 esac
8929 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8930 postinstall_cmds='chmod 555 $lib'
8931 ;;
8932
8933interix3*)
8934 version_type=linux
8935 need_lib_prefix=no
8936 need_version=no
8937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 shlibpath_overrides_runpath=no
8942 hardcode_into_libs=yes
8943 ;;
8944
8945irix5* | irix6* | nonstopux*)
8946 case $host_os in
8947 nonstopux*) version_type=nonstopux ;;
8948 *)
8949 if test "$lt_cv_prog_gnu_ld" = yes; then
8950 version_type=linux
8951 else
8952 version_type=irix
8953 fi ;;
8954 esac
8955 need_lib_prefix=no
8956 need_version=no
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8959 case $host_os in
8960 irix5* | nonstopux*)
8961 libsuff= shlibsuff=
8962 ;;
8963 *)
8964 case $LD in # libtool.m4 will add one of these switches to LD
8965 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8966 libsuff= shlibsuff= libmagic=32-bit;;
8967 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8968 libsuff=32 shlibsuff=N32 libmagic=N32;;
8969 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8970 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8971 *) libsuff= shlibsuff= libmagic=never-match;;
8972 esac
8973 ;;
8974 esac
8975 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8976 shlibpath_overrides_runpath=no
8977 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8978 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8979 hardcode_into_libs=yes
8980 ;;
8981
8982# No shared lib support for Linux oldld, aout, or coff.
8983linux*oldld* | linux*aout* | linux*coff*)
8984 dynamic_linker=no
8985 ;;
8986
8987# This must be Linux ELF.
8988linux*)
8989 version_type=linux
8990 need_lib_prefix=no
8991 need_version=no
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=no
8997 # This implies no fast_install, which is unacceptable.
8998 # Some rework will be needed to allow for fast_install
8999 # before this can be enabled.
9000 hardcode_into_libs=yes
9001
9002 # find out which ABI we are using
9003 libsuff=
9004 case "$host_cpu" in
9005 x86_64*|s390x*|powerpc64*)
64ff59ba 9006 echo '#line 9006 "configure"' > conftest.$ac_ext
d9898ee8 9007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9008 (eval $ac_compile) 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; then
9012 case `/usr/bin/file conftest.$ac_objext` in
9013 *64-bit*)
9014 libsuff=64
9015 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9016 ;;
9017 esac
9018 fi
9019 rm -rf conftest*
9020 ;;
9021 esac
9022
9023 # Append ld.so.conf contents to the search path
9024 if test -f /etc/ld.so.conf; then
64ff59ba 9025 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 9026 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9027 fi
9028
9029 # We used to test for /lib/ld.so.1 and disable shared libraries on
9030 # powerpc, because MkLinux only supported shared libraries with the
9031 # GNU dynamic linker. Since this was broken with cross compilers,
9032 # most powerpc-linux boxes support dynamic linking these days and
9033 # people can always --disable-shared, the test was removed, and we
9034 # assume the GNU/Linux dynamic linker is in use.
9035 dynamic_linker='GNU/Linux ld.so'
9036 ;;
9037
9038knetbsd*-gnu)
9039 version_type=linux
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=no
9046 hardcode_into_libs=yes
9047 dynamic_linker='GNU ld.so'
9048 ;;
9049
9050netbsd*)
9051 version_type=sunos
9052 need_lib_prefix=no
9053 need_version=no
9054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9057 dynamic_linker='NetBSD (a.out) ld.so'
9058 else
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9060 soname_spec='${libname}${release}${shared_ext}$major'
9061 dynamic_linker='NetBSD ld.elf_so'
9062 fi
9063 shlibpath_var=LD_LIBRARY_PATH
9064 shlibpath_overrides_runpath=yes
9065 hardcode_into_libs=yes
9066 ;;
9067
9068newsos6)
9069 version_type=linux
9070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 ;;
9074
9075nto-qnx*)
9076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 ;;
9084
9085openbsd*)
9086 version_type=sunos
9087 sys_lib_dlsearch_path_spec="/usr/lib"
9088 need_lib_prefix=no
9089 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9090 case $host_os in
9091 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9092 *) need_version=no ;;
9093 esac
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9098 case $host_os in
9099 openbsd2.[89] | openbsd2.[89].*)
9100 shlibpath_overrides_runpath=no
9101 ;;
9102 *)
9103 shlibpath_overrides_runpath=yes
9104 ;;
9105 esac
9106 else
9107 shlibpath_overrides_runpath=yes
9108 fi
9109 ;;
9110
9111os2*)
9112 libname_spec='$name'
9113 shrext_cmds=".dll"
9114 need_lib_prefix=no
9115 library_names_spec='$libname${shared_ext} $libname.a'
9116 dynamic_linker='OS/2 ld.exe'
9117 shlibpath_var=LIBPATH
9118 ;;
9119
9120osf3* | osf4* | osf5*)
9121 version_type=osf
9122 need_lib_prefix=no
9123 need_version=no
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9128 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9129 ;;
9130
9131solaris*)
9132 version_type=linux
9133 need_lib_prefix=no
9134 need_version=no
9135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=yes
9139 hardcode_into_libs=yes
9140 # ldd complains unless libraries are executable
9141 postinstall_cmds='chmod +x $lib'
9142 ;;
9143
9144sunos4*)
9145 version_type=sunos
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9148 shlibpath_var=LD_LIBRARY_PATH
9149 shlibpath_overrides_runpath=yes
9150 if test "$with_gnu_ld" = yes; then
9151 need_lib_prefix=no
9152 fi
9153 need_version=yes
9154 ;;
9155
9156sysv4 | sysv4.3*)
9157 version_type=linux
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9159 soname_spec='${libname}${release}${shared_ext}$major'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 case $host_vendor in
9162 sni)
9163 shlibpath_overrides_runpath=no
9164 need_lib_prefix=no
9165 export_dynamic_flag_spec='${wl}-Blargedynsym'
9166 runpath_var=LD_RUN_PATH
9167 ;;
9168 siemens)
9169 need_lib_prefix=no
9170 ;;
9171 motorola)
9172 need_lib_prefix=no
9173 need_version=no
9174 shlibpath_overrides_runpath=no
9175 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9176 ;;
9177 esac
9178 ;;
9179
9180sysv4*MP*)
9181 if test -d /usr/nec ;then
9182 version_type=linux
9183 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9184 soname_spec='$libname${shared_ext}.$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 fi
9187 ;;
9188
9189sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9190 version_type=freebsd-elf
9191 need_lib_prefix=no
9192 need_version=no
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 shlibpath_var=LD_LIBRARY_PATH
9196 hardcode_into_libs=yes
9197 if test "$with_gnu_ld" = yes; then
9198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9199 shlibpath_overrides_runpath=no
9200 else
9201 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9202 shlibpath_overrides_runpath=yes
9203 case $host_os in
9204 sco3.2v5*)
9205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9206 ;;
9207 esac
9208 fi
9209 sys_lib_dlsearch_path_spec='/usr/lib'
9210 ;;
9211
9212uts4*)
9213 version_type=linux
9214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9215 soname_spec='${libname}${release}${shared_ext}$major'
9216 shlibpath_var=LD_LIBRARY_PATH
9217 ;;
9218
9219*)
9220 dynamic_linker=no
9221 ;;
9222esac
64ff59ba 9223{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9224echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9225test "$dynamic_linker" = no && can_build_shared=no
9226
9227variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9228if test "$GCC" = yes; then
9229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9230fi
9231
64ff59ba 9232{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9233echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9234hardcode_action=
9235if test -n "$hardcode_libdir_flag_spec" || \
9236 test -n "$runpath_var" || \
9237 test "X$hardcode_automatic" = "Xyes" ; then
9238
9239 # We can hardcode non-existant directories.
9240 if test "$hardcode_direct" != no &&
9241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9242 # have to relink, otherwise we might link with an installed library
9243 # when we should be linking with a yet-to-be-installed one
9244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9245 test "$hardcode_minus_L" != no; then
9246 # Linking always hardcodes the temporary library directory.
9247 hardcode_action=relink
9248 else
9249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9250 hardcode_action=immediate
9251 fi
9252else
9253 # We cannot hardcode anything, or else we can only hardcode existing
9254 # directories.
9255 hardcode_action=unsupported
9256fi
64ff59ba 9257{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9258echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9259
9260if test "$hardcode_action" = relink; then
9261 # Fast installation is not supported
9262 enable_fast_install=no
9263elif test "$shlibpath_overrides_runpath" = yes ||
9264 test "$enable_shared" = no; then
9265 # Fast installation is not necessary
9266 enable_fast_install=needless
9267fi
9268
9269striplib=
9270old_striplib=
64ff59ba 9271{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9272echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9273if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9275 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
64ff59ba 9276 { echo "$as_me:$LINENO: result: yes" >&5
9277echo "${ECHO_T}yes" >&6; }
d9898ee8 9278else
9279# FIXME - insert some real tests, host_os isn't really good enough
9280 case $host_os in
9281 darwin*)
9282 if test -n "$STRIP" ; then
9283 striplib="$STRIP -x"
64ff59ba 9284 { echo "$as_me:$LINENO: result: yes" >&5
9285echo "${ECHO_T}yes" >&6; }
d9898ee8 9286 else
64ff59ba 9287 { echo "$as_me:$LINENO: result: no" >&5
9288echo "${ECHO_T}no" >&6; }
d9898ee8 9289fi
9290 ;;
9291 *)
64ff59ba 9292 { echo "$as_me:$LINENO: result: no" >&5
9293echo "${ECHO_T}no" >&6; }
d9898ee8 9294 ;;
9295 esac
9296fi
9297
9298if test "x$enable_dlopen" != xyes; then
9299 enable_dlopen=unknown
9300 enable_dlopen_self=unknown
9301 enable_dlopen_self_static=unknown
9302else
9303 lt_cv_dlopen=no
9304 lt_cv_dlopen_libs=
9305
9306 case $host_os in
9307 beos*)
9308 lt_cv_dlopen="load_add_on"
9309 lt_cv_dlopen_libs=
9310 lt_cv_dlopen_self=yes
9311 ;;
9312
9313 mingw* | pw32*)
9314 lt_cv_dlopen="LoadLibrary"
9315 lt_cv_dlopen_libs=
9316 ;;
9317
9318 cygwin*)
9319 lt_cv_dlopen="dlopen"
9320 lt_cv_dlopen_libs=
9321 ;;
9322
9323 darwin*)
9324 # if libdl is installed we need to link against it
64ff59ba 9325 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9326echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9327if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329else
9330 ac_check_lib_save_LIBS=$LIBS
9331LIBS="-ldl $LIBS"
9332cat >conftest.$ac_ext <<_ACEOF
9333/* confdefs.h. */
9334_ACEOF
9335cat confdefs.h >>conftest.$ac_ext
9336cat >>conftest.$ac_ext <<_ACEOF
9337/* end confdefs.h. */
9338
64ff59ba 9339/* Override any GCC internal prototype to avoid an error.
9340 Use char because int might match the return type of a GCC
9341 builtin and then its argument prototype would still apply. */
d9898ee8 9342#ifdef __cplusplus
9343extern "C"
9344#endif
d9898ee8 9345char dlopen ();
9346int
9347main ()
9348{
64ff59ba 9349return dlopen ();
d9898ee8 9350 ;
9351 return 0;
9352}
9353_ACEOF
9354rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9355if { (ac_try="$ac_link"
9356case "(($ac_try" in
9357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358 *) ac_try_echo=$ac_try;;
9359esac
9360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361 (eval "$ac_link") 2>conftest.er1
d9898ee8 9362 ac_status=$?
9363 grep -v '^ *+' conftest.er1 >conftest.err
9364 rm -f conftest.er1
9365 cat conftest.err >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9367 (exit $ac_status); } && {
9368 test -z "$ac_c_werror_flag" ||
9369 test ! -s conftest.err
9370 } && test -s conftest$ac_exeext &&
9371 $as_test_x conftest$ac_exeext; then
d9898ee8 9372 ac_cv_lib_dl_dlopen=yes
9373else
9374 echo "$as_me: failed program was:" >&5
9375sed 's/^/| /' conftest.$ac_ext >&5
9376
64ff59ba 9377 ac_cv_lib_dl_dlopen=no
d9898ee8 9378fi
64ff59ba 9379
9380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9381 conftest$ac_exeext conftest.$ac_ext
9382LIBS=$ac_check_lib_save_LIBS
9383fi
64ff59ba 9384{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9385echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9386if test $ac_cv_lib_dl_dlopen = yes; then
9387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9388else
9389
9390 lt_cv_dlopen="dyld"
9391 lt_cv_dlopen_libs=
9392 lt_cv_dlopen_self=yes
9393
9394fi
9395
9396 ;;
9397
9398 *)
64ff59ba 9399 { echo "$as_me:$LINENO: checking for shl_load" >&5
9400echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9401if test "${ac_cv_func_shl_load+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403else
9404 cat >conftest.$ac_ext <<_ACEOF
9405/* confdefs.h. */
9406_ACEOF
9407cat confdefs.h >>conftest.$ac_ext
9408cat >>conftest.$ac_ext <<_ACEOF
9409/* end confdefs.h. */
9410/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9412#define shl_load innocuous_shl_load
9413
9414/* System header to define __stub macros and hopefully few prototypes,
9415 which can conflict with char shl_load (); below.
9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417 <limits.h> exists even on freestanding compilers. */
9418
9419#ifdef __STDC__
9420# include <limits.h>
9421#else
9422# include <assert.h>
9423#endif
9424
9425#undef shl_load
9426
64ff59ba 9427/* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
d9898ee8 9430#ifdef __cplusplus
9431extern "C"
d9898ee8 9432#endif
d9898ee8 9433char shl_load ();
9434/* The GNU C library defines this for functions which it implements
9435 to always fail with ENOSYS. Some functions are actually named
9436 something starting with __ and the normal name is an alias. */
64ff59ba 9437#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9438choke me
d9898ee8 9439#endif
9440
9441int
9442main ()
9443{
64ff59ba 9444return shl_load ();
d9898ee8 9445 ;
9446 return 0;
9447}
9448_ACEOF
9449rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9450if { (ac_try="$ac_link"
9451case "(($ac_try" in
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9454esac
9455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456 (eval "$ac_link") 2>conftest.er1
d9898ee8 9457 ac_status=$?
9458 grep -v '^ *+' conftest.er1 >conftest.err
9459 rm -f conftest.er1
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9462 (exit $ac_status); } && {
9463 test -z "$ac_c_werror_flag" ||
9464 test ! -s conftest.err
9465 } && test -s conftest$ac_exeext &&
9466 $as_test_x conftest$ac_exeext; then
d9898ee8 9467 ac_cv_func_shl_load=yes
9468else
9469 echo "$as_me: failed program was:" >&5
9470sed 's/^/| /' conftest.$ac_ext >&5
9471
64ff59ba 9472 ac_cv_func_shl_load=no
d9898ee8 9473fi
64ff59ba 9474
9475rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9476 conftest$ac_exeext conftest.$ac_ext
9477fi
64ff59ba 9478{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9479echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9480if test $ac_cv_func_shl_load = yes; then
9481 lt_cv_dlopen="shl_load"
9482else
64ff59ba 9483 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9484echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9485if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 ac_check_lib_save_LIBS=$LIBS
9489LIBS="-ldld $LIBS"
9490cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
9496
64ff59ba 9497/* Override any GCC internal prototype to avoid an error.
9498 Use char because int might match the return type of a GCC
9499 builtin and then its argument prototype would still apply. */
d9898ee8 9500#ifdef __cplusplus
9501extern "C"
9502#endif
d9898ee8 9503char shl_load ();
9504int
9505main ()
9506{
64ff59ba 9507return shl_load ();
d9898ee8 9508 ;
9509 return 0;
9510}
9511_ACEOF
9512rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9513if { (ac_try="$ac_link"
9514case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517esac
9518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519 (eval "$ac_link") 2>conftest.er1
d9898ee8 9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9525 (exit $ac_status); } && {
9526 test -z "$ac_c_werror_flag" ||
9527 test ! -s conftest.err
9528 } && test -s conftest$ac_exeext &&
9529 $as_test_x conftest$ac_exeext; then
d9898ee8 9530 ac_cv_lib_dld_shl_load=yes
9531else
9532 echo "$as_me: failed program was:" >&5
9533sed 's/^/| /' conftest.$ac_ext >&5
9534
64ff59ba 9535 ac_cv_lib_dld_shl_load=no
d9898ee8 9536fi
64ff59ba 9537
9538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9539 conftest$ac_exeext conftest.$ac_ext
9540LIBS=$ac_check_lib_save_LIBS
9541fi
64ff59ba 9542{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9543echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9544if test $ac_cv_lib_dld_shl_load = yes; then
9545 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9546else
64ff59ba 9547 { echo "$as_me:$LINENO: checking for dlopen" >&5
9548echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9549if test "${ac_cv_func_dlopen+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551else
9552 cat >conftest.$ac_ext <<_ACEOF
9553/* confdefs.h. */
9554_ACEOF
9555cat confdefs.h >>conftest.$ac_ext
9556cat >>conftest.$ac_ext <<_ACEOF
9557/* end confdefs.h. */
9558/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9560#define dlopen innocuous_dlopen
9561
9562/* System header to define __stub macros and hopefully few prototypes,
9563 which can conflict with char dlopen (); below.
9564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9565 <limits.h> exists even on freestanding compilers. */
9566
9567#ifdef __STDC__
9568# include <limits.h>
9569#else
9570# include <assert.h>
9571#endif
9572
9573#undef dlopen
9574
64ff59ba 9575/* Override any GCC internal prototype to avoid an error.
9576 Use char because int might match the return type of a GCC
9577 builtin and then its argument prototype would still apply. */
d9898ee8 9578#ifdef __cplusplus
9579extern "C"
d9898ee8 9580#endif
d9898ee8 9581char dlopen ();
9582/* The GNU C library defines this for functions which it implements
9583 to always fail with ENOSYS. Some functions are actually named
9584 something starting with __ and the normal name is an alias. */
64ff59ba 9585#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9586choke me
d9898ee8 9587#endif
9588
9589int
9590main ()
9591{
64ff59ba 9592return dlopen ();
d9898ee8 9593 ;
9594 return 0;
9595}
9596_ACEOF
9597rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9598if { (ac_try="$ac_link"
9599case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602esac
9603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_link") 2>conftest.er1
d9898ee8 9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest$ac_exeext &&
9614 $as_test_x conftest$ac_exeext; then
d9898ee8 9615 ac_cv_func_dlopen=yes
9616else
9617 echo "$as_me: failed program was:" >&5
9618sed 's/^/| /' conftest.$ac_ext >&5
9619
64ff59ba 9620 ac_cv_func_dlopen=no
d9898ee8 9621fi
64ff59ba 9622
9623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9624 conftest$ac_exeext conftest.$ac_ext
9625fi
64ff59ba 9626{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9627echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9628if test $ac_cv_func_dlopen = yes; then
9629 lt_cv_dlopen="dlopen"
9630else
64ff59ba 9631 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9632echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9633if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635else
9636 ac_check_lib_save_LIBS=$LIBS
9637LIBS="-ldl $LIBS"
9638cat >conftest.$ac_ext <<_ACEOF
9639/* confdefs.h. */
9640_ACEOF
9641cat confdefs.h >>conftest.$ac_ext
9642cat >>conftest.$ac_ext <<_ACEOF
9643/* end confdefs.h. */
9644
64ff59ba 9645/* Override any GCC internal prototype to avoid an error.
9646 Use char because int might match the return type of a GCC
9647 builtin and then its argument prototype would still apply. */
d9898ee8 9648#ifdef __cplusplus
9649extern "C"
9650#endif
d9898ee8 9651char dlopen ();
9652int
9653main ()
9654{
64ff59ba 9655return dlopen ();
d9898ee8 9656 ;
9657 return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9661if { (ac_try="$ac_link"
9662case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665esac
9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_link") 2>conftest.er1
d9898ee8 9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9673 (exit $ac_status); } && {
9674 test -z "$ac_c_werror_flag" ||
9675 test ! -s conftest.err
9676 } && test -s conftest$ac_exeext &&
9677 $as_test_x conftest$ac_exeext; then
d9898ee8 9678 ac_cv_lib_dl_dlopen=yes
9679else
9680 echo "$as_me: failed program was:" >&5
9681sed 's/^/| /' conftest.$ac_ext >&5
9682
64ff59ba 9683 ac_cv_lib_dl_dlopen=no
d9898ee8 9684fi
64ff59ba 9685
9686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9687 conftest$ac_exeext conftest.$ac_ext
9688LIBS=$ac_check_lib_save_LIBS
9689fi
64ff59ba 9690{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9691echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9692if test $ac_cv_lib_dl_dlopen = yes; then
9693 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9694else
64ff59ba 9695 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9696echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9697if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9698 echo $ECHO_N "(cached) $ECHO_C" >&6
9699else
9700 ac_check_lib_save_LIBS=$LIBS
9701LIBS="-lsvld $LIBS"
9702cat >conftest.$ac_ext <<_ACEOF
9703/* confdefs.h. */
9704_ACEOF
9705cat confdefs.h >>conftest.$ac_ext
9706cat >>conftest.$ac_ext <<_ACEOF
9707/* end confdefs.h. */
9708
64ff59ba 9709/* Override any GCC internal prototype to avoid an error.
9710 Use char because int might match the return type of a GCC
9711 builtin and then its argument prototype would still apply. */
d9898ee8 9712#ifdef __cplusplus
9713extern "C"
9714#endif
d9898ee8 9715char dlopen ();
9716int
9717main ()
9718{
64ff59ba 9719return dlopen ();
d9898ee8 9720 ;
9721 return 0;
9722}
9723_ACEOF
9724rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9725if { (ac_try="$ac_link"
9726case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_link") 2>conftest.er1
d9898ee8 9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9737 (exit $ac_status); } && {
9738 test -z "$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 } && test -s conftest$ac_exeext &&
9741 $as_test_x conftest$ac_exeext; then
d9898ee8 9742 ac_cv_lib_svld_dlopen=yes
9743else
9744 echo "$as_me: failed program was:" >&5
9745sed 's/^/| /' conftest.$ac_ext >&5
9746
64ff59ba 9747 ac_cv_lib_svld_dlopen=no
d9898ee8 9748fi
64ff59ba 9749
9750rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9751 conftest$ac_exeext conftest.$ac_ext
9752LIBS=$ac_check_lib_save_LIBS
9753fi
64ff59ba 9754{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9755echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9756if test $ac_cv_lib_svld_dlopen = yes; then
9757 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9758else
64ff59ba 9759 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9760echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9761if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764 ac_check_lib_save_LIBS=$LIBS
9765LIBS="-ldld $LIBS"
9766cat >conftest.$ac_ext <<_ACEOF
9767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
9772
64ff59ba 9773/* Override any GCC internal prototype to avoid an error.
9774 Use char because int might match the return type of a GCC
9775 builtin and then its argument prototype would still apply. */
d9898ee8 9776#ifdef __cplusplus
9777extern "C"
9778#endif
d9898ee8 9779char dld_link ();
9780int
9781main ()
9782{
64ff59ba 9783return dld_link ();
d9898ee8 9784 ;
9785 return 0;
9786}
9787_ACEOF
9788rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 9789if { (ac_try="$ac_link"
9790case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793esac
9794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_link") 2>conftest.er1
d9898ee8 9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 9801 (exit $ac_status); } && {
9802 test -z "$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 } && test -s conftest$ac_exeext &&
9805 $as_test_x conftest$ac_exeext; then
d9898ee8 9806 ac_cv_lib_dld_dld_link=yes
9807else
9808 echo "$as_me: failed program was:" >&5
9809sed 's/^/| /' conftest.$ac_ext >&5
9810
64ff59ba 9811 ac_cv_lib_dld_dld_link=no
d9898ee8 9812fi
64ff59ba 9813
9814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9815 conftest$ac_exeext conftest.$ac_ext
9816LIBS=$ac_check_lib_save_LIBS
9817fi
64ff59ba 9818{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9819echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 9820if test $ac_cv_lib_dld_dld_link = yes; then
9821 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9822fi
9823
9824
9825fi
9826
9827
9828fi
9829
9830
9831fi
9832
9833
9834fi
9835
9836
9837fi
9838
9839 ;;
9840 esac
9841
9842 if test "x$lt_cv_dlopen" != xno; then
9843 enable_dlopen=yes
9844 else
9845 enable_dlopen=no
9846 fi
9847
9848 case $lt_cv_dlopen in
9849 dlopen)
9850 save_CPPFLAGS="$CPPFLAGS"
9851 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9852
9853 save_LDFLAGS="$LDFLAGS"
9854 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9855
9856 save_LIBS="$LIBS"
9857 LIBS="$lt_cv_dlopen_libs $LIBS"
9858
64ff59ba 9859 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9860echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9861if test "${lt_cv_dlopen_self+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 if test "$cross_compiling" = yes; then :
9865 lt_cv_dlopen_self=cross
9866else
9867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868 lt_status=$lt_dlunknown
9869 cat > conftest.$ac_ext <<EOF
64ff59ba 9870#line 9870 "configure"
d9898ee8 9871#include "confdefs.h"
9872
9873#if HAVE_DLFCN_H
9874#include <dlfcn.h>
9875#endif
9876
9877#include <stdio.h>
9878
9879#ifdef RTLD_GLOBAL
9880# define LT_DLGLOBAL RTLD_GLOBAL
9881#else
9882# ifdef DL_GLOBAL
9883# define LT_DLGLOBAL DL_GLOBAL
9884# else
9885# define LT_DLGLOBAL 0
9886# endif
9887#endif
9888
9889/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890 find out it does not work in some platform. */
9891#ifndef LT_DLLAZY_OR_NOW
9892# ifdef RTLD_LAZY
9893# define LT_DLLAZY_OR_NOW RTLD_LAZY
9894# else
9895# ifdef DL_LAZY
9896# define LT_DLLAZY_OR_NOW DL_LAZY
9897# else
9898# ifdef RTLD_NOW
9899# define LT_DLLAZY_OR_NOW RTLD_NOW
9900# else
9901# ifdef DL_NOW
9902# define LT_DLLAZY_OR_NOW DL_NOW
9903# else
9904# define LT_DLLAZY_OR_NOW 0
9905# endif
9906# endif
9907# endif
9908# endif
9909#endif
9910
9911#ifdef __cplusplus
9912extern "C" void exit (int);
9913#endif
9914
9915void fnord() { int i=42;}
9916int main ()
9917{
9918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919 int status = $lt_dlunknown;
9920
9921 if (self)
9922 {
9923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9924 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925 /* dlclose (self); */
9926 }
9927 else
9928 puts (dlerror ());
9929
9930 exit (status);
9931}
9932EOF
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9938 (./conftest; exit; ) >&5 2>/dev/null
9939 lt_status=$?
9940 case x$lt_status in
9941 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9942 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9943 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9944 esac
9945 else :
9946 # compilation failed
9947 lt_cv_dlopen_self=no
9948 fi
9949fi
9950rm -fr conftest*
9951
9952
9953fi
64ff59ba 9954{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9955echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 9956
9957 if test "x$lt_cv_dlopen_self" = xyes; then
9958 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
64ff59ba 9959 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9960echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 9961if test "${lt_cv_dlopen_self_static+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963else
9964 if test "$cross_compiling" = yes; then :
9965 lt_cv_dlopen_self_static=cross
9966else
9967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9968 lt_status=$lt_dlunknown
9969 cat > conftest.$ac_ext <<EOF
64ff59ba 9970#line 9970 "configure"
d9898ee8 9971#include "confdefs.h"
9972
9973#if HAVE_DLFCN_H
9974#include <dlfcn.h>
9975#endif
9976
9977#include <stdio.h>
9978
9979#ifdef RTLD_GLOBAL
9980# define LT_DLGLOBAL RTLD_GLOBAL
9981#else
9982# ifdef DL_GLOBAL
9983# define LT_DLGLOBAL DL_GLOBAL
9984# else
9985# define LT_DLGLOBAL 0
9986# endif
9987#endif
9988
9989/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9990 find out it does not work in some platform. */
9991#ifndef LT_DLLAZY_OR_NOW
9992# ifdef RTLD_LAZY
9993# define LT_DLLAZY_OR_NOW RTLD_LAZY
9994# else
9995# ifdef DL_LAZY
9996# define LT_DLLAZY_OR_NOW DL_LAZY
9997# else
9998# ifdef RTLD_NOW
9999# define LT_DLLAZY_OR_NOW RTLD_NOW
10000# else
10001# ifdef DL_NOW
10002# define LT_DLLAZY_OR_NOW DL_NOW
10003# else
10004# define LT_DLLAZY_OR_NOW 0
10005# endif
10006# endif
10007# endif
10008# endif
10009#endif
10010
10011#ifdef __cplusplus
10012extern "C" void exit (int);
10013#endif
10014
10015void fnord() { int i=42;}
10016int main ()
10017{
10018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10019 int status = $lt_dlunknown;
10020
10021 if (self)
10022 {
10023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10025 /* dlclose (self); */
10026 }
10027 else
10028 puts (dlerror ());
10029
10030 exit (status);
10031}
10032EOF
10033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10034 (eval $ac_link) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10038 (./conftest; exit; ) >&5 2>/dev/null
10039 lt_status=$?
10040 case x$lt_status in
10041 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10042 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10043 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10044 esac
10045 else :
10046 # compilation failed
10047 lt_cv_dlopen_self_static=no
10048 fi
10049fi
10050rm -fr conftest*
10051
10052
10053fi
64ff59ba 10054{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10055echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10056 fi
10057
10058 CPPFLAGS="$save_CPPFLAGS"
10059 LDFLAGS="$save_LDFLAGS"
10060 LIBS="$save_LIBS"
10061 ;;
10062 esac
10063
10064 case $lt_cv_dlopen_self in
10065 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10066 *) enable_dlopen_self=unknown ;;
10067 esac
10068
10069 case $lt_cv_dlopen_self_static in
10070 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10071 *) enable_dlopen_self_static=unknown ;;
10072 esac
10073fi
10074
10075
10076# Report which library types will actually be built
64ff59ba 10077{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10078echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10079{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10080echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10081
64ff59ba 10082{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10083echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10084test "$can_build_shared" = "no" && enable_shared=no
10085
10086# On AIX, shared libraries and static libraries use the same namespace, and
10087# are all built from PIC.
10088case $host_os in
10089aix3*)
10090 test "$enable_shared" = yes && enable_static=no
10091 if test -n "$RANLIB"; then
10092 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10093 postinstall_cmds='$RANLIB $lib'
10094 fi
10095 ;;
10096
10097aix4* | aix5*)
10098 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10099 test "$enable_shared" = yes && enable_static=no
10100 fi
10101 ;;
10102esac
64ff59ba 10103{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10104echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10105
64ff59ba 10106{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10107echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10108# Make sure either enable_shared or enable_static is yes.
10109test "$enable_shared" = yes || enable_static=yes
64ff59ba 10110{ echo "$as_me:$LINENO: result: $enable_static" >&5
10111echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10112
10113# The else clause should only fire when bootstrapping the
10114# libtool distribution, otherwise you forgot to ship ltmain.sh
10115# with your package, and you will get complaints that there are
10116# no rules to generate ltmain.sh.
10117if test -f "$ltmain"; then
10118 # See if we are running on zsh, and set the options which allow our commands through
10119 # without removal of \ escapes.
10120 if test -n "${ZSH_VERSION+set}" ; then
10121 setopt NO_GLOB_SUBST
10122 fi
10123 # Now quote all the things that may contain metacharacters while being
10124 # careful not to overquote the AC_SUBSTed values. We take copies of the
10125 # variables and quote the copies for generation of the libtool script.
10126 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10127 SED SHELL STRIP \
10128 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10129 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10130 deplibs_check_method reload_flag reload_cmds need_locks \
10131 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10132 lt_cv_sys_global_symbol_to_c_name_address \
10133 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10134 old_postinstall_cmds old_postuninstall_cmds \
10135 compiler \
10136 CC \
10137 LD \
10138 lt_prog_compiler_wl \
10139 lt_prog_compiler_pic \
10140 lt_prog_compiler_static \
10141 lt_prog_compiler_no_builtin_flag \
10142 export_dynamic_flag_spec \
10143 thread_safe_flag_spec \
10144 whole_archive_flag_spec \
10145 enable_shared_with_static_runtimes \
10146 old_archive_cmds \
10147 old_archive_from_new_cmds \
10148 predep_objects \
10149 postdep_objects \
10150 predeps \
10151 postdeps \
10152 compiler_lib_search_path \
10153 archive_cmds \
10154 archive_expsym_cmds \
10155 postinstall_cmds \
10156 postuninstall_cmds \
10157 old_archive_from_expsyms_cmds \
10158 allow_undefined_flag \
10159 no_undefined_flag \
10160 export_symbols_cmds \
10161 hardcode_libdir_flag_spec \
10162 hardcode_libdir_flag_spec_ld \
10163 hardcode_libdir_separator \
10164 hardcode_automatic \
10165 module_cmds \
10166 module_expsym_cmds \
10167 lt_cv_prog_compiler_c_o \
10168 exclude_expsyms \
10169 include_expsyms; do
10170
10171 case $var in
10172 old_archive_cmds | \
10173 old_archive_from_new_cmds | \
10174 archive_cmds | \
10175 archive_expsym_cmds | \
10176 module_cmds | \
10177 module_expsym_cmds | \
10178 old_archive_from_expsyms_cmds | \
10179 export_symbols_cmds | \
10180 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10181 postinstall_cmds | postuninstall_cmds | \
10182 old_postinstall_cmds | old_postuninstall_cmds | \
10183 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10184 # Double-quote double-evaled strings.
10185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10186 ;;
10187 *)
10188 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10189 ;;
10190 esac
10191 done
10192
10193 case $lt_echo in
10194 *'\$0 --fallback-echo"')
10195 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10196 ;;
10197 esac
10198
10199cfgfile="${ofile}T"
10200 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10201 $rm -f "$cfgfile"
10202 { echo "$as_me:$LINENO: creating $ofile" >&5
10203echo "$as_me: creating $ofile" >&6;}
10204
10205 cat <<__EOF__ >> "$cfgfile"
10206#! $SHELL
10207
10208# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10209# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10210# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10211#
10212# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10213# Free Software Foundation, Inc.
10214#
10215# This file is part of GNU Libtool:
10216# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10217#
10218# This program is free software; you can redistribute it and/or modify
10219# it under the terms of the GNU General Public License as published by
10220# the Free Software Foundation; either version 2 of the License, or
10221# (at your option) any later version.
10222#
10223# This program is distributed in the hope that it will be useful, but
10224# WITHOUT ANY WARRANTY; without even the implied warranty of
10225# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10226# General Public License for more details.
10227#
10228# You should have received a copy of the GNU General Public License
10229# along with this program; if not, write to the Free Software
10230# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10231#
10232# As a special exception to the GNU General Public License, if you
10233# distribute this file as part of a program that contains a
10234# configuration script generated by Autoconf, you may include it under
10235# the same distribution terms that you use for the rest of that program.
10236
10237# A sed program that does not truncate output.
10238SED=$lt_SED
10239
10240# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10241Xsed="$SED -e 1s/^X//"
10242
10243# The HP-UX ksh and POSIX shell print the target directory to stdout
10244# if CDPATH is set.
10245(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10246
10247# The names of the tagged configurations supported by this script.
10248available_tags=
10249
10250# ### BEGIN LIBTOOL CONFIG
10251
10252# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10253
10254# Shell to use when invoking shell scripts.
10255SHELL=$lt_SHELL
10256
10257# Whether or not to build shared libraries.
10258build_libtool_libs=$enable_shared
10259
10260# Whether or not to build static libraries.
10261build_old_libs=$enable_static
10262
10263# Whether or not to add -lc for building shared libraries.
10264build_libtool_need_lc=$archive_cmds_need_lc
10265
10266# Whether or not to disallow shared libs when runtime libs are static
10267allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10268
10269# Whether or not to optimize for fast installation.
10270fast_install=$enable_fast_install
10271
10272# The host system.
10273host_alias=$host_alias
10274host=$host
10275host_os=$host_os
10276
10277# The build system.
10278build_alias=$build_alias
10279build=$build
10280build_os=$build_os
10281
10282# An echo program that does not interpret backslashes.
10283echo=$lt_echo
10284
10285# The archiver.
10286AR=$lt_AR
10287AR_FLAGS=$lt_AR_FLAGS
10288
10289# A C compiler.
10290LTCC=$lt_LTCC
10291
10292# LTCC compiler flags.
10293LTCFLAGS=$lt_LTCFLAGS
10294
10295# A language-specific compiler.
10296CC=$lt_compiler
10297
10298# Is the compiler the GNU C compiler?
10299with_gcc=$GCC
10300
d9898ee8 10301# An ERE matcher.
10302EGREP=$lt_EGREP
10303
10304# The linker used to build libraries.
10305LD=$lt_LD
10306
10307# Whether we need hard or soft links.
10308LN_S=$lt_LN_S
10309
10310# A BSD-compatible nm program.
10311NM=$lt_NM
10312
10313# A symbol stripping program
10314STRIP=$lt_STRIP
10315
10316# Used to examine libraries when file_magic_cmd begins "file"
10317MAGIC_CMD=$MAGIC_CMD
10318
10319# Used on cygwin: DLL creation program.
10320DLLTOOL="$DLLTOOL"
10321
10322# Used on cygwin: object dumper.
10323OBJDUMP="$OBJDUMP"
10324
10325# Used on cygwin: assembler.
10326AS="$AS"
10327
10328# The name of the directory that contains temporary libtool files.
10329objdir=$objdir
10330
10331# How to create reloadable object files.
10332reload_flag=$lt_reload_flag
10333reload_cmds=$lt_reload_cmds
10334
10335# How to pass a linker flag through the compiler.
10336wl=$lt_lt_prog_compiler_wl
10337
10338# Object file suffix (normally "o").
10339objext="$ac_objext"
10340
10341# Old archive suffix (normally "a").
10342libext="$libext"
10343
10344# Shared library suffix (normally ".so").
10345shrext_cmds='$shrext_cmds'
10346
10347# Executable file suffix (normally "").
10348exeext="$exeext"
10349
10350# Additional compiler flags for building library objects.
10351pic_flag=$lt_lt_prog_compiler_pic
10352pic_mode=$pic_mode
10353
10354# What is the maximum length of a command?
10355max_cmd_len=$lt_cv_sys_max_cmd_len
10356
10357# Does compiler simultaneously support -c and -o options?
10358compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10359
10360# Must we lock files when doing compilation?
10361need_locks=$lt_need_locks
10362
10363# Do we need the lib prefix for modules?
10364need_lib_prefix=$need_lib_prefix
10365
10366# Do we need a version for libraries?
10367need_version=$need_version
10368
10369# Whether dlopen is supported.
10370dlopen_support=$enable_dlopen
10371
10372# Whether dlopen of programs is supported.
10373dlopen_self=$enable_dlopen_self
10374
10375# Whether dlopen of statically linked programs is supported.
10376dlopen_self_static=$enable_dlopen_self_static
10377
10378# Compiler flag to prevent dynamic linking.
10379link_static_flag=$lt_lt_prog_compiler_static
10380
10381# Compiler flag to turn off builtin functions.
10382no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10383
10384# Compiler flag to allow reflexive dlopens.
10385export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10386
10387# Compiler flag to generate shared objects directly from archives.
10388whole_archive_flag_spec=$lt_whole_archive_flag_spec
10389
10390# Compiler flag to generate thread-safe objects.
10391thread_safe_flag_spec=$lt_thread_safe_flag_spec
10392
10393# Library versioning type.
10394version_type=$version_type
10395
10396# Format of library name prefix.
10397libname_spec=$lt_libname_spec
10398
10399# List of archive names. First name is the real one, the rest are links.
10400# The last name is the one that the linker finds with -lNAME.
10401library_names_spec=$lt_library_names_spec
10402
10403# The coded name of the library, if different from the real name.
10404soname_spec=$lt_soname_spec
10405
10406# Commands used to build and install an old-style archive.
10407RANLIB=$lt_RANLIB
10408old_archive_cmds=$lt_old_archive_cmds
10409old_postinstall_cmds=$lt_old_postinstall_cmds
10410old_postuninstall_cmds=$lt_old_postuninstall_cmds
10411
10412# Create an old-style archive from a shared archive.
10413old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10414
10415# Create a temporary old-style archive to link instead of a shared archive.
10416old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10417
10418# Commands used to build and install a shared archive.
10419archive_cmds=$lt_archive_cmds
10420archive_expsym_cmds=$lt_archive_expsym_cmds
10421postinstall_cmds=$lt_postinstall_cmds
10422postuninstall_cmds=$lt_postuninstall_cmds
10423
10424# Commands used to build a loadable module (assumed same as above if empty)
10425module_cmds=$lt_module_cmds
10426module_expsym_cmds=$lt_module_expsym_cmds
10427
10428# Commands to strip libraries.
10429old_striplib=$lt_old_striplib
10430striplib=$lt_striplib
10431
10432# Dependencies to place before the objects being linked to create a
10433# shared library.
64ff59ba 10434predep_objects=$lt_predep_objects
d9898ee8 10435
10436# Dependencies to place after the objects being linked to create a
10437# shared library.
64ff59ba 10438postdep_objects=$lt_postdep_objects
d9898ee8 10439
10440# Dependencies to place before the objects being linked to create a
10441# shared library.
10442predeps=$lt_predeps
10443
10444# Dependencies to place after the objects being linked to create a
10445# shared library.
10446postdeps=$lt_postdeps
10447
10448# The library search path used internally by the compiler when linking
10449# a shared library.
64ff59ba 10450compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10451
10452# Method to check whether dependent libraries are shared objects.
10453deplibs_check_method=$lt_deplibs_check_method
10454
10455# Command to use when deplibs_check_method == file_magic.
10456file_magic_cmd=$lt_file_magic_cmd
10457
10458# Flag that allows shared libraries with undefined symbols to be built.
10459allow_undefined_flag=$lt_allow_undefined_flag
10460
10461# Flag that forces no undefined symbols.
10462no_undefined_flag=$lt_no_undefined_flag
10463
10464# Commands used to finish a libtool library installation in a directory.
10465finish_cmds=$lt_finish_cmds
10466
10467# Same as above, but a single script fragment to be evaled but not shown.
10468finish_eval=$lt_finish_eval
10469
10470# Take the output of nm and produce a listing of raw symbols and C names.
10471global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10472
10473# Transform the output of nm in a proper C declaration
10474global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10475
10476# Transform the output of nm in a C name address pair
10477global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10478
10479# This is the shared library runtime path variable.
10480runpath_var=$runpath_var
10481
10482# This is the shared library path variable.
10483shlibpath_var=$shlibpath_var
10484
10485# Is shlibpath searched before the hard-coded library search path?
10486shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10487
10488# How to hardcode a shared library path into an executable.
10489hardcode_action=$hardcode_action
10490
10491# Whether we should hardcode library paths into libraries.
10492hardcode_into_libs=$hardcode_into_libs
10493
10494# Flag to hardcode \$libdir into a binary during linking.
10495# This must work even if \$libdir does not exist.
10496hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10497
10498# If ld is used when linking, flag to hardcode \$libdir into
10499# a binary during linking. This must work even if \$libdir does
10500# not exist.
10501hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10502
10503# Whether we need a single -rpath flag with a separated argument.
10504hardcode_libdir_separator=$lt_hardcode_libdir_separator
10505
10506# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10507# resulting binary.
10508hardcode_direct=$hardcode_direct
10509
10510# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10511# resulting binary.
10512hardcode_minus_L=$hardcode_minus_L
10513
10514# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10515# the resulting binary.
10516hardcode_shlibpath_var=$hardcode_shlibpath_var
10517
10518# Set to yes if building a shared library automatically hardcodes DIR into the library
10519# and all subsequent libraries and executables linked against it.
10520hardcode_automatic=$hardcode_automatic
10521
10522# Variables whose values should be saved in libtool wrapper scripts and
10523# restored at relink time.
10524variables_saved_for_relink="$variables_saved_for_relink"
10525
10526# Whether libtool must link a program against all its dependency libraries.
10527link_all_deplibs=$link_all_deplibs
10528
10529# Compile-time system search path for libraries
64ff59ba 10530sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10531
10532# Run-time system search path for libraries
10533sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10534
10535# Fix the shell variable \$srcfile for the compiler.
10536fix_srcfile_path="$fix_srcfile_path"
10537
10538# Set to yes if exported symbols are required.
10539always_export_symbols=$always_export_symbols
10540
10541# The commands to list exported symbols.
10542export_symbols_cmds=$lt_export_symbols_cmds
10543
10544# The commands to extract the exported symbol list from a shared archive.
10545extract_expsyms_cmds=$lt_extract_expsyms_cmds
10546
10547# Symbols that should not be listed in the preloaded symbols.
10548exclude_expsyms=$lt_exclude_expsyms
10549
10550# Symbols that must always be exported.
10551include_expsyms=$lt_include_expsyms
10552
10553# ### END LIBTOOL CONFIG
10554
10555__EOF__
10556
10557
10558 case $host_os in
10559 aix3*)
10560 cat <<\EOF >> "$cfgfile"
10561
10562# AIX sometimes has problems with the GCC collect2 program. For some
10563# reason, if we set the COLLECT_NAMES environment variable, the problems
10564# vanish in a puff of smoke.
10565if test "X${COLLECT_NAMES+set}" != Xset; then
10566 COLLECT_NAMES=
10567 export COLLECT_NAMES
10568fi
10569EOF
10570 ;;
10571 esac
10572
10573 # We use sed instead of cat because bash on DJGPP gets confused if
10574 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10575 # text mode, it properly converts lines to CR/LF. This bash problem
10576 # is reportedly fixed, but why not run on old versions too?
10577 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10578
10579 mv -f "$cfgfile" "$ofile" || \
10580 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10581 chmod +x "$ofile"
10582
10583else
10584 # If there is no Makefile yet, we rely on a make rule to execute
10585 # `config.status --recheck' to rerun these tests and create the
10586 # libtool script then.
10587 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10588 if test -f "$ltmain_in"; then
10589 test -f Makefile && make "$ltmain"
10590 fi
10591fi
10592
10593
10594ac_ext=c
10595ac_cpp='$CPP $CPPFLAGS'
10596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10598ac_compiler_gnu=$ac_cv_c_compiler_gnu
10599
10600CC="$lt_save_CC"
10601
10602
64ff59ba 10603# Check whether --with-tags was given.
d9898ee8 10604if test "${with_tags+set}" = set; then
64ff59ba 10605 withval=$with_tags; tagnames="$withval"
10606fi
10607
d9898ee8 10608
10609if test -f "$ltmain" && test -n "$tagnames"; then
10610 if test ! -f "${ofile}"; then
10611 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10612echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10613 fi
10614
10615 if test -z "$LTCC"; then
10616 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10617 if test -z "$LTCC"; then
10618 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10619echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10620 else
10621 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10622echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10623 fi
10624 fi
10625 if test -z "$LTCFLAGS"; then
10626 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10627 fi
10628
10629 # Extract list of available tagged configurations in $ofile.
10630 # Note that this assumes the entire list is on one line.
10631 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10632
10633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10634 for tagname in $tagnames; do
10635 IFS="$lt_save_ifs"
10636 # Check whether tagname contains only valid characters
10637 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10638 "") ;;
10639 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10640echo "$as_me: error: invalid tag name: $tagname" >&2;}
10641 { (exit 1); exit 1; }; }
10642 ;;
10643 esac
10644
10645 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10646 then
10647 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10648echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10649 { (exit 1); exit 1; }; }
10650 fi
10651
10652 # Update the list of available tags.
10653 if test -n "$tagname"; then
10654 echo appending configuration tag \"$tagname\" to $ofile
10655
10656 case $tagname in
10657 CXX)
10658 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10659 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10660 (test "X$CXX" != "Xg++"))) ; then
64ff59ba 10661 ac_ext=cpp
d9898ee8 10662ac_cpp='$CXXCPP $CPPFLAGS'
10663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10666
10667
10668
10669
10670archive_cmds_need_lc_CXX=no
10671allow_undefined_flag_CXX=
10672always_export_symbols_CXX=no
10673archive_expsym_cmds_CXX=
10674export_dynamic_flag_spec_CXX=
10675hardcode_direct_CXX=no
10676hardcode_libdir_flag_spec_CXX=
10677hardcode_libdir_flag_spec_ld_CXX=
10678hardcode_libdir_separator_CXX=
10679hardcode_minus_L_CXX=no
10680hardcode_shlibpath_var_CXX=unsupported
10681hardcode_automatic_CXX=no
10682module_cmds_CXX=
10683module_expsym_cmds_CXX=
10684link_all_deplibs_CXX=unknown
10685old_archive_cmds_CXX=$old_archive_cmds
10686no_undefined_flag_CXX=
10687whole_archive_flag_spec_CXX=
10688enable_shared_with_static_runtimes_CXX=no
10689
10690# Dependencies to place before and after the object being linked:
10691predep_objects_CXX=
10692postdep_objects_CXX=
10693predeps_CXX=
10694postdeps_CXX=
10695compiler_lib_search_path_CXX=
10696
10697# Source file extension for C++ test sources.
10698ac_ext=cpp
10699
10700# Object file extension for compiled C++ test sources.
10701objext=o
10702objext_CXX=$objext
10703
10704# Code to be used in simple compile tests
10705lt_simple_compile_test_code="int some_variable = 0;\n"
10706
10707# Code to be used in simple link tests
10708lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10709
10710# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10711
10712# If no C compiler was specified, use CC.
10713LTCC=${LTCC-"$CC"}
10714
10715# If no C compiler flags were specified, use CFLAGS.
10716LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10717
10718# Allow CC to be a program name with arguments.
10719compiler=$CC
10720
10721
10722# save warnings/boilerplate of simple test code
10723ac_outfile=conftest.$ac_objext
10724printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10725eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10726_lt_compiler_boilerplate=`cat conftest.err`
10727$rm conftest*
10728
10729ac_outfile=conftest.$ac_objext
10730printf "$lt_simple_link_test_code" >conftest.$ac_ext
10731eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10732_lt_linker_boilerplate=`cat conftest.err`
10733$rm conftest*
10734
10735
10736# Allow CC to be a program name with arguments.
10737lt_save_CC=$CC
10738lt_save_LD=$LD
10739lt_save_GCC=$GCC
10740GCC=$GXX
10741lt_save_with_gnu_ld=$with_gnu_ld
10742lt_save_path_LD=$lt_cv_path_LD
10743if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10744 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10745else
10746 $as_unset lt_cv_prog_gnu_ld
10747fi
10748if test -n "${lt_cv_path_LDCXX+set}"; then
10749 lt_cv_path_LD=$lt_cv_path_LDCXX
10750else
10751 $as_unset lt_cv_path_LD
10752fi
10753test -z "${LDCXX+set}" || LD=$LDCXX
10754CC=${CXX-"c++"}
10755compiler=$CC
10756compiler_CXX=$CC
10757for cc_temp in $compiler""; do
10758 case $cc_temp in
10759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10761 \-*) ;;
10762 *) break;;
10763 esac
10764done
10765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10766
10767
10768# We don't want -fno-exception wen compiling C++ code, so set the
10769# no_builtin_flag separately
10770if test "$GXX" = yes; then
10771 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10772else
10773 lt_prog_compiler_no_builtin_flag_CXX=
10774fi
10775
10776if test "$GXX" = yes; then
10777 # Set up default GNU C++ configuration
10778
10779
64ff59ba 10780# Check whether --with-gnu-ld was given.
d9898ee8 10781if test "${with_gnu_ld+set}" = set; then
64ff59ba 10782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10783else
10784 with_gnu_ld=no
64ff59ba 10785fi
10786
d9898ee8 10787ac_prog=ld
10788if test "$GCC" = yes; then
10789 # Check if gcc -print-prog-name=ld gives a path.
64ff59ba 10790 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10791echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10792 case $host in
10793 *-*-mingw*)
10794 # gcc leaves a trailing carriage return which upsets mingw
10795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10796 *)
10797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10798 esac
10799 case $ac_prog in
10800 # Accept absolute paths.
10801 [\\/]* | ?:[\\/]*)
10802 re_direlt='/[^/][^/]*/\.\./'
10803 # Canonicalize the pathname of ld
10804 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10806 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10807 done
10808 test -z "$LD" && LD="$ac_prog"
10809 ;;
10810 "")
10811 # If it fails, then pretend we aren't using GCC.
10812 ac_prog=ld
10813 ;;
10814 *)
10815 # If it is relative, then search for the first ld in PATH.
10816 with_gnu_ld=unknown
10817 ;;
10818 esac
10819elif test "$with_gnu_ld" = yes; then
64ff59ba 10820 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10821echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 10822else
64ff59ba 10823 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10824echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 10825fi
10826if test "${lt_cv_path_LD+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829 if test -z "$LD"; then
10830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10831 for ac_dir in $PATH; do
10832 IFS="$lt_save_ifs"
10833 test -z "$ac_dir" && ac_dir=.
10834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10835 lt_cv_path_LD="$ac_dir/$ac_prog"
10836 # Check to see if the program is GNU ld. I'd rather use --version,
10837 # but apparently some variants of GNU ld only accept -v.
10838 # Break only if it was the GNU/non-GNU ld that we prefer.
10839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10840 *GNU* | *'with BFD'*)
10841 test "$with_gnu_ld" != no && break
10842 ;;
10843 *)
10844 test "$with_gnu_ld" != yes && break
10845 ;;
10846 esac
10847 fi
10848 done
10849 IFS="$lt_save_ifs"
10850else
10851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10852fi
10853fi
10854
10855LD="$lt_cv_path_LD"
10856if test -n "$LD"; then
64ff59ba 10857 { echo "$as_me:$LINENO: result: $LD" >&5
10858echo "${ECHO_T}$LD" >&6; }
d9898ee8 10859else
64ff59ba 10860 { echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6; }
d9898ee8 10862fi
10863test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10864echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10865 { (exit 1); exit 1; }; }
64ff59ba 10866{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10867echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 10868if test "${lt_cv_prog_gnu_ld+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10872case `$LD -v 2>&1 </dev/null` in
10873*GNU* | *'with BFD'*)
10874 lt_cv_prog_gnu_ld=yes
10875 ;;
10876*)
10877 lt_cv_prog_gnu_ld=no
10878 ;;
10879esac
10880fi
64ff59ba 10881{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10882echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 10883with_gnu_ld=$lt_cv_prog_gnu_ld
10884
10885
10886
10887 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10888 # archiving commands below assume that GNU ld is being used.
10889 if test "$with_gnu_ld" = yes; then
10890 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891 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'
10892
10893 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10894 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10895
10896 # If archive_cmds runs LD, not CC, wlarc should be empty
10897 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10898 # investigate it a little bit more. (MM)
10899 wlarc='${wl}'
10900
10901 # ancient GNU ld didn't support --whole-archive et. al.
10902 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10903 grep 'no-whole-archive' > /dev/null; then
10904 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10905 else
10906 whole_archive_flag_spec_CXX=
10907 fi
10908 else
10909 with_gnu_ld=no
10910 wlarc=
10911
10912 # A generic and very simple default shared library creation
10913 # command for GNU C++ for the case where it uses the native
10914 # linker, instead of GNU ld. If possible, this setting should
10915 # overridden to take advantage of the native linker features on
10916 # the platform it is being used on.
10917 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10918 fi
10919
10920 # Commands to make compiler produce verbose output that lists
10921 # what "hidden" libraries, object files and flags are used when
10922 # linking a shared library.
10923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10924
10925else
10926 GXX=no
10927 with_gnu_ld=no
10928 wlarc=
10929fi
10930
10931# PORTME: fill in a description of your system's C++ link characteristics
64ff59ba 10932{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10933echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 10934ld_shlibs_CXX=yes
10935case $host_os in
10936 aix3*)
10937 # FIXME: insert proper C++ library support
10938 ld_shlibs_CXX=no
10939 ;;
10940 aix4* | aix5*)
10941 if test "$host_cpu" = ia64; then
10942 # On IA64, the linker does run time linking by default, so we don't
10943 # have to do anything special.
10944 aix_use_runtimelinking=no
10945 exp_sym_flag='-Bexport'
10946 no_entry_flag=""
10947 else
10948 aix_use_runtimelinking=no
10949
10950 # Test if we are trying to use run time linking or normal
10951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10952 # need to do runtime linking.
10953 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10954 for ld_flag in $LDFLAGS; do
10955 case $ld_flag in
10956 *-brtl*)
10957 aix_use_runtimelinking=yes
10958 break
10959 ;;
10960 esac
10961 done
10962 ;;
10963 esac
10964
10965 exp_sym_flag='-bexport'
10966 no_entry_flag='-bnoentry'
10967 fi
10968
10969 # When large executables or shared objects are built, AIX ld can
10970 # have problems creating the table of contents. If linking a library
10971 # or program results in "error TOC overflow" add -mminimal-toc to
10972 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10973 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10974
10975 archive_cmds_CXX=''
10976 hardcode_direct_CXX=yes
10977 hardcode_libdir_separator_CXX=':'
10978 link_all_deplibs_CXX=yes
10979
10980 if test "$GXX" = yes; then
10981 case $host_os in aix4.[012]|aix4.[012].*)
10982 # We only want to do this on AIX 4.2 and lower, the check
10983 # below for broken collect2 doesn't work under 4.3+
10984 collect2name=`${CC} -print-prog-name=collect2`
10985 if test -f "$collect2name" && \
10986 strings "$collect2name" | grep resolve_lib_name >/dev/null
10987 then
10988 # We have reworked collect2
10989 hardcode_direct_CXX=yes
10990 else
10991 # We have old collect2
10992 hardcode_direct_CXX=unsupported
10993 # It fails to find uninstalled libraries when the uninstalled
10994 # path is not listed in the libpath. Setting hardcode_minus_L
10995 # to unsupported forces relinking
10996 hardcode_minus_L_CXX=yes
10997 hardcode_libdir_flag_spec_CXX='-L$libdir'
10998 hardcode_libdir_separator_CXX=
10999 fi
11000 ;;
11001 esac
11002 shared_flag='-shared'
11003 if test "$aix_use_runtimelinking" = yes; then
11004 shared_flag="$shared_flag "'${wl}-G'
11005 fi
11006 else
11007 # not using gcc
11008 if test "$host_cpu" = ia64; then
11009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11010 # chokes on -Wl,-G. The following line is correct:
11011 shared_flag='-G'
11012 else
11013 if test "$aix_use_runtimelinking" = yes; then
11014 shared_flag='${wl}-G'
11015 else
11016 shared_flag='${wl}-bM:SRE'
11017 fi
11018 fi
11019 fi
11020
11021 # It seems that -bexpall does not export symbols beginning with
11022 # underscore (_), so it is better to generate a list of symbols to export.
11023 always_export_symbols_CXX=yes
11024 if test "$aix_use_runtimelinking" = yes; then
11025 # Warning - without using the other runtime loading flags (-brtl),
11026 # -berok will link without error, but may produce a broken library.
11027 allow_undefined_flag_CXX='-berok'
11028 # Determine the default libpath from the value encoded in an empty executable.
11029 cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
11034/* end confdefs.h. */
11035
11036int
11037main ()
11038{
11039
11040 ;
11041 return 0;
11042}
11043_ACEOF
11044rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11045if { (ac_try="$ac_link"
11046case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_link") 2>conftest.er1
d9898ee8 11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11057 (exit $ac_status); } && {
11058 test -z "$ac_cxx_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest$ac_exeext &&
11061 $as_test_x conftest$ac_exeext; then
d9898ee8 11062
11063aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11064}'`
11065# Check for a 64-bit object if we didn't find anything.
11066if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11067}'`; fi
11068else
11069 echo "$as_me: failed program was:" >&5
11070sed 's/^/| /' conftest.$ac_ext >&5
11071
64ff59ba 11072
d9898ee8 11073fi
64ff59ba 11074
11075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11076 conftest$ac_exeext conftest.$ac_ext
11077if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11078
11079 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11080
11081 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"
11082 else
11083 if test "$host_cpu" = ia64; then
11084 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11085 allow_undefined_flag_CXX="-z nodefs"
11086 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"
11087 else
11088 # Determine the default libpath from the value encoded in an empty executable.
11089 cat >conftest.$ac_ext <<_ACEOF
11090/* confdefs.h. */
11091_ACEOF
11092cat confdefs.h >>conftest.$ac_ext
11093cat >>conftest.$ac_ext <<_ACEOF
11094/* end confdefs.h. */
11095
11096int
11097main ()
11098{
11099
11100 ;
11101 return 0;
11102}
11103_ACEOF
11104rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 11105if { (ac_try="$ac_link"
11106case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_link") 2>conftest.er1
d9898ee8 11112 ac_status=$?
11113 grep -v '^ *+' conftest.er1 >conftest.err
11114 rm -f conftest.er1
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 11117 (exit $ac_status); } && {
11118 test -z "$ac_cxx_werror_flag" ||
11119 test ! -s conftest.err
11120 } && test -s conftest$ac_exeext &&
11121 $as_test_x conftest$ac_exeext; then
d9898ee8 11122
11123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11124}'`
11125# Check for a 64-bit object if we didn't find anything.
11126if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11127}'`; fi
11128else
11129 echo "$as_me: failed program was:" >&5
11130sed 's/^/| /' conftest.$ac_ext >&5
11131
64ff59ba 11132
d9898ee8 11133fi
64ff59ba 11134
11135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11136 conftest$ac_exeext conftest.$ac_ext
11137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11138
11139 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11140 # Warning - without using the other run time loading flags,
11141 # -berok will link without error, but may produce a broken library.
11142 no_undefined_flag_CXX=' ${wl}-bernotok'
11143 allow_undefined_flag_CXX=' ${wl}-berok'
11144 # Exported symbols can be pulled into shared objects from archives
11145 whole_archive_flag_spec_CXX='$convenience'
11146 archive_cmds_need_lc_CXX=yes
11147 # This is similar to how AIX traditionally builds its shared libraries.
11148 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'
11149 fi
11150 fi
11151 ;;
11152
11153 beos*)
11154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11155 allow_undefined_flag_CXX=unsupported
11156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11157 # support --undefined. This deserves some investigation. FIXME
11158 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11159 else
11160 ld_shlibs_CXX=no
11161 fi
11162 ;;
11163
11164 chorus*)
11165 case $cc_basename in
11166 *)
11167 # FIXME: insert proper C++ library support
11168 ld_shlibs_CXX=no
11169 ;;
11170 esac
11171 ;;
11172
11173 cygwin* | mingw* | pw32*)
11174 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11175 # as there is no search path for DLLs.
11176 hardcode_libdir_flag_spec_CXX='-L$libdir'
11177 allow_undefined_flag_CXX=unsupported
11178 always_export_symbols_CXX=no
11179 enable_shared_with_static_runtimes_CXX=yes
11180
11181 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11182 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'
11183 # If the export-symbols file already is a .def file (1st line
11184 # is EXPORTS), use it as is; otherwise, prepend...
11185 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11186 cp $export_symbols $output_objdir/$soname.def;
11187 else
11188 echo EXPORTS > $output_objdir/$soname.def;
11189 cat $export_symbols >> $output_objdir/$soname.def;
11190 fi~
11191 $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'
11192 else
11193 ld_shlibs_CXX=no
11194 fi
11195 ;;
11196 darwin* | rhapsody*)
11197 case $host_os in
11198 rhapsody* | darwin1.[012])
11199 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11200 ;;
11201 *) # Darwin 1.3 on
11202 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11203 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11204 else
11205 case ${MACOSX_DEPLOYMENT_TARGET} in
11206 10.[012])
11207 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11208 ;;
11209 10.*)
11210 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11211 ;;
11212 esac
11213 fi
11214 ;;
11215 esac
11216 archive_cmds_need_lc_CXX=no
11217 hardcode_direct_CXX=no
11218 hardcode_automatic_CXX=yes
11219 hardcode_shlibpath_var_CXX=unsupported
11220 whole_archive_flag_spec_CXX=''
11221 link_all_deplibs_CXX=yes
11222
11223 if test "$GXX" = yes ; then
11224 lt_int_apple_cc_single_mod=no
11225 output_verbose_link_cmd='echo'
11226 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11227 lt_int_apple_cc_single_mod=yes
11228 fi
11229 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11230 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11231 else
11232 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'
11233 fi
11234 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11235 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11236 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11237 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}'
11238 else
11239 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}'
11240 fi
11241 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}'
11242 else
11243 case $cc_basename in
11244 xlc*)
11245 output_verbose_link_cmd='echo'
11246 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11247 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11248 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11249 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11250 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}'
11251 ;;
11252 *)
11253 ld_shlibs_CXX=no
11254 ;;
11255 esac
11256 fi
11257 ;;
11258
11259 dgux*)
11260 case $cc_basename in
11261 ec++*)
11262 # FIXME: insert proper C++ library support
11263 ld_shlibs_CXX=no
11264 ;;
11265 ghcx*)
11266 # Green Hills C++ Compiler
11267 # FIXME: insert proper C++ library support
11268 ld_shlibs_CXX=no
11269 ;;
11270 *)
11271 # FIXME: insert proper C++ library support
11272 ld_shlibs_CXX=no
11273 ;;
11274 esac
11275 ;;
11276 freebsd[12]*)
11277 # C++ shared libraries reported to be fairly broken before switch to ELF
11278 ld_shlibs_CXX=no
11279 ;;
11280 freebsd-elf*)
11281 archive_cmds_need_lc_CXX=no
11282 ;;
11283 freebsd* | kfreebsd*-gnu | dragonfly*)
11284 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11285 # conventions
11286 ld_shlibs_CXX=yes
11287 ;;
11288 gnu*)
11289 ;;
11290 hpux9*)
11291 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11292 hardcode_libdir_separator_CXX=:
11293 export_dynamic_flag_spec_CXX='${wl}-E'
11294 hardcode_direct_CXX=yes
11295 hardcode_minus_L_CXX=yes # Not in the search PATH,
11296 # but as the default
11297 # location of the library.
11298
11299 case $cc_basename in
11300 CC*)
11301 # FIXME: insert proper C++ library support
11302 ld_shlibs_CXX=no
11303 ;;
11304 aCC*)
11305 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'
11306 # Commands to make compiler produce verbose output that lists
11307 # what "hidden" libraries, object files and flags are used when
11308 # linking a shared library.
11309 #
11310 # There doesn't appear to be a way to prevent this compiler from
11311 # explicitly linking system object files so we need to strip them
11312 # from the output so that they don't get included in the library
11313 # dependencies.
11314 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'
11315 ;;
11316 *)
11317 if test "$GXX" = yes; then
11318 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'
11319 else
11320 # FIXME: insert proper C++ library support
11321 ld_shlibs_CXX=no
11322 fi
11323 ;;
11324 esac
11325 ;;
11326 hpux10*|hpux11*)
11327 if test $with_gnu_ld = no; then
11328 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11329 hardcode_libdir_separator_CXX=:
11330
11331 case $host_cpu in
11332 hppa*64*|ia64*)
11333 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11334 ;;
11335 *)
11336 export_dynamic_flag_spec_CXX='${wl}-E'
11337 ;;
11338 esac
11339 fi
11340 case $host_cpu in
11341 hppa*64*|ia64*)
11342 hardcode_direct_CXX=no
11343 hardcode_shlibpath_var_CXX=no
11344 ;;
11345 *)
11346 hardcode_direct_CXX=yes
11347 hardcode_minus_L_CXX=yes # Not in the search PATH,
11348 # but as the default
11349 # location of the library.
11350 ;;
11351 esac
11352
11353 case $cc_basename in
11354 CC*)
11355 # FIXME: insert proper C++ library support
11356 ld_shlibs_CXX=no
11357 ;;
11358 aCC*)
11359 case $host_cpu in
11360 hppa*64*)
11361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11362 ;;
11363 ia64*)
11364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11365 ;;
11366 *)
11367 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11368 ;;
11369 esac
11370 # Commands to make compiler produce verbose output that lists
11371 # what "hidden" libraries, object files and flags are used when
11372 # linking a shared library.
11373 #
11374 # There doesn't appear to be a way to prevent this compiler from
11375 # explicitly linking system object files so we need to strip them
11376 # from the output so that they don't get included in the library
11377 # dependencies.
11378 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'
11379 ;;
11380 *)
11381 if test "$GXX" = yes; then
11382 if test $with_gnu_ld = no; then
11383 case $host_cpu in
11384 hppa*64*)
11385 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11386 ;;
11387 ia64*)
11388 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11389 ;;
11390 *)
11391 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'
11392 ;;
11393 esac
11394 fi
11395 else
11396 # FIXME: insert proper C++ library support
11397 ld_shlibs_CXX=no
11398 fi
11399 ;;
11400 esac
11401 ;;
11402 interix3*)
11403 hardcode_direct_CXX=no
11404 hardcode_shlibpath_var_CXX=no
11405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11406 export_dynamic_flag_spec_CXX='${wl}-E'
11407 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11408 # Instead, shared libraries are loaded at an image base (0x10000000 by
11409 # default) and relocated if they conflict, which is a slow very memory
11410 # consuming and fragmenting process. To avoid this, we pick a random,
11411 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11412 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11413 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'
11414 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'
11415 ;;
11416 irix5* | irix6*)
11417 case $cc_basename in
11418 CC*)
11419 # SGI C++
11420 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'
11421
11422 # Archives containing C++ object files must be created using
11423 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11424 # necessary to make sure instantiated templates are included
11425 # in the archive.
11426 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11427 ;;
11428 *)
11429 if test "$GXX" = yes; then
11430 if test "$with_gnu_ld" = no; then
11431 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'
11432 else
11433 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'
11434 fi
11435 fi
11436 link_all_deplibs_CXX=yes
11437 ;;
11438 esac
11439 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11440 hardcode_libdir_separator_CXX=:
11441 ;;
11442 linux*)
11443 case $cc_basename in
11444 KCC*)
11445 # Kuck and Associates, Inc. (KAI) C++ Compiler
11446
11447 # KCC will only create a shared library if the output file
11448 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11449 # to its proper name (with version) after linking.
11450 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'
11451 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'
11452 # Commands to make compiler produce verbose output that lists
11453 # what "hidden" libraries, object files and flags are used when
11454 # linking a shared library.
11455 #
11456 # There doesn't appear to be a way to prevent this compiler from
11457 # explicitly linking system object files so we need to strip them
11458 # from the output so that they don't get included in the library
11459 # dependencies.
11460 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'
11461
11462 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11463 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11464
11465 # Archives containing C++ object files must be created using
11466 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11467 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11468 ;;
11469 icpc*)
11470 # Intel C++
11471 with_gnu_ld=yes
11472 # version 8.0 and above of icpc choke on multiply defined symbols
11473 # if we add $predep_objects and $postdep_objects, however 7.1 and
11474 # earlier do not add the objects themselves.
11475 case `$CC -V 2>&1` in
11476 *"Version 7."*)
11477 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11478 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'
11479 ;;
11480 *) # Version 8.0 or newer
11481 tmp_idyn=
11482 case $host_cpu in
11483 ia64*) tmp_idyn=' -i_dynamic';;
11484 esac
11485 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11486 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'
11487 ;;
11488 esac
11489 archive_cmds_need_lc_CXX=no
11490 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11491 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11492 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11493 ;;
11494 pgCC*)
11495 # Portland Group C++ compiler
11496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11497 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'
11498
11499 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11500 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11501 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'
11502 ;;
11503 cxx*)
11504 # Compaq C++
11505 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11506 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'
11507
11508 runpath_var=LD_RUN_PATH
11509 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11510 hardcode_libdir_separator_CXX=:
11511
11512 # Commands to make compiler produce verbose output that lists
11513 # what "hidden" libraries, object files and flags are used when
11514 # linking a shared library.
11515 #
11516 # There doesn't appear to be a way to prevent this compiler from
11517 # explicitly linking system object files so we need to strip them
11518 # from the output so that they don't get included in the library
11519 # dependencies.
11520 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'
11521 ;;
11522 esac
11523 ;;
11524 lynxos*)
11525 # FIXME: insert proper C++ library support
11526 ld_shlibs_CXX=no
11527 ;;
11528 m88k*)
11529 # FIXME: insert proper C++ library support
11530 ld_shlibs_CXX=no
11531 ;;
11532 mvs*)
11533 case $cc_basename in
11534 cxx*)
11535 # FIXME: insert proper C++ library support
11536 ld_shlibs_CXX=no
11537 ;;
11538 *)
11539 # FIXME: insert proper C++ library support
11540 ld_shlibs_CXX=no
11541 ;;
11542 esac
11543 ;;
11544 netbsd*)
11545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11546 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11547 wlarc=
11548 hardcode_libdir_flag_spec_CXX='-R$libdir'
11549 hardcode_direct_CXX=yes
11550 hardcode_shlibpath_var_CXX=no
11551 fi
11552 # Workaround some broken pre-1.5 toolchains
11553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11554 ;;
11555 openbsd2*)
11556 # C++ shared libraries are fairly broken
11557 ld_shlibs_CXX=no
11558 ;;
11559 openbsd*)
11560 hardcode_direct_CXX=yes
11561 hardcode_shlibpath_var_CXX=no
11562 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11563 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11564 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11565 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11566 export_dynamic_flag_spec_CXX='${wl}-E'
11567 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11568 fi
11569 output_verbose_link_cmd='echo'
11570 ;;
11571 osf3*)
11572 case $cc_basename in
11573 KCC*)
11574 # Kuck and Associates, Inc. (KAI) C++ Compiler
11575
11576 # KCC will only create a shared library if the output file
11577 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11578 # to its proper name (with version) after linking.
11579 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'
11580
11581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11582 hardcode_libdir_separator_CXX=:
11583
11584 # Archives containing C++ object files must be created using
11585 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11586 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11587
11588 ;;
11589 RCC*)
11590 # Rational C++ 2.4.1
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 cxx*)
11595 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11596 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'
11597
11598 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11599 hardcode_libdir_separator_CXX=:
11600
11601 # Commands to make compiler produce verbose output that lists
11602 # what "hidden" libraries, object files and flags are used when
11603 # linking a shared library.
11604 #
11605 # There doesn't appear to be a way to prevent this compiler from
11606 # explicitly linking system object files so we need to strip them
11607 # from the output so that they don't get included in the library
11608 # dependencies.
11609 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'
11610 ;;
11611 *)
11612 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11613 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11614 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'
11615
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11617 hardcode_libdir_separator_CXX=:
11618
11619 # Commands to make compiler produce verbose output that lists
11620 # what "hidden" libraries, object files and flags are used when
11621 # linking a shared library.
11622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11623
11624 else
11625 # FIXME: insert proper C++ library support
11626 ld_shlibs_CXX=no
11627 fi
11628 ;;
11629 esac
11630 ;;
11631 osf4* | osf5*)
11632 case $cc_basename in
11633 KCC*)
11634 # Kuck and Associates, Inc. (KAI) C++ Compiler
11635
11636 # KCC will only create a shared library if the output file
11637 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11638 # to its proper name (with version) after linking.
11639 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'
11640
11641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11642 hardcode_libdir_separator_CXX=:
11643
11644 # Archives containing C++ object files must be created using
11645 # the KAI C++ compiler.
11646 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11647 ;;
11648 RCC*)
11649 # Rational C++ 2.4.1
11650 # FIXME: insert proper C++ library support
11651 ld_shlibs_CXX=no
11652 ;;
11653 cxx*)
11654 allow_undefined_flag_CXX=' -expect_unresolved \*'
11655 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'
11656 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11657 echo "-hidden">> $lib.exp~
11658 $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~
11659 $rm $lib.exp'
11660
11661 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11662 hardcode_libdir_separator_CXX=:
11663
11664 # Commands to make compiler produce verbose output that lists
11665 # what "hidden" libraries, object files and flags are used when
11666 # linking a shared library.
11667 #
11668 # There doesn't appear to be a way to prevent this compiler from
11669 # explicitly linking system object files so we need to strip them
11670 # from the output so that they don't get included in the library
11671 # dependencies.
11672 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'
11673 ;;
11674 *)
11675 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11676 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11677 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'
11678
11679 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11680 hardcode_libdir_separator_CXX=:
11681
11682 # Commands to make compiler produce verbose output that lists
11683 # what "hidden" libraries, object files and flags are used when
11684 # linking a shared library.
11685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11686
11687 else
11688 # FIXME: insert proper C++ library support
11689 ld_shlibs_CXX=no
11690 fi
11691 ;;
11692 esac
11693 ;;
11694 psos*)
11695 # FIXME: insert proper C++ library support
11696 ld_shlibs_CXX=no
11697 ;;
11698 sunos4*)
11699 case $cc_basename in
11700 CC*)
11701 # Sun C++ 4.x
11702 # FIXME: insert proper C++ library support
11703 ld_shlibs_CXX=no
11704 ;;
11705 lcc*)
11706 # Lucid
11707 # FIXME: insert proper C++ library support
11708 ld_shlibs_CXX=no
11709 ;;
11710 *)
11711 # FIXME: insert proper C++ library support
11712 ld_shlibs_CXX=no
11713 ;;
11714 esac
11715 ;;
11716 solaris*)
11717 case $cc_basename in
11718 CC*)
11719 # Sun C++ 4.2, 5.x and Centerline C++
11720 archive_cmds_need_lc_CXX=yes
11721 no_undefined_flag_CXX=' -zdefs'
11722 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11723 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11724 $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'
11725
11726 hardcode_libdir_flag_spec_CXX='-R$libdir'
11727 hardcode_shlibpath_var_CXX=no
11728 case $host_os in
11729 solaris2.[0-5] | solaris2.[0-5].*) ;;
11730 *)
11731 # The C++ compiler is used as linker so we must use $wl
11732 # flag to pass the commands to the underlying system
11733 # linker. We must also pass each convience library through
11734 # to the system linker between allextract/defaultextract.
11735 # The C++ compiler will combine linker options so we
11736 # cannot just pass the convience library names through
11737 # without $wl.
11738 # Supported since Solaris 2.6 (maybe 2.5.1?)
11739 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11740 ;;
11741 esac
11742 link_all_deplibs_CXX=yes
11743
11744 output_verbose_link_cmd='echo'
11745
11746 # Archives containing C++ object files must be created using
11747 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11748 # necessary to make sure instantiated templates are included
11749 # in the archive.
11750 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11751 ;;
11752 gcx*)
11753 # Green Hills C++ Compiler
11754 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11755
11756 # The C++ compiler must be used to create the archive.
11757 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11758 ;;
11759 *)
11760 # GNU C++ compiler with Solaris linker
11761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11762 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11763 if $CC --version | grep -v '^2\.7' > /dev/null; then
11764 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11765 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11766 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11767
11768 # Commands to make compiler produce verbose output that lists
11769 # what "hidden" libraries, object files and flags are used when
11770 # linking a shared library.
11771 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11772 else
11773 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11774 # platform.
11775 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11776 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11777 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11778
11779 # Commands to make compiler produce verbose output that lists
11780 # what "hidden" libraries, object files and flags are used when
11781 # linking a shared library.
11782 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11783 fi
11784
11785 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11786 fi
11787 ;;
11788 esac
11789 ;;
11790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11791 no_undefined_flag_CXX='${wl}-z,text'
11792 archive_cmds_need_lc_CXX=no
11793 hardcode_shlibpath_var_CXX=no
11794 runpath_var='LD_RUN_PATH'
11795
11796 case $cc_basename in
11797 CC*)
11798 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11799 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 ;;
11801 *)
11802 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11803 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 ;;
11805 esac
11806 ;;
11807 sysv5* | sco3.2v5* | sco5v6*)
11808 # Note: We can NOT use -z defs as we might desire, because we do not
11809 # link with -lc, and that would cause any symbols used from libc to
11810 # always be unresolved, which means just about no library would
11811 # ever link correctly. If we're not using GNU ld we use -z text
11812 # though, which does catch some bad symbols but isn't as heavy-handed
11813 # as -z defs.
11814 # For security reasons, it is highly recommended that you always
11815 # use absolute paths for naming shared libraries, and exclude the
11816 # DT_RUNPATH tag from executables and libraries. But doing so
11817 # requires that you compile everything twice, which is a pain.
11818 # So that behaviour is only enabled if SCOABSPATH is set to a
11819 # non-empty value in the environment. Most likely only useful for
11820 # creating official distributions of packages.
11821 # This is a hack until libtool officially supports absolute path
11822 # names for shared libraries.
11823 no_undefined_flag_CXX='${wl}-z,text'
11824 allow_undefined_flag_CXX='${wl}-z,nodefs'
11825 archive_cmds_need_lc_CXX=no
11826 hardcode_shlibpath_var_CXX=no
11827 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11828 hardcode_libdir_separator_CXX=':'
11829 link_all_deplibs_CXX=yes
11830 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11831 runpath_var='LD_RUN_PATH'
11832
11833 case $cc_basename in
11834 CC*)
11835 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11836 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11837 ;;
11838 *)
11839 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11840 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 ;;
11842 esac
11843 ;;
11844 tandem*)
11845 case $cc_basename in
11846 NCC*)
11847 # NonStop-UX NCC 3.20
11848 # FIXME: insert proper C++ library support
11849 ld_shlibs_CXX=no
11850 ;;
11851 *)
11852 # FIXME: insert proper C++ library support
11853 ld_shlibs_CXX=no
11854 ;;
11855 esac
11856 ;;
11857 vxworks*)
11858 # FIXME: insert proper C++ library support
11859 ld_shlibs_CXX=no
11860 ;;
11861 *)
11862 # FIXME: insert proper C++ library support
11863 ld_shlibs_CXX=no
11864 ;;
11865esac
64ff59ba 11866{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11867echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 11868test "$ld_shlibs_CXX" = no && can_build_shared=no
11869
11870GCC_CXX="$GXX"
11871LD_CXX="$LD"
11872
11873
11874cat > conftest.$ac_ext <<EOF
11875class Foo
11876{
11877public:
11878 Foo (void) { a = 0; }
11879private:
11880 int a;
11881};
11882EOF
11883
11884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11885 (eval $ac_compile) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; then
11889 # Parse the compiler output and extract the necessary
11890 # objects, libraries and library flags.
11891
11892 # Sentinel used to keep track of whether or not we are before
11893 # the conftest object file.
11894 pre_test_object_deps_done=no
11895
11896 # The `*' in the case matches for architectures that use `case' in
11897 # $output_verbose_cmd can trigger glob expansion during the loop
11898 # eval without this substitution.
11899 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11900
11901 for p in `eval $output_verbose_link_cmd`; do
11902 case $p in
11903
11904 -L* | -R* | -l*)
11905 # Some compilers place space between "-{L,R}" and the path.
11906 # Remove the space.
11907 if test $p = "-L" \
11908 || test $p = "-R"; then
11909 prev=$p
11910 continue
11911 else
11912 prev=
11913 fi
11914
11915 if test "$pre_test_object_deps_done" = no; then
11916 case $p in
11917 -L* | -R*)
11918 # Internal compiler library paths should come after those
11919 # provided the user. The postdeps already come after the
11920 # user supplied libs so there is no need to process them.
11921 if test -z "$compiler_lib_search_path_CXX"; then
11922 compiler_lib_search_path_CXX="${prev}${p}"
11923 else
11924 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11925 fi
11926 ;;
11927 # The "-l" case would never come before the object being
11928 # linked, so don't bother handling this case.
11929 esac
11930 else
11931 if test -z "$postdeps_CXX"; then
11932 postdeps_CXX="${prev}${p}"
11933 else
11934 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11935 fi
11936 fi
11937 ;;
11938
11939 *.$objext)
11940 # This assumes that the test object file only shows up
11941 # once in the compiler output.
11942 if test "$p" = "conftest.$objext"; then
11943 pre_test_object_deps_done=yes
11944 continue
11945 fi
11946
11947 if test "$pre_test_object_deps_done" = no; then
11948 if test -z "$predep_objects_CXX"; then
11949 predep_objects_CXX="$p"
11950 else
11951 predep_objects_CXX="$predep_objects_CXX $p"
11952 fi
11953 else
11954 if test -z "$postdep_objects_CXX"; then
11955 postdep_objects_CXX="$p"
11956 else
11957 postdep_objects_CXX="$postdep_objects_CXX $p"
11958 fi
11959 fi
11960 ;;
11961
11962 *) ;; # Ignore the rest.
11963
11964 esac
11965 done
11966
11967 # Clean up.
11968 rm -f a.out a.exe
11969else
11970 echo "libtool.m4: error: problem compiling CXX test program"
11971fi
11972
11973$rm -f confest.$objext
11974
11975# PORTME: override above test on systems where it is broken
11976case $host_os in
11977interix3*)
11978 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11979 # hack all around it, let's just trust "g++" to DTRT.
11980 predep_objects_CXX=
11981 postdep_objects_CXX=
11982 postdeps_CXX=
11983 ;;
11984
11985solaris*)
11986 case $cc_basename in
11987 CC*)
11988 # Adding this requires a known-good setup of shared libraries for
11989 # Sun compiler versions before 5.6, else PIC objects from an old
11990 # archive will be linked into the output, leading to subtle bugs.
11991 postdeps_CXX='-lCstd -lCrun'
11992 ;;
11993 esac
11994 ;;
11995esac
11996
11997
11998case " $postdeps_CXX " in
11999*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12000esac
12001
12002lt_prog_compiler_wl_CXX=
12003lt_prog_compiler_pic_CXX=
12004lt_prog_compiler_static_CXX=
12005
64ff59ba 12006{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12007echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12008
12009 # C++ specific cases for pic, static, wl, etc.
12010 if test "$GXX" = yes; then
12011 lt_prog_compiler_wl_CXX='-Wl,'
12012 lt_prog_compiler_static_CXX='-static'
12013
12014 case $host_os in
12015 aix*)
12016 # All AIX code is PIC.
12017 if test "$host_cpu" = ia64; then
12018 # AIX 5 now supports IA64 processor
12019 lt_prog_compiler_static_CXX='-Bstatic'
12020 fi
12021 ;;
12022 amigaos*)
12023 # FIXME: we need at least 68020 code to build shared libraries, but
12024 # adding the `-m68020' flag to GCC prevents building anything better,
12025 # like `-m68040'.
12026 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12027 ;;
12028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12029 # PIC is the default for these OSes.
12030 ;;
12031 mingw* | os2* | pw32*)
12032 # This hack is so that the source file can tell whether it is being
12033 # built for inclusion in a dll (and should export symbols for example).
12034 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12035 ;;
12036 darwin* | rhapsody*)
12037 # PIC is the default on this platform
12038 # Common symbols not allowed in MH_DYLIB files
12039 lt_prog_compiler_pic_CXX='-fno-common'
12040 ;;
12041 *djgpp*)
12042 # DJGPP does not support shared libraries at all
12043 lt_prog_compiler_pic_CXX=
12044 ;;
12045 interix3*)
12046 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12047 # Instead, we relocate shared libraries at runtime.
12048 ;;
12049 sysv4*MP*)
12050 if test -d /usr/nec; then
12051 lt_prog_compiler_pic_CXX=-Kconform_pic
12052 fi
12053 ;;
12054 hpux*)
12055 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12056 # not for PA HP-UX.
12057 case $host_cpu in
12058 hppa*64*|ia64*)
12059 ;;
12060 *)
12061 lt_prog_compiler_pic_CXX='-fPIC'
12062 ;;
12063 esac
12064 ;;
12065 *)
12066 lt_prog_compiler_pic_CXX='-fPIC'
12067 ;;
12068 esac
12069 else
12070 case $host_os in
12071 aix4* | aix5*)
12072 # All AIX code is PIC.
12073 if test "$host_cpu" = ia64; then
12074 # AIX 5 now supports IA64 processor
12075 lt_prog_compiler_static_CXX='-Bstatic'
12076 else
12077 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12078 fi
12079 ;;
12080 chorus*)
12081 case $cc_basename in
12082 cxch68*)
12083 # Green Hills C++ Compiler
12084 # _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"
12085 ;;
12086 esac
12087 ;;
12088 darwin*)
12089 # PIC is the default on this platform
12090 # Common symbols not allowed in MH_DYLIB files
12091 case $cc_basename in
12092 xlc*)
12093 lt_prog_compiler_pic_CXX='-qnocommon'
12094 lt_prog_compiler_wl_CXX='-Wl,'
12095 ;;
12096 esac
12097 ;;
12098 dgux*)
12099 case $cc_basename in
12100 ec++*)
12101 lt_prog_compiler_pic_CXX='-KPIC'
12102 ;;
12103 ghcx*)
12104 # Green Hills C++ Compiler
12105 lt_prog_compiler_pic_CXX='-pic'
12106 ;;
12107 *)
12108 ;;
12109 esac
12110 ;;
12111 freebsd* | kfreebsd*-gnu | dragonfly*)
12112 # FreeBSD uses GNU C++
12113 ;;
12114 hpux9* | hpux10* | hpux11*)
12115 case $cc_basename in
12116 CC*)
12117 lt_prog_compiler_wl_CXX='-Wl,'
12118 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12119 if test "$host_cpu" != ia64; then
12120 lt_prog_compiler_pic_CXX='+Z'
12121 fi
12122 ;;
12123 aCC*)
12124 lt_prog_compiler_wl_CXX='-Wl,'
12125 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12126 case $host_cpu in
12127 hppa*64*|ia64*)
12128 # +Z the default
12129 ;;
12130 *)
12131 lt_prog_compiler_pic_CXX='+Z'
12132 ;;
12133 esac
12134 ;;
12135 *)
12136 ;;
12137 esac
12138 ;;
12139 interix*)
12140 # This is c89, which is MS Visual C++ (no shared libs)
12141 # Anyone wants to do a port?
12142 ;;
12143 irix5* | irix6* | nonstopux*)
12144 case $cc_basename in
12145 CC*)
12146 lt_prog_compiler_wl_CXX='-Wl,'
12147 lt_prog_compiler_static_CXX='-non_shared'
12148 # CC pic flag -KPIC is the default.
12149 ;;
12150 *)
12151 ;;
12152 esac
12153 ;;
12154 linux*)
12155 case $cc_basename in
12156 KCC*)
12157 # KAI C++ Compiler
12158 lt_prog_compiler_wl_CXX='--backend -Wl,'
12159 lt_prog_compiler_pic_CXX='-fPIC'
12160 ;;
12161 icpc* | ecpc*)
12162 # Intel C++
12163 lt_prog_compiler_wl_CXX='-Wl,'
12164 lt_prog_compiler_pic_CXX='-KPIC'
12165 lt_prog_compiler_static_CXX='-static'
12166 ;;
12167 pgCC*)
12168 # Portland Group C++ compiler.
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 lt_prog_compiler_pic_CXX='-fpic'
12171 lt_prog_compiler_static_CXX='-Bstatic'
12172 ;;
12173 cxx*)
12174 # Compaq C++
12175 # Make sure the PIC flag is empty. It appears that all Alpha
12176 # Linux and Compaq Tru64 Unix objects are PIC.
12177 lt_prog_compiler_pic_CXX=
12178 lt_prog_compiler_static_CXX='-non_shared'
12179 ;;
12180 *)
12181 ;;
12182 esac
12183 ;;
12184 lynxos*)
12185 ;;
12186 m88k*)
12187 ;;
12188 mvs*)
12189 case $cc_basename in
12190 cxx*)
12191 lt_prog_compiler_pic_CXX='-W c,exportall'
12192 ;;
12193 *)
12194 ;;
12195 esac
12196 ;;
12197 netbsd*)
12198 ;;
12199 osf3* | osf4* | osf5*)
12200 case $cc_basename in
12201 KCC*)
12202 lt_prog_compiler_wl_CXX='--backend -Wl,'
12203 ;;
12204 RCC*)
12205 # Rational C++ 2.4.1
12206 lt_prog_compiler_pic_CXX='-pic'
12207 ;;
12208 cxx*)
12209 # Digital/Compaq C++
12210 lt_prog_compiler_wl_CXX='-Wl,'
12211 # Make sure the PIC flag is empty. It appears that all Alpha
12212 # Linux and Compaq Tru64 Unix objects are PIC.
12213 lt_prog_compiler_pic_CXX=
12214 lt_prog_compiler_static_CXX='-non_shared'
12215 ;;
12216 *)
12217 ;;
12218 esac
12219 ;;
12220 psos*)
12221 ;;
12222 solaris*)
12223 case $cc_basename in
12224 CC*)
12225 # Sun C++ 4.2, 5.x and Centerline C++
12226 lt_prog_compiler_pic_CXX='-KPIC'
12227 lt_prog_compiler_static_CXX='-Bstatic'
12228 lt_prog_compiler_wl_CXX='-Qoption ld '
12229 ;;
12230 gcx*)
12231 # Green Hills C++ Compiler
12232 lt_prog_compiler_pic_CXX='-PIC'
12233 ;;
12234 *)
12235 ;;
12236 esac
12237 ;;
12238 sunos4*)
12239 case $cc_basename in
12240 CC*)
12241 # Sun C++ 4.x
12242 lt_prog_compiler_pic_CXX='-pic'
12243 lt_prog_compiler_static_CXX='-Bstatic'
12244 ;;
12245 lcc*)
12246 # Lucid
12247 lt_prog_compiler_pic_CXX='-pic'
12248 ;;
12249 *)
12250 ;;
12251 esac
12252 ;;
12253 tandem*)
12254 case $cc_basename in
12255 NCC*)
12256 # NonStop-UX NCC 3.20
12257 lt_prog_compiler_pic_CXX='-KPIC'
12258 ;;
12259 *)
12260 ;;
12261 esac
12262 ;;
12263 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12264 case $cc_basename in
12265 CC*)
12266 lt_prog_compiler_wl_CXX='-Wl,'
12267 lt_prog_compiler_pic_CXX='-KPIC'
12268 lt_prog_compiler_static_CXX='-Bstatic'
12269 ;;
12270 esac
12271 ;;
12272 vxworks*)
12273 ;;
12274 *)
12275 lt_prog_compiler_can_build_shared_CXX=no
12276 ;;
12277 esac
12278 fi
12279
64ff59ba 12280{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12281echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12282
12283#
12284# Check to make sure the PIC flag actually works.
12285#
12286if test -n "$lt_prog_compiler_pic_CXX"; then
12287
64ff59ba 12288{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12289echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12290if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292else
12293 lt_prog_compiler_pic_works_CXX=no
12294 ac_outfile=conftest.$ac_objext
12295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12296 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12297 # Insert the option either (1) after the last *FLAGS variable, or
12298 # (2) before a word containing "conftest.", or (3) at the end.
12299 # Note that $ac_compile itself does not contain backslashes and begins
12300 # with a dollar sign (not a hyphen), so the echo should work correctly.
12301 # The option is referenced via a variable to avoid confusing sed.
12302 lt_compile=`echo "$ac_compile" | $SED \
12303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12305 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12306 (eval echo "\"\$as_me:12306: $lt_compile\"" >&5)
d9898ee8 12307 (eval "$lt_compile" 2>conftest.err)
12308 ac_status=$?
12309 cat conftest.err >&5
64ff59ba 12310 echo "$as_me:12310: \$? = $ac_status" >&5
d9898ee8 12311 if (exit $ac_status) && test -s "$ac_outfile"; then
12312 # The compiler can only warn and ignore the option if not recognized
12313 # So say no if there are warnings other than the usual output.
12314 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12317 lt_prog_compiler_pic_works_CXX=yes
12318 fi
12319 fi
12320 $rm conftest*
12321
12322fi
64ff59ba 12323{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12324echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12325
12326if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12327 case $lt_prog_compiler_pic_CXX in
12328 "" | " "*) ;;
12329 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12330 esac
12331else
12332 lt_prog_compiler_pic_CXX=
12333 lt_prog_compiler_can_build_shared_CXX=no
12334fi
12335
12336fi
12337case $host_os in
12338 # For platforms which do not support PIC, -DPIC is meaningless:
12339 *djgpp*)
12340 lt_prog_compiler_pic_CXX=
12341 ;;
12342 *)
12343 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12344 ;;
12345esac
12346
12347#
12348# Check to make sure the static flag actually works.
12349#
12350wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
64ff59ba 12351{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12352echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12353if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12354 echo $ECHO_N "(cached) $ECHO_C" >&6
12355else
12356 lt_prog_compiler_static_works_CXX=no
12357 save_LDFLAGS="$LDFLAGS"
12358 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12359 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12360 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12361 # The linker can only warn and ignore the option if not recognized
12362 # So say no if there are warnings
12363 if test -s conftest.err; then
12364 # Append any errors to the config.log.
12365 cat conftest.err 1>&5
12366 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12367 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12368 if diff conftest.exp conftest.er2 >/dev/null; then
12369 lt_prog_compiler_static_works_CXX=yes
12370 fi
12371 else
12372 lt_prog_compiler_static_works_CXX=yes
12373 fi
12374 fi
12375 $rm conftest*
12376 LDFLAGS="$save_LDFLAGS"
12377
12378fi
64ff59ba 12379{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12380echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12381
12382if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12383 :
12384else
12385 lt_prog_compiler_static_CXX=
12386fi
12387
12388
64ff59ba 12389{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12390echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12391if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 lt_cv_prog_compiler_c_o_CXX=no
12395 $rm -r conftest 2>/dev/null
12396 mkdir conftest
12397 cd conftest
12398 mkdir out
12399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12400
12401 lt_compiler_flag="-o out/conftest2.$ac_objext"
12402 # Insert the option either (1) after the last *FLAGS variable, or
12403 # (2) before a word containing "conftest.", or (3) at the end.
12404 # Note that $ac_compile itself does not contain backslashes and begins
12405 # with a dollar sign (not a hyphen), so the echo should work correctly.
12406 lt_compile=`echo "$ac_compile" | $SED \
12407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12409 -e 's:$: $lt_compiler_flag:'`
64ff59ba 12410 (eval echo "\"\$as_me:12410: $lt_compile\"" >&5)
d9898ee8 12411 (eval "$lt_compile" 2>out/conftest.err)
12412 ac_status=$?
12413 cat out/conftest.err >&5
64ff59ba 12414 echo "$as_me:12414: \$? = $ac_status" >&5
d9898ee8 12415 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12416 then
12417 # The compiler can only warn and ignore the option if not recognized
12418 # So say no if there are warnings
12419 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12420 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12421 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12422 lt_cv_prog_compiler_c_o_CXX=yes
12423 fi
12424 fi
12425 chmod u+w . 2>&5
12426 $rm conftest*
12427 # SGI C++ compiler will create directory out/ii_files/ for
12428 # template instantiation
12429 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12430 $rm out/* && rmdir out
12431 cd ..
12432 rmdir conftest
12433 $rm conftest*
12434
12435fi
64ff59ba 12436{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12437echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12438
12439
12440hard_links="nottested"
12441if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12442 # do not overwrite the value of need_locks provided by the user
64ff59ba 12443 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12444echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12445 hard_links=yes
12446 $rm conftest*
12447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12448 touch conftest.a
12449 ln conftest.a conftest.b 2>&5 || hard_links=no
12450 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 12451 { echo "$as_me:$LINENO: result: $hard_links" >&5
12452echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12453 if test "$hard_links" = no; then
12454 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12455echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12456 need_locks=warn
12457 fi
12458else
12459 need_locks=no
12460fi
12461
64ff59ba 12462{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12463echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12464
12465 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12466 case $host_os in
12467 aix4* | aix5*)
12468 # If we're using GNU nm, then we don't want the "-C" option.
12469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12470 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12471 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'
12472 else
12473 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'
12474 fi
12475 ;;
12476 pw32*)
12477 export_symbols_cmds_CXX="$ltdll_cmds"
12478 ;;
12479 cygwin* | mingw*)
12480 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'
12481 ;;
12482 *)
12483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12484 ;;
12485 esac
12486
64ff59ba 12487{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12488echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12489test "$ld_shlibs_CXX" = no && can_build_shared=no
12490
12491#
12492# Do we need to explicitly link libc?
12493#
12494case "x$archive_cmds_need_lc_CXX" in
12495x|xyes)
12496 # Assume -lc should be added
12497 archive_cmds_need_lc_CXX=yes
12498
12499 if test "$enable_shared" = yes && test "$GCC" = yes; then
12500 case $archive_cmds_CXX in
12501 *'~'*)
12502 # FIXME: we may have to deal with multi-command sequences.
12503 ;;
12504 '$CC '*)
12505 # Test whether the compiler implicitly links with -lc since on some
12506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12507 # to ld, don't add -lc before -lgcc.
64ff59ba 12508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12509echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12510 $rm conftest*
12511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12512
12513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514 (eval $ac_compile) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } 2>conftest.err; then
12518 soname=conftest
12519 lib=conftest
12520 libobjs=conftest.$ac_objext
12521 deplibs=
12522 wl=$lt_prog_compiler_wl_CXX
12523 pic_flag=$lt_prog_compiler_pic_CXX
12524 compiler_flags=-v
12525 linker_flags=-v
12526 verstring=
12527 output_objdir=.
12528 libname=conftest
12529 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12530 allow_undefined_flag_CXX=
12531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12532 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12533 ac_status=$?
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }
12536 then
12537 archive_cmds_need_lc_CXX=no
12538 else
12539 archive_cmds_need_lc_CXX=yes
12540 fi
12541 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12542 else
12543 cat conftest.err 1>&5
12544 fi
12545 $rm conftest*
64ff59ba 12546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12547echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12548 ;;
12549 esac
12550 fi
12551 ;;
12552esac
12553
64ff59ba 12554{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12555echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12556library_names_spec=
12557libname_spec='lib$name'
12558soname_spec=
12559shrext_cmds=".so"
12560postinstall_cmds=
12561postuninstall_cmds=
12562finish_cmds=
12563finish_eval=
12564shlibpath_var=
12565shlibpath_overrides_runpath=unknown
12566version_type=none
12567dynamic_linker="$host_os ld.so"
12568sys_lib_dlsearch_path_spec="/lib /usr/lib"
12569if test "$GCC" = yes; then
12570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12572 # if the path contains ";" then we assume it to be the separator
12573 # otherwise default to the standard path separator (i.e. ":") - it is
12574 # assumed that no part of a normal pathname contains ";" but that should
12575 # okay in the real world where ";" in dirpaths is itself problematic.
12576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12577 else
12578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12579 fi
12580else
12581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12582fi
12583need_lib_prefix=unknown
12584hardcode_into_libs=no
12585
12586# when you set need_version to no, make sure it does not cause -set_version
12587# flags to be left without arguments
12588need_version=unknown
12589
12590case $host_os in
12591aix3*)
12592 version_type=linux
12593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12594 shlibpath_var=LIBPATH
12595
12596 # AIX 3 has no versioning support, so we append a major version to the name.
12597 soname_spec='${libname}${release}${shared_ext}$major'
12598 ;;
12599
12600aix4* | aix5*)
12601 version_type=linux
12602 need_lib_prefix=no
12603 need_version=no
12604 hardcode_into_libs=yes
12605 if test "$host_cpu" = ia64; then
12606 # AIX 5 supports IA64
12607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12608 shlibpath_var=LD_LIBRARY_PATH
12609 else
12610 # With GCC up to 2.95.x, collect2 would create an import file
12611 # for dependence libraries. The import file would start with
12612 # the line `#! .'. This would cause the generated library to
12613 # depend on `.', always an invalid library. This was fixed in
12614 # development snapshots of GCC prior to 3.0.
12615 case $host_os in
12616 aix4 | aix4.[01] | aix4.[01].*)
12617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12618 echo ' yes '
12619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12620 :
12621 else
12622 can_build_shared=no
12623 fi
12624 ;;
12625 esac
12626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12627 # soname into executable. Probably we can add versioning support to
12628 # collect2, so additional links can be useful in future.
12629 if test "$aix_use_runtimelinking" = yes; then
12630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12631 # instead of lib<name>.a to let people know that these are not
12632 # typical AIX shared libraries.
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12634 else
12635 # We preserve .a as extension for shared libraries through AIX4.2
12636 # and later when we are not doing run time linking.
12637 library_names_spec='${libname}${release}.a $libname.a'
12638 soname_spec='${libname}${release}${shared_ext}$major'
12639 fi
12640 shlibpath_var=LIBPATH
12641 fi
12642 ;;
12643
12644amigaos*)
12645 library_names_spec='$libname.ixlibrary $libname.a'
12646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12647 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'
12648 ;;
12649
12650beos*)
12651 library_names_spec='${libname}${shared_ext}'
12652 dynamic_linker="$host_os ld.so"
12653 shlibpath_var=LIBRARY_PATH
12654 ;;
12655
12656bsdi[45]*)
12657 version_type=linux
12658 need_version=no
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12662 shlibpath_var=LD_LIBRARY_PATH
12663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12665 # the default ld.so.conf also contains /usr/contrib/lib and
12666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12667 # libtool to hard-code these into programs
12668 ;;
12669
12670cygwin* | mingw* | pw32*)
12671 version_type=windows
12672 shrext_cmds=".dll"
12673 need_version=no
12674 need_lib_prefix=no
12675
12676 case $GCC,$host_os in
12677 yes,cygwin* | yes,mingw* | yes,pw32*)
12678 library_names_spec='$libname.dll.a'
12679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12680 postinstall_cmds='base_file=`basename \${file}`~
12681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12682 dldir=$destdir/`dirname \$dlpath`~
12683 test -d \$dldir || mkdir -p \$dldir~
12684 $install_prog $dir/$dlname \$dldir/$dlname~
12685 chmod a+x \$dldir/$dlname'
12686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12687 dlpath=$dir/\$dldll~
12688 $rm \$dlpath'
12689 shlibpath_overrides_runpath=yes
12690
12691 case $host_os in
12692 cygwin*)
12693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12694 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12695 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12696 ;;
12697 mingw*)
12698 # MinGW DLLs use traditional 'lib' prefix
12699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12701 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12702 # It is most probably a Windows format PATH printed by
12703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12704 # path with ; separators, and with drive letters. We can handle the
12705 # drive letters (cygwin fileutils understands them), so leave them,
12706 # especially as we might pass files found there to a mingw objdump,
12707 # which wouldn't understand a cygwinified path. Ahh.
12708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12709 else
12710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12711 fi
12712 ;;
12713 pw32*)
12714 # pw32 DLLs use 'pw' prefix rather than 'lib'
12715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12716 ;;
12717 esac
12718 ;;
12719
12720 *)
12721 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12722 ;;
12723 esac
12724 dynamic_linker='Win32 ld.exe'
12725 # FIXME: first we should search . and the directory the executable is in
12726 shlibpath_var=PATH
12727 ;;
12728
12729darwin* | rhapsody*)
12730 dynamic_linker="$host_os dyld"
12731 version_type=darwin
12732 need_lib_prefix=no
12733 need_version=no
12734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12735 soname_spec='${libname}${release}${major}$shared_ext'
12736 shlibpath_overrides_runpath=yes
12737 shlibpath_var=DYLD_LIBRARY_PATH
12738 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12740 if test "$GCC" = yes; then
12741 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12742 else
12743 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12744 fi
12745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12746 ;;
12747
12748dgux*)
12749 version_type=linux
12750 need_lib_prefix=no
12751 need_version=no
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 shlibpath_var=LD_LIBRARY_PATH
12755 ;;
12756
12757freebsd1*)
12758 dynamic_linker=no
12759 ;;
12760
12761kfreebsd*-gnu)
12762 version_type=linux
12763 need_lib_prefix=no
12764 need_version=no
12765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12766 soname_spec='${libname}${release}${shared_ext}$major'
12767 shlibpath_var=LD_LIBRARY_PATH
12768 shlibpath_overrides_runpath=no
12769 hardcode_into_libs=yes
12770 dynamic_linker='GNU ld.so'
12771 ;;
12772
12773freebsd* | dragonfly*)
12774 # DragonFly does not have aout. When/if they implement a new
12775 # versioning mechanism, adjust this.
12776 if test -x /usr/bin/objformat; then
12777 objformat=`/usr/bin/objformat`
12778 else
12779 case $host_os in
12780 freebsd[123]*) objformat=aout ;;
12781 *) objformat=elf ;;
12782 esac
12783 fi
12784 version_type=freebsd-$objformat
12785 case $version_type in
12786 freebsd-elf*)
12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12788 need_version=no
12789 need_lib_prefix=no
12790 ;;
12791 freebsd-*)
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12793 need_version=yes
12794 ;;
12795 esac
12796 shlibpath_var=LD_LIBRARY_PATH
12797 case $host_os in
12798 freebsd2*)
12799 shlibpath_overrides_runpath=yes
12800 ;;
12801 freebsd3.[01]* | freebsdelf3.[01]*)
12802 shlibpath_overrides_runpath=yes
12803 hardcode_into_libs=yes
12804 ;;
12805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12807 shlibpath_overrides_runpath=no
12808 hardcode_into_libs=yes
12809 ;;
12810 freebsd*) # from 4.6 on
12811 shlibpath_overrides_runpath=yes
12812 hardcode_into_libs=yes
12813 ;;
12814 esac
12815 ;;
12816
12817gnu*)
12818 version_type=linux
12819 need_lib_prefix=no
12820 need_version=no
12821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12822 soname_spec='${libname}${release}${shared_ext}$major'
12823 shlibpath_var=LD_LIBRARY_PATH
12824 hardcode_into_libs=yes
12825 ;;
12826
12827hpux9* | hpux10* | hpux11*)
12828 # Give a soname corresponding to the major version so that dld.sl refuses to
12829 # link against other versions.
12830 version_type=sunos
12831 need_lib_prefix=no
12832 need_version=no
12833 case $host_cpu in
12834 ia64*)
12835 shrext_cmds='.so'
12836 hardcode_into_libs=yes
12837 dynamic_linker="$host_os dld.so"
12838 shlibpath_var=LD_LIBRARY_PATH
12839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12841 soname_spec='${libname}${release}${shared_ext}$major'
12842 if test "X$HPUX_IA64_MODE" = X32; then
12843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12844 else
12845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12846 fi
12847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848 ;;
12849 hppa*64*)
12850 shrext_cmds='.sl'
12851 hardcode_into_libs=yes
12852 dynamic_linker="$host_os dld.sl"
12853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12856 soname_spec='${libname}${release}${shared_ext}$major'
12857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12859 ;;
12860 *)
12861 shrext_cmds='.sl'
12862 dynamic_linker="$host_os dld.sl"
12863 shlibpath_var=SHLIB_PATH
12864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 ;;
12868 esac
12869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12870 postinstall_cmds='chmod 555 $lib'
12871 ;;
12872
12873interix3*)
12874 version_type=linux
12875 need_lib_prefix=no
12876 need_version=no
12877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12878 soname_spec='${libname}${release}${shared_ext}$major'
12879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12880 shlibpath_var=LD_LIBRARY_PATH
12881 shlibpath_overrides_runpath=no
12882 hardcode_into_libs=yes
12883 ;;
12884
12885irix5* | irix6* | nonstopux*)
12886 case $host_os in
12887 nonstopux*) version_type=nonstopux ;;
12888 *)
12889 if test "$lt_cv_prog_gnu_ld" = yes; then
12890 version_type=linux
12891 else
12892 version_type=irix
12893 fi ;;
12894 esac
12895 need_lib_prefix=no
12896 need_version=no
12897 soname_spec='${libname}${release}${shared_ext}$major'
12898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12899 case $host_os in
12900 irix5* | nonstopux*)
12901 libsuff= shlibsuff=
12902 ;;
12903 *)
12904 case $LD in # libtool.m4 will add one of these switches to LD
12905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12906 libsuff= shlibsuff= libmagic=32-bit;;
12907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12908 libsuff=32 shlibsuff=N32 libmagic=N32;;
12909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12911 *) libsuff= shlibsuff= libmagic=never-match;;
12912 esac
12913 ;;
12914 esac
12915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12916 shlibpath_overrides_runpath=no
12917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12919 hardcode_into_libs=yes
12920 ;;
12921
12922# No shared lib support for Linux oldld, aout, or coff.
12923linux*oldld* | linux*aout* | linux*coff*)
12924 dynamic_linker=no
12925 ;;
12926
12927# This must be Linux ELF.
12928linux*)
12929 version_type=linux
12930 need_lib_prefix=no
12931 need_version=no
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12935 shlibpath_var=LD_LIBRARY_PATH
12936 shlibpath_overrides_runpath=no
12937 # This implies no fast_install, which is unacceptable.
12938 # Some rework will be needed to allow for fast_install
12939 # before this can be enabled.
12940 hardcode_into_libs=yes
12941
12942 # find out which ABI we are using
12943 libsuff=
12944 case "$host_cpu" in
12945 x86_64*|s390x*|powerpc64*)
64ff59ba 12946 echo '#line 12946 "configure"' > conftest.$ac_ext
d9898ee8 12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; then
12952 case `/usr/bin/file conftest.$ac_objext` in
12953 *64-bit*)
12954 libsuff=64
12955 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12956 ;;
12957 esac
12958 fi
12959 rm -rf conftest*
12960 ;;
12961 esac
12962
12963 # Append ld.so.conf contents to the search path
12964 if test -f /etc/ld.so.conf; then
64ff59ba 12965 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 12966 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12967 fi
12968
12969 # We used to test for /lib/ld.so.1 and disable shared libraries on
12970 # powerpc, because MkLinux only supported shared libraries with the
12971 # GNU dynamic linker. Since this was broken with cross compilers,
12972 # most powerpc-linux boxes support dynamic linking these days and
12973 # people can always --disable-shared, the test was removed, and we
12974 # assume the GNU/Linux dynamic linker is in use.
12975 dynamic_linker='GNU/Linux ld.so'
12976 ;;
12977
12978knetbsd*-gnu)
12979 version_type=linux
12980 need_lib_prefix=no
12981 need_version=no
12982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12983 soname_spec='${libname}${release}${shared_ext}$major'
12984 shlibpath_var=LD_LIBRARY_PATH
12985 shlibpath_overrides_runpath=no
12986 hardcode_into_libs=yes
12987 dynamic_linker='GNU ld.so'
12988 ;;
12989
12990netbsd*)
12991 version_type=sunos
12992 need_lib_prefix=no
12993 need_version=no
12994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12997 dynamic_linker='NetBSD (a.out) ld.so'
12998 else
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13000 soname_spec='${libname}${release}${shared_ext}$major'
13001 dynamic_linker='NetBSD ld.elf_so'
13002 fi
13003 shlibpath_var=LD_LIBRARY_PATH
13004 shlibpath_overrides_runpath=yes
13005 hardcode_into_libs=yes
13006 ;;
13007
13008newsos6)
13009 version_type=linux
13010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13011 shlibpath_var=LD_LIBRARY_PATH
13012 shlibpath_overrides_runpath=yes
13013 ;;
13014
13015nto-qnx*)
13016 version_type=linux
13017 need_lib_prefix=no
13018 need_version=no
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 shlibpath_var=LD_LIBRARY_PATH
13022 shlibpath_overrides_runpath=yes
13023 ;;
13024
13025openbsd*)
13026 version_type=sunos
13027 sys_lib_dlsearch_path_spec="/usr/lib"
13028 need_lib_prefix=no
13029 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13030 case $host_os in
13031 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13032 *) need_version=no ;;
13033 esac
13034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13036 shlibpath_var=LD_LIBRARY_PATH
13037 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13038 case $host_os in
13039 openbsd2.[89] | openbsd2.[89].*)
13040 shlibpath_overrides_runpath=no
13041 ;;
13042 *)
13043 shlibpath_overrides_runpath=yes
13044 ;;
13045 esac
13046 else
13047 shlibpath_overrides_runpath=yes
13048 fi
13049 ;;
13050
13051os2*)
13052 libname_spec='$name'
13053 shrext_cmds=".dll"
13054 need_lib_prefix=no
13055 library_names_spec='$libname${shared_ext} $libname.a'
13056 dynamic_linker='OS/2 ld.exe'
13057 shlibpath_var=LIBPATH
13058 ;;
13059
13060osf3* | osf4* | osf5*)
13061 version_type=osf
13062 need_lib_prefix=no
13063 need_version=no
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13068 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13069 ;;
13070
13071solaris*)
13072 version_type=linux
13073 need_lib_prefix=no
13074 need_version=no
13075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 shlibpath_var=LD_LIBRARY_PATH
13078 shlibpath_overrides_runpath=yes
13079 hardcode_into_libs=yes
13080 # ldd complains unless libraries are executable
13081 postinstall_cmds='chmod +x $lib'
13082 ;;
13083
13084sunos4*)
13085 version_type=sunos
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13087 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13088 shlibpath_var=LD_LIBRARY_PATH
13089 shlibpath_overrides_runpath=yes
13090 if test "$with_gnu_ld" = yes; then
13091 need_lib_prefix=no
13092 fi
13093 need_version=yes
13094 ;;
13095
13096sysv4 | sysv4.3*)
13097 version_type=linux
13098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13099 soname_spec='${libname}${release}${shared_ext}$major'
13100 shlibpath_var=LD_LIBRARY_PATH
13101 case $host_vendor in
13102 sni)
13103 shlibpath_overrides_runpath=no
13104 need_lib_prefix=no
13105 export_dynamic_flag_spec='${wl}-Blargedynsym'
13106 runpath_var=LD_RUN_PATH
13107 ;;
13108 siemens)
13109 need_lib_prefix=no
13110 ;;
13111 motorola)
13112 need_lib_prefix=no
13113 need_version=no
13114 shlibpath_overrides_runpath=no
13115 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13116 ;;
13117 esac
13118 ;;
13119
13120sysv4*MP*)
13121 if test -d /usr/nec ;then
13122 version_type=linux
13123 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13124 soname_spec='$libname${shared_ext}.$major'
13125 shlibpath_var=LD_LIBRARY_PATH
13126 fi
13127 ;;
13128
13129sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13130 version_type=freebsd-elf
13131 need_lib_prefix=no
13132 need_version=no
13133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13134 soname_spec='${libname}${release}${shared_ext}$major'
13135 shlibpath_var=LD_LIBRARY_PATH
13136 hardcode_into_libs=yes
13137 if test "$with_gnu_ld" = yes; then
13138 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13139 shlibpath_overrides_runpath=no
13140 else
13141 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13142 shlibpath_overrides_runpath=yes
13143 case $host_os in
13144 sco3.2v5*)
13145 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13146 ;;
13147 esac
13148 fi
13149 sys_lib_dlsearch_path_spec='/usr/lib'
13150 ;;
13151
13152uts4*)
13153 version_type=linux
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13155 soname_spec='${libname}${release}${shared_ext}$major'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 ;;
13158
13159*)
13160 dynamic_linker=no
13161 ;;
13162esac
64ff59ba 13163{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13164echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13165test "$dynamic_linker" = no && can_build_shared=no
13166
13167variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13168if test "$GCC" = yes; then
13169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13170fi
13171
64ff59ba 13172{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13173echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13174hardcode_action_CXX=
13175if test -n "$hardcode_libdir_flag_spec_CXX" || \
13176 test -n "$runpath_var_CXX" || \
13177 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13178
13179 # We can hardcode non-existant directories.
13180 if test "$hardcode_direct_CXX" != no &&
13181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13182 # have to relink, otherwise we might link with an installed library
13183 # when we should be linking with a yet-to-be-installed one
13184 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13185 test "$hardcode_minus_L_CXX" != no; then
13186 # Linking always hardcodes the temporary library directory.
13187 hardcode_action_CXX=relink
13188 else
13189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13190 hardcode_action_CXX=immediate
13191 fi
13192else
13193 # We cannot hardcode anything, or else we can only hardcode existing
13194 # directories.
13195 hardcode_action_CXX=unsupported
13196fi
64ff59ba 13197{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13198echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13199
13200if test "$hardcode_action_CXX" = relink; then
13201 # Fast installation is not supported
13202 enable_fast_install=no
13203elif test "$shlibpath_overrides_runpath" = yes ||
13204 test "$enable_shared" = no; then
13205 # Fast installation is not necessary
13206 enable_fast_install=needless
13207fi
13208
13209
13210# The else clause should only fire when bootstrapping the
13211# libtool distribution, otherwise you forgot to ship ltmain.sh
13212# with your package, and you will get complaints that there are
13213# no rules to generate ltmain.sh.
13214if test -f "$ltmain"; then
13215 # See if we are running on zsh, and set the options which allow our commands through
13216 # without removal of \ escapes.
13217 if test -n "${ZSH_VERSION+set}" ; then
13218 setopt NO_GLOB_SUBST
13219 fi
13220 # Now quote all the things that may contain metacharacters while being
13221 # careful not to overquote the AC_SUBSTed values. We take copies of the
13222 # variables and quote the copies for generation of the libtool script.
13223 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13224 SED SHELL STRIP \
13225 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13226 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13227 deplibs_check_method reload_flag reload_cmds need_locks \
13228 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13229 lt_cv_sys_global_symbol_to_c_name_address \
13230 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13231 old_postinstall_cmds old_postuninstall_cmds \
13232 compiler_CXX \
13233 CC_CXX \
13234 LD_CXX \
13235 lt_prog_compiler_wl_CXX \
13236 lt_prog_compiler_pic_CXX \
13237 lt_prog_compiler_static_CXX \
13238 lt_prog_compiler_no_builtin_flag_CXX \
13239 export_dynamic_flag_spec_CXX \
13240 thread_safe_flag_spec_CXX \
13241 whole_archive_flag_spec_CXX \
13242 enable_shared_with_static_runtimes_CXX \
13243 old_archive_cmds_CXX \
13244 old_archive_from_new_cmds_CXX \
13245 predep_objects_CXX \
13246 postdep_objects_CXX \
13247 predeps_CXX \
13248 postdeps_CXX \
13249 compiler_lib_search_path_CXX \
13250 archive_cmds_CXX \
13251 archive_expsym_cmds_CXX \
13252 postinstall_cmds_CXX \
13253 postuninstall_cmds_CXX \
13254 old_archive_from_expsyms_cmds_CXX \
13255 allow_undefined_flag_CXX \
13256 no_undefined_flag_CXX \
13257 export_symbols_cmds_CXX \
13258 hardcode_libdir_flag_spec_CXX \
13259 hardcode_libdir_flag_spec_ld_CXX \
13260 hardcode_libdir_separator_CXX \
13261 hardcode_automatic_CXX \
13262 module_cmds_CXX \
13263 module_expsym_cmds_CXX \
13264 lt_cv_prog_compiler_c_o_CXX \
13265 exclude_expsyms_CXX \
13266 include_expsyms_CXX; do
13267
13268 case $var in
13269 old_archive_cmds_CXX | \
13270 old_archive_from_new_cmds_CXX | \
13271 archive_cmds_CXX | \
13272 archive_expsym_cmds_CXX | \
13273 module_cmds_CXX | \
13274 module_expsym_cmds_CXX | \
13275 old_archive_from_expsyms_cmds_CXX | \
13276 export_symbols_cmds_CXX | \
13277 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13278 postinstall_cmds | postuninstall_cmds | \
13279 old_postinstall_cmds | old_postuninstall_cmds | \
13280 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13281 # Double-quote double-evaled strings.
13282 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13283 ;;
13284 *)
13285 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13286 ;;
13287 esac
13288 done
13289
13290 case $lt_echo in
13291 *'\$0 --fallback-echo"')
13292 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13293 ;;
13294 esac
13295
13296cfgfile="$ofile"
13297
13298 cat <<__EOF__ >> "$cfgfile"
13299# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13300
13301# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13302
13303# Shell to use when invoking shell scripts.
13304SHELL=$lt_SHELL
13305
13306# Whether or not to build shared libraries.
13307build_libtool_libs=$enable_shared
13308
13309# Whether or not to build static libraries.
13310build_old_libs=$enable_static
13311
13312# Whether or not to add -lc for building shared libraries.
13313build_libtool_need_lc=$archive_cmds_need_lc_CXX
13314
13315# Whether or not to disallow shared libs when runtime libs are static
13316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13317
13318# Whether or not to optimize for fast installation.
13319fast_install=$enable_fast_install
13320
13321# The host system.
13322host_alias=$host_alias
13323host=$host
13324host_os=$host_os
13325
13326# The build system.
13327build_alias=$build_alias
13328build=$build
13329build_os=$build_os
13330
13331# An echo program that does not interpret backslashes.
13332echo=$lt_echo
13333
13334# The archiver.
13335AR=$lt_AR
13336AR_FLAGS=$lt_AR_FLAGS
13337
13338# A C compiler.
13339LTCC=$lt_LTCC
13340
13341# LTCC compiler flags.
13342LTCFLAGS=$lt_LTCFLAGS
13343
13344# A language-specific compiler.
13345CC=$lt_compiler_CXX
13346
13347# Is the compiler the GNU C compiler?
13348with_gcc=$GCC_CXX
13349
d9898ee8 13350# An ERE matcher.
13351EGREP=$lt_EGREP
13352
13353# The linker used to build libraries.
13354LD=$lt_LD_CXX
13355
13356# Whether we need hard or soft links.
13357LN_S=$lt_LN_S
13358
13359# A BSD-compatible nm program.
13360NM=$lt_NM
13361
13362# A symbol stripping program
13363STRIP=$lt_STRIP
13364
13365# Used to examine libraries when file_magic_cmd begins "file"
13366MAGIC_CMD=$MAGIC_CMD
13367
13368# Used on cygwin: DLL creation program.
13369DLLTOOL="$DLLTOOL"
13370
13371# Used on cygwin: object dumper.
13372OBJDUMP="$OBJDUMP"
13373
13374# Used on cygwin: assembler.
13375AS="$AS"
13376
13377# The name of the directory that contains temporary libtool files.
13378objdir=$objdir
13379
13380# How to create reloadable object files.
13381reload_flag=$lt_reload_flag
13382reload_cmds=$lt_reload_cmds
13383
13384# How to pass a linker flag through the compiler.
13385wl=$lt_lt_prog_compiler_wl_CXX
13386
13387# Object file suffix (normally "o").
13388objext="$ac_objext"
13389
13390# Old archive suffix (normally "a").
13391libext="$libext"
13392
13393# Shared library suffix (normally ".so").
13394shrext_cmds='$shrext_cmds'
13395
13396# Executable file suffix (normally "").
13397exeext="$exeext"
13398
13399# Additional compiler flags for building library objects.
13400pic_flag=$lt_lt_prog_compiler_pic_CXX
13401pic_mode=$pic_mode
13402
13403# What is the maximum length of a command?
13404max_cmd_len=$lt_cv_sys_max_cmd_len
13405
13406# Does compiler simultaneously support -c and -o options?
13407compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13408
13409# Must we lock files when doing compilation?
13410need_locks=$lt_need_locks
13411
13412# Do we need the lib prefix for modules?
13413need_lib_prefix=$need_lib_prefix
13414
13415# Do we need a version for libraries?
13416need_version=$need_version
13417
13418# Whether dlopen is supported.
13419dlopen_support=$enable_dlopen
13420
13421# Whether dlopen of programs is supported.
13422dlopen_self=$enable_dlopen_self
13423
13424# Whether dlopen of statically linked programs is supported.
13425dlopen_self_static=$enable_dlopen_self_static
13426
13427# Compiler flag to prevent dynamic linking.
13428link_static_flag=$lt_lt_prog_compiler_static_CXX
13429
13430# Compiler flag to turn off builtin functions.
13431no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13432
13433# Compiler flag to allow reflexive dlopens.
13434export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13435
13436# Compiler flag to generate shared objects directly from archives.
13437whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13438
13439# Compiler flag to generate thread-safe objects.
13440thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13441
13442# Library versioning type.
13443version_type=$version_type
13444
13445# Format of library name prefix.
13446libname_spec=$lt_libname_spec
13447
13448# List of archive names. First name is the real one, the rest are links.
13449# The last name is the one that the linker finds with -lNAME.
13450library_names_spec=$lt_library_names_spec
13451
13452# The coded name of the library, if different from the real name.
13453soname_spec=$lt_soname_spec
13454
13455# Commands used to build and install an old-style archive.
13456RANLIB=$lt_RANLIB
13457old_archive_cmds=$lt_old_archive_cmds_CXX
13458old_postinstall_cmds=$lt_old_postinstall_cmds
13459old_postuninstall_cmds=$lt_old_postuninstall_cmds
13460
13461# Create an old-style archive from a shared archive.
13462old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13463
13464# Create a temporary old-style archive to link instead of a shared archive.
13465old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13466
13467# Commands used to build and install a shared archive.
13468archive_cmds=$lt_archive_cmds_CXX
13469archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13470postinstall_cmds=$lt_postinstall_cmds
13471postuninstall_cmds=$lt_postuninstall_cmds
13472
13473# Commands used to build a loadable module (assumed same as above if empty)
13474module_cmds=$lt_module_cmds_CXX
13475module_expsym_cmds=$lt_module_expsym_cmds_CXX
13476
13477# Commands to strip libraries.
13478old_striplib=$lt_old_striplib
13479striplib=$lt_striplib
13480
13481# Dependencies to place before the objects being linked to create a
13482# shared library.
64ff59ba 13483predep_objects=$lt_predep_objects_CXX
d9898ee8 13484
13485# Dependencies to place after the objects being linked to create a
13486# shared library.
64ff59ba 13487postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13488
13489# Dependencies to place before the objects being linked to create a
13490# shared library.
13491predeps=$lt_predeps_CXX
13492
13493# Dependencies to place after the objects being linked to create a
13494# shared library.
13495postdeps=$lt_postdeps_CXX
13496
13497# The library search path used internally by the compiler when linking
13498# a shared library.
64ff59ba 13499compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13500
13501# Method to check whether dependent libraries are shared objects.
13502deplibs_check_method=$lt_deplibs_check_method
13503
13504# Command to use when deplibs_check_method == file_magic.
13505file_magic_cmd=$lt_file_magic_cmd
13506
13507# Flag that allows shared libraries with undefined symbols to be built.
13508allow_undefined_flag=$lt_allow_undefined_flag_CXX
13509
13510# Flag that forces no undefined symbols.
13511no_undefined_flag=$lt_no_undefined_flag_CXX
13512
13513# Commands used to finish a libtool library installation in a directory.
13514finish_cmds=$lt_finish_cmds
13515
13516# Same as above, but a single script fragment to be evaled but not shown.
13517finish_eval=$lt_finish_eval
13518
13519# Take the output of nm and produce a listing of raw symbols and C names.
13520global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13521
13522# Transform the output of nm in a proper C declaration
13523global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13524
13525# Transform the output of nm in a C name address pair
13526global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13527
13528# This is the shared library runtime path variable.
13529runpath_var=$runpath_var
13530
13531# This is the shared library path variable.
13532shlibpath_var=$shlibpath_var
13533
13534# Is shlibpath searched before the hard-coded library search path?
13535shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13536
13537# How to hardcode a shared library path into an executable.
13538hardcode_action=$hardcode_action_CXX
13539
13540# Whether we should hardcode library paths into libraries.
13541hardcode_into_libs=$hardcode_into_libs
13542
13543# Flag to hardcode \$libdir into a binary during linking.
13544# This must work even if \$libdir does not exist.
13545hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13546
13547# If ld is used when linking, flag to hardcode \$libdir into
13548# a binary during linking. This must work even if \$libdir does
13549# not exist.
13550hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13551
13552# Whether we need a single -rpath flag with a separated argument.
13553hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13554
13555# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13556# resulting binary.
13557hardcode_direct=$hardcode_direct_CXX
13558
13559# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13560# resulting binary.
13561hardcode_minus_L=$hardcode_minus_L_CXX
13562
13563# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13564# the resulting binary.
13565hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13566
13567# Set to yes if building a shared library automatically hardcodes DIR into the library
13568# and all subsequent libraries and executables linked against it.
13569hardcode_automatic=$hardcode_automatic_CXX
13570
13571# Variables whose values should be saved in libtool wrapper scripts and
13572# restored at relink time.
13573variables_saved_for_relink="$variables_saved_for_relink"
13574
13575# Whether libtool must link a program against all its dependency libraries.
13576link_all_deplibs=$link_all_deplibs_CXX
13577
13578# Compile-time system search path for libraries
64ff59ba 13579sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13580
13581# Run-time system search path for libraries
13582sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13583
13584# Fix the shell variable \$srcfile for the compiler.
13585fix_srcfile_path="$fix_srcfile_path_CXX"
13586
13587# Set to yes if exported symbols are required.
13588always_export_symbols=$always_export_symbols_CXX
13589
13590# The commands to list exported symbols.
13591export_symbols_cmds=$lt_export_symbols_cmds_CXX
13592
13593# The commands to extract the exported symbol list from a shared archive.
13594extract_expsyms_cmds=$lt_extract_expsyms_cmds
13595
13596# Symbols that should not be listed in the preloaded symbols.
13597exclude_expsyms=$lt_exclude_expsyms_CXX
13598
13599# Symbols that must always be exported.
13600include_expsyms=$lt_include_expsyms_CXX
13601
13602# ### END LIBTOOL TAG CONFIG: $tagname
13603
13604__EOF__
13605
13606
13607else
13608 # If there is no Makefile yet, we rely on a make rule to execute
13609 # `config.status --recheck' to rerun these tests and create the
13610 # libtool script then.
13611 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13612 if test -f "$ltmain_in"; then
13613 test -f Makefile && make "$ltmain"
13614 fi
13615fi
13616
13617
13618ac_ext=c
13619ac_cpp='$CPP $CPPFLAGS'
13620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13622ac_compiler_gnu=$ac_cv_c_compiler_gnu
13623
13624CC=$lt_save_CC
13625LDCXX=$LD
13626LD=$lt_save_LD
13627GCC=$lt_save_GCC
13628with_gnu_ldcxx=$with_gnu_ld
13629with_gnu_ld=$lt_save_with_gnu_ld
13630lt_cv_path_LDCXX=$lt_cv_path_LD
13631lt_cv_path_LD=$lt_save_path_LD
13632lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13633lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13634
13635 else
13636 tagname=""
13637 fi
13638 ;;
13639
13640 F77)
13641 if test -n "$F77" && test "X$F77" != "Xno"; then
13642
13643ac_ext=f
13644ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13645ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13646ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13647
13648
13649archive_cmds_need_lc_F77=no
13650allow_undefined_flag_F77=
13651always_export_symbols_F77=no
13652archive_expsym_cmds_F77=
13653export_dynamic_flag_spec_F77=
13654hardcode_direct_F77=no
13655hardcode_libdir_flag_spec_F77=
13656hardcode_libdir_flag_spec_ld_F77=
13657hardcode_libdir_separator_F77=
13658hardcode_minus_L_F77=no
13659hardcode_automatic_F77=no
13660module_cmds_F77=
13661module_expsym_cmds_F77=
13662link_all_deplibs_F77=unknown
13663old_archive_cmds_F77=$old_archive_cmds
13664no_undefined_flag_F77=
13665whole_archive_flag_spec_F77=
13666enable_shared_with_static_runtimes_F77=no
13667
13668# Source file extension for f77 test sources.
13669ac_ext=f
13670
13671# Object file extension for compiled f77 test sources.
13672objext=o
13673objext_F77=$objext
13674
13675# Code to be used in simple compile tests
13676lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13677
13678# Code to be used in simple link tests
13679lt_simple_link_test_code=" program t\n end\n"
13680
13681# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13682
13683# If no C compiler was specified, use CC.
13684LTCC=${LTCC-"$CC"}
13685
13686# If no C compiler flags were specified, use CFLAGS.
13687LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13688
13689# Allow CC to be a program name with arguments.
13690compiler=$CC
13691
13692
13693# save warnings/boilerplate of simple test code
13694ac_outfile=conftest.$ac_objext
13695printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13696eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13697_lt_compiler_boilerplate=`cat conftest.err`
13698$rm conftest*
13699
13700ac_outfile=conftest.$ac_objext
13701printf "$lt_simple_link_test_code" >conftest.$ac_ext
13702eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13703_lt_linker_boilerplate=`cat conftest.err`
13704$rm conftest*
13705
13706
13707# Allow CC to be a program name with arguments.
13708lt_save_CC="$CC"
13709CC=${F77-"f77"}
13710compiler=$CC
13711compiler_F77=$CC
13712for cc_temp in $compiler""; do
13713 case $cc_temp in
13714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13716 \-*) ;;
13717 *) break;;
13718 esac
13719done
13720cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13721
13722
64ff59ba 13723{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13724echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13725{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13726echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13727
64ff59ba 13728{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13729echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13730test "$can_build_shared" = "no" && enable_shared=no
13731
13732# On AIX, shared libraries and static libraries use the same namespace, and
13733# are all built from PIC.
13734case $host_os in
13735aix3*)
13736 test "$enable_shared" = yes && enable_static=no
13737 if test -n "$RANLIB"; then
13738 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13739 postinstall_cmds='$RANLIB $lib'
13740 fi
13741 ;;
13742aix4* | aix5*)
13743 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13744 test "$enable_shared" = yes && enable_static=no
13745 fi
13746 ;;
13747esac
64ff59ba 13748{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13749echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13750
64ff59ba 13751{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13752echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13753# Make sure either enable_shared or enable_static is yes.
13754test "$enable_shared" = yes || enable_static=yes
64ff59ba 13755{ echo "$as_me:$LINENO: result: $enable_static" >&5
13756echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13757
13758GCC_F77="$G77"
13759LD_F77="$LD"
13760
13761lt_prog_compiler_wl_F77=
13762lt_prog_compiler_pic_F77=
13763lt_prog_compiler_static_F77=
13764
64ff59ba 13765{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13766echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 13767
13768 if test "$GCC" = yes; then
13769 lt_prog_compiler_wl_F77='-Wl,'
13770 lt_prog_compiler_static_F77='-static'
13771
13772 case $host_os in
13773 aix*)
13774 # All AIX code is PIC.
13775 if test "$host_cpu" = ia64; then
13776 # AIX 5 now supports IA64 processor
13777 lt_prog_compiler_static_F77='-Bstatic'
13778 fi
13779 ;;
13780
13781 amigaos*)
13782 # FIXME: we need at least 68020 code to build shared libraries, but
13783 # adding the `-m68020' flag to GCC prevents building anything better,
13784 # like `-m68040'.
13785 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13786 ;;
13787
13788 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13789 # PIC is the default for these OSes.
13790 ;;
13791
13792 mingw* | pw32* | os2*)
13793 # This hack is so that the source file can tell whether it is being
13794 # built for inclusion in a dll (and should export symbols for example).
13795 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13796 ;;
13797
13798 darwin* | rhapsody*)
13799 # PIC is the default on this platform
13800 # Common symbols not allowed in MH_DYLIB files
13801 lt_prog_compiler_pic_F77='-fno-common'
13802 ;;
13803
13804 interix3*)
13805 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13806 # Instead, we relocate shared libraries at runtime.
13807 ;;
13808
13809 msdosdjgpp*)
13810 # Just because we use GCC doesn't mean we suddenly get shared libraries
13811 # on systems that don't support them.
13812 lt_prog_compiler_can_build_shared_F77=no
13813 enable_shared=no
13814 ;;
13815
13816 sysv4*MP*)
13817 if test -d /usr/nec; then
13818 lt_prog_compiler_pic_F77=-Kconform_pic
13819 fi
13820 ;;
13821
13822 hpux*)
13823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13824 # not for PA HP-UX.
13825 case $host_cpu in
13826 hppa*64*|ia64*)
13827 # +Z the default
13828 ;;
13829 *)
13830 lt_prog_compiler_pic_F77='-fPIC'
13831 ;;
13832 esac
13833 ;;
13834
13835 *)
13836 lt_prog_compiler_pic_F77='-fPIC'
13837 ;;
13838 esac
13839 else
13840 # PORTME Check for flag to pass linker flags through the system compiler.
13841 case $host_os in
13842 aix*)
13843 lt_prog_compiler_wl_F77='-Wl,'
13844 if test "$host_cpu" = ia64; then
13845 # AIX 5 now supports IA64 processor
13846 lt_prog_compiler_static_F77='-Bstatic'
13847 else
13848 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13849 fi
13850 ;;
13851 darwin*)
13852 # PIC is the default on this platform
13853 # Common symbols not allowed in MH_DYLIB files
13854 case $cc_basename in
13855 xlc*)
13856 lt_prog_compiler_pic_F77='-qnocommon'
13857 lt_prog_compiler_wl_F77='-Wl,'
13858 ;;
13859 esac
13860 ;;
13861
13862 mingw* | pw32* | os2*)
13863 # This hack is so that the source file can tell whether it is being
13864 # built for inclusion in a dll (and should export symbols for example).
13865 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13866 ;;
13867
13868 hpux9* | hpux10* | hpux11*)
13869 lt_prog_compiler_wl_F77='-Wl,'
13870 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13871 # not for PA HP-UX.
13872 case $host_cpu in
13873 hppa*64*|ia64*)
13874 # +Z the default
13875 ;;
13876 *)
13877 lt_prog_compiler_pic_F77='+Z'
13878 ;;
13879 esac
13880 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13881 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13882 ;;
13883
13884 irix5* | irix6* | nonstopux*)
13885 lt_prog_compiler_wl_F77='-Wl,'
13886 # PIC (with -KPIC) is the default.
13887 lt_prog_compiler_static_F77='-non_shared'
13888 ;;
13889
13890 newsos6)
13891 lt_prog_compiler_pic_F77='-KPIC'
13892 lt_prog_compiler_static_F77='-Bstatic'
13893 ;;
13894
13895 linux*)
13896 case $cc_basename in
13897 icc* | ecc*)
13898 lt_prog_compiler_wl_F77='-Wl,'
13899 lt_prog_compiler_pic_F77='-KPIC'
13900 lt_prog_compiler_static_F77='-static'
13901 ;;
13902 pgcc* | pgf77* | pgf90* | pgf95*)
13903 # Portland Group compilers (*not* the Pentium gcc compiler,
13904 # which looks to be a dead project)
13905 lt_prog_compiler_wl_F77='-Wl,'
13906 lt_prog_compiler_pic_F77='-fpic'
13907 lt_prog_compiler_static_F77='-Bstatic'
13908 ;;
13909 ccc*)
13910 lt_prog_compiler_wl_F77='-Wl,'
13911 # All Alpha code is PIC.
13912 lt_prog_compiler_static_F77='-non_shared'
13913 ;;
13914 esac
13915 ;;
13916
13917 osf3* | osf4* | osf5*)
13918 lt_prog_compiler_wl_F77='-Wl,'
13919 # All OSF/1 code is PIC.
13920 lt_prog_compiler_static_F77='-non_shared'
13921 ;;
13922
13923 solaris*)
13924 lt_prog_compiler_pic_F77='-KPIC'
13925 lt_prog_compiler_static_F77='-Bstatic'
13926 case $cc_basename in
13927 f77* | f90* | f95*)
13928 lt_prog_compiler_wl_F77='-Qoption ld ';;
13929 *)
13930 lt_prog_compiler_wl_F77='-Wl,';;
13931 esac
13932 ;;
13933
13934 sunos4*)
13935 lt_prog_compiler_wl_F77='-Qoption ld '
13936 lt_prog_compiler_pic_F77='-PIC'
13937 lt_prog_compiler_static_F77='-Bstatic'
13938 ;;
13939
13940 sysv4 | sysv4.2uw2* | sysv4.3*)
13941 lt_prog_compiler_wl_F77='-Wl,'
13942 lt_prog_compiler_pic_F77='-KPIC'
13943 lt_prog_compiler_static_F77='-Bstatic'
13944 ;;
13945
13946 sysv4*MP*)
13947 if test -d /usr/nec ;then
13948 lt_prog_compiler_pic_F77='-Kconform_pic'
13949 lt_prog_compiler_static_F77='-Bstatic'
13950 fi
13951 ;;
13952
13953 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13954 lt_prog_compiler_wl_F77='-Wl,'
13955 lt_prog_compiler_pic_F77='-KPIC'
13956 lt_prog_compiler_static_F77='-Bstatic'
13957 ;;
13958
13959 unicos*)
13960 lt_prog_compiler_wl_F77='-Wl,'
13961 lt_prog_compiler_can_build_shared_F77=no
13962 ;;
13963
13964 uts4*)
13965 lt_prog_compiler_pic_F77='-pic'
13966 lt_prog_compiler_static_F77='-Bstatic'
13967 ;;
13968
13969 *)
13970 lt_prog_compiler_can_build_shared_F77=no
13971 ;;
13972 esac
13973 fi
13974
64ff59ba 13975{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13976echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 13977
13978#
13979# Check to make sure the PIC flag actually works.
13980#
13981if test -n "$lt_prog_compiler_pic_F77"; then
13982
64ff59ba 13983{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13984echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 13985if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13987else
13988 lt_prog_compiler_pic_works_F77=no
13989 ac_outfile=conftest.$ac_objext
13990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13991 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13992 # Insert the option either (1) after the last *FLAGS variable, or
13993 # (2) before a word containing "conftest.", or (3) at the end.
13994 # Note that $ac_compile itself does not contain backslashes and begins
13995 # with a dollar sign (not a hyphen), so the echo should work correctly.
13996 # The option is referenced via a variable to avoid confusing sed.
13997 lt_compile=`echo "$ac_compile" | $SED \
13998 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13999 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14000 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14001 (eval echo "\"\$as_me:14001: $lt_compile\"" >&5)
d9898ee8 14002 (eval "$lt_compile" 2>conftest.err)
14003 ac_status=$?
14004 cat conftest.err >&5
64ff59ba 14005 echo "$as_me:14005: \$? = $ac_status" >&5
d9898ee8 14006 if (exit $ac_status) && test -s "$ac_outfile"; then
14007 # The compiler can only warn and ignore the option if not recognized
14008 # So say no if there are warnings other than the usual output.
14009 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14010 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14011 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14012 lt_prog_compiler_pic_works_F77=yes
14013 fi
14014 fi
14015 $rm conftest*
14016
14017fi
64ff59ba 14018{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14019echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14020
14021if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14022 case $lt_prog_compiler_pic_F77 in
14023 "" | " "*) ;;
14024 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14025 esac
14026else
14027 lt_prog_compiler_pic_F77=
14028 lt_prog_compiler_can_build_shared_F77=no
14029fi
14030
14031fi
14032case $host_os in
14033 # For platforms which do not support PIC, -DPIC is meaningless:
14034 *djgpp*)
14035 lt_prog_compiler_pic_F77=
14036 ;;
14037 *)
14038 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14039 ;;
14040esac
14041
14042#
14043# Check to make sure the static flag actually works.
14044#
14045wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
64ff59ba 14046{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14047echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14048if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14050else
14051 lt_prog_compiler_static_works_F77=no
14052 save_LDFLAGS="$LDFLAGS"
14053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14054 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14056 # The linker can only warn and ignore the option if not recognized
14057 # So say no if there are warnings
14058 if test -s conftest.err; then
14059 # Append any errors to the config.log.
14060 cat conftest.err 1>&5
14061 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14063 if diff conftest.exp conftest.er2 >/dev/null; then
14064 lt_prog_compiler_static_works_F77=yes
14065 fi
14066 else
14067 lt_prog_compiler_static_works_F77=yes
14068 fi
14069 fi
14070 $rm conftest*
14071 LDFLAGS="$save_LDFLAGS"
14072
14073fi
64ff59ba 14074{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14075echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14076
14077if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14078 :
14079else
14080 lt_prog_compiler_static_F77=
14081fi
14082
14083
64ff59ba 14084{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14085echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14086if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088else
14089 lt_cv_prog_compiler_c_o_F77=no
14090 $rm -r conftest 2>/dev/null
14091 mkdir conftest
14092 cd conftest
14093 mkdir out
14094 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14095
14096 lt_compiler_flag="-o out/conftest2.$ac_objext"
14097 # Insert the option either (1) after the last *FLAGS variable, or
14098 # (2) before a word containing "conftest.", or (3) at the end.
14099 # Note that $ac_compile itself does not contain backslashes and begins
14100 # with a dollar sign (not a hyphen), so the echo should work correctly.
14101 lt_compile=`echo "$ac_compile" | $SED \
14102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104 -e 's:$: $lt_compiler_flag:'`
64ff59ba 14105 (eval echo "\"\$as_me:14105: $lt_compile\"" >&5)
d9898ee8 14106 (eval "$lt_compile" 2>out/conftest.err)
14107 ac_status=$?
14108 cat out/conftest.err >&5
64ff59ba 14109 echo "$as_me:14109: \$? = $ac_status" >&5
d9898ee8 14110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14111 then
14112 # The compiler can only warn and ignore the option if not recognized
14113 # So say no if there are warnings
14114 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14117 lt_cv_prog_compiler_c_o_F77=yes
14118 fi
14119 fi
14120 chmod u+w . 2>&5
14121 $rm conftest*
14122 # SGI C++ compiler will create directory out/ii_files/ for
14123 # template instantiation
14124 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14125 $rm out/* && rmdir out
14126 cd ..
14127 rmdir conftest
14128 $rm conftest*
14129
14130fi
64ff59ba 14131{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14132echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14133
14134
14135hard_links="nottested"
14136if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14137 # do not overwrite the value of need_locks provided by the user
64ff59ba 14138 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14139echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14140 hard_links=yes
14141 $rm conftest*
14142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14143 touch conftest.a
14144 ln conftest.a conftest.b 2>&5 || hard_links=no
14145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 14146 { echo "$as_me:$LINENO: result: $hard_links" >&5
14147echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14148 if test "$hard_links" = no; then
14149 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14150echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14151 need_locks=warn
14152 fi
14153else
14154 need_locks=no
14155fi
14156
64ff59ba 14157{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14158echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14159
14160 runpath_var=
14161 allow_undefined_flag_F77=
14162 enable_shared_with_static_runtimes_F77=no
14163 archive_cmds_F77=
14164 archive_expsym_cmds_F77=
14165 old_archive_From_new_cmds_F77=
14166 old_archive_from_expsyms_cmds_F77=
14167 export_dynamic_flag_spec_F77=
14168 whole_archive_flag_spec_F77=
14169 thread_safe_flag_spec_F77=
14170 hardcode_libdir_flag_spec_F77=
14171 hardcode_libdir_flag_spec_ld_F77=
14172 hardcode_libdir_separator_F77=
14173 hardcode_direct_F77=no
14174 hardcode_minus_L_F77=no
14175 hardcode_shlibpath_var_F77=unsupported
14176 link_all_deplibs_F77=unknown
14177 hardcode_automatic_F77=no
14178 module_cmds_F77=
14179 module_expsym_cmds_F77=
14180 always_export_symbols_F77=no
14181 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14182 # include_expsyms should be a list of space-separated symbols to be *always*
14183 # included in the symbol list
14184 include_expsyms_F77=
14185 # exclude_expsyms can be an extended regexp of symbols to exclude
14186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14188 # as well as any symbol that contains `d'.
14189 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14191 # platforms (ab)use it in PIC code, but their linkers get confused if
14192 # the symbol is explicitly referenced. Since portable code cannot
14193 # rely on this symbol name, it's probably fine to never include it in
14194 # preloaded symbol tables.
14195 extract_expsyms_cmds=
14196 # Just being paranoid about ensuring that cc_basename is set.
14197 for cc_temp in $compiler""; do
14198 case $cc_temp in
14199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14201 \-*) ;;
14202 *) break;;
14203 esac
14204done
14205cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14206
14207 case $host_os in
14208 cygwin* | mingw* | pw32*)
14209 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14210 # When not using gcc, we currently assume that we are using
14211 # Microsoft Visual C++.
14212 if test "$GCC" != yes; then
14213 with_gnu_ld=no
14214 fi
14215 ;;
14216 interix*)
14217 # we just hope/assume this is gcc and not c89 (= MSVC++)
14218 with_gnu_ld=yes
14219 ;;
14220 openbsd*)
14221 with_gnu_ld=no
14222 ;;
14223 esac
14224
14225 ld_shlibs_F77=yes
14226 if test "$with_gnu_ld" = yes; then
14227 # If archive_cmds runs LD, not CC, wlarc should be empty
14228 wlarc='${wl}'
14229
14230 # Set some defaults for GNU ld with shared library support. These
14231 # are reset later if shared libraries are not supported. Putting them
14232 # here allows them to be overridden if necessary.
14233 runpath_var=LD_RUN_PATH
14234 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14235 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14236 # ancient GNU ld didn't support --whole-archive et. al.
14237 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14238 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14239 else
14240 whole_archive_flag_spec_F77=
14241 fi
14242 supports_anon_versioning=no
14243 case `$LD -v 2>/dev/null` in
14244 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14245 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14246 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14247 *\ 2.11.*) ;; # other 2.11 versions
14248 *) supports_anon_versioning=yes ;;
14249 esac
14250
14251 # See if GNU ld supports shared libraries.
14252 case $host_os in
14253 aix3* | aix4* | aix5*)
14254 # On AIX/PPC, the GNU linker is very broken
14255 if test "$host_cpu" != ia64; then
14256 ld_shlibs_F77=no
14257 cat <<EOF 1>&2
14258
14259*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14260*** to be unable to reliably create shared libraries on AIX.
14261*** Therefore, libtool is disabling shared libraries support. If you
14262*** really care for shared libraries, you may want to modify your PATH
14263*** so that a non-GNU linker is found, and then restart.
14264
14265EOF
14266 fi
14267 ;;
14268
14269 amigaos*)
14270 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)'
14271 hardcode_libdir_flag_spec_F77='-L$libdir'
14272 hardcode_minus_L_F77=yes
14273
14274 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14275 # that the semantics of dynamic libraries on AmigaOS, at least up
14276 # to version 4, is to share data among multiple programs linked
14277 # with the same dynamic library. Since this doesn't match the
14278 # behavior of shared libraries on other platforms, we can't use
14279 # them.
14280 ld_shlibs_F77=no
14281 ;;
14282
14283 beos*)
14284 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14285 allow_undefined_flag_F77=unsupported
14286 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14287 # support --undefined. This deserves some investigation. FIXME
14288 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14289 else
14290 ld_shlibs_F77=no
14291 fi
14292 ;;
14293
14294 cygwin* | mingw* | pw32*)
14295 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14296 # as there is no search path for DLLs.
14297 hardcode_libdir_flag_spec_F77='-L$libdir'
14298 allow_undefined_flag_F77=unsupported
14299 always_export_symbols_F77=no
14300 enable_shared_with_static_runtimes_F77=yes
14301 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14302
14303 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14304 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14305 # If the export-symbols file already is a .def file (1st line
14306 # is EXPORTS), use it as is; otherwise, prepend...
14307 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14308 cp $export_symbols $output_objdir/$soname.def;
14309 else
14310 echo EXPORTS > $output_objdir/$soname.def;
14311 cat $export_symbols >> $output_objdir/$soname.def;
14312 fi~
14313 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14314 else
14315 ld_shlibs_F77=no
14316 fi
14317 ;;
14318
14319 interix3*)
14320 hardcode_direct_F77=no
14321 hardcode_shlibpath_var_F77=no
14322 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14323 export_dynamic_flag_spec_F77='${wl}-E'
14324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14325 # Instead, shared libraries are loaded at an image base (0x10000000 by
14326 # default) and relocated if they conflict, which is a slow very memory
14327 # consuming and fragmenting process. To avoid this, we pick a random,
14328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14330 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'
14331 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'
14332 ;;
14333
14334 linux*)
14335 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14336 tmp_addflag=
14337 case $cc_basename,$host_cpu in
14338 pgcc*) # Portland Group C compiler
14339 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'
14340 tmp_addflag=' $pic_flag'
14341 ;;
14342 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14343 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'
14344 tmp_addflag=' $pic_flag -Mnomain' ;;
14345 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14346 tmp_addflag=' -i_dynamic' ;;
14347 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14348 tmp_addflag=' -i_dynamic -nofor_main' ;;
14349 ifc* | ifort*) # Intel Fortran compiler
14350 tmp_addflag=' -nofor_main' ;;
14351 esac
14352 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353
14354 if test $supports_anon_versioning = yes; then
14355 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14356 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14357 $echo "local: *; };" >> $output_objdir/$libname.ver~
14358 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14359 fi
14360 else
14361 ld_shlibs_F77=no
14362 fi
14363 ;;
14364
14365 netbsd*)
14366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14367 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14368 wlarc=
14369 else
14370 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14371 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14372 fi
14373 ;;
14374
14375 solaris*)
14376 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14377 ld_shlibs_F77=no
14378 cat <<EOF 1>&2
14379
14380*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14381*** create shared libraries on Solaris systems. Therefore, libtool
14382*** is disabling shared libraries support. We urge you to upgrade GNU
14383*** binutils to release 2.9.1 or newer. Another option is to modify
14384*** your PATH or compiler configuration so that the native linker is
14385*** used, and then restart.
14386
14387EOF
14388 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14389 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14390 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14391 else
14392 ld_shlibs_F77=no
14393 fi
14394 ;;
14395
14396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14397 case `$LD -v 2>&1` in
14398 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14399 ld_shlibs_F77=no
14400 cat <<_LT_EOF 1>&2
14401
14402*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14403*** reliably create shared libraries on SCO systems. Therefore, libtool
14404*** is disabling shared libraries support. We urge you to upgrade GNU
14405*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14406*** your PATH or compiler configuration so that the native linker is
14407*** used, and then restart.
14408
14409_LT_EOF
14410 ;;
14411 *)
14412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14413 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14414 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14415 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14416 else
14417 ld_shlibs_F77=no
14418 fi
14419 ;;
14420 esac
14421 ;;
14422
14423 sunos4*)
14424 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14425 wlarc=
14426 hardcode_direct_F77=yes
14427 hardcode_shlibpath_var_F77=no
14428 ;;
14429
14430 *)
14431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14433 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14434 else
14435 ld_shlibs_F77=no
14436 fi
14437 ;;
14438 esac
14439
14440 if test "$ld_shlibs_F77" = no; then
14441 runpath_var=
14442 hardcode_libdir_flag_spec_F77=
14443 export_dynamic_flag_spec_F77=
14444 whole_archive_flag_spec_F77=
14445 fi
14446 else
14447 # PORTME fill in a description of your system's linker (not GNU ld)
14448 case $host_os in
14449 aix3*)
14450 allow_undefined_flag_F77=unsupported
14451 always_export_symbols_F77=yes
14452 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'
14453 # Note: this linker hardcodes the directories in LIBPATH if there
14454 # are no directories specified by -L.
14455 hardcode_minus_L_F77=yes
14456 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14457 # Neither direct hardcoding nor static linking is supported with a
14458 # broken collect2.
14459 hardcode_direct_F77=unsupported
14460 fi
14461 ;;
14462
14463 aix4* | aix5*)
14464 if test "$host_cpu" = ia64; then
14465 # On IA64, the linker does run time linking by default, so we don't
14466 # have to do anything special.
14467 aix_use_runtimelinking=no
14468 exp_sym_flag='-Bexport'
14469 no_entry_flag=""
14470 else
14471 # If we're using GNU nm, then we don't want the "-C" option.
14472 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14473 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14474 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'
14475 else
14476 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'
14477 fi
14478 aix_use_runtimelinking=no
14479
14480 # Test if we are trying to use run time linking or normal
14481 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14482 # need to do runtime linking.
14483 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14484 for ld_flag in $LDFLAGS; do
14485 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14486 aix_use_runtimelinking=yes
14487 break
14488 fi
14489 done
14490 ;;
14491 esac
14492
14493 exp_sym_flag='-bexport'
14494 no_entry_flag='-bnoentry'
14495 fi
14496
14497 # When large executables or shared objects are built, AIX ld can
14498 # have problems creating the table of contents. If linking a library
14499 # or program results in "error TOC overflow" add -mminimal-toc to
14500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14502
14503 archive_cmds_F77=''
14504 hardcode_direct_F77=yes
14505 hardcode_libdir_separator_F77=':'
14506 link_all_deplibs_F77=yes
14507
14508 if test "$GCC" = yes; then
14509 case $host_os in aix4.[012]|aix4.[012].*)
14510 # We only want to do this on AIX 4.2 and lower, the check
14511 # below for broken collect2 doesn't work under 4.3+
14512 collect2name=`${CC} -print-prog-name=collect2`
14513 if test -f "$collect2name" && \
14514 strings "$collect2name" | grep resolve_lib_name >/dev/null
14515 then
14516 # We have reworked collect2
14517 hardcode_direct_F77=yes
14518 else
14519 # We have old collect2
14520 hardcode_direct_F77=unsupported
14521 # It fails to find uninstalled libraries when the uninstalled
14522 # path is not listed in the libpath. Setting hardcode_minus_L
14523 # to unsupported forces relinking
14524 hardcode_minus_L_F77=yes
14525 hardcode_libdir_flag_spec_F77='-L$libdir'
14526 hardcode_libdir_separator_F77=
14527 fi
14528 ;;
14529 esac
14530 shared_flag='-shared'
14531 if test "$aix_use_runtimelinking" = yes; then
14532 shared_flag="$shared_flag "'${wl}-G'
14533 fi
14534 else
14535 # not using gcc
14536 if test "$host_cpu" = ia64; then
14537 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14538 # chokes on -Wl,-G. The following line is correct:
14539 shared_flag='-G'
14540 else
14541 if test "$aix_use_runtimelinking" = yes; then
14542 shared_flag='${wl}-G'
14543 else
14544 shared_flag='${wl}-bM:SRE'
14545 fi
14546 fi
14547 fi
14548
14549 # It seems that -bexpall does not export symbols beginning with
14550 # underscore (_), so it is better to generate a list of symbols to export.
14551 always_export_symbols_F77=yes
14552 if test "$aix_use_runtimelinking" = yes; then
14553 # Warning - without using the other runtime loading flags (-brtl),
14554 # -berok will link without error, but may produce a broken library.
14555 allow_undefined_flag_F77='-berok'
14556 # Determine the default libpath from the value encoded in an empty executable.
14557 cat >conftest.$ac_ext <<_ACEOF
14558 program main
14559
14560 end
14561_ACEOF
14562rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14563if { (ac_try="$ac_link"
14564case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_link") 2>conftest.er1
d9898ee8 14570 ac_status=$?
14571 grep -v '^ *+' conftest.er1 >conftest.err
14572 rm -f conftest.er1
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14575 (exit $ac_status); } && {
14576 test -z "$ac_f77_werror_flag" ||
14577 test ! -s conftest.err
14578 } && test -s conftest$ac_exeext &&
14579 $as_test_x conftest$ac_exeext; then
d9898ee8 14580
14581aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14582}'`
14583# Check for a 64-bit object if we didn't find anything.
14584if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14585}'`; fi
14586else
14587 echo "$as_me: failed program was:" >&5
14588sed 's/^/| /' conftest.$ac_ext >&5
14589
64ff59ba 14590
d9898ee8 14591fi
64ff59ba 14592
14593rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14594 conftest$ac_exeext conftest.$ac_ext
14595if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14596
14597 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14598 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"
14599 else
14600 if test "$host_cpu" = ia64; then
14601 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14602 allow_undefined_flag_F77="-z nodefs"
14603 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"
14604 else
14605 # Determine the default libpath from the value encoded in an empty executable.
14606 cat >conftest.$ac_ext <<_ACEOF
14607 program main
14608
14609 end
14610_ACEOF
14611rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 14612if { (ac_try="$ac_link"
14613case "(($ac_try" in
14614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14616esac
14617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_link") 2>conftest.er1
d9898ee8 14619 ac_status=$?
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 14624 (exit $ac_status); } && {
14625 test -z "$ac_f77_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest$ac_exeext &&
14628 $as_test_x conftest$ac_exeext; then
d9898ee8 14629
14630aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14631}'`
14632# Check for a 64-bit object if we didn't find anything.
14633if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14634}'`; fi
14635else
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
64ff59ba 14639
d9898ee8 14640fi
64ff59ba 14641
14642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14643 conftest$ac_exeext conftest.$ac_ext
14644if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14645
14646 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14647 # Warning - without using the other run time loading flags,
14648 # -berok will link without error, but may produce a broken library.
14649 no_undefined_flag_F77=' ${wl}-bernotok'
14650 allow_undefined_flag_F77=' ${wl}-berok'
14651 # Exported symbols can be pulled into shared objects from archives
14652 whole_archive_flag_spec_F77='$convenience'
14653 archive_cmds_need_lc_F77=yes
14654 # This is similar to how AIX traditionally builds its shared libraries.
14655 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'
14656 fi
14657 fi
14658 ;;
14659
14660 amigaos*)
14661 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)'
14662 hardcode_libdir_flag_spec_F77='-L$libdir'
14663 hardcode_minus_L_F77=yes
14664 # see comment about different semantics on the GNU ld section
14665 ld_shlibs_F77=no
14666 ;;
14667
14668 bsdi[45]*)
14669 export_dynamic_flag_spec_F77=-rdynamic
14670 ;;
14671
14672 cygwin* | mingw* | pw32*)
14673 # When not using gcc, we currently assume that we are using
14674 # Microsoft Visual C++.
14675 # hardcode_libdir_flag_spec is actually meaningless, as there is
14676 # no search path for DLLs.
14677 hardcode_libdir_flag_spec_F77=' '
14678 allow_undefined_flag_F77=unsupported
14679 # Tell ltmain to make .lib files, not .a files.
14680 libext=lib
14681 # Tell ltmain to make .dll files, not .so files.
14682 shrext_cmds=".dll"
14683 # FIXME: Setting linknames here is a bad hack.
14684 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14685 # The linker will automatically build a .lib file if we build a DLL.
14686 old_archive_From_new_cmds_F77='true'
14687 # FIXME: Should let the user specify the lib program.
14688 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14689 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14690 enable_shared_with_static_runtimes_F77=yes
14691 ;;
14692
14693 darwin* | rhapsody*)
14694 case $host_os in
14695 rhapsody* | darwin1.[012])
14696 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14697 ;;
14698 *) # Darwin 1.3 on
14699 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14700 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14701 else
14702 case ${MACOSX_DEPLOYMENT_TARGET} in
14703 10.[012])
14704 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14705 ;;
14706 10.*)
14707 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14708 ;;
14709 esac
14710 fi
14711 ;;
14712 esac
14713 archive_cmds_need_lc_F77=no
14714 hardcode_direct_F77=no
14715 hardcode_automatic_F77=yes
14716 hardcode_shlibpath_var_F77=unsupported
14717 whole_archive_flag_spec_F77=''
14718 link_all_deplibs_F77=yes
14719 if test "$GCC" = yes ; then
14720 output_verbose_link_cmd='echo'
14721 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14722 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14723 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14724 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}'
14725 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}'
14726 else
14727 case $cc_basename in
14728 xlc*)
14729 output_verbose_link_cmd='echo'
14730 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14731 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14732 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14733 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14734 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}'
14735 ;;
14736 *)
14737 ld_shlibs_F77=no
14738 ;;
14739 esac
14740 fi
14741 ;;
14742
14743 dgux*)
14744 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14745 hardcode_libdir_flag_spec_F77='-L$libdir'
14746 hardcode_shlibpath_var_F77=no
14747 ;;
14748
14749 freebsd1*)
14750 ld_shlibs_F77=no
14751 ;;
14752
14753 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14754 # support. Future versions do this automatically, but an explicit c++rt0.o
14755 # does not break anything, and helps significantly (at the cost of a little
14756 # extra space).
14757 freebsd2.2*)
14758 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14759 hardcode_libdir_flag_spec_F77='-R$libdir'
14760 hardcode_direct_F77=yes
14761 hardcode_shlibpath_var_F77=no
14762 ;;
14763
14764 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14765 freebsd2*)
14766 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14767 hardcode_direct_F77=yes
14768 hardcode_minus_L_F77=yes
14769 hardcode_shlibpath_var_F77=no
14770 ;;
14771
14772 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14773 freebsd* | kfreebsd*-gnu | dragonfly*)
14774 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14775 hardcode_libdir_flag_spec_F77='-R$libdir'
14776 hardcode_direct_F77=yes
14777 hardcode_shlibpath_var_F77=no
14778 ;;
14779
14780 hpux9*)
14781 if test "$GCC" = yes; then
14782 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'
14783 else
14784 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'
14785 fi
14786 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14787 hardcode_libdir_separator_F77=:
14788 hardcode_direct_F77=yes
14789
14790 # hardcode_minus_L: Not really in the search PATH,
14791 # but as the default location of the library.
14792 hardcode_minus_L_F77=yes
14793 export_dynamic_flag_spec_F77='${wl}-E'
14794 ;;
14795
14796 hpux10*)
14797 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14798 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14799 else
14800 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14801 fi
14802 if test "$with_gnu_ld" = no; then
14803 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14804 hardcode_libdir_separator_F77=:
14805
14806 hardcode_direct_F77=yes
14807 export_dynamic_flag_spec_F77='${wl}-E'
14808
14809 # hardcode_minus_L: Not really in the search PATH,
14810 # but as the default location of the library.
14811 hardcode_minus_L_F77=yes
14812 fi
14813 ;;
14814
14815 hpux11*)
14816 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14817 case $host_cpu in
14818 hppa*64*)
14819 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 ;;
14821 ia64*)
14822 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14823 ;;
14824 *)
14825 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14826 ;;
14827 esac
14828 else
14829 case $host_cpu in
14830 hppa*64*)
14831 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14832 ;;
14833 ia64*)
14834 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14835 ;;
14836 *)
14837 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14838 ;;
14839 esac
14840 fi
14841 if test "$with_gnu_ld" = no; then
14842 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14843 hardcode_libdir_separator_F77=:
14844
14845 case $host_cpu in
14846 hppa*64*|ia64*)
14847 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14848 hardcode_direct_F77=no
14849 hardcode_shlibpath_var_F77=no
14850 ;;
14851 *)
14852 hardcode_direct_F77=yes
14853 export_dynamic_flag_spec_F77='${wl}-E'
14854
14855 # hardcode_minus_L: Not really in the search PATH,
14856 # but as the default location of the library.
14857 hardcode_minus_L_F77=yes
14858 ;;
14859 esac
14860 fi
14861 ;;
14862
14863 irix5* | irix6* | nonstopux*)
14864 if test "$GCC" = yes; then
14865 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'
14866 else
14867 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'
14868 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14869 fi
14870 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14871 hardcode_libdir_separator_F77=:
14872 link_all_deplibs_F77=yes
14873 ;;
14874
14875 netbsd*)
14876 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14877 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14878 else
14879 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14880 fi
14881 hardcode_libdir_flag_spec_F77='-R$libdir'
14882 hardcode_direct_F77=yes
14883 hardcode_shlibpath_var_F77=no
14884 ;;
14885
14886 newsos6)
14887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14888 hardcode_direct_F77=yes
14889 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14890 hardcode_libdir_separator_F77=:
14891 hardcode_shlibpath_var_F77=no
14892 ;;
14893
14894 openbsd*)
14895 hardcode_direct_F77=yes
14896 hardcode_shlibpath_var_F77=no
14897 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14898 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14899 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14900 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14901 export_dynamic_flag_spec_F77='${wl}-E'
14902 else
14903 case $host_os in
14904 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14905 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14906 hardcode_libdir_flag_spec_F77='-R$libdir'
14907 ;;
14908 *)
14909 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14910 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14911 ;;
14912 esac
14913 fi
14914 ;;
14915
14916 os2*)
14917 hardcode_libdir_flag_spec_F77='-L$libdir'
14918 hardcode_minus_L_F77=yes
14919 allow_undefined_flag_F77=unsupported
14920 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'
14921 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14922 ;;
14923
14924 osf3*)
14925 if test "$GCC" = yes; then
14926 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14927 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'
14928 else
14929 allow_undefined_flag_F77=' -expect_unresolved \*'
14930 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'
14931 fi
14932 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14933 hardcode_libdir_separator_F77=:
14934 ;;
14935
14936 osf4* | osf5*) # as osf3* with the addition of -msym flag
14937 if test "$GCC" = yes; then
14938 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14939 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'
14940 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14941 else
14942 allow_undefined_flag_F77=' -expect_unresolved \*'
14943 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'
14944 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~
14945 $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'
14946
14947 # Both c and cxx compiler support -rpath directly
14948 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14949 fi
14950 hardcode_libdir_separator_F77=:
14951 ;;
14952
14953 solaris*)
14954 no_undefined_flag_F77=' -z text'
14955 if test "$GCC" = yes; then
14956 wlarc='${wl}'
14957 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14959 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14960 else
14961 wlarc=''
14962 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14963 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14965 fi
14966 hardcode_libdir_flag_spec_F77='-R$libdir'
14967 hardcode_shlibpath_var_F77=no
14968 case $host_os in
14969 solaris2.[0-5] | solaris2.[0-5].*) ;;
14970 *)
14971 # The compiler driver will combine linker options so we
14972 # cannot just pass the convience library names through
14973 # without $wl, iff we do not link with $LD.
14974 # Luckily, gcc supports the same syntax we need for Sun Studio.
14975 # Supported since Solaris 2.6 (maybe 2.5.1?)
14976 case $wlarc in
14977 '')
14978 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14979 *)
14980 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14981 esac ;;
14982 esac
14983 link_all_deplibs_F77=yes
14984 ;;
14985
14986 sunos4*)
14987 if test "x$host_vendor" = xsequent; then
14988 # Use $CC to link under sequent, because it throws in some extra .o
14989 # files that make .init and .fini sections work.
14990 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14991 else
14992 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14993 fi
14994 hardcode_libdir_flag_spec_F77='-L$libdir'
14995 hardcode_direct_F77=yes
14996 hardcode_minus_L_F77=yes
14997 hardcode_shlibpath_var_F77=no
14998 ;;
14999
15000 sysv4)
15001 case $host_vendor in
15002 sni)
15003 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15004 hardcode_direct_F77=yes # is this really true???
15005 ;;
15006 siemens)
15007 ## LD is ld it makes a PLAMLIB
15008 ## CC just makes a GrossModule.
15009 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15010 reload_cmds_F77='$CC -r -o $output$reload_objs'
15011 hardcode_direct_F77=no
15012 ;;
15013 motorola)
15014 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15016 ;;
15017 esac
15018 runpath_var='LD_RUN_PATH'
15019 hardcode_shlibpath_var_F77=no
15020 ;;
15021
15022 sysv4.3*)
15023 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15024 hardcode_shlibpath_var_F77=no
15025 export_dynamic_flag_spec_F77='-Bexport'
15026 ;;
15027
15028 sysv4*MP*)
15029 if test -d /usr/nec; then
15030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15031 hardcode_shlibpath_var_F77=no
15032 runpath_var=LD_RUN_PATH
15033 hardcode_runpath_var=yes
15034 ld_shlibs_F77=yes
15035 fi
15036 ;;
15037
15038 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15039 no_undefined_flag_F77='${wl}-z,text'
15040 archive_cmds_need_lc_F77=no
15041 hardcode_shlibpath_var_F77=no
15042 runpath_var='LD_RUN_PATH'
15043
15044 if test "$GCC" = yes; then
15045 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15046 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 else
15048 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15050 fi
15051 ;;
15052
15053 sysv5* | sco3.2v5* | sco5v6*)
15054 # Note: We can NOT use -z defs as we might desire, because we do not
15055 # link with -lc, and that would cause any symbols used from libc to
15056 # always be unresolved, which means just about no library would
15057 # ever link correctly. If we're not using GNU ld we use -z text
15058 # though, which does catch some bad symbols but isn't as heavy-handed
15059 # as -z defs.
15060 no_undefined_flag_F77='${wl}-z,text'
15061 allow_undefined_flag_F77='${wl}-z,nodefs'
15062 archive_cmds_need_lc_F77=no
15063 hardcode_shlibpath_var_F77=no
15064 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15065 hardcode_libdir_separator_F77=':'
15066 link_all_deplibs_F77=yes
15067 export_dynamic_flag_spec_F77='${wl}-Bexport'
15068 runpath_var='LD_RUN_PATH'
15069
15070 if test "$GCC" = yes; then
15071 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15073 else
15074 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15076 fi
15077 ;;
15078
15079 uts4*)
15080 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15081 hardcode_libdir_flag_spec_F77='-L$libdir'
15082 hardcode_shlibpath_var_F77=no
15083 ;;
15084
15085 *)
15086 ld_shlibs_F77=no
15087 ;;
15088 esac
15089 fi
15090
64ff59ba 15091{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15092echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15093test "$ld_shlibs_F77" = no && can_build_shared=no
15094
15095#
15096# Do we need to explicitly link libc?
15097#
15098case "x$archive_cmds_need_lc_F77" in
15099x|xyes)
15100 # Assume -lc should be added
15101 archive_cmds_need_lc_F77=yes
15102
15103 if test "$enable_shared" = yes && test "$GCC" = yes; then
15104 case $archive_cmds_F77 in
15105 *'~'*)
15106 # FIXME: we may have to deal with multi-command sequences.
15107 ;;
15108 '$CC '*)
15109 # Test whether the compiler implicitly links with -lc since on some
15110 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15111 # to ld, don't add -lc before -lgcc.
64ff59ba 15112 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15113echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15114 $rm conftest*
15115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15116
15117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15118 (eval $ac_compile) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } 2>conftest.err; then
15122 soname=conftest
15123 lib=conftest
15124 libobjs=conftest.$ac_objext
15125 deplibs=
15126 wl=$lt_prog_compiler_wl_F77
15127 pic_flag=$lt_prog_compiler_pic_F77
15128 compiler_flags=-v
15129 linker_flags=-v
15130 verstring=
15131 output_objdir=.
15132 libname=conftest
15133 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15134 allow_undefined_flag_F77=
15135 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15136 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }
15140 then
15141 archive_cmds_need_lc_F77=no
15142 else
15143 archive_cmds_need_lc_F77=yes
15144 fi
15145 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15146 else
15147 cat conftest.err 1>&5
15148 fi
15149 $rm conftest*
64ff59ba 15150 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15151echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15152 ;;
15153 esac
15154 fi
15155 ;;
15156esac
15157
64ff59ba 15158{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15159echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15160library_names_spec=
15161libname_spec='lib$name'
15162soname_spec=
15163shrext_cmds=".so"
15164postinstall_cmds=
15165postuninstall_cmds=
15166finish_cmds=
15167finish_eval=
15168shlibpath_var=
15169shlibpath_overrides_runpath=unknown
15170version_type=none
15171dynamic_linker="$host_os ld.so"
15172sys_lib_dlsearch_path_spec="/lib /usr/lib"
15173if test "$GCC" = yes; then
15174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15175 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15176 # if the path contains ";" then we assume it to be the separator
15177 # otherwise default to the standard path separator (i.e. ":") - it is
15178 # assumed that no part of a normal pathname contains ";" but that should
15179 # okay in the real world where ";" in dirpaths is itself problematic.
15180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15181 else
15182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15183 fi
15184else
15185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15186fi
15187need_lib_prefix=unknown
15188hardcode_into_libs=no
15189
15190# when you set need_version to no, make sure it does not cause -set_version
15191# flags to be left without arguments
15192need_version=unknown
15193
15194case $host_os in
15195aix3*)
15196 version_type=linux
15197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15198 shlibpath_var=LIBPATH
15199
15200 # AIX 3 has no versioning support, so we append a major version to the name.
15201 soname_spec='${libname}${release}${shared_ext}$major'
15202 ;;
15203
15204aix4* | aix5*)
15205 version_type=linux
15206 need_lib_prefix=no
15207 need_version=no
15208 hardcode_into_libs=yes
15209 if test "$host_cpu" = ia64; then
15210 # AIX 5 supports IA64
15211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15212 shlibpath_var=LD_LIBRARY_PATH
15213 else
15214 # With GCC up to 2.95.x, collect2 would create an import file
15215 # for dependence libraries. The import file would start with
15216 # the line `#! .'. This would cause the generated library to
15217 # depend on `.', always an invalid library. This was fixed in
15218 # development snapshots of GCC prior to 3.0.
15219 case $host_os in
15220 aix4 | aix4.[01] | aix4.[01].*)
15221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15222 echo ' yes '
15223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15224 :
15225 else
15226 can_build_shared=no
15227 fi
15228 ;;
15229 esac
15230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15231 # soname into executable. Probably we can add versioning support to
15232 # collect2, so additional links can be useful in future.
15233 if test "$aix_use_runtimelinking" = yes; then
15234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15235 # instead of lib<name>.a to let people know that these are not
15236 # typical AIX shared libraries.
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238 else
15239 # We preserve .a as extension for shared libraries through AIX4.2
15240 # and later when we are not doing run time linking.
15241 library_names_spec='${libname}${release}.a $libname.a'
15242 soname_spec='${libname}${release}${shared_ext}$major'
15243 fi
15244 shlibpath_var=LIBPATH
15245 fi
15246 ;;
15247
15248amigaos*)
15249 library_names_spec='$libname.ixlibrary $libname.a'
15250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15251 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'
15252 ;;
15253
15254beos*)
15255 library_names_spec='${libname}${shared_ext}'
15256 dynamic_linker="$host_os ld.so"
15257 shlibpath_var=LIBRARY_PATH
15258 ;;
15259
15260bsdi[45]*)
15261 version_type=linux
15262 need_version=no
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15264 soname_spec='${libname}${release}${shared_ext}$major'
15265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15266 shlibpath_var=LD_LIBRARY_PATH
15267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15269 # the default ld.so.conf also contains /usr/contrib/lib and
15270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15271 # libtool to hard-code these into programs
15272 ;;
15273
15274cygwin* | mingw* | pw32*)
15275 version_type=windows
15276 shrext_cmds=".dll"
15277 need_version=no
15278 need_lib_prefix=no
15279
15280 case $GCC,$host_os in
15281 yes,cygwin* | yes,mingw* | yes,pw32*)
15282 library_names_spec='$libname.dll.a'
15283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15284 postinstall_cmds='base_file=`basename \${file}`~
15285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15286 dldir=$destdir/`dirname \$dlpath`~
15287 test -d \$dldir || mkdir -p \$dldir~
15288 $install_prog $dir/$dlname \$dldir/$dlname~
15289 chmod a+x \$dldir/$dlname'
15290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15291 dlpath=$dir/\$dldll~
15292 $rm \$dlpath'
15293 shlibpath_overrides_runpath=yes
15294
15295 case $host_os in
15296 cygwin*)
15297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15299 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15300 ;;
15301 mingw*)
15302 # MinGW DLLs use traditional 'lib' prefix
15303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15305 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15306 # It is most probably a Windows format PATH printed by
15307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15308 # path with ; separators, and with drive letters. We can handle the
15309 # drive letters (cygwin fileutils understands them), so leave them,
15310 # especially as we might pass files found there to a mingw objdump,
15311 # which wouldn't understand a cygwinified path. Ahh.
15312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15313 else
15314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15315 fi
15316 ;;
15317 pw32*)
15318 # pw32 DLLs use 'pw' prefix rather than 'lib'
15319 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15320 ;;
15321 esac
15322 ;;
15323
15324 *)
15325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15326 ;;
15327 esac
15328 dynamic_linker='Win32 ld.exe'
15329 # FIXME: first we should search . and the directory the executable is in
15330 shlibpath_var=PATH
15331 ;;
15332
15333darwin* | rhapsody*)
15334 dynamic_linker="$host_os dyld"
15335 version_type=darwin
15336 need_lib_prefix=no
15337 need_version=no
15338 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15339 soname_spec='${libname}${release}${major}$shared_ext'
15340 shlibpath_overrides_runpath=yes
15341 shlibpath_var=DYLD_LIBRARY_PATH
15342 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15343 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15344 if test "$GCC" = yes; then
15345 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15346 else
15347 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15348 fi
15349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15350 ;;
15351
15352dgux*)
15353 version_type=linux
15354 need_lib_prefix=no
15355 need_version=no
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LD_LIBRARY_PATH
15359 ;;
15360
15361freebsd1*)
15362 dynamic_linker=no
15363 ;;
15364
15365kfreebsd*-gnu)
15366 version_type=linux
15367 need_lib_prefix=no
15368 need_version=no
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 shlibpath_overrides_runpath=no
15373 hardcode_into_libs=yes
15374 dynamic_linker='GNU ld.so'
15375 ;;
15376
15377freebsd* | dragonfly*)
15378 # DragonFly does not have aout. When/if they implement a new
15379 # versioning mechanism, adjust this.
15380 if test -x /usr/bin/objformat; then
15381 objformat=`/usr/bin/objformat`
15382 else
15383 case $host_os in
15384 freebsd[123]*) objformat=aout ;;
15385 *) objformat=elf ;;
15386 esac
15387 fi
15388 version_type=freebsd-$objformat
15389 case $version_type in
15390 freebsd-elf*)
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15392 need_version=no
15393 need_lib_prefix=no
15394 ;;
15395 freebsd-*)
15396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15397 need_version=yes
15398 ;;
15399 esac
15400 shlibpath_var=LD_LIBRARY_PATH
15401 case $host_os in
15402 freebsd2*)
15403 shlibpath_overrides_runpath=yes
15404 ;;
15405 freebsd3.[01]* | freebsdelf3.[01]*)
15406 shlibpath_overrides_runpath=yes
15407 hardcode_into_libs=yes
15408 ;;
15409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15411 shlibpath_overrides_runpath=no
15412 hardcode_into_libs=yes
15413 ;;
15414 freebsd*) # from 4.6 on
15415 shlibpath_overrides_runpath=yes
15416 hardcode_into_libs=yes
15417 ;;
15418 esac
15419 ;;
15420
15421gnu*)
15422 version_type=linux
15423 need_lib_prefix=no
15424 need_version=no
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 hardcode_into_libs=yes
15429 ;;
15430
15431hpux9* | hpux10* | hpux11*)
15432 # Give a soname corresponding to the major version so that dld.sl refuses to
15433 # link against other versions.
15434 version_type=sunos
15435 need_lib_prefix=no
15436 need_version=no
15437 case $host_cpu in
15438 ia64*)
15439 shrext_cmds='.so'
15440 hardcode_into_libs=yes
15441 dynamic_linker="$host_os dld.so"
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 if test "X$HPUX_IA64_MODE" = X32; then
15447 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15448 else
15449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15450 fi
15451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452 ;;
15453 hppa*64*)
15454 shrext_cmds='.sl'
15455 hardcode_into_libs=yes
15456 dynamic_linker="$host_os dld.sl"
15457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15463 ;;
15464 *)
15465 shrext_cmds='.sl'
15466 dynamic_linker="$host_os dld.sl"
15467 shlibpath_var=SHLIB_PATH
15468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 ;;
15472 esac
15473 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15474 postinstall_cmds='chmod 555 $lib'
15475 ;;
15476
15477interix3*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15484 shlibpath_var=LD_LIBRARY_PATH
15485 shlibpath_overrides_runpath=no
15486 hardcode_into_libs=yes
15487 ;;
15488
15489irix5* | irix6* | nonstopux*)
15490 case $host_os in
15491 nonstopux*) version_type=nonstopux ;;
15492 *)
15493 if test "$lt_cv_prog_gnu_ld" = yes; then
15494 version_type=linux
15495 else
15496 version_type=irix
15497 fi ;;
15498 esac
15499 need_lib_prefix=no
15500 need_version=no
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15503 case $host_os in
15504 irix5* | nonstopux*)
15505 libsuff= shlibsuff=
15506 ;;
15507 *)
15508 case $LD in # libtool.m4 will add one of these switches to LD
15509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15510 libsuff= shlibsuff= libmagic=32-bit;;
15511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15512 libsuff=32 shlibsuff=N32 libmagic=N32;;
15513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15515 *) libsuff= shlibsuff= libmagic=never-match;;
15516 esac
15517 ;;
15518 esac
15519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15520 shlibpath_overrides_runpath=no
15521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15523 hardcode_into_libs=yes
15524 ;;
15525
15526# No shared lib support for Linux oldld, aout, or coff.
15527linux*oldld* | linux*aout* | linux*coff*)
15528 dynamic_linker=no
15529 ;;
15530
15531# This must be Linux ELF.
15532linux*)
15533 version_type=linux
15534 need_lib_prefix=no
15535 need_version=no
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=no
15541 # This implies no fast_install, which is unacceptable.
15542 # Some rework will be needed to allow for fast_install
15543 # before this can be enabled.
15544 hardcode_into_libs=yes
15545
15546 # find out which ABI we are using
15547 libsuff=
15548 case "$host_cpu" in
15549 x86_64*|s390x*|powerpc64*)
64ff59ba 15550 echo '#line 15550 "configure"' > conftest.$ac_ext
d9898ee8 15551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15552 (eval $ac_compile) 2>&5
15553 ac_status=$?
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; then
15556 case `/usr/bin/file conftest.$ac_objext` in
15557 *64-bit*)
15558 libsuff=64
15559 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15560 ;;
15561 esac
15562 fi
15563 rm -rf conftest*
15564 ;;
15565 esac
15566
15567 # Append ld.so.conf contents to the search path
15568 if test -f /etc/ld.so.conf; then
64ff59ba 15569 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 15570 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15571 fi
15572
15573 # We used to test for /lib/ld.so.1 and disable shared libraries on
15574 # powerpc, because MkLinux only supported shared libraries with the
15575 # GNU dynamic linker. Since this was broken with cross compilers,
15576 # most powerpc-linux boxes support dynamic linking these days and
15577 # people can always --disable-shared, the test was removed, and we
15578 # assume the GNU/Linux dynamic linker is in use.
15579 dynamic_linker='GNU/Linux ld.so'
15580 ;;
15581
15582knetbsd*-gnu)
15583 version_type=linux
15584 need_lib_prefix=no
15585 need_version=no
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 shlibpath_overrides_runpath=no
15590 hardcode_into_libs=yes
15591 dynamic_linker='GNU ld.so'
15592 ;;
15593
15594netbsd*)
15595 version_type=sunos
15596 need_lib_prefix=no
15597 need_version=no
15598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15601 dynamic_linker='NetBSD (a.out) ld.so'
15602 else
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 dynamic_linker='NetBSD ld.elf_so'
15606 fi
15607 shlibpath_var=LD_LIBRARY_PATH
15608 shlibpath_overrides_runpath=yes
15609 hardcode_into_libs=yes
15610 ;;
15611
15612newsos6)
15613 version_type=linux
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 shlibpath_var=LD_LIBRARY_PATH
15616 shlibpath_overrides_runpath=yes
15617 ;;
15618
15619nto-qnx*)
15620 version_type=linux
15621 need_lib_prefix=no
15622 need_version=no
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 soname_spec='${libname}${release}${shared_ext}$major'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15627 ;;
15628
15629openbsd*)
15630 version_type=sunos
15631 sys_lib_dlsearch_path_spec="/usr/lib"
15632 need_lib_prefix=no
15633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15634 case $host_os in
15635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15636 *) need_version=no ;;
15637 esac
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15642 case $host_os in
15643 openbsd2.[89] | openbsd2.[89].*)
15644 shlibpath_overrides_runpath=no
15645 ;;
15646 *)
15647 shlibpath_overrides_runpath=yes
15648 ;;
15649 esac
15650 else
15651 shlibpath_overrides_runpath=yes
15652 fi
15653 ;;
15654
15655os2*)
15656 libname_spec='$name'
15657 shrext_cmds=".dll"
15658 need_lib_prefix=no
15659 library_names_spec='$libname${shared_ext} $libname.a'
15660 dynamic_linker='OS/2 ld.exe'
15661 shlibpath_var=LIBPATH
15662 ;;
15663
15664osf3* | osf4* | osf5*)
15665 version_type=osf
15666 need_lib_prefix=no
15667 need_version=no
15668 soname_spec='${libname}${release}${shared_ext}$major'
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15673 ;;
15674
15675solaris*)
15676 version_type=linux
15677 need_lib_prefix=no
15678 need_version=no
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 shlibpath_overrides_runpath=yes
15683 hardcode_into_libs=yes
15684 # ldd complains unless libraries are executable
15685 postinstall_cmds='chmod +x $lib'
15686 ;;
15687
15688sunos4*)
15689 version_type=sunos
15690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15692 shlibpath_var=LD_LIBRARY_PATH
15693 shlibpath_overrides_runpath=yes
15694 if test "$with_gnu_ld" = yes; then
15695 need_lib_prefix=no
15696 fi
15697 need_version=yes
15698 ;;
15699
15700sysv4 | sysv4.3*)
15701 version_type=linux
15702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703 soname_spec='${libname}${release}${shared_ext}$major'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 case $host_vendor in
15706 sni)
15707 shlibpath_overrides_runpath=no
15708 need_lib_prefix=no
15709 export_dynamic_flag_spec='${wl}-Blargedynsym'
15710 runpath_var=LD_RUN_PATH
15711 ;;
15712 siemens)
15713 need_lib_prefix=no
15714 ;;
15715 motorola)
15716 need_lib_prefix=no
15717 need_version=no
15718 shlibpath_overrides_runpath=no
15719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15720 ;;
15721 esac
15722 ;;
15723
15724sysv4*MP*)
15725 if test -d /usr/nec ;then
15726 version_type=linux
15727 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15728 soname_spec='$libname${shared_ext}.$major'
15729 shlibpath_var=LD_LIBRARY_PATH
15730 fi
15731 ;;
15732
15733sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15734 version_type=freebsd-elf
15735 need_lib_prefix=no
15736 need_version=no
15737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15738 soname_spec='${libname}${release}${shared_ext}$major'
15739 shlibpath_var=LD_LIBRARY_PATH
15740 hardcode_into_libs=yes
15741 if test "$with_gnu_ld" = yes; then
15742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15743 shlibpath_overrides_runpath=no
15744 else
15745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15746 shlibpath_overrides_runpath=yes
15747 case $host_os in
15748 sco3.2v5*)
15749 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15750 ;;
15751 esac
15752 fi
15753 sys_lib_dlsearch_path_spec='/usr/lib'
15754 ;;
15755
15756uts4*)
15757 version_type=linux
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 shlibpath_var=LD_LIBRARY_PATH
15761 ;;
15762
15763*)
15764 dynamic_linker=no
15765 ;;
15766esac
64ff59ba 15767{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15768echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15769test "$dynamic_linker" = no && can_build_shared=no
15770
15771variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15772if test "$GCC" = yes; then
15773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15774fi
15775
64ff59ba 15776{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15777echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 15778hardcode_action_F77=
15779if test -n "$hardcode_libdir_flag_spec_F77" || \
15780 test -n "$runpath_var_F77" || \
15781 test "X$hardcode_automatic_F77" = "Xyes" ; then
15782
15783 # We can hardcode non-existant directories.
15784 if test "$hardcode_direct_F77" != no &&
15785 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15786 # have to relink, otherwise we might link with an installed library
15787 # when we should be linking with a yet-to-be-installed one
15788 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15789 test "$hardcode_minus_L_F77" != no; then
15790 # Linking always hardcodes the temporary library directory.
15791 hardcode_action_F77=relink
15792 else
15793 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15794 hardcode_action_F77=immediate
15795 fi
15796else
15797 # We cannot hardcode anything, or else we can only hardcode existing
15798 # directories.
15799 hardcode_action_F77=unsupported
15800fi
64ff59ba 15801{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15802echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 15803
15804if test "$hardcode_action_F77" = relink; then
15805 # Fast installation is not supported
15806 enable_fast_install=no
15807elif test "$shlibpath_overrides_runpath" = yes ||
15808 test "$enable_shared" = no; then
15809 # Fast installation is not necessary
15810 enable_fast_install=needless
15811fi
15812
15813
15814# The else clause should only fire when bootstrapping the
15815# libtool distribution, otherwise you forgot to ship ltmain.sh
15816# with your package, and you will get complaints that there are
15817# no rules to generate ltmain.sh.
15818if test -f "$ltmain"; then
15819 # See if we are running on zsh, and set the options which allow our commands through
15820 # without removal of \ escapes.
15821 if test -n "${ZSH_VERSION+set}" ; then
15822 setopt NO_GLOB_SUBST
15823 fi
15824 # Now quote all the things that may contain metacharacters while being
15825 # careful not to overquote the AC_SUBSTed values. We take copies of the
15826 # variables and quote the copies for generation of the libtool script.
15827 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15828 SED SHELL STRIP \
15829 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15830 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15831 deplibs_check_method reload_flag reload_cmds need_locks \
15832 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15833 lt_cv_sys_global_symbol_to_c_name_address \
15834 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15835 old_postinstall_cmds old_postuninstall_cmds \
15836 compiler_F77 \
15837 CC_F77 \
15838 LD_F77 \
15839 lt_prog_compiler_wl_F77 \
15840 lt_prog_compiler_pic_F77 \
15841 lt_prog_compiler_static_F77 \
15842 lt_prog_compiler_no_builtin_flag_F77 \
15843 export_dynamic_flag_spec_F77 \
15844 thread_safe_flag_spec_F77 \
15845 whole_archive_flag_spec_F77 \
15846 enable_shared_with_static_runtimes_F77 \
15847 old_archive_cmds_F77 \
15848 old_archive_from_new_cmds_F77 \
15849 predep_objects_F77 \
15850 postdep_objects_F77 \
15851 predeps_F77 \
15852 postdeps_F77 \
15853 compiler_lib_search_path_F77 \
15854 archive_cmds_F77 \
15855 archive_expsym_cmds_F77 \
15856 postinstall_cmds_F77 \
15857 postuninstall_cmds_F77 \
15858 old_archive_from_expsyms_cmds_F77 \
15859 allow_undefined_flag_F77 \
15860 no_undefined_flag_F77 \
15861 export_symbols_cmds_F77 \
15862 hardcode_libdir_flag_spec_F77 \
15863 hardcode_libdir_flag_spec_ld_F77 \
15864 hardcode_libdir_separator_F77 \
15865 hardcode_automatic_F77 \
15866 module_cmds_F77 \
15867 module_expsym_cmds_F77 \
15868 lt_cv_prog_compiler_c_o_F77 \
15869 exclude_expsyms_F77 \
15870 include_expsyms_F77; do
15871
15872 case $var in
15873 old_archive_cmds_F77 | \
15874 old_archive_from_new_cmds_F77 | \
15875 archive_cmds_F77 | \
15876 archive_expsym_cmds_F77 | \
15877 module_cmds_F77 | \
15878 module_expsym_cmds_F77 | \
15879 old_archive_from_expsyms_cmds_F77 | \
15880 export_symbols_cmds_F77 | \
15881 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15882 postinstall_cmds | postuninstall_cmds | \
15883 old_postinstall_cmds | old_postuninstall_cmds | \
15884 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15885 # Double-quote double-evaled strings.
15886 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15887 ;;
15888 *)
15889 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15890 ;;
15891 esac
15892 done
15893
15894 case $lt_echo in
15895 *'\$0 --fallback-echo"')
15896 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15897 ;;
15898 esac
15899
15900cfgfile="$ofile"
15901
15902 cat <<__EOF__ >> "$cfgfile"
15903# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15904
15905# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15906
15907# Shell to use when invoking shell scripts.
15908SHELL=$lt_SHELL
15909
15910# Whether or not to build shared libraries.
15911build_libtool_libs=$enable_shared
15912
15913# Whether or not to build static libraries.
15914build_old_libs=$enable_static
15915
15916# Whether or not to add -lc for building shared libraries.
15917build_libtool_need_lc=$archive_cmds_need_lc_F77
15918
15919# Whether or not to disallow shared libs when runtime libs are static
15920allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15921
15922# Whether or not to optimize for fast installation.
15923fast_install=$enable_fast_install
15924
15925# The host system.
15926host_alias=$host_alias
15927host=$host
15928host_os=$host_os
15929
15930# The build system.
15931build_alias=$build_alias
15932build=$build
15933build_os=$build_os
15934
15935# An echo program that does not interpret backslashes.
15936echo=$lt_echo
15937
15938# The archiver.
15939AR=$lt_AR
15940AR_FLAGS=$lt_AR_FLAGS
15941
15942# A C compiler.
15943LTCC=$lt_LTCC
15944
15945# LTCC compiler flags.
15946LTCFLAGS=$lt_LTCFLAGS
15947
15948# A language-specific compiler.
15949CC=$lt_compiler_F77
15950
15951# Is the compiler the GNU C compiler?
15952with_gcc=$GCC_F77
15953
d9898ee8 15954# An ERE matcher.
15955EGREP=$lt_EGREP
15956
15957# The linker used to build libraries.
15958LD=$lt_LD_F77
15959
15960# Whether we need hard or soft links.
15961LN_S=$lt_LN_S
15962
15963# A BSD-compatible nm program.
15964NM=$lt_NM
15965
15966# A symbol stripping program
15967STRIP=$lt_STRIP
15968
15969# Used to examine libraries when file_magic_cmd begins "file"
15970MAGIC_CMD=$MAGIC_CMD
15971
15972# Used on cygwin: DLL creation program.
15973DLLTOOL="$DLLTOOL"
15974
15975# Used on cygwin: object dumper.
15976OBJDUMP="$OBJDUMP"
15977
15978# Used on cygwin: assembler.
15979AS="$AS"
15980
15981# The name of the directory that contains temporary libtool files.
15982objdir=$objdir
15983
15984# How to create reloadable object files.
15985reload_flag=$lt_reload_flag
15986reload_cmds=$lt_reload_cmds
15987
15988# How to pass a linker flag through the compiler.
15989wl=$lt_lt_prog_compiler_wl_F77
15990
15991# Object file suffix (normally "o").
15992objext="$ac_objext"
15993
15994# Old archive suffix (normally "a").
15995libext="$libext"
15996
15997# Shared library suffix (normally ".so").
15998shrext_cmds='$shrext_cmds'
15999
16000# Executable file suffix (normally "").
16001exeext="$exeext"
16002
16003# Additional compiler flags for building library objects.
16004pic_flag=$lt_lt_prog_compiler_pic_F77
16005pic_mode=$pic_mode
16006
16007# What is the maximum length of a command?
16008max_cmd_len=$lt_cv_sys_max_cmd_len
16009
16010# Does compiler simultaneously support -c and -o options?
16011compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16012
16013# Must we lock files when doing compilation?
16014need_locks=$lt_need_locks
16015
16016# Do we need the lib prefix for modules?
16017need_lib_prefix=$need_lib_prefix
16018
16019# Do we need a version for libraries?
16020need_version=$need_version
16021
16022# Whether dlopen is supported.
16023dlopen_support=$enable_dlopen
16024
16025# Whether dlopen of programs is supported.
16026dlopen_self=$enable_dlopen_self
16027
16028# Whether dlopen of statically linked programs is supported.
16029dlopen_self_static=$enable_dlopen_self_static
16030
16031# Compiler flag to prevent dynamic linking.
16032link_static_flag=$lt_lt_prog_compiler_static_F77
16033
16034# Compiler flag to turn off builtin functions.
16035no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16036
16037# Compiler flag to allow reflexive dlopens.
16038export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16039
16040# Compiler flag to generate shared objects directly from archives.
16041whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16042
16043# Compiler flag to generate thread-safe objects.
16044thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16045
16046# Library versioning type.
16047version_type=$version_type
16048
16049# Format of library name prefix.
16050libname_spec=$lt_libname_spec
16051
16052# List of archive names. First name is the real one, the rest are links.
16053# The last name is the one that the linker finds with -lNAME.
16054library_names_spec=$lt_library_names_spec
16055
16056# The coded name of the library, if different from the real name.
16057soname_spec=$lt_soname_spec
16058
16059# Commands used to build and install an old-style archive.
16060RANLIB=$lt_RANLIB
16061old_archive_cmds=$lt_old_archive_cmds_F77
16062old_postinstall_cmds=$lt_old_postinstall_cmds
16063old_postuninstall_cmds=$lt_old_postuninstall_cmds
16064
16065# Create an old-style archive from a shared archive.
16066old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16067
16068# Create a temporary old-style archive to link instead of a shared archive.
16069old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16070
16071# Commands used to build and install a shared archive.
16072archive_cmds=$lt_archive_cmds_F77
16073archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16074postinstall_cmds=$lt_postinstall_cmds
16075postuninstall_cmds=$lt_postuninstall_cmds
16076
16077# Commands used to build a loadable module (assumed same as above if empty)
16078module_cmds=$lt_module_cmds_F77
16079module_expsym_cmds=$lt_module_expsym_cmds_F77
16080
16081# Commands to strip libraries.
16082old_striplib=$lt_old_striplib
16083striplib=$lt_striplib
16084
16085# Dependencies to place before the objects being linked to create a
16086# shared library.
64ff59ba 16087predep_objects=$lt_predep_objects_F77
d9898ee8 16088
16089# Dependencies to place after the objects being linked to create a
16090# shared library.
64ff59ba 16091postdep_objects=$lt_postdep_objects_F77
d9898ee8 16092
16093# Dependencies to place before the objects being linked to create a
16094# shared library.
16095predeps=$lt_predeps_F77
16096
16097# Dependencies to place after the objects being linked to create a
16098# shared library.
16099postdeps=$lt_postdeps_F77
16100
16101# The library search path used internally by the compiler when linking
16102# a shared library.
64ff59ba 16103compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16104
16105# Method to check whether dependent libraries are shared objects.
16106deplibs_check_method=$lt_deplibs_check_method
16107
16108# Command to use when deplibs_check_method == file_magic.
16109file_magic_cmd=$lt_file_magic_cmd
16110
16111# Flag that allows shared libraries with undefined symbols to be built.
16112allow_undefined_flag=$lt_allow_undefined_flag_F77
16113
16114# Flag that forces no undefined symbols.
16115no_undefined_flag=$lt_no_undefined_flag_F77
16116
16117# Commands used to finish a libtool library installation in a directory.
16118finish_cmds=$lt_finish_cmds
16119
16120# Same as above, but a single script fragment to be evaled but not shown.
16121finish_eval=$lt_finish_eval
16122
16123# Take the output of nm and produce a listing of raw symbols and C names.
16124global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16125
16126# Transform the output of nm in a proper C declaration
16127global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16128
16129# Transform the output of nm in a C name address pair
16130global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16131
16132# This is the shared library runtime path variable.
16133runpath_var=$runpath_var
16134
16135# This is the shared library path variable.
16136shlibpath_var=$shlibpath_var
16137
16138# Is shlibpath searched before the hard-coded library search path?
16139shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16140
16141# How to hardcode a shared library path into an executable.
16142hardcode_action=$hardcode_action_F77
16143
16144# Whether we should hardcode library paths into libraries.
16145hardcode_into_libs=$hardcode_into_libs
16146
16147# Flag to hardcode \$libdir into a binary during linking.
16148# This must work even if \$libdir does not exist.
16149hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16150
16151# If ld is used when linking, flag to hardcode \$libdir into
16152# a binary during linking. This must work even if \$libdir does
16153# not exist.
16154hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16155
16156# Whether we need a single -rpath flag with a separated argument.
16157hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16158
16159# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16160# resulting binary.
16161hardcode_direct=$hardcode_direct_F77
16162
16163# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16164# resulting binary.
16165hardcode_minus_L=$hardcode_minus_L_F77
16166
16167# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16168# the resulting binary.
16169hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16170
16171# Set to yes if building a shared library automatically hardcodes DIR into the library
16172# and all subsequent libraries and executables linked against it.
16173hardcode_automatic=$hardcode_automatic_F77
16174
16175# Variables whose values should be saved in libtool wrapper scripts and
16176# restored at relink time.
16177variables_saved_for_relink="$variables_saved_for_relink"
16178
16179# Whether libtool must link a program against all its dependency libraries.
16180link_all_deplibs=$link_all_deplibs_F77
16181
16182# Compile-time system search path for libraries
64ff59ba 16183sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16184
16185# Run-time system search path for libraries
16186sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16187
16188# Fix the shell variable \$srcfile for the compiler.
16189fix_srcfile_path="$fix_srcfile_path_F77"
16190
16191# Set to yes if exported symbols are required.
16192always_export_symbols=$always_export_symbols_F77
16193
16194# The commands to list exported symbols.
16195export_symbols_cmds=$lt_export_symbols_cmds_F77
16196
16197# The commands to extract the exported symbol list from a shared archive.
16198extract_expsyms_cmds=$lt_extract_expsyms_cmds
16199
16200# Symbols that should not be listed in the preloaded symbols.
16201exclude_expsyms=$lt_exclude_expsyms_F77
16202
16203# Symbols that must always be exported.
16204include_expsyms=$lt_include_expsyms_F77
16205
16206# ### END LIBTOOL TAG CONFIG: $tagname
16207
16208__EOF__
16209
16210
16211else
16212 # If there is no Makefile yet, we rely on a make rule to execute
16213 # `config.status --recheck' to rerun these tests and create the
16214 # libtool script then.
16215 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16216 if test -f "$ltmain_in"; then
16217 test -f Makefile && make "$ltmain"
16218 fi
16219fi
16220
16221
16222ac_ext=c
16223ac_cpp='$CPP $CPPFLAGS'
16224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226ac_compiler_gnu=$ac_cv_c_compiler_gnu
16227
16228CC="$lt_save_CC"
16229
16230 else
16231 tagname=""
16232 fi
16233 ;;
16234
16235 GCJ)
16236 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16237
16238
d9898ee8 16239# Source file extension for Java test sources.
16240ac_ext=java
16241
16242# Object file extension for compiled Java test sources.
16243objext=o
16244objext_GCJ=$objext
16245
16246# Code to be used in simple compile tests
16247lt_simple_compile_test_code="class foo {}\n"
16248
16249# Code to be used in simple link tests
16250lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16251
16252# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16253
16254# If no C compiler was specified, use CC.
16255LTCC=${LTCC-"$CC"}
16256
16257# If no C compiler flags were specified, use CFLAGS.
16258LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16259
16260# Allow CC to be a program name with arguments.
16261compiler=$CC
16262
16263
16264# save warnings/boilerplate of simple test code
16265ac_outfile=conftest.$ac_objext
16266printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16267eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16268_lt_compiler_boilerplate=`cat conftest.err`
16269$rm conftest*
16270
16271ac_outfile=conftest.$ac_objext
16272printf "$lt_simple_link_test_code" >conftest.$ac_ext
16273eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16274_lt_linker_boilerplate=`cat conftest.err`
16275$rm conftest*
16276
16277
16278# Allow CC to be a program name with arguments.
16279lt_save_CC="$CC"
16280CC=${GCJ-"gcj"}
16281compiler=$CC
16282compiler_GCJ=$CC
16283for cc_temp in $compiler""; do
16284 case $cc_temp in
16285 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16286 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16287 \-*) ;;
16288 *) break;;
16289 esac
16290done
16291cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16292
16293
16294# GCJ did not exist at the time GCC didn't implicitly link libc in.
16295archive_cmds_need_lc_GCJ=no
16296
16297old_archive_cmds_GCJ=$old_archive_cmds
16298
16299
16300lt_prog_compiler_no_builtin_flag_GCJ=
16301
16302if test "$GCC" = yes; then
16303 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16304
16305
64ff59ba 16306{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16307echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16308if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16310else
16311 lt_cv_prog_compiler_rtti_exceptions=no
16312 ac_outfile=conftest.$ac_objext
16313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16314 lt_compiler_flag="-fno-rtti -fno-exceptions"
16315 # Insert the option either (1) after the last *FLAGS variable, or
16316 # (2) before a word containing "conftest.", or (3) at the end.
16317 # Note that $ac_compile itself does not contain backslashes and begins
16318 # with a dollar sign (not a hyphen), so the echo should work correctly.
16319 # The option is referenced via a variable to avoid confusing sed.
16320 lt_compile=`echo "$ac_compile" | $SED \
16321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16323 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16324 (eval echo "\"\$as_me:16324: $lt_compile\"" >&5)
d9898ee8 16325 (eval "$lt_compile" 2>conftest.err)
16326 ac_status=$?
16327 cat conftest.err >&5
64ff59ba 16328 echo "$as_me:16328: \$? = $ac_status" >&5
d9898ee8 16329 if (exit $ac_status) && test -s "$ac_outfile"; then
16330 # The compiler can only warn and ignore the option if not recognized
16331 # So say no if there are warnings other than the usual output.
16332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16333 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16334 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16335 lt_cv_prog_compiler_rtti_exceptions=yes
16336 fi
16337 fi
16338 $rm conftest*
16339
16340fi
64ff59ba 16341{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16342echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16343
16344if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16345 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16346else
16347 :
16348fi
16349
16350fi
16351
16352lt_prog_compiler_wl_GCJ=
16353lt_prog_compiler_pic_GCJ=
16354lt_prog_compiler_static_GCJ=
16355
64ff59ba 16356{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16357echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16358
16359 if test "$GCC" = yes; then
16360 lt_prog_compiler_wl_GCJ='-Wl,'
16361 lt_prog_compiler_static_GCJ='-static'
16362
16363 case $host_os in
16364 aix*)
16365 # All AIX code is PIC.
16366 if test "$host_cpu" = ia64; then
16367 # AIX 5 now supports IA64 processor
16368 lt_prog_compiler_static_GCJ='-Bstatic'
16369 fi
16370 ;;
16371
16372 amigaos*)
16373 # FIXME: we need at least 68020 code to build shared libraries, but
16374 # adding the `-m68020' flag to GCC prevents building anything better,
16375 # like `-m68040'.
16376 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16377 ;;
16378
16379 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16380 # PIC is the default for these OSes.
16381 ;;
16382
16383 mingw* | pw32* | os2*)
16384 # This hack is so that the source file can tell whether it is being
16385 # built for inclusion in a dll (and should export symbols for example).
16386 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16387 ;;
16388
16389 darwin* | rhapsody*)
16390 # PIC is the default on this platform
16391 # Common symbols not allowed in MH_DYLIB files
16392 lt_prog_compiler_pic_GCJ='-fno-common'
16393 ;;
16394
16395 interix3*)
16396 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16397 # Instead, we relocate shared libraries at runtime.
16398 ;;
16399
16400 msdosdjgpp*)
16401 # Just because we use GCC doesn't mean we suddenly get shared libraries
16402 # on systems that don't support them.
16403 lt_prog_compiler_can_build_shared_GCJ=no
16404 enable_shared=no
16405 ;;
16406
16407 sysv4*MP*)
16408 if test -d /usr/nec; then
16409 lt_prog_compiler_pic_GCJ=-Kconform_pic
16410 fi
16411 ;;
16412
16413 hpux*)
16414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16415 # not for PA HP-UX.
16416 case $host_cpu in
16417 hppa*64*|ia64*)
16418 # +Z the default
16419 ;;
16420 *)
16421 lt_prog_compiler_pic_GCJ='-fPIC'
16422 ;;
16423 esac
16424 ;;
16425
16426 *)
16427 lt_prog_compiler_pic_GCJ='-fPIC'
16428 ;;
16429 esac
16430 else
16431 # PORTME Check for flag to pass linker flags through the system compiler.
16432 case $host_os in
16433 aix*)
16434 lt_prog_compiler_wl_GCJ='-Wl,'
16435 if test "$host_cpu" = ia64; then
16436 # AIX 5 now supports IA64 processor
16437 lt_prog_compiler_static_GCJ='-Bstatic'
16438 else
16439 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16440 fi
16441 ;;
16442 darwin*)
16443 # PIC is the default on this platform
16444 # Common symbols not allowed in MH_DYLIB files
16445 case $cc_basename in
16446 xlc*)
16447 lt_prog_compiler_pic_GCJ='-qnocommon'
16448 lt_prog_compiler_wl_GCJ='-Wl,'
16449 ;;
16450 esac
16451 ;;
16452
16453 mingw* | pw32* | os2*)
16454 # This hack is so that the source file can tell whether it is being
16455 # built for inclusion in a dll (and should export symbols for example).
16456 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16457 ;;
16458
16459 hpux9* | hpux10* | hpux11*)
16460 lt_prog_compiler_wl_GCJ='-Wl,'
16461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16462 # not for PA HP-UX.
16463 case $host_cpu in
16464 hppa*64*|ia64*)
16465 # +Z the default
16466 ;;
16467 *)
16468 lt_prog_compiler_pic_GCJ='+Z'
16469 ;;
16470 esac
16471 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16472 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16473 ;;
16474
16475 irix5* | irix6* | nonstopux*)
16476 lt_prog_compiler_wl_GCJ='-Wl,'
16477 # PIC (with -KPIC) is the default.
16478 lt_prog_compiler_static_GCJ='-non_shared'
16479 ;;
16480
16481 newsos6)
16482 lt_prog_compiler_pic_GCJ='-KPIC'
16483 lt_prog_compiler_static_GCJ='-Bstatic'
16484 ;;
16485
16486 linux*)
16487 case $cc_basename in
16488 icc* | ecc*)
16489 lt_prog_compiler_wl_GCJ='-Wl,'
16490 lt_prog_compiler_pic_GCJ='-KPIC'
16491 lt_prog_compiler_static_GCJ='-static'
16492 ;;
16493 pgcc* | pgf77* | pgf90* | pgf95*)
16494 # Portland Group compilers (*not* the Pentium gcc compiler,
16495 # which looks to be a dead project)
16496 lt_prog_compiler_wl_GCJ='-Wl,'
16497 lt_prog_compiler_pic_GCJ='-fpic'
16498 lt_prog_compiler_static_GCJ='-Bstatic'
16499 ;;
16500 ccc*)
16501 lt_prog_compiler_wl_GCJ='-Wl,'
16502 # All Alpha code is PIC.
16503 lt_prog_compiler_static_GCJ='-non_shared'
16504 ;;
16505 esac
16506 ;;
16507
16508 osf3* | osf4* | osf5*)
16509 lt_prog_compiler_wl_GCJ='-Wl,'
16510 # All OSF/1 code is PIC.
16511 lt_prog_compiler_static_GCJ='-non_shared'
16512 ;;
16513
16514 solaris*)
16515 lt_prog_compiler_pic_GCJ='-KPIC'
16516 lt_prog_compiler_static_GCJ='-Bstatic'
16517 case $cc_basename in
16518 f77* | f90* | f95*)
16519 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16520 *)
16521 lt_prog_compiler_wl_GCJ='-Wl,';;
16522 esac
16523 ;;
16524
16525 sunos4*)
16526 lt_prog_compiler_wl_GCJ='-Qoption ld '
16527 lt_prog_compiler_pic_GCJ='-PIC'
16528 lt_prog_compiler_static_GCJ='-Bstatic'
16529 ;;
16530
16531 sysv4 | sysv4.2uw2* | sysv4.3*)
16532 lt_prog_compiler_wl_GCJ='-Wl,'
16533 lt_prog_compiler_pic_GCJ='-KPIC'
16534 lt_prog_compiler_static_GCJ='-Bstatic'
16535 ;;
16536
16537 sysv4*MP*)
16538 if test -d /usr/nec ;then
16539 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16540 lt_prog_compiler_static_GCJ='-Bstatic'
16541 fi
16542 ;;
16543
16544 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16545 lt_prog_compiler_wl_GCJ='-Wl,'
16546 lt_prog_compiler_pic_GCJ='-KPIC'
16547 lt_prog_compiler_static_GCJ='-Bstatic'
16548 ;;
16549
16550 unicos*)
16551 lt_prog_compiler_wl_GCJ='-Wl,'
16552 lt_prog_compiler_can_build_shared_GCJ=no
16553 ;;
16554
16555 uts4*)
16556 lt_prog_compiler_pic_GCJ='-pic'
16557 lt_prog_compiler_static_GCJ='-Bstatic'
16558 ;;
16559
16560 *)
16561 lt_prog_compiler_can_build_shared_GCJ=no
16562 ;;
16563 esac
16564 fi
16565
64ff59ba 16566{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16567echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16568
16569#
16570# Check to make sure the PIC flag actually works.
16571#
16572if test -n "$lt_prog_compiler_pic_GCJ"; then
16573
64ff59ba 16574{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16575echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16576if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578else
16579 lt_prog_compiler_pic_works_GCJ=no
16580 ac_outfile=conftest.$ac_objext
16581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16582 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16583 # Insert the option either (1) after the last *FLAGS variable, or
16584 # (2) before a word containing "conftest.", or (3) at the end.
16585 # Note that $ac_compile itself does not contain backslashes and begins
16586 # with a dollar sign (not a hyphen), so the echo should work correctly.
16587 # The option is referenced via a variable to avoid confusing sed.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
d9898ee8 16593 (eval "$lt_compile" 2>conftest.err)
16594 ac_status=$?
16595 cat conftest.err >&5
64ff59ba 16596 echo "$as_me:16596: \$? = $ac_status" >&5
d9898ee8 16597 if (exit $ac_status) && test -s "$ac_outfile"; then
16598 # The compiler can only warn and ignore the option if not recognized
16599 # So say no if there are warnings other than the usual output.
16600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16603 lt_prog_compiler_pic_works_GCJ=yes
16604 fi
16605 fi
16606 $rm conftest*
16607
16608fi
64ff59ba 16609{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16610echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16611
16612if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16613 case $lt_prog_compiler_pic_GCJ in
16614 "" | " "*) ;;
16615 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16616 esac
16617else
16618 lt_prog_compiler_pic_GCJ=
16619 lt_prog_compiler_can_build_shared_GCJ=no
16620fi
16621
16622fi
16623case $host_os in
16624 # For platforms which do not support PIC, -DPIC is meaningless:
16625 *djgpp*)
16626 lt_prog_compiler_pic_GCJ=
16627 ;;
16628 *)
16629 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16630 ;;
16631esac
16632
16633#
16634# Check to make sure the static flag actually works.
16635#
16636wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
64ff59ba 16637{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16638echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16639if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641else
16642 lt_prog_compiler_static_works_GCJ=no
16643 save_LDFLAGS="$LDFLAGS"
16644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16645 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16647 # The linker can only warn and ignore the option if not recognized
16648 # So say no if there are warnings
16649 if test -s conftest.err; then
16650 # Append any errors to the config.log.
16651 cat conftest.err 1>&5
16652 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16654 if diff conftest.exp conftest.er2 >/dev/null; then
16655 lt_prog_compiler_static_works_GCJ=yes
16656 fi
16657 else
16658 lt_prog_compiler_static_works_GCJ=yes
16659 fi
16660 fi
16661 $rm conftest*
16662 LDFLAGS="$save_LDFLAGS"
16663
16664fi
64ff59ba 16665{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16666echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16667
16668if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16669 :
16670else
16671 lt_prog_compiler_static_GCJ=
16672fi
16673
16674
64ff59ba 16675{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16676echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16677if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16678 echo $ECHO_N "(cached) $ECHO_C" >&6
16679else
16680 lt_cv_prog_compiler_c_o_GCJ=no
16681 $rm -r conftest 2>/dev/null
16682 mkdir conftest
16683 cd conftest
16684 mkdir out
16685 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16686
16687 lt_compiler_flag="-o out/conftest2.$ac_objext"
16688 # Insert the option either (1) after the last *FLAGS variable, or
16689 # (2) before a word containing "conftest.", or (3) at the end.
16690 # Note that $ac_compile itself does not contain backslashes and begins
16691 # with a dollar sign (not a hyphen), so the echo should work correctly.
16692 lt_compile=`echo "$ac_compile" | $SED \
16693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16695 -e 's:$: $lt_compiler_flag:'`
64ff59ba 16696 (eval echo "\"\$as_me:16696: $lt_compile\"" >&5)
d9898ee8 16697 (eval "$lt_compile" 2>out/conftest.err)
16698 ac_status=$?
16699 cat out/conftest.err >&5
64ff59ba 16700 echo "$as_me:16700: \$? = $ac_status" >&5
d9898ee8 16701 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16702 then
16703 # The compiler can only warn and ignore the option if not recognized
16704 # So say no if there are warnings
16705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16706 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16707 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16708 lt_cv_prog_compiler_c_o_GCJ=yes
16709 fi
16710 fi
16711 chmod u+w . 2>&5
16712 $rm conftest*
16713 # SGI C++ compiler will create directory out/ii_files/ for
16714 # template instantiation
16715 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16716 $rm out/* && rmdir out
16717 cd ..
16718 rmdir conftest
16719 $rm conftest*
16720
16721fi
64ff59ba 16722{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16723echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16724
16725
16726hard_links="nottested"
16727if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16728 # do not overwrite the value of need_locks provided by the user
64ff59ba 16729 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16730echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16731 hard_links=yes
16732 $rm conftest*
16733 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16734 touch conftest.a
16735 ln conftest.a conftest.b 2>&5 || hard_links=no
16736 ln conftest.a conftest.b 2>/dev/null && hard_links=no
64ff59ba 16737 { echo "$as_me:$LINENO: result: $hard_links" >&5
16738echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16739 if test "$hard_links" = no; then
16740 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16741echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16742 need_locks=warn
16743 fi
16744else
16745 need_locks=no
16746fi
16747
64ff59ba 16748{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16749echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16750
16751 runpath_var=
16752 allow_undefined_flag_GCJ=
16753 enable_shared_with_static_runtimes_GCJ=no
16754 archive_cmds_GCJ=
16755 archive_expsym_cmds_GCJ=
16756 old_archive_From_new_cmds_GCJ=
16757 old_archive_from_expsyms_cmds_GCJ=
16758 export_dynamic_flag_spec_GCJ=
16759 whole_archive_flag_spec_GCJ=
16760 thread_safe_flag_spec_GCJ=
16761 hardcode_libdir_flag_spec_GCJ=
16762 hardcode_libdir_flag_spec_ld_GCJ=
16763 hardcode_libdir_separator_GCJ=
16764 hardcode_direct_GCJ=no
16765 hardcode_minus_L_GCJ=no
16766 hardcode_shlibpath_var_GCJ=unsupported
16767 link_all_deplibs_GCJ=unknown
16768 hardcode_automatic_GCJ=no
16769 module_cmds_GCJ=
16770 module_expsym_cmds_GCJ=
16771 always_export_symbols_GCJ=no
16772 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16773 # include_expsyms should be a list of space-separated symbols to be *always*
16774 # included in the symbol list
16775 include_expsyms_GCJ=
16776 # exclude_expsyms can be an extended regexp of symbols to exclude
16777 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16778 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16779 # as well as any symbol that contains `d'.
16780 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16781 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16782 # platforms (ab)use it in PIC code, but their linkers get confused if
16783 # the symbol is explicitly referenced. Since portable code cannot
16784 # rely on this symbol name, it's probably fine to never include it in
16785 # preloaded symbol tables.
16786 extract_expsyms_cmds=
16787 # Just being paranoid about ensuring that cc_basename is set.
16788 for cc_temp in $compiler""; do
16789 case $cc_temp in
16790 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16791 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16792 \-*) ;;
16793 *) break;;
16794 esac
16795done
16796cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16797
16798 case $host_os in
16799 cygwin* | mingw* | pw32*)
16800 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16801 # When not using gcc, we currently assume that we are using
16802 # Microsoft Visual C++.
16803 if test "$GCC" != yes; then
16804 with_gnu_ld=no
16805 fi
16806 ;;
16807 interix*)
16808 # we just hope/assume this is gcc and not c89 (= MSVC++)
16809 with_gnu_ld=yes
16810 ;;
16811 openbsd*)
16812 with_gnu_ld=no
16813 ;;
16814 esac
16815
16816 ld_shlibs_GCJ=yes
16817 if test "$with_gnu_ld" = yes; then
16818 # If archive_cmds runs LD, not CC, wlarc should be empty
16819 wlarc='${wl}'
16820
16821 # Set some defaults for GNU ld with shared library support. These
16822 # are reset later if shared libraries are not supported. Putting them
16823 # here allows them to be overridden if necessary.
16824 runpath_var=LD_RUN_PATH
16825 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16826 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16827 # ancient GNU ld didn't support --whole-archive et. al.
16828 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16829 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16830 else
16831 whole_archive_flag_spec_GCJ=
16832 fi
16833 supports_anon_versioning=no
16834 case `$LD -v 2>/dev/null` in
16835 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16836 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16837 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16838 *\ 2.11.*) ;; # other 2.11 versions
16839 *) supports_anon_versioning=yes ;;
16840 esac
16841
16842 # See if GNU ld supports shared libraries.
16843 case $host_os in
16844 aix3* | aix4* | aix5*)
16845 # On AIX/PPC, the GNU linker is very broken
16846 if test "$host_cpu" != ia64; then
16847 ld_shlibs_GCJ=no
16848 cat <<EOF 1>&2
16849
16850*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16851*** to be unable to reliably create shared libraries on AIX.
16852*** Therefore, libtool is disabling shared libraries support. If you
16853*** really care for shared libraries, you may want to modify your PATH
16854*** so that a non-GNU linker is found, and then restart.
16855
16856EOF
16857 fi
16858 ;;
16859
16860 amigaos*)
16861 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)'
16862 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16863 hardcode_minus_L_GCJ=yes
16864
16865 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16866 # that the semantics of dynamic libraries on AmigaOS, at least up
16867 # to version 4, is to share data among multiple programs linked
16868 # with the same dynamic library. Since this doesn't match the
16869 # behavior of shared libraries on other platforms, we can't use
16870 # them.
16871 ld_shlibs_GCJ=no
16872 ;;
16873
16874 beos*)
16875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16876 allow_undefined_flag_GCJ=unsupported
16877 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16878 # support --undefined. This deserves some investigation. FIXME
16879 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16880 else
16881 ld_shlibs_GCJ=no
16882 fi
16883 ;;
16884
16885 cygwin* | mingw* | pw32*)
16886 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16887 # as there is no search path for DLLs.
16888 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16889 allow_undefined_flag_GCJ=unsupported
16890 always_export_symbols_GCJ=no
16891 enable_shared_with_static_runtimes_GCJ=yes
16892 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16893
16894 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16895 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16896 # If the export-symbols file already is a .def file (1st line
16897 # is EXPORTS), use it as is; otherwise, prepend...
16898 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16899 cp $export_symbols $output_objdir/$soname.def;
16900 else
16901 echo EXPORTS > $output_objdir/$soname.def;
16902 cat $export_symbols >> $output_objdir/$soname.def;
16903 fi~
16904 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16905 else
16906 ld_shlibs_GCJ=no
16907 fi
16908 ;;
16909
16910 interix3*)
16911 hardcode_direct_GCJ=no
16912 hardcode_shlibpath_var_GCJ=no
16913 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16914 export_dynamic_flag_spec_GCJ='${wl}-E'
16915 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16916 # Instead, shared libraries are loaded at an image base (0x10000000 by
16917 # default) and relocated if they conflict, which is a slow very memory
16918 # consuming and fragmenting process. To avoid this, we pick a random,
16919 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16920 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16921 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'
16922 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'
16923 ;;
16924
16925 linux*)
16926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16927 tmp_addflag=
16928 case $cc_basename,$host_cpu in
16929 pgcc*) # Portland Group C compiler
16930 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'
16931 tmp_addflag=' $pic_flag'
16932 ;;
16933 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16934 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'
16935 tmp_addflag=' $pic_flag -Mnomain' ;;
16936 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16937 tmp_addflag=' -i_dynamic' ;;
16938 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16939 tmp_addflag=' -i_dynamic -nofor_main' ;;
16940 ifc* | ifort*) # Intel Fortran compiler
16941 tmp_addflag=' -nofor_main' ;;
16942 esac
16943 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16944
16945 if test $supports_anon_versioning = yes; then
16946 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16948 $echo "local: *; };" >> $output_objdir/$libname.ver~
16949 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16950 fi
16951 else
16952 ld_shlibs_GCJ=no
16953 fi
16954 ;;
16955
16956 netbsd*)
16957 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16958 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16959 wlarc=
16960 else
16961 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16962 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16963 fi
16964 ;;
16965
16966 solaris*)
16967 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16968 ld_shlibs_GCJ=no
16969 cat <<EOF 1>&2
16970
16971*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16972*** create shared libraries on Solaris systems. Therefore, libtool
16973*** is disabling shared libraries support. We urge you to upgrade GNU
16974*** binutils to release 2.9.1 or newer. Another option is to modify
16975*** your PATH or compiler configuration so that the native linker is
16976*** used, and then restart.
16977
16978EOF
16979 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16980 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16981 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16982 else
16983 ld_shlibs_GCJ=no
16984 fi
16985 ;;
16986
16987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16988 case `$LD -v 2>&1` in
16989 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16990 ld_shlibs_GCJ=no
16991 cat <<_LT_EOF 1>&2
16992
16993*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16994*** reliably create shared libraries on SCO systems. Therefore, libtool
16995*** is disabling shared libraries support. We urge you to upgrade GNU
16996*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16997*** your PATH or compiler configuration so that the native linker is
16998*** used, and then restart.
16999
17000_LT_EOF
17001 ;;
17002 *)
17003 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17004 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17005 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17006 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17007 else
17008 ld_shlibs_GCJ=no
17009 fi
17010 ;;
17011 esac
17012 ;;
17013
17014 sunos4*)
17015 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17016 wlarc=
17017 hardcode_direct_GCJ=yes
17018 hardcode_shlibpath_var_GCJ=no
17019 ;;
17020
17021 *)
17022 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17023 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17024 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17025 else
17026 ld_shlibs_GCJ=no
17027 fi
17028 ;;
17029 esac
17030
17031 if test "$ld_shlibs_GCJ" = no; then
17032 runpath_var=
17033 hardcode_libdir_flag_spec_GCJ=
17034 export_dynamic_flag_spec_GCJ=
17035 whole_archive_flag_spec_GCJ=
17036 fi
17037 else
17038 # PORTME fill in a description of your system's linker (not GNU ld)
17039 case $host_os in
17040 aix3*)
17041 allow_undefined_flag_GCJ=unsupported
17042 always_export_symbols_GCJ=yes
17043 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'
17044 # Note: this linker hardcodes the directories in LIBPATH if there
17045 # are no directories specified by -L.
17046 hardcode_minus_L_GCJ=yes
17047 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17048 # Neither direct hardcoding nor static linking is supported with a
17049 # broken collect2.
17050 hardcode_direct_GCJ=unsupported
17051 fi
17052 ;;
17053
17054 aix4* | aix5*)
17055 if test "$host_cpu" = ia64; then
17056 # On IA64, the linker does run time linking by default, so we don't
17057 # have to do anything special.
17058 aix_use_runtimelinking=no
17059 exp_sym_flag='-Bexport'
17060 no_entry_flag=""
17061 else
17062 # If we're using GNU nm, then we don't want the "-C" option.
17063 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17064 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17065 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'
17066 else
17067 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'
17068 fi
17069 aix_use_runtimelinking=no
17070
17071 # Test if we are trying to use run time linking or normal
17072 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17073 # need to do runtime linking.
17074 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17075 for ld_flag in $LDFLAGS; do
17076 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17077 aix_use_runtimelinking=yes
17078 break
17079 fi
17080 done
17081 ;;
17082 esac
17083
17084 exp_sym_flag='-bexport'
17085 no_entry_flag='-bnoentry'
17086 fi
17087
17088 # When large executables or shared objects are built, AIX ld can
17089 # have problems creating the table of contents. If linking a library
17090 # or program results in "error TOC overflow" add -mminimal-toc to
17091 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17092 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17093
17094 archive_cmds_GCJ=''
17095 hardcode_direct_GCJ=yes
17096 hardcode_libdir_separator_GCJ=':'
17097 link_all_deplibs_GCJ=yes
17098
17099 if test "$GCC" = yes; then
17100 case $host_os in aix4.[012]|aix4.[012].*)
17101 # We only want to do this on AIX 4.2 and lower, the check
17102 # below for broken collect2 doesn't work under 4.3+
17103 collect2name=`${CC} -print-prog-name=collect2`
17104 if test -f "$collect2name" && \
17105 strings "$collect2name" | grep resolve_lib_name >/dev/null
17106 then
17107 # We have reworked collect2
17108 hardcode_direct_GCJ=yes
17109 else
17110 # We have old collect2
17111 hardcode_direct_GCJ=unsupported
17112 # It fails to find uninstalled libraries when the uninstalled
17113 # path is not listed in the libpath. Setting hardcode_minus_L
17114 # to unsupported forces relinking
17115 hardcode_minus_L_GCJ=yes
17116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17117 hardcode_libdir_separator_GCJ=
17118 fi
17119 ;;
17120 esac
17121 shared_flag='-shared'
17122 if test "$aix_use_runtimelinking" = yes; then
17123 shared_flag="$shared_flag "'${wl}-G'
17124 fi
17125 else
17126 # not using gcc
17127 if test "$host_cpu" = ia64; then
17128 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17129 # chokes on -Wl,-G. The following line is correct:
17130 shared_flag='-G'
17131 else
17132 if test "$aix_use_runtimelinking" = yes; then
17133 shared_flag='${wl}-G'
17134 else
17135 shared_flag='${wl}-bM:SRE'
17136 fi
17137 fi
17138 fi
17139
17140 # It seems that -bexpall does not export symbols beginning with
17141 # underscore (_), so it is better to generate a list of symbols to export.
17142 always_export_symbols_GCJ=yes
17143 if test "$aix_use_runtimelinking" = yes; then
17144 # Warning - without using the other runtime loading flags (-brtl),
17145 # -berok will link without error, but may produce a broken library.
17146 allow_undefined_flag_GCJ='-berok'
17147 # Determine the default libpath from the value encoded in an empty executable.
17148 cat >conftest.$ac_ext <<_ACEOF
17149/* confdefs.h. */
17150_ACEOF
17151cat confdefs.h >>conftest.$ac_ext
17152cat >>conftest.$ac_ext <<_ACEOF
17153/* end confdefs.h. */
17154
17155int
17156main ()
17157{
17158
17159 ;
17160 return 0;
17161}
17162_ACEOF
17163rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17164if { (ac_try="$ac_link"
17165case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168esac
17169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
d9898ee8 17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
d9898ee8 17181
17182aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17183}'`
17184# Check for a 64-bit object if we didn't find anything.
17185if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17186}'`; fi
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
64ff59ba 17191
d9898ee8 17192fi
64ff59ba 17193
17194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17195 conftest$ac_exeext conftest.$ac_ext
17196if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17197
17198 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17199 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"
17200 else
17201 if test "$host_cpu" = ia64; then
17202 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17203 allow_undefined_flag_GCJ="-z nodefs"
17204 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"
17205 else
17206 # Determine the default libpath from the value encoded in an empty executable.
17207 cat >conftest.$ac_ext <<_ACEOF
17208/* confdefs.h. */
17209_ACEOF
17210cat confdefs.h >>conftest.$ac_ext
17211cat >>conftest.$ac_ext <<_ACEOF
17212/* end confdefs.h. */
17213
17214int
17215main ()
17216{
17217
17218 ;
17219 return 0;
17220}
17221_ACEOF
17222rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 17223if { (ac_try="$ac_link"
17224case "(($ac_try" in
17225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226 *) ac_try_echo=$ac_try;;
17227esac
17228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229 (eval "$ac_link") 2>conftest.er1
d9898ee8 17230 ac_status=$?
17231 grep -v '^ *+' conftest.er1 >conftest.err
17232 rm -f conftest.er1
17233 cat conftest.err >&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 17235 (exit $ac_status); } && {
17236 test -z "$ac_c_werror_flag" ||
17237 test ! -s conftest.err
17238 } && test -s conftest$ac_exeext &&
17239 $as_test_x conftest$ac_exeext; then
d9898ee8 17240
17241aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17242}'`
17243# Check for a 64-bit object if we didn't find anything.
17244if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17245}'`; fi
17246else
17247 echo "$as_me: failed program was:" >&5
17248sed 's/^/| /' conftest.$ac_ext >&5
17249
64ff59ba 17250
d9898ee8 17251fi
64ff59ba 17252
17253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17254 conftest$ac_exeext conftest.$ac_ext
17255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17256
17257 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17258 # Warning - without using the other run time loading flags,
17259 # -berok will link without error, but may produce a broken library.
17260 no_undefined_flag_GCJ=' ${wl}-bernotok'
17261 allow_undefined_flag_GCJ=' ${wl}-berok'
17262 # Exported symbols can be pulled into shared objects from archives
17263 whole_archive_flag_spec_GCJ='$convenience'
17264 archive_cmds_need_lc_GCJ=yes
17265 # This is similar to how AIX traditionally builds its shared libraries.
17266 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'
17267 fi
17268 fi
17269 ;;
17270
17271 amigaos*)
17272 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)'
17273 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17274 hardcode_minus_L_GCJ=yes
17275 # see comment about different semantics on the GNU ld section
17276 ld_shlibs_GCJ=no
17277 ;;
17278
17279 bsdi[45]*)
17280 export_dynamic_flag_spec_GCJ=-rdynamic
17281 ;;
17282
17283 cygwin* | mingw* | pw32*)
17284 # When not using gcc, we currently assume that we are using
17285 # Microsoft Visual C++.
17286 # hardcode_libdir_flag_spec is actually meaningless, as there is
17287 # no search path for DLLs.
17288 hardcode_libdir_flag_spec_GCJ=' '
17289 allow_undefined_flag_GCJ=unsupported
17290 # Tell ltmain to make .lib files, not .a files.
17291 libext=lib
17292 # Tell ltmain to make .dll files, not .so files.
17293 shrext_cmds=".dll"
17294 # FIXME: Setting linknames here is a bad hack.
17295 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17296 # The linker will automatically build a .lib file if we build a DLL.
17297 old_archive_From_new_cmds_GCJ='true'
17298 # FIXME: Should let the user specify the lib program.
17299 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17300 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17301 enable_shared_with_static_runtimes_GCJ=yes
17302 ;;
17303
17304 darwin* | rhapsody*)
17305 case $host_os in
17306 rhapsody* | darwin1.[012])
17307 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17308 ;;
17309 *) # Darwin 1.3 on
17310 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17311 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17312 else
17313 case ${MACOSX_DEPLOYMENT_TARGET} in
17314 10.[012])
17315 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17316 ;;
17317 10.*)
17318 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17319 ;;
17320 esac
17321 fi
17322 ;;
17323 esac
17324 archive_cmds_need_lc_GCJ=no
17325 hardcode_direct_GCJ=no
17326 hardcode_automatic_GCJ=yes
17327 hardcode_shlibpath_var_GCJ=unsupported
17328 whole_archive_flag_spec_GCJ=''
17329 link_all_deplibs_GCJ=yes
17330 if test "$GCC" = yes ; then
17331 output_verbose_link_cmd='echo'
17332 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17333 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17334 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17335 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}'
17336 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}'
17337 else
17338 case $cc_basename in
17339 xlc*)
17340 output_verbose_link_cmd='echo'
17341 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17342 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17343 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17344 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17345 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}'
17346 ;;
17347 *)
17348 ld_shlibs_GCJ=no
17349 ;;
17350 esac
17351 fi
17352 ;;
17353
17354 dgux*)
17355 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17356 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17357 hardcode_shlibpath_var_GCJ=no
17358 ;;
17359
17360 freebsd1*)
17361 ld_shlibs_GCJ=no
17362 ;;
17363
17364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17365 # support. Future versions do this automatically, but an explicit c++rt0.o
17366 # does not break anything, and helps significantly (at the cost of a little
17367 # extra space).
17368 freebsd2.2*)
17369 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17370 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17371 hardcode_direct_GCJ=yes
17372 hardcode_shlibpath_var_GCJ=no
17373 ;;
17374
17375 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17376 freebsd2*)
17377 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17378 hardcode_direct_GCJ=yes
17379 hardcode_minus_L_GCJ=yes
17380 hardcode_shlibpath_var_GCJ=no
17381 ;;
17382
17383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17384 freebsd* | kfreebsd*-gnu | dragonfly*)
17385 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17386 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17387 hardcode_direct_GCJ=yes
17388 hardcode_shlibpath_var_GCJ=no
17389 ;;
17390
17391 hpux9*)
17392 if test "$GCC" = yes; then
17393 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'
17394 else
17395 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'
17396 fi
17397 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17398 hardcode_libdir_separator_GCJ=:
17399 hardcode_direct_GCJ=yes
17400
17401 # hardcode_minus_L: Not really in the search PATH,
17402 # but as the default location of the library.
17403 hardcode_minus_L_GCJ=yes
17404 export_dynamic_flag_spec_GCJ='${wl}-E'
17405 ;;
17406
17407 hpux10*)
17408 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17409 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17410 else
17411 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17412 fi
17413 if test "$with_gnu_ld" = no; then
17414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17415 hardcode_libdir_separator_GCJ=:
17416
17417 hardcode_direct_GCJ=yes
17418 export_dynamic_flag_spec_GCJ='${wl}-E'
17419
17420 # hardcode_minus_L: Not really in the search PATH,
17421 # but as the default location of the library.
17422 hardcode_minus_L_GCJ=yes
17423 fi
17424 ;;
17425
17426 hpux11*)
17427 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17428 case $host_cpu in
17429 hppa*64*)
17430 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431 ;;
17432 ia64*)
17433 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17434 ;;
17435 *)
17436 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17437 ;;
17438 esac
17439 else
17440 case $host_cpu in
17441 hppa*64*)
17442 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17443 ;;
17444 ia64*)
17445 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17446 ;;
17447 *)
17448 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17449 ;;
17450 esac
17451 fi
17452 if test "$with_gnu_ld" = no; then
17453 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17454 hardcode_libdir_separator_GCJ=:
17455
17456 case $host_cpu in
17457 hppa*64*|ia64*)
17458 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17459 hardcode_direct_GCJ=no
17460 hardcode_shlibpath_var_GCJ=no
17461 ;;
17462 *)
17463 hardcode_direct_GCJ=yes
17464 export_dynamic_flag_spec_GCJ='${wl}-E'
17465
17466 # hardcode_minus_L: Not really in the search PATH,
17467 # but as the default location of the library.
17468 hardcode_minus_L_GCJ=yes
17469 ;;
17470 esac
17471 fi
17472 ;;
17473
17474 irix5* | irix6* | nonstopux*)
17475 if test "$GCC" = yes; then
17476 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'
17477 else
17478 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'
17479 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17480 fi
17481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17482 hardcode_libdir_separator_GCJ=:
17483 link_all_deplibs_GCJ=yes
17484 ;;
17485
17486 netbsd*)
17487 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17488 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17489 else
17490 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17491 fi
17492 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17493 hardcode_direct_GCJ=yes
17494 hardcode_shlibpath_var_GCJ=no
17495 ;;
17496
17497 newsos6)
17498 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17499 hardcode_direct_GCJ=yes
17500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17501 hardcode_libdir_separator_GCJ=:
17502 hardcode_shlibpath_var_GCJ=no
17503 ;;
17504
17505 openbsd*)
17506 hardcode_direct_GCJ=yes
17507 hardcode_shlibpath_var_GCJ=no
17508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17509 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17510 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17511 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17512 export_dynamic_flag_spec_GCJ='${wl}-E'
17513 else
17514 case $host_os in
17515 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17516 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17517 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17518 ;;
17519 *)
17520 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17521 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17522 ;;
17523 esac
17524 fi
17525 ;;
17526
17527 os2*)
17528 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17529 hardcode_minus_L_GCJ=yes
17530 allow_undefined_flag_GCJ=unsupported
17531 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'
17532 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17533 ;;
17534
17535 osf3*)
17536 if test "$GCC" = yes; then
17537 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17538 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'
17539 else
17540 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17541 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'
17542 fi
17543 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17544 hardcode_libdir_separator_GCJ=:
17545 ;;
17546
17547 osf4* | osf5*) # as osf3* with the addition of -msym flag
17548 if test "$GCC" = yes; then
17549 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17550 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'
17551 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17552 else
17553 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17554 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'
17555 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~
17556 $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'
17557
17558 # Both c and cxx compiler support -rpath directly
17559 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17560 fi
17561 hardcode_libdir_separator_GCJ=:
17562 ;;
17563
17564 solaris*)
17565 no_undefined_flag_GCJ=' -z text'
17566 if test "$GCC" = yes; then
17567 wlarc='${wl}'
17568 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17569 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17570 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17571 else
17572 wlarc=''
17573 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17574 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17575 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17576 fi
17577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17578 hardcode_shlibpath_var_GCJ=no
17579 case $host_os in
17580 solaris2.[0-5] | solaris2.[0-5].*) ;;
17581 *)
17582 # The compiler driver will combine linker options so we
17583 # cannot just pass the convience library names through
17584 # without $wl, iff we do not link with $LD.
17585 # Luckily, gcc supports the same syntax we need for Sun Studio.
17586 # Supported since Solaris 2.6 (maybe 2.5.1?)
17587 case $wlarc in
17588 '')
17589 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17590 *)
17591 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17592 esac ;;
17593 esac
17594 link_all_deplibs_GCJ=yes
17595 ;;
17596
17597 sunos4*)
17598 if test "x$host_vendor" = xsequent; then
17599 # Use $CC to link under sequent, because it throws in some extra .o
17600 # files that make .init and .fini sections work.
17601 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17602 else
17603 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17604 fi
17605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17606 hardcode_direct_GCJ=yes
17607 hardcode_minus_L_GCJ=yes
17608 hardcode_shlibpath_var_GCJ=no
17609 ;;
17610
17611 sysv4)
17612 case $host_vendor in
17613 sni)
17614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17615 hardcode_direct_GCJ=yes # is this really true???
17616 ;;
17617 siemens)
17618 ## LD is ld it makes a PLAMLIB
17619 ## CC just makes a GrossModule.
17620 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17621 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17622 hardcode_direct_GCJ=no
17623 ;;
17624 motorola)
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17627 ;;
17628 esac
17629 runpath_var='LD_RUN_PATH'
17630 hardcode_shlibpath_var_GCJ=no
17631 ;;
17632
17633 sysv4.3*)
17634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17635 hardcode_shlibpath_var_GCJ=no
17636 export_dynamic_flag_spec_GCJ='-Bexport'
17637 ;;
17638
17639 sysv4*MP*)
17640 if test -d /usr/nec; then
17641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17642 hardcode_shlibpath_var_GCJ=no
17643 runpath_var=LD_RUN_PATH
17644 hardcode_runpath_var=yes
17645 ld_shlibs_GCJ=yes
17646 fi
17647 ;;
17648
17649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17650 no_undefined_flag_GCJ='${wl}-z,text'
17651 archive_cmds_need_lc_GCJ=no
17652 hardcode_shlibpath_var_GCJ=no
17653 runpath_var='LD_RUN_PATH'
17654
17655 if test "$GCC" = yes; then
17656 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17657 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658 else
17659 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17660 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 fi
17662 ;;
17663
17664 sysv5* | sco3.2v5* | sco5v6*)
17665 # Note: We can NOT use -z defs as we might desire, because we do not
17666 # link with -lc, and that would cause any symbols used from libc to
17667 # always be unresolved, which means just about no library would
17668 # ever link correctly. If we're not using GNU ld we use -z text
17669 # though, which does catch some bad symbols but isn't as heavy-handed
17670 # as -z defs.
17671 no_undefined_flag_GCJ='${wl}-z,text'
17672 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17673 archive_cmds_need_lc_GCJ=no
17674 hardcode_shlibpath_var_GCJ=no
17675 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17676 hardcode_libdir_separator_GCJ=':'
17677 link_all_deplibs_GCJ=yes
17678 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17679 runpath_var='LD_RUN_PATH'
17680
17681 if test "$GCC" = yes; then
17682 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17683 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17684 else
17685 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17686 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17687 fi
17688 ;;
17689
17690 uts4*)
17691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17692 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17693 hardcode_shlibpath_var_GCJ=no
17694 ;;
17695
17696 *)
17697 ld_shlibs_GCJ=no
17698 ;;
17699 esac
17700 fi
17701
64ff59ba 17702{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17703echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17704test "$ld_shlibs_GCJ" = no && can_build_shared=no
17705
17706#
17707# Do we need to explicitly link libc?
17708#
17709case "x$archive_cmds_need_lc_GCJ" in
17710x|xyes)
17711 # Assume -lc should be added
17712 archive_cmds_need_lc_GCJ=yes
17713
17714 if test "$enable_shared" = yes && test "$GCC" = yes; then
17715 case $archive_cmds_GCJ in
17716 *'~'*)
17717 # FIXME: we may have to deal with multi-command sequences.
17718 ;;
17719 '$CC '*)
17720 # Test whether the compiler implicitly links with -lc since on some
17721 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17722 # to ld, don't add -lc before -lgcc.
64ff59ba 17723 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17724echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17725 $rm conftest*
17726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17727
17728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17729 (eval $ac_compile) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); } 2>conftest.err; then
17733 soname=conftest
17734 lib=conftest
17735 libobjs=conftest.$ac_objext
17736 deplibs=
17737 wl=$lt_prog_compiler_wl_GCJ
17738 pic_flag=$lt_prog_compiler_pic_GCJ
17739 compiler_flags=-v
17740 linker_flags=-v
17741 verstring=
17742 output_objdir=.
17743 libname=conftest
17744 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17745 allow_undefined_flag_GCJ=
17746 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17747 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }
17751 then
17752 archive_cmds_need_lc_GCJ=no
17753 else
17754 archive_cmds_need_lc_GCJ=yes
17755 fi
17756 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17757 else
17758 cat conftest.err 1>&5
17759 fi
17760 $rm conftest*
64ff59ba 17761 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17762echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 17763 ;;
17764 esac
17765 fi
17766 ;;
17767esac
17768
64ff59ba 17769{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17770echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 17771library_names_spec=
17772libname_spec='lib$name'
17773soname_spec=
17774shrext_cmds=".so"
17775postinstall_cmds=
17776postuninstall_cmds=
17777finish_cmds=
17778finish_eval=
17779shlibpath_var=
17780shlibpath_overrides_runpath=unknown
17781version_type=none
17782dynamic_linker="$host_os ld.so"
17783sys_lib_dlsearch_path_spec="/lib /usr/lib"
17784if test "$GCC" = yes; then
17785 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17786 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17787 # if the path contains ";" then we assume it to be the separator
17788 # otherwise default to the standard path separator (i.e. ":") - it is
17789 # assumed that no part of a normal pathname contains ";" but that should
17790 # okay in the real world where ";" in dirpaths is itself problematic.
17791 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17792 else
17793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17794 fi
17795else
17796 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17797fi
17798need_lib_prefix=unknown
17799hardcode_into_libs=no
17800
17801# when you set need_version to no, make sure it does not cause -set_version
17802# flags to be left without arguments
17803need_version=unknown
17804
17805case $host_os in
17806aix3*)
17807 version_type=linux
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17809 shlibpath_var=LIBPATH
17810
17811 # AIX 3 has no versioning support, so we append a major version to the name.
17812 soname_spec='${libname}${release}${shared_ext}$major'
17813 ;;
17814
17815aix4* | aix5*)
17816 version_type=linux
17817 need_lib_prefix=no
17818 need_version=no
17819 hardcode_into_libs=yes
17820 if test "$host_cpu" = ia64; then
17821 # AIX 5 supports IA64
17822 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17823 shlibpath_var=LD_LIBRARY_PATH
17824 else
17825 # With GCC up to 2.95.x, collect2 would create an import file
17826 # for dependence libraries. The import file would start with
17827 # the line `#! .'. This would cause the generated library to
17828 # depend on `.', always an invalid library. This was fixed in
17829 # development snapshots of GCC prior to 3.0.
17830 case $host_os in
17831 aix4 | aix4.[01] | aix4.[01].*)
17832 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17833 echo ' yes '
17834 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17835 :
17836 else
17837 can_build_shared=no
17838 fi
17839 ;;
17840 esac
17841 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17842 # soname into executable. Probably we can add versioning support to
17843 # collect2, so additional links can be useful in future.
17844 if test "$aix_use_runtimelinking" = yes; then
17845 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17846 # instead of lib<name>.a to let people know that these are not
17847 # typical AIX shared libraries.
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17849 else
17850 # We preserve .a as extension for shared libraries through AIX4.2
17851 # and later when we are not doing run time linking.
17852 library_names_spec='${libname}${release}.a $libname.a'
17853 soname_spec='${libname}${release}${shared_ext}$major'
17854 fi
17855 shlibpath_var=LIBPATH
17856 fi
17857 ;;
17858
17859amigaos*)
17860 library_names_spec='$libname.ixlibrary $libname.a'
17861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17862 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'
17863 ;;
17864
17865beos*)
17866 library_names_spec='${libname}${shared_ext}'
17867 dynamic_linker="$host_os ld.so"
17868 shlibpath_var=LIBRARY_PATH
17869 ;;
17870
17871bsdi[45]*)
17872 version_type=linux
17873 need_version=no
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17875 soname_spec='${libname}${release}${shared_ext}$major'
17876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17880 # the default ld.so.conf also contains /usr/contrib/lib and
17881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17882 # libtool to hard-code these into programs
17883 ;;
17884
17885cygwin* | mingw* | pw32*)
17886 version_type=windows
17887 shrext_cmds=".dll"
17888 need_version=no
17889 need_lib_prefix=no
17890
17891 case $GCC,$host_os in
17892 yes,cygwin* | yes,mingw* | yes,pw32*)
17893 library_names_spec='$libname.dll.a'
17894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17895 postinstall_cmds='base_file=`basename \${file}`~
17896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17897 dldir=$destdir/`dirname \$dlpath`~
17898 test -d \$dldir || mkdir -p \$dldir~
17899 $install_prog $dir/$dlname \$dldir/$dlname~
17900 chmod a+x \$dldir/$dlname'
17901 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17902 dlpath=$dir/\$dldll~
17903 $rm \$dlpath'
17904 shlibpath_overrides_runpath=yes
17905
17906 case $host_os in
17907 cygwin*)
17908 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17909 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17910 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17911 ;;
17912 mingw*)
17913 # MinGW DLLs use traditional 'lib' prefix
17914 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17915 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17916 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17917 # It is most probably a Windows format PATH printed by
17918 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17919 # path with ; separators, and with drive letters. We can handle the
17920 # drive letters (cygwin fileutils understands them), so leave them,
17921 # especially as we might pass files found there to a mingw objdump,
17922 # which wouldn't understand a cygwinified path. Ahh.
17923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17924 else
17925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17926 fi
17927 ;;
17928 pw32*)
17929 # pw32 DLLs use 'pw' prefix rather than 'lib'
17930 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17931 ;;
17932 esac
17933 ;;
17934
17935 *)
17936 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17937 ;;
17938 esac
17939 dynamic_linker='Win32 ld.exe'
17940 # FIXME: first we should search . and the directory the executable is in
17941 shlibpath_var=PATH
17942 ;;
17943
17944darwin* | rhapsody*)
17945 dynamic_linker="$host_os dyld"
17946 version_type=darwin
17947 need_lib_prefix=no
17948 need_version=no
17949 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17950 soname_spec='${libname}${release}${major}$shared_ext'
17951 shlibpath_overrides_runpath=yes
17952 shlibpath_var=DYLD_LIBRARY_PATH
17953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17954 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17955 if test "$GCC" = yes; then
17956 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17957 else
17958 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17959 fi
17960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17961 ;;
17962
17963dgux*)
17964 version_type=linux
17965 need_lib_prefix=no
17966 need_version=no
17967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17968 soname_spec='${libname}${release}${shared_ext}$major'
17969 shlibpath_var=LD_LIBRARY_PATH
17970 ;;
17971
17972freebsd1*)
17973 dynamic_linker=no
17974 ;;
17975
17976kfreebsd*-gnu)
17977 version_type=linux
17978 need_lib_prefix=no
17979 need_version=no
17980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17981 soname_spec='${libname}${release}${shared_ext}$major'
17982 shlibpath_var=LD_LIBRARY_PATH
17983 shlibpath_overrides_runpath=no
17984 hardcode_into_libs=yes
17985 dynamic_linker='GNU ld.so'
17986 ;;
17987
17988freebsd* | dragonfly*)
17989 # DragonFly does not have aout. When/if they implement a new
17990 # versioning mechanism, adjust this.
17991 if test -x /usr/bin/objformat; then
17992 objformat=`/usr/bin/objformat`
17993 else
17994 case $host_os in
17995 freebsd[123]*) objformat=aout ;;
17996 *) objformat=elf ;;
17997 esac
17998 fi
17999 version_type=freebsd-$objformat
18000 case $version_type in
18001 freebsd-elf*)
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18003 need_version=no
18004 need_lib_prefix=no
18005 ;;
18006 freebsd-*)
18007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18008 need_version=yes
18009 ;;
18010 esac
18011 shlibpath_var=LD_LIBRARY_PATH
18012 case $host_os in
18013 freebsd2*)
18014 shlibpath_overrides_runpath=yes
18015 ;;
18016 freebsd3.[01]* | freebsdelf3.[01]*)
18017 shlibpath_overrides_runpath=yes
18018 hardcode_into_libs=yes
18019 ;;
18020 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18021 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18022 shlibpath_overrides_runpath=no
18023 hardcode_into_libs=yes
18024 ;;
18025 freebsd*) # from 4.6 on
18026 shlibpath_overrides_runpath=yes
18027 hardcode_into_libs=yes
18028 ;;
18029 esac
18030 ;;
18031
18032gnu*)
18033 version_type=linux
18034 need_lib_prefix=no
18035 need_version=no
18036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 shlibpath_var=LD_LIBRARY_PATH
18039 hardcode_into_libs=yes
18040 ;;
18041
18042hpux9* | hpux10* | hpux11*)
18043 # Give a soname corresponding to the major version so that dld.sl refuses to
18044 # link against other versions.
18045 version_type=sunos
18046 need_lib_prefix=no
18047 need_version=no
18048 case $host_cpu in
18049 ia64*)
18050 shrext_cmds='.so'
18051 hardcode_into_libs=yes
18052 dynamic_linker="$host_os dld.so"
18053 shlibpath_var=LD_LIBRARY_PATH
18054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18056 soname_spec='${libname}${release}${shared_ext}$major'
18057 if test "X$HPUX_IA64_MODE" = X32; then
18058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18059 else
18060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18061 fi
18062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18063 ;;
18064 hppa*64*)
18065 shrext_cmds='.sl'
18066 hardcode_into_libs=yes
18067 dynamic_linker="$host_os dld.sl"
18068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18071 soname_spec='${libname}${release}${shared_ext}$major'
18072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18074 ;;
18075 *)
18076 shrext_cmds='.sl'
18077 dynamic_linker="$host_os dld.sl"
18078 shlibpath_var=SHLIB_PATH
18079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 ;;
18083 esac
18084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18085 postinstall_cmds='chmod 555 $lib'
18086 ;;
18087
18088interix3*)
18089 version_type=linux
18090 need_lib_prefix=no
18091 need_version=no
18092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18093 soname_spec='${libname}${release}${shared_ext}$major'
18094 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18095 shlibpath_var=LD_LIBRARY_PATH
18096 shlibpath_overrides_runpath=no
18097 hardcode_into_libs=yes
18098 ;;
18099
18100irix5* | irix6* | nonstopux*)
18101 case $host_os in
18102 nonstopux*) version_type=nonstopux ;;
18103 *)
18104 if test "$lt_cv_prog_gnu_ld" = yes; then
18105 version_type=linux
18106 else
18107 version_type=irix
18108 fi ;;
18109 esac
18110 need_lib_prefix=no
18111 need_version=no
18112 soname_spec='${libname}${release}${shared_ext}$major'
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18114 case $host_os in
18115 irix5* | nonstopux*)
18116 libsuff= shlibsuff=
18117 ;;
18118 *)
18119 case $LD in # libtool.m4 will add one of these switches to LD
18120 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18121 libsuff= shlibsuff= libmagic=32-bit;;
18122 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18123 libsuff=32 shlibsuff=N32 libmagic=N32;;
18124 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18125 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18126 *) libsuff= shlibsuff= libmagic=never-match;;
18127 esac
18128 ;;
18129 esac
18130 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18131 shlibpath_overrides_runpath=no
18132 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18133 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18134 hardcode_into_libs=yes
18135 ;;
18136
18137# No shared lib support for Linux oldld, aout, or coff.
18138linux*oldld* | linux*aout* | linux*coff*)
18139 dynamic_linker=no
18140 ;;
18141
18142# This must be Linux ELF.
18143linux*)
18144 version_type=linux
18145 need_lib_prefix=no
18146 need_version=no
18147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18148 soname_spec='${libname}${release}${shared_ext}$major'
18149 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18150 shlibpath_var=LD_LIBRARY_PATH
18151 shlibpath_overrides_runpath=no
18152 # This implies no fast_install, which is unacceptable.
18153 # Some rework will be needed to allow for fast_install
18154 # before this can be enabled.
18155 hardcode_into_libs=yes
18156
18157 # find out which ABI we are using
18158 libsuff=
18159 case "$host_cpu" in
18160 x86_64*|s390x*|powerpc64*)
64ff59ba 18161 echo '#line 18161 "configure"' > conftest.$ac_ext
d9898ee8 18162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18163 (eval $ac_compile) 2>&5
18164 ac_status=$?
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; then
18167 case `/usr/bin/file conftest.$ac_objext` in
18168 *64-bit*)
18169 libsuff=64
18170 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18171 ;;
18172 esac
18173 fi
18174 rm -rf conftest*
18175 ;;
18176 esac
18177
18178 # Append ld.so.conf contents to the search path
18179 if test -f /etc/ld.so.conf; then
64ff59ba 18180 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
d9898ee8 18181 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18182 fi
18183
18184 # We used to test for /lib/ld.so.1 and disable shared libraries on
18185 # powerpc, because MkLinux only supported shared libraries with the
18186 # GNU dynamic linker. Since this was broken with cross compilers,
18187 # most powerpc-linux boxes support dynamic linking these days and
18188 # people can always --disable-shared, the test was removed, and we
18189 # assume the GNU/Linux dynamic linker is in use.
18190 dynamic_linker='GNU/Linux ld.so'
18191 ;;
18192
18193knetbsd*-gnu)
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 shlibpath_var=LD_LIBRARY_PATH
18200 shlibpath_overrides_runpath=no
18201 hardcode_into_libs=yes
18202 dynamic_linker='GNU ld.so'
18203 ;;
18204
18205netbsd*)
18206 version_type=sunos
18207 need_lib_prefix=no
18208 need_version=no
18209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18212 dynamic_linker='NetBSD (a.out) ld.so'
18213 else
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 dynamic_linker='NetBSD ld.elf_so'
18217 fi
18218 shlibpath_var=LD_LIBRARY_PATH
18219 shlibpath_overrides_runpath=yes
18220 hardcode_into_libs=yes
18221 ;;
18222
18223newsos6)
18224 version_type=linux
18225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18226 shlibpath_var=LD_LIBRARY_PATH
18227 shlibpath_overrides_runpath=yes
18228 ;;
18229
18230nto-qnx*)
18231 version_type=linux
18232 need_lib_prefix=no
18233 need_version=no
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 shlibpath_var=LD_LIBRARY_PATH
18237 shlibpath_overrides_runpath=yes
18238 ;;
18239
18240openbsd*)
18241 version_type=sunos
18242 sys_lib_dlsearch_path_spec="/usr/lib"
18243 need_lib_prefix=no
18244 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18245 case $host_os in
18246 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18247 *) need_version=no ;;
18248 esac
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18253 case $host_os in
18254 openbsd2.[89] | openbsd2.[89].*)
18255 shlibpath_overrides_runpath=no
18256 ;;
18257 *)
18258 shlibpath_overrides_runpath=yes
18259 ;;
18260 esac
18261 else
18262 shlibpath_overrides_runpath=yes
18263 fi
18264 ;;
18265
18266os2*)
18267 libname_spec='$name'
18268 shrext_cmds=".dll"
18269 need_lib_prefix=no
18270 library_names_spec='$libname${shared_ext} $libname.a'
18271 dynamic_linker='OS/2 ld.exe'
18272 shlibpath_var=LIBPATH
18273 ;;
18274
18275osf3* | osf4* | osf5*)
18276 version_type=osf
18277 need_lib_prefix=no
18278 need_version=no
18279 soname_spec='${libname}${release}${shared_ext}$major'
18280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18281 shlibpath_var=LD_LIBRARY_PATH
18282 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18283 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18284 ;;
18285
18286solaris*)
18287 version_type=linux
18288 need_lib_prefix=no
18289 need_version=no
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 shlibpath_var=LD_LIBRARY_PATH
18293 shlibpath_overrides_runpath=yes
18294 hardcode_into_libs=yes
18295 # ldd complains unless libraries are executable
18296 postinstall_cmds='chmod +x $lib'
18297 ;;
18298
18299sunos4*)
18300 version_type=sunos
18301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18303 shlibpath_var=LD_LIBRARY_PATH
18304 shlibpath_overrides_runpath=yes
18305 if test "$with_gnu_ld" = yes; then
18306 need_lib_prefix=no
18307 fi
18308 need_version=yes
18309 ;;
18310
18311sysv4 | sysv4.3*)
18312 version_type=linux
18313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 shlibpath_var=LD_LIBRARY_PATH
18316 case $host_vendor in
18317 sni)
18318 shlibpath_overrides_runpath=no
18319 need_lib_prefix=no
18320 export_dynamic_flag_spec='${wl}-Blargedynsym'
18321 runpath_var=LD_RUN_PATH
18322 ;;
18323 siemens)
18324 need_lib_prefix=no
18325 ;;
18326 motorola)
18327 need_lib_prefix=no
18328 need_version=no
18329 shlibpath_overrides_runpath=no
18330 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18331 ;;
18332 esac
18333 ;;
18334
18335sysv4*MP*)
18336 if test -d /usr/nec ;then
18337 version_type=linux
18338 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18339 soname_spec='$libname${shared_ext}.$major'
18340 shlibpath_var=LD_LIBRARY_PATH
18341 fi
18342 ;;
18343
18344sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18345 version_type=freebsd-elf
18346 need_lib_prefix=no
18347 need_version=no
18348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18349 soname_spec='${libname}${release}${shared_ext}$major'
18350 shlibpath_var=LD_LIBRARY_PATH
18351 hardcode_into_libs=yes
18352 if test "$with_gnu_ld" = yes; then
18353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18354 shlibpath_overrides_runpath=no
18355 else
18356 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18357 shlibpath_overrides_runpath=yes
18358 case $host_os in
18359 sco3.2v5*)
18360 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18361 ;;
18362 esac
18363 fi
18364 sys_lib_dlsearch_path_spec='/usr/lib'
18365 ;;
18366
18367uts4*)
18368 version_type=linux
18369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18370 soname_spec='${libname}${release}${shared_ext}$major'
18371 shlibpath_var=LD_LIBRARY_PATH
18372 ;;
18373
18374*)
18375 dynamic_linker=no
18376 ;;
18377esac
64ff59ba 18378{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18379echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18380test "$dynamic_linker" = no && can_build_shared=no
18381
18382variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18383if test "$GCC" = yes; then
18384 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18385fi
18386
64ff59ba 18387{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18388echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18389hardcode_action_GCJ=
18390if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18391 test -n "$runpath_var_GCJ" || \
18392 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18393
18394 # We can hardcode non-existant directories.
18395 if test "$hardcode_direct_GCJ" != no &&
18396 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18397 # have to relink, otherwise we might link with an installed library
18398 # when we should be linking with a yet-to-be-installed one
18399 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18400 test "$hardcode_minus_L_GCJ" != no; then
18401 # Linking always hardcodes the temporary library directory.
18402 hardcode_action_GCJ=relink
18403 else
18404 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18405 hardcode_action_GCJ=immediate
18406 fi
18407else
18408 # We cannot hardcode anything, or else we can only hardcode existing
18409 # directories.
18410 hardcode_action_GCJ=unsupported
18411fi
64ff59ba 18412{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18413echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18414
18415if test "$hardcode_action_GCJ" = relink; then
18416 # Fast installation is not supported
18417 enable_fast_install=no
18418elif test "$shlibpath_overrides_runpath" = yes ||
18419 test "$enable_shared" = no; then
18420 # Fast installation is not necessary
18421 enable_fast_install=needless
18422fi
18423
18424
18425# The else clause should only fire when bootstrapping the
18426# libtool distribution, otherwise you forgot to ship ltmain.sh
18427# with your package, and you will get complaints that there are
18428# no rules to generate ltmain.sh.
18429if test -f "$ltmain"; then
18430 # See if we are running on zsh, and set the options which allow our commands through
18431 # without removal of \ escapes.
18432 if test -n "${ZSH_VERSION+set}" ; then
18433 setopt NO_GLOB_SUBST
18434 fi
18435 # Now quote all the things that may contain metacharacters while being
18436 # careful not to overquote the AC_SUBSTed values. We take copies of the
18437 # variables and quote the copies for generation of the libtool script.
18438 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18439 SED SHELL STRIP \
18440 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18441 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18442 deplibs_check_method reload_flag reload_cmds need_locks \
18443 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18444 lt_cv_sys_global_symbol_to_c_name_address \
18445 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18446 old_postinstall_cmds old_postuninstall_cmds \
18447 compiler_GCJ \
18448 CC_GCJ \
18449 LD_GCJ \
18450 lt_prog_compiler_wl_GCJ \
18451 lt_prog_compiler_pic_GCJ \
18452 lt_prog_compiler_static_GCJ \
18453 lt_prog_compiler_no_builtin_flag_GCJ \
18454 export_dynamic_flag_spec_GCJ \
18455 thread_safe_flag_spec_GCJ \
18456 whole_archive_flag_spec_GCJ \
18457 enable_shared_with_static_runtimes_GCJ \
18458 old_archive_cmds_GCJ \
18459 old_archive_from_new_cmds_GCJ \
18460 predep_objects_GCJ \
18461 postdep_objects_GCJ \
18462 predeps_GCJ \
18463 postdeps_GCJ \
18464 compiler_lib_search_path_GCJ \
18465 archive_cmds_GCJ \
18466 archive_expsym_cmds_GCJ \
18467 postinstall_cmds_GCJ \
18468 postuninstall_cmds_GCJ \
18469 old_archive_from_expsyms_cmds_GCJ \
18470 allow_undefined_flag_GCJ \
18471 no_undefined_flag_GCJ \
18472 export_symbols_cmds_GCJ \
18473 hardcode_libdir_flag_spec_GCJ \
18474 hardcode_libdir_flag_spec_ld_GCJ \
18475 hardcode_libdir_separator_GCJ \
18476 hardcode_automatic_GCJ \
18477 module_cmds_GCJ \
18478 module_expsym_cmds_GCJ \
18479 lt_cv_prog_compiler_c_o_GCJ \
18480 exclude_expsyms_GCJ \
18481 include_expsyms_GCJ; do
18482
18483 case $var in
18484 old_archive_cmds_GCJ | \
18485 old_archive_from_new_cmds_GCJ | \
18486 archive_cmds_GCJ | \
18487 archive_expsym_cmds_GCJ | \
18488 module_cmds_GCJ | \
18489 module_expsym_cmds_GCJ | \
18490 old_archive_from_expsyms_cmds_GCJ | \
18491 export_symbols_cmds_GCJ | \
18492 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18493 postinstall_cmds | postuninstall_cmds | \
18494 old_postinstall_cmds | old_postuninstall_cmds | \
18495 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18496 # Double-quote double-evaled strings.
18497 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18498 ;;
18499 *)
18500 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18501 ;;
18502 esac
18503 done
18504
18505 case $lt_echo in
18506 *'\$0 --fallback-echo"')
18507 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18508 ;;
18509 esac
18510
18511cfgfile="$ofile"
18512
18513 cat <<__EOF__ >> "$cfgfile"
18514# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18515
18516# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18517
18518# Shell to use when invoking shell scripts.
18519SHELL=$lt_SHELL
18520
18521# Whether or not to build shared libraries.
18522build_libtool_libs=$enable_shared
18523
18524# Whether or not to build static libraries.
18525build_old_libs=$enable_static
18526
18527# Whether or not to add -lc for building shared libraries.
18528build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18529
18530# Whether or not to disallow shared libs when runtime libs are static
18531allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18532
18533# Whether or not to optimize for fast installation.
18534fast_install=$enable_fast_install
18535
18536# The host system.
18537host_alias=$host_alias
18538host=$host
18539host_os=$host_os
18540
18541# The build system.
18542build_alias=$build_alias
18543build=$build
18544build_os=$build_os
18545
18546# An echo program that does not interpret backslashes.
18547echo=$lt_echo
18548
18549# The archiver.
18550AR=$lt_AR
18551AR_FLAGS=$lt_AR_FLAGS
18552
18553# A C compiler.
18554LTCC=$lt_LTCC
18555
18556# LTCC compiler flags.
18557LTCFLAGS=$lt_LTCFLAGS
18558
18559# A language-specific compiler.
18560CC=$lt_compiler_GCJ
18561
18562# Is the compiler the GNU C compiler?
18563with_gcc=$GCC_GCJ
18564
d9898ee8 18565# An ERE matcher.
18566EGREP=$lt_EGREP
18567
18568# The linker used to build libraries.
18569LD=$lt_LD_GCJ
18570
18571# Whether we need hard or soft links.
18572LN_S=$lt_LN_S
18573
18574# A BSD-compatible nm program.
18575NM=$lt_NM
18576
18577# A symbol stripping program
18578STRIP=$lt_STRIP
18579
18580# Used to examine libraries when file_magic_cmd begins "file"
18581MAGIC_CMD=$MAGIC_CMD
18582
18583# Used on cygwin: DLL creation program.
18584DLLTOOL="$DLLTOOL"
18585
18586# Used on cygwin: object dumper.
18587OBJDUMP="$OBJDUMP"
18588
18589# Used on cygwin: assembler.
18590AS="$AS"
18591
18592# The name of the directory that contains temporary libtool files.
18593objdir=$objdir
18594
18595# How to create reloadable object files.
18596reload_flag=$lt_reload_flag
18597reload_cmds=$lt_reload_cmds
18598
18599# How to pass a linker flag through the compiler.
18600wl=$lt_lt_prog_compiler_wl_GCJ
18601
18602# Object file suffix (normally "o").
18603objext="$ac_objext"
18604
18605# Old archive suffix (normally "a").
18606libext="$libext"
18607
18608# Shared library suffix (normally ".so").
18609shrext_cmds='$shrext_cmds'
18610
18611# Executable file suffix (normally "").
18612exeext="$exeext"
18613
18614# Additional compiler flags for building library objects.
18615pic_flag=$lt_lt_prog_compiler_pic_GCJ
18616pic_mode=$pic_mode
18617
18618# What is the maximum length of a command?
18619max_cmd_len=$lt_cv_sys_max_cmd_len
18620
18621# Does compiler simultaneously support -c and -o options?
18622compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18623
18624# Must we lock files when doing compilation?
18625need_locks=$lt_need_locks
18626
18627# Do we need the lib prefix for modules?
18628need_lib_prefix=$need_lib_prefix
18629
18630# Do we need a version for libraries?
18631need_version=$need_version
18632
18633# Whether dlopen is supported.
18634dlopen_support=$enable_dlopen
18635
18636# Whether dlopen of programs is supported.
18637dlopen_self=$enable_dlopen_self
18638
18639# Whether dlopen of statically linked programs is supported.
18640dlopen_self_static=$enable_dlopen_self_static
18641
18642# Compiler flag to prevent dynamic linking.
18643link_static_flag=$lt_lt_prog_compiler_static_GCJ
18644
18645# Compiler flag to turn off builtin functions.
18646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18647
18648# Compiler flag to allow reflexive dlopens.
18649export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18650
18651# Compiler flag to generate shared objects directly from archives.
18652whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18653
18654# Compiler flag to generate thread-safe objects.
18655thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18656
18657# Library versioning type.
18658version_type=$version_type
18659
18660# Format of library name prefix.
18661libname_spec=$lt_libname_spec
18662
18663# List of archive names. First name is the real one, the rest are links.
18664# The last name is the one that the linker finds with -lNAME.
18665library_names_spec=$lt_library_names_spec
18666
18667# The coded name of the library, if different from the real name.
18668soname_spec=$lt_soname_spec
18669
18670# Commands used to build and install an old-style archive.
18671RANLIB=$lt_RANLIB
18672old_archive_cmds=$lt_old_archive_cmds_GCJ
18673old_postinstall_cmds=$lt_old_postinstall_cmds
18674old_postuninstall_cmds=$lt_old_postuninstall_cmds
18675
18676# Create an old-style archive from a shared archive.
18677old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18678
18679# Create a temporary old-style archive to link instead of a shared archive.
18680old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18681
18682# Commands used to build and install a shared archive.
18683archive_cmds=$lt_archive_cmds_GCJ
18684archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18685postinstall_cmds=$lt_postinstall_cmds
18686postuninstall_cmds=$lt_postuninstall_cmds
18687
18688# Commands used to build a loadable module (assumed same as above if empty)
18689module_cmds=$lt_module_cmds_GCJ
18690module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18691
18692# Commands to strip libraries.
18693old_striplib=$lt_old_striplib
18694striplib=$lt_striplib
18695
18696# Dependencies to place before the objects being linked to create a
18697# shared library.
64ff59ba 18698predep_objects=$lt_predep_objects_GCJ
d9898ee8 18699
18700# Dependencies to place after the objects being linked to create a
18701# shared library.
64ff59ba 18702postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18703
18704# Dependencies to place before the objects being linked to create a
18705# shared library.
18706predeps=$lt_predeps_GCJ
18707
18708# Dependencies to place after the objects being linked to create a
18709# shared library.
18710postdeps=$lt_postdeps_GCJ
18711
18712# The library search path used internally by the compiler when linking
18713# a shared library.
64ff59ba 18714compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18715
18716# Method to check whether dependent libraries are shared objects.
18717deplibs_check_method=$lt_deplibs_check_method
18718
18719# Command to use when deplibs_check_method == file_magic.
18720file_magic_cmd=$lt_file_magic_cmd
18721
18722# Flag that allows shared libraries with undefined symbols to be built.
18723allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18724
18725# Flag that forces no undefined symbols.
18726no_undefined_flag=$lt_no_undefined_flag_GCJ
18727
18728# Commands used to finish a libtool library installation in a directory.
18729finish_cmds=$lt_finish_cmds
18730
18731# Same as above, but a single script fragment to be evaled but not shown.
18732finish_eval=$lt_finish_eval
18733
18734# Take the output of nm and produce a listing of raw symbols and C names.
18735global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18736
18737# Transform the output of nm in a proper C declaration
18738global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18739
18740# Transform the output of nm in a C name address pair
18741global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18742
18743# This is the shared library runtime path variable.
18744runpath_var=$runpath_var
18745
18746# This is the shared library path variable.
18747shlibpath_var=$shlibpath_var
18748
18749# Is shlibpath searched before the hard-coded library search path?
18750shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18751
18752# How to hardcode a shared library path into an executable.
18753hardcode_action=$hardcode_action_GCJ
18754
18755# Whether we should hardcode library paths into libraries.
18756hardcode_into_libs=$hardcode_into_libs
18757
18758# Flag to hardcode \$libdir into a binary during linking.
18759# This must work even if \$libdir does not exist.
18760hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18761
18762# If ld is used when linking, flag to hardcode \$libdir into
18763# a binary during linking. This must work even if \$libdir does
18764# not exist.
18765hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18766
18767# Whether we need a single -rpath flag with a separated argument.
18768hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18769
18770# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18771# resulting binary.
18772hardcode_direct=$hardcode_direct_GCJ
18773
18774# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18775# resulting binary.
18776hardcode_minus_L=$hardcode_minus_L_GCJ
18777
18778# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18779# the resulting binary.
18780hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18781
18782# Set to yes if building a shared library automatically hardcodes DIR into the library
18783# and all subsequent libraries and executables linked against it.
18784hardcode_automatic=$hardcode_automatic_GCJ
18785
18786# Variables whose values should be saved in libtool wrapper scripts and
18787# restored at relink time.
18788variables_saved_for_relink="$variables_saved_for_relink"
18789
18790# Whether libtool must link a program against all its dependency libraries.
18791link_all_deplibs=$link_all_deplibs_GCJ
18792
18793# Compile-time system search path for libraries
64ff59ba 18794sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 18795
18796# Run-time system search path for libraries
18797sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18798
18799# Fix the shell variable \$srcfile for the compiler.
18800fix_srcfile_path="$fix_srcfile_path_GCJ"
18801
18802# Set to yes if exported symbols are required.
18803always_export_symbols=$always_export_symbols_GCJ
18804
18805# The commands to list exported symbols.
18806export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18807
18808# The commands to extract the exported symbol list from a shared archive.
18809extract_expsyms_cmds=$lt_extract_expsyms_cmds
18810
18811# Symbols that should not be listed in the preloaded symbols.
18812exclude_expsyms=$lt_exclude_expsyms_GCJ
18813
18814# Symbols that must always be exported.
18815include_expsyms=$lt_include_expsyms_GCJ
18816
18817# ### END LIBTOOL TAG CONFIG: $tagname
18818
18819__EOF__
18820
18821
18822else
18823 # If there is no Makefile yet, we rely on a make rule to execute
18824 # `config.status --recheck' to rerun these tests and create the
18825 # libtool script then.
18826 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18827 if test -f "$ltmain_in"; then
18828 test -f Makefile && make "$ltmain"
18829 fi
18830fi
18831
18832
18833ac_ext=c
18834ac_cpp='$CPP $CPPFLAGS'
18835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18837ac_compiler_gnu=$ac_cv_c_compiler_gnu
18838
18839CC="$lt_save_CC"
18840
18841 else
18842 tagname=""
18843 fi
18844 ;;
18845
18846 RC)
18847
18848
d9898ee8 18849# Source file extension for RC test sources.
18850ac_ext=rc
18851
18852# Object file extension for compiled RC test sources.
18853objext=o
18854objext_RC=$objext
18855
18856# Code to be used in simple compile tests
18857lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18858
18859# Code to be used in simple link tests
18860lt_simple_link_test_code="$lt_simple_compile_test_code"
18861
18862# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18863
18864# If no C compiler was specified, use CC.
18865LTCC=${LTCC-"$CC"}
18866
18867# If no C compiler flags were specified, use CFLAGS.
18868LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18869
18870# Allow CC to be a program name with arguments.
18871compiler=$CC
18872
18873
18874# save warnings/boilerplate of simple test code
18875ac_outfile=conftest.$ac_objext
18876printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18877eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18878_lt_compiler_boilerplate=`cat conftest.err`
18879$rm conftest*
18880
18881ac_outfile=conftest.$ac_objext
18882printf "$lt_simple_link_test_code" >conftest.$ac_ext
18883eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18884_lt_linker_boilerplate=`cat conftest.err`
18885$rm conftest*
18886
18887
18888# Allow CC to be a program name with arguments.
18889lt_save_CC="$CC"
18890CC=${RC-"windres"}
18891compiler=$CC
18892compiler_RC=$CC
18893for cc_temp in $compiler""; do
18894 case $cc_temp in
18895 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18896 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18897 \-*) ;;
18898 *) break;;
18899 esac
18900done
18901cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18902
18903lt_cv_prog_compiler_c_o_RC=yes
18904
18905# The else clause should only fire when bootstrapping the
18906# libtool distribution, otherwise you forgot to ship ltmain.sh
18907# with your package, and you will get complaints that there are
18908# no rules to generate ltmain.sh.
18909if test -f "$ltmain"; then
18910 # See if we are running on zsh, and set the options which allow our commands through
18911 # without removal of \ escapes.
18912 if test -n "${ZSH_VERSION+set}" ; then
18913 setopt NO_GLOB_SUBST
18914 fi
18915 # Now quote all the things that may contain metacharacters while being
18916 # careful not to overquote the AC_SUBSTed values. We take copies of the
18917 # variables and quote the copies for generation of the libtool script.
18918 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18919 SED SHELL STRIP \
18920 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18921 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18922 deplibs_check_method reload_flag reload_cmds need_locks \
18923 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18924 lt_cv_sys_global_symbol_to_c_name_address \
18925 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18926 old_postinstall_cmds old_postuninstall_cmds \
18927 compiler_RC \
18928 CC_RC \
18929 LD_RC \
18930 lt_prog_compiler_wl_RC \
18931 lt_prog_compiler_pic_RC \
18932 lt_prog_compiler_static_RC \
18933 lt_prog_compiler_no_builtin_flag_RC \
18934 export_dynamic_flag_spec_RC \
18935 thread_safe_flag_spec_RC \
18936 whole_archive_flag_spec_RC \
18937 enable_shared_with_static_runtimes_RC \
18938 old_archive_cmds_RC \
18939 old_archive_from_new_cmds_RC \
18940 predep_objects_RC \
18941 postdep_objects_RC \
18942 predeps_RC \
18943 postdeps_RC \
18944 compiler_lib_search_path_RC \
18945 archive_cmds_RC \
18946 archive_expsym_cmds_RC \
18947 postinstall_cmds_RC \
18948 postuninstall_cmds_RC \
18949 old_archive_from_expsyms_cmds_RC \
18950 allow_undefined_flag_RC \
18951 no_undefined_flag_RC \
18952 export_symbols_cmds_RC \
18953 hardcode_libdir_flag_spec_RC \
18954 hardcode_libdir_flag_spec_ld_RC \
18955 hardcode_libdir_separator_RC \
18956 hardcode_automatic_RC \
18957 module_cmds_RC \
18958 module_expsym_cmds_RC \
18959 lt_cv_prog_compiler_c_o_RC \
18960 exclude_expsyms_RC \
18961 include_expsyms_RC; do
18962
18963 case $var in
18964 old_archive_cmds_RC | \
18965 old_archive_from_new_cmds_RC | \
18966 archive_cmds_RC | \
18967 archive_expsym_cmds_RC | \
18968 module_cmds_RC | \
18969 module_expsym_cmds_RC | \
18970 old_archive_from_expsyms_cmds_RC | \
18971 export_symbols_cmds_RC | \
18972 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18973 postinstall_cmds | postuninstall_cmds | \
18974 old_postinstall_cmds | old_postuninstall_cmds | \
18975 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18976 # Double-quote double-evaled strings.
18977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18978 ;;
18979 *)
18980 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18981 ;;
18982 esac
18983 done
18984
18985 case $lt_echo in
18986 *'\$0 --fallback-echo"')
18987 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18988 ;;
18989 esac
18990
18991cfgfile="$ofile"
18992
18993 cat <<__EOF__ >> "$cfgfile"
18994# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18995
18996# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18997
18998# Shell to use when invoking shell scripts.
18999SHELL=$lt_SHELL
19000
19001# Whether or not to build shared libraries.
19002build_libtool_libs=$enable_shared
19003
19004# Whether or not to build static libraries.
19005build_old_libs=$enable_static
19006
19007# Whether or not to add -lc for building shared libraries.
19008build_libtool_need_lc=$archive_cmds_need_lc_RC
19009
19010# Whether or not to disallow shared libs when runtime libs are static
19011allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19012
19013# Whether or not to optimize for fast installation.
19014fast_install=$enable_fast_install
19015
19016# The host system.
19017host_alias=$host_alias
19018host=$host
19019host_os=$host_os
19020
19021# The build system.
19022build_alias=$build_alias
19023build=$build
19024build_os=$build_os
19025
19026# An echo program that does not interpret backslashes.
19027echo=$lt_echo
19028
19029# The archiver.
19030AR=$lt_AR
19031AR_FLAGS=$lt_AR_FLAGS
19032
19033# A C compiler.
19034LTCC=$lt_LTCC
19035
19036# LTCC compiler flags.
19037LTCFLAGS=$lt_LTCFLAGS
19038
19039# A language-specific compiler.
19040CC=$lt_compiler_RC
19041
19042# Is the compiler the GNU C compiler?
19043with_gcc=$GCC_RC
19044
d9898ee8 19045# An ERE matcher.
19046EGREP=$lt_EGREP
19047
19048# The linker used to build libraries.
19049LD=$lt_LD_RC
19050
19051# Whether we need hard or soft links.
19052LN_S=$lt_LN_S
19053
19054# A BSD-compatible nm program.
19055NM=$lt_NM
19056
19057# A symbol stripping program
19058STRIP=$lt_STRIP
19059
19060# Used to examine libraries when file_magic_cmd begins "file"
19061MAGIC_CMD=$MAGIC_CMD
19062
19063# Used on cygwin: DLL creation program.
19064DLLTOOL="$DLLTOOL"
19065
19066# Used on cygwin: object dumper.
19067OBJDUMP="$OBJDUMP"
19068
19069# Used on cygwin: assembler.
19070AS="$AS"
19071
19072# The name of the directory that contains temporary libtool files.
19073objdir=$objdir
19074
19075# How to create reloadable object files.
19076reload_flag=$lt_reload_flag
19077reload_cmds=$lt_reload_cmds
19078
19079# How to pass a linker flag through the compiler.
19080wl=$lt_lt_prog_compiler_wl_RC
19081
19082# Object file suffix (normally "o").
19083objext="$ac_objext"
19084
19085# Old archive suffix (normally "a").
19086libext="$libext"
19087
19088# Shared library suffix (normally ".so").
19089shrext_cmds='$shrext_cmds'
19090
19091# Executable file suffix (normally "").
19092exeext="$exeext"
19093
19094# Additional compiler flags for building library objects.
19095pic_flag=$lt_lt_prog_compiler_pic_RC
19096pic_mode=$pic_mode
19097
19098# What is the maximum length of a command?
19099max_cmd_len=$lt_cv_sys_max_cmd_len
19100
19101# Does compiler simultaneously support -c and -o options?
19102compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19103
19104# Must we lock files when doing compilation?
19105need_locks=$lt_need_locks
19106
19107# Do we need the lib prefix for modules?
19108need_lib_prefix=$need_lib_prefix
19109
19110# Do we need a version for libraries?
19111need_version=$need_version
19112
19113# Whether dlopen is supported.
19114dlopen_support=$enable_dlopen
19115
19116# Whether dlopen of programs is supported.
19117dlopen_self=$enable_dlopen_self
19118
19119# Whether dlopen of statically linked programs is supported.
19120dlopen_self_static=$enable_dlopen_self_static
19121
19122# Compiler flag to prevent dynamic linking.
19123link_static_flag=$lt_lt_prog_compiler_static_RC
19124
19125# Compiler flag to turn off builtin functions.
19126no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19127
19128# Compiler flag to allow reflexive dlopens.
19129export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19130
19131# Compiler flag to generate shared objects directly from archives.
19132whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19133
19134# Compiler flag to generate thread-safe objects.
19135thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19136
19137# Library versioning type.
19138version_type=$version_type
19139
19140# Format of library name prefix.
19141libname_spec=$lt_libname_spec
19142
19143# List of archive names. First name is the real one, the rest are links.
19144# The last name is the one that the linker finds with -lNAME.
19145library_names_spec=$lt_library_names_spec
19146
19147# The coded name of the library, if different from the real name.
19148soname_spec=$lt_soname_spec
19149
19150# Commands used to build and install an old-style archive.
19151RANLIB=$lt_RANLIB
19152old_archive_cmds=$lt_old_archive_cmds_RC
19153old_postinstall_cmds=$lt_old_postinstall_cmds
19154old_postuninstall_cmds=$lt_old_postuninstall_cmds
19155
19156# Create an old-style archive from a shared archive.
19157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19158
19159# Create a temporary old-style archive to link instead of a shared archive.
19160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19161
19162# Commands used to build and install a shared archive.
19163archive_cmds=$lt_archive_cmds_RC
19164archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19165postinstall_cmds=$lt_postinstall_cmds
19166postuninstall_cmds=$lt_postuninstall_cmds
19167
19168# Commands used to build a loadable module (assumed same as above if empty)
19169module_cmds=$lt_module_cmds_RC
19170module_expsym_cmds=$lt_module_expsym_cmds_RC
19171
19172# Commands to strip libraries.
19173old_striplib=$lt_old_striplib
19174striplib=$lt_striplib
19175
19176# Dependencies to place before the objects being linked to create a
19177# shared library.
64ff59ba 19178predep_objects=$lt_predep_objects_RC
d9898ee8 19179
19180# Dependencies to place after the objects being linked to create a
19181# shared library.
64ff59ba 19182postdep_objects=$lt_postdep_objects_RC
d9898ee8 19183
19184# Dependencies to place before the objects being linked to create a
19185# shared library.
19186predeps=$lt_predeps_RC
19187
19188# Dependencies to place after the objects being linked to create a
19189# shared library.
19190postdeps=$lt_postdeps_RC
19191
19192# The library search path used internally by the compiler when linking
19193# a shared library.
64ff59ba 19194compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19195
19196# Method to check whether dependent libraries are shared objects.
19197deplibs_check_method=$lt_deplibs_check_method
19198
19199# Command to use when deplibs_check_method == file_magic.
19200file_magic_cmd=$lt_file_magic_cmd
19201
19202# Flag that allows shared libraries with undefined symbols to be built.
19203allow_undefined_flag=$lt_allow_undefined_flag_RC
19204
19205# Flag that forces no undefined symbols.
19206no_undefined_flag=$lt_no_undefined_flag_RC
19207
19208# Commands used to finish a libtool library installation in a directory.
19209finish_cmds=$lt_finish_cmds
19210
19211# Same as above, but a single script fragment to be evaled but not shown.
19212finish_eval=$lt_finish_eval
19213
19214# Take the output of nm and produce a listing of raw symbols and C names.
19215global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19216
19217# Transform the output of nm in a proper C declaration
19218global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19219
19220# Transform the output of nm in a C name address pair
19221global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19222
19223# This is the shared library runtime path variable.
19224runpath_var=$runpath_var
19225
19226# This is the shared library path variable.
19227shlibpath_var=$shlibpath_var
19228
19229# Is shlibpath searched before the hard-coded library search path?
19230shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19231
19232# How to hardcode a shared library path into an executable.
19233hardcode_action=$hardcode_action_RC
19234
19235# Whether we should hardcode library paths into libraries.
19236hardcode_into_libs=$hardcode_into_libs
19237
19238# Flag to hardcode \$libdir into a binary during linking.
19239# This must work even if \$libdir does not exist.
19240hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19241
19242# If ld is used when linking, flag to hardcode \$libdir into
19243# a binary during linking. This must work even if \$libdir does
19244# not exist.
19245hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19246
19247# Whether we need a single -rpath flag with a separated argument.
19248hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19249
19250# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19251# resulting binary.
19252hardcode_direct=$hardcode_direct_RC
19253
19254# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19255# resulting binary.
19256hardcode_minus_L=$hardcode_minus_L_RC
19257
19258# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19259# the resulting binary.
19260hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19261
19262# Set to yes if building a shared library automatically hardcodes DIR into the library
19263# and all subsequent libraries and executables linked against it.
19264hardcode_automatic=$hardcode_automatic_RC
19265
19266# Variables whose values should be saved in libtool wrapper scripts and
19267# restored at relink time.
19268variables_saved_for_relink="$variables_saved_for_relink"
19269
19270# Whether libtool must link a program against all its dependency libraries.
19271link_all_deplibs=$link_all_deplibs_RC
19272
19273# Compile-time system search path for libraries
64ff59ba 19274sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19275
19276# Run-time system search path for libraries
19277sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19278
19279# Fix the shell variable \$srcfile for the compiler.
19280fix_srcfile_path="$fix_srcfile_path_RC"
19281
19282# Set to yes if exported symbols are required.
19283always_export_symbols=$always_export_symbols_RC
19284
19285# The commands to list exported symbols.
19286export_symbols_cmds=$lt_export_symbols_cmds_RC
19287
19288# The commands to extract the exported symbol list from a shared archive.
19289extract_expsyms_cmds=$lt_extract_expsyms_cmds
19290
19291# Symbols that should not be listed in the preloaded symbols.
19292exclude_expsyms=$lt_exclude_expsyms_RC
19293
19294# Symbols that must always be exported.
19295include_expsyms=$lt_include_expsyms_RC
19296
19297# ### END LIBTOOL TAG CONFIG: $tagname
19298
19299__EOF__
19300
19301
19302else
19303 # If there is no Makefile yet, we rely on a make rule to execute
19304 # `config.status --recheck' to rerun these tests and create the
19305 # libtool script then.
19306 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19307 if test -f "$ltmain_in"; then
19308 test -f Makefile && make "$ltmain"
19309 fi
19310fi
19311
19312
19313ac_ext=c
19314ac_cpp='$CPP $CPPFLAGS'
19315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19317ac_compiler_gnu=$ac_cv_c_compiler_gnu
19318
19319CC="$lt_save_CC"
19320
19321 ;;
19322
19323 *)
19324 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19325echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19326 { (exit 1); exit 1; }; }
19327 ;;
19328 esac
19329
19330 # Append the new tag name to the list of available tags.
19331 if test -n "$tagname" ; then
19332 available_tags="$available_tags $tagname"
19333 fi
19334 fi
19335 done
19336 IFS="$lt_save_ifs"
19337
19338 # Now substitute the updated list of available tags.
19339 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19340 mv "${ofile}T" "$ofile"
19341 chmod +x "$ofile"
19342 else
19343 rm -f "${ofile}T"
19344 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19345echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19346 { (exit 1); exit 1; }; }
19347 fi
19348fi
19349
19350
19351
19352# This can be used to rebuild libtool when needed
19353LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19354
19355# Always use our own libtool.
19356LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19357
19358# Prevent multiple expansion
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379for ac_prog in perl5 perl
19380do
19381 # Extract the first word of "$ac_prog", so it can be a program name with args.
19382set dummy $ac_prog; ac_word=$2
64ff59ba 19383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 19385if test "${ac_cv_path_PERL+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19387else
19388 case $PERL in
19389 [\\/]* | ?:[\\/]*)
19390 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19391 ;;
19392 *)
19393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19394for as_dir in $LPATH
19395do
19396 IFS=$as_save_IFS
19397 test -z "$as_dir" && as_dir=.
19398 for ac_exec_ext in '' $ac_executable_extensions; do
64ff59ba 19399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 19400 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19402 break 2
19403 fi
19404done
19405done
64ff59ba 19406IFS=$as_save_IFS
d9898ee8 19407
19408 ;;
19409esac
19410fi
19411PERL=$ac_cv_path_PERL
d9898ee8 19412if test -n "$PERL"; then
64ff59ba 19413 { echo "$as_me:$LINENO: result: $PERL" >&5
19414echo "${ECHO_T}$PERL" >&6; }
d9898ee8 19415else
64ff59ba 19416 { echo "$as_me:$LINENO: result: no" >&5
19417echo "${ECHO_T}no" >&6; }
d9898ee8 19418fi
19419
64ff59ba 19420
d9898ee8 19421 test -n "$PERL" && break
19422done
19423test -n "$PERL" || PERL="perl"
19424
19425
19426if test "$PERL" = "perl"
19427then
19428 { { echo "$as_me:$LINENO: error: Perl not found." >&5
19429echo "$as_me: error: Perl not found." >&2;}
19430 { (exit 1); exit 1; }; }
19431fi
19432
19433if test "$GCC" = "yes"
19434then
19435 CFLAGS="$CFLAGS -Wall"
19436fi
19437
19438CFLAGS="$CFLAGS -I.. -I${srcdir}/.."
19439
19440
19441
64ff59ba 19442# Check whether --with-userdb was given.
d9898ee8 19443if test "${with_userdb+set}" = set; then
64ff59ba 19444 withval=$with_userdb; userdb="$withval"
d9898ee8 19445else
19446 userdb="/etc/userdb"
64ff59ba 19447fi
19448
d9898ee8 19449
19450USERDB="`echo $userdb | tr 'a-z' 'A-Z'`"
19451
19452
19453
64ff59ba 19454# Check whether --with-userdbmandir was given.
d9898ee8 19455if test "${with_userdbmandir+set}" = set; then
64ff59ba 19456 withval=$with_userdbmandir; mandir="$withval"
19457fi
d9898ee8 19458
19459
64ff59ba 19460
19461# Check whether --with-userdbtmpdir was given.
d9898ee8 19462if test "${with_userdbtmpdir+set}" = set; then
64ff59ba 19463 withval=$with_userdbtmpdir; tmpdir="$withval"
d9898ee8 19464else
19465 tmpdir=""
64ff59ba 19466fi
19467
d9898ee8 19468
19469
19470
19471if test "$tmpdir" = ""
19472then
19473 tmpdir=`echo "$userdb" | sed 's/\/[^\/]*$//'`
19474fi
19475
19476
19477
19478
19479
19480
19481
64ff59ba 19482# Check whether --with-makedatprog was given.
d9898ee8 19483if test "${with_makedatprog+set}" = set; then
64ff59ba 19484 withval=$with_makedatprog; makedat="$withval"
d9898ee8 19485else
19486 makedat="$bindir/makedat"
64ff59ba 19487fi
19488
d9898ee8 19489
19490
19491if test -d ${srcdir}/../md5
19492then
19493
19494cat >>confdefs.h <<_ACEOF
19495#define HAVE_MD5 1
19496_ACEOF
19497
19498 MD5LIB=../md5/libmd5.la
19499else
19500 MD5LIB=""
19501fi
19502
19503
19504if test -d ${srcdir}/../sha1
19505then
19506 SHA1LIB=../sha1/libsha1.la
19507else
19508 SHA1LIB=""
19509fi
19510
19511
19512if test -d ${srcdir}/../libhmac
19513then
19514
19515cat >>confdefs.h <<_ACEOF
19516#define HAVE_HMAC 1
19517_ACEOF
19518
19519 HMACLIB=../libhmac/libhmac.la
19520else
19521 HMACLIB=""
19522fi
19523
19524
64ff59ba 19525{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19526echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19527if test "${ac_cv_header_stdc+set}" = set; then
19528 echo $ECHO_N "(cached) $ECHO_C" >&6
19529else
19530 cat >conftest.$ac_ext <<_ACEOF
19531/* confdefs.h. */
19532_ACEOF
19533cat confdefs.h >>conftest.$ac_ext
19534cat >>conftest.$ac_ext <<_ACEOF
19535/* end confdefs.h. */
19536#include <stdlib.h>
19537#include <stdarg.h>
19538#include <string.h>
19539#include <float.h>
19540
19541int
19542main ()
19543{
19544
19545 ;
19546 return 0;
19547}
19548_ACEOF
19549rm -f conftest.$ac_objext
64ff59ba 19550if { (ac_try="$ac_compile"
19551case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554esac
19555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19557 ac_status=$?
19558 grep -v '^ *+' conftest.er1 >conftest.err
19559 rm -f conftest.er1
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest.$ac_objext; then
d9898ee8 19566 ac_cv_header_stdc=yes
19567else
19568 echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
64ff59ba 19571 ac_cv_header_stdc=no
d9898ee8 19572fi
64ff59ba 19573
19574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19575
19576if test $ac_cv_header_stdc = yes; then
19577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19578 cat >conftest.$ac_ext <<_ACEOF
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584#include <string.h>
19585
19586_ACEOF
19587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19588 $EGREP "memchr" >/dev/null 2>&1; then
19589 :
19590else
19591 ac_cv_header_stdc=no
19592fi
19593rm -f conftest*
19594
19595fi
19596
19597if test $ac_cv_header_stdc = yes; then
19598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19599 cat >conftest.$ac_ext <<_ACEOF
19600/* confdefs.h. */
19601_ACEOF
19602cat confdefs.h >>conftest.$ac_ext
19603cat >>conftest.$ac_ext <<_ACEOF
19604/* end confdefs.h. */
19605#include <stdlib.h>
19606
19607_ACEOF
19608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "free" >/dev/null 2>&1; then
19610 :
19611else
19612 ac_cv_header_stdc=no
19613fi
19614rm -f conftest*
19615
19616fi
19617
19618if test $ac_cv_header_stdc = yes; then
19619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19620 if test "$cross_compiling" = yes; then
19621 :
19622else
19623 cat >conftest.$ac_ext <<_ACEOF
19624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
19629#include <ctype.h>
64ff59ba 19630#include <stdlib.h>
d9898ee8 19631#if ((' ' & 0x0FF) == 0x020)
19632# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19633# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19634#else
19635# define ISLOWER(c) \
19636 (('a' <= (c) && (c) <= 'i') \
19637 || ('j' <= (c) && (c) <= 'r') \
19638 || ('s' <= (c) && (c) <= 'z'))
19639# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19640#endif
19641
19642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19643int
19644main ()
19645{
19646 int i;
19647 for (i = 0; i < 256; i++)
19648 if (XOR (islower (i), ISLOWER (i))
19649 || toupper (i) != TOUPPER (i))
64ff59ba 19650 return 2;
19651 return 0;
d9898ee8 19652}
19653_ACEOF
19654rm -f conftest$ac_exeext
64ff59ba 19655if { (ac_try="$ac_link"
19656case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19659esac
19660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_link") 2>&5
d9898ee8 19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64ff59ba 19665 { (case "(($ac_try" in
19666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19667 *) ac_try_echo=$ac_try;;
19668esac
19669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19670 (eval "$ac_try") 2>&5
d9898ee8 19671 ac_status=$?
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 :
19675else
19676 echo "$as_me: program exited with status $ac_status" >&5
19677echo "$as_me: failed program was:" >&5
19678sed 's/^/| /' conftest.$ac_ext >&5
19679
19680( exit $ac_status )
19681ac_cv_header_stdc=no
19682fi
64ff59ba 19683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19684fi
64ff59ba 19685
19686
d9898ee8 19687fi
19688fi
64ff59ba 19689{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19690echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19691if test $ac_cv_header_stdc = yes; then
19692
19693cat >>confdefs.h <<\_ACEOF
19694#define STDC_HEADERS 1
19695_ACEOF
19696
19697fi
19698
19699
19700
19701
19702
19703
19704
19705for ac_header in sys/stat.h sys/time.h unistd.h fcntl.h termios.h crypt.h
19706do
19707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
64ff59ba 19708if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19713fi
64ff59ba 19714ac_res=`eval echo '${'$as_ac_Header'}'`
19715 { echo "$as_me:$LINENO: result: $ac_res" >&5
19716echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19717else
19718 # Is the header compilable?
64ff59ba 19719{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19721cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
19727$ac_includes_default
19728#include <$ac_header>
19729_ACEOF
19730rm -f conftest.$ac_objext
64ff59ba 19731if { (ac_try="$ac_compile"
19732case "(($ac_try" in
19733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734 *) ac_try_echo=$ac_try;;
19735esac
19736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19743 (exit $ac_status); } && {
19744 test -z "$ac_c_werror_flag" ||
19745 test ! -s conftest.err
19746 } && test -s conftest.$ac_objext; then
d9898ee8 19747 ac_header_compiler=yes
19748else
19749 echo "$as_me: failed program was:" >&5
19750sed 's/^/| /' conftest.$ac_ext >&5
19751
64ff59ba 19752 ac_header_compiler=no
d9898ee8 19753fi
64ff59ba 19754
19755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19756{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19757echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19758
19759# Is the header present?
64ff59ba 19760{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19762cat >conftest.$ac_ext <<_ACEOF
19763/* confdefs.h. */
19764_ACEOF
19765cat confdefs.h >>conftest.$ac_ext
19766cat >>conftest.$ac_ext <<_ACEOF
19767/* end confdefs.h. */
19768#include <$ac_header>
19769_ACEOF
64ff59ba 19770if { (ac_try="$ac_cpp conftest.$ac_ext"
19771case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774esac
19775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19782 (exit $ac_status); } >/dev/null && {
19783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 }; then
d9898ee8 19786 ac_header_preproc=yes
19787else
19788 echo "$as_me: failed program was:" >&5
19789sed 's/^/| /' conftest.$ac_ext >&5
19790
19791 ac_header_preproc=no
19792fi
64ff59ba 19793
d9898ee8 19794rm -f conftest.err conftest.$ac_ext
64ff59ba 19795{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19796echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19797
19798# So? What about this header?
19799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19800 yes:no: )
19801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19805 ac_header_preproc=yes
19806 ;;
19807 no:yes:* )
19808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64ff59ba 19820 ( cat <<\_ASBOX
d9898ee8 19821## -------------------------------------------------- ##
19822## Report this to courier-users@lists.sourceforge.net ##
19823## -------------------------------------------------- ##
19824_ASBOX
64ff59ba 19825 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19826 ;;
19827esac
64ff59ba 19828{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19831 echo $ECHO_N "(cached) $ECHO_C" >&6
19832else
19833 eval "$as_ac_Header=\$ac_header_preproc"
19834fi
64ff59ba 19835ac_res=`eval echo '${'$as_ac_Header'}'`
19836 { echo "$as_me:$LINENO: result: $ac_res" >&5
19837echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19838
19839fi
19840if test `eval echo '${'$as_ac_Header'}'` = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19843_ACEOF
19844
19845fi
19846
19847done
19848
64ff59ba 19849{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19850echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
d9898ee8 19851if test "${ac_cv_header_time+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 cat >conftest.$ac_ext <<_ACEOF
19855/* confdefs.h. */
19856_ACEOF
19857cat confdefs.h >>conftest.$ac_ext
19858cat >>conftest.$ac_ext <<_ACEOF
19859/* end confdefs.h. */
19860#include <sys/types.h>
19861#include <sys/time.h>
19862#include <time.h>
19863
19864int
19865main ()
19866{
19867if ((struct tm *) 0)
19868return 0;
19869 ;
19870 return 0;
19871}
19872_ACEOF
19873rm -f conftest.$ac_objext
64ff59ba 19874if { (ac_try="$ac_compile"
19875case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878esac
19879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest.$ac_objext; then
d9898ee8 19890 ac_cv_header_time=yes
19891else
19892 echo "$as_me: failed program was:" >&5
19893sed 's/^/| /' conftest.$ac_ext >&5
19894
64ff59ba 19895 ac_cv_header_time=no
d9898ee8 19896fi
64ff59ba 19897
19898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19899fi
64ff59ba 19900{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19901echo "${ECHO_T}$ac_cv_header_time" >&6; }
d9898ee8 19902if test $ac_cv_header_time = yes; then
19903
19904cat >>confdefs.h <<\_ACEOF
19905#define TIME_WITH_SYS_TIME 1
19906_ACEOF
19907
19908fi
19909
19910
64ff59ba 19911{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19912echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19913if test "${ac_cv_c_const+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19915else
19916 cat >conftest.$ac_ext <<_ACEOF
19917/* confdefs.h. */
19918_ACEOF
19919cat confdefs.h >>conftest.$ac_ext
19920cat >>conftest.$ac_ext <<_ACEOF
19921/* end confdefs.h. */
19922
19923int
19924main ()
19925{
19926/* FIXME: Include the comments suggested by Paul. */
19927#ifndef __cplusplus
19928 /* Ultrix mips cc rejects this. */
19929 typedef int charset[2];
64ff59ba 19930 const charset cs;
d9898ee8 19931 /* SunOS 4.1.1 cc rejects this. */
64ff59ba 19932 char const *const *pcpcc;
19933 char **ppc;
d9898ee8 19934 /* NEC SVR4.0.2 mips cc rejects this. */
19935 struct point {int x, y;};
19936 static struct point const zero = {0,0};
19937 /* AIX XL C 1.02.0.0 rejects this.
19938 It does not let you subtract one const X* pointer from another in
19939 an arm of an if-expression whose if-part is not a constant
19940 expression */
19941 const char *g = "string";
64ff59ba 19942 pcpcc = &g + (g ? g-g : 0);
d9898ee8 19943 /* HPUX 7.0 cc rejects these. */
64ff59ba 19944 ++pcpcc;
19945 ppc = (char**) pcpcc;
19946 pcpcc = (char const *const *) ppc;
d9898ee8 19947 { /* SCO 3.2v4 cc rejects this. */
19948 char *t;
19949 char const *s = 0 ? (char *) 0 : (char const *) 0;
19950
19951 *t++ = 0;
64ff59ba 19952 if (s) return 0;
d9898ee8 19953 }
19954 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19955 int x[] = {25, 17};
19956 const int *foo = &x[0];
19957 ++foo;
19958 }
19959 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19960 typedef const int *iptr;
19961 iptr p = 0;
19962 ++p;
19963 }
19964 { /* AIX XL C 1.02.0.0 rejects this saying
19965 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19966 struct s { int j; const int *ap[3]; };
19967 struct s *b; b->j = 5;
19968 }
19969 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19970 const int foo = 10;
64ff59ba 19971 if (!foo) return 0;
d9898ee8 19972 }
64ff59ba 19973 return !cs[0] && !zero.x;
d9898ee8 19974#endif
19975
19976 ;
19977 return 0;
19978}
19979_ACEOF
19980rm -f conftest.$ac_objext
64ff59ba 19981if { (ac_try="$ac_compile"
19982case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985esac
19986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest.$ac_objext; then
d9898ee8 19997 ac_cv_c_const=yes
19998else
19999 echo "$as_me: failed program was:" >&5
20000sed 's/^/| /' conftest.$ac_ext >&5
20001
64ff59ba 20002 ac_cv_c_const=no
d9898ee8 20003fi
64ff59ba 20004
20005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20006fi
64ff59ba 20007{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20008echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 20009if test $ac_cv_c_const = no; then
20010
20011cat >>confdefs.h <<\_ACEOF
20012#define const
20013_ACEOF
20014
20015fi
20016
64ff59ba 20017{ echo "$as_me:$LINENO: checking for pid_t" >&5
20018echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
d9898ee8 20019if test "${ac_cv_type_pid_t+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021else
20022 cat >conftest.$ac_ext <<_ACEOF
20023/* confdefs.h. */
20024_ACEOF
20025cat confdefs.h >>conftest.$ac_ext
20026cat >>conftest.$ac_ext <<_ACEOF
20027/* end confdefs.h. */
20028$ac_includes_default
64ff59ba 20029typedef pid_t ac__type_new_;
d9898ee8 20030int
20031main ()
20032{
64ff59ba 20033if ((ac__type_new_ *) 0)
d9898ee8 20034 return 0;
64ff59ba 20035if (sizeof (ac__type_new_))
d9898ee8 20036 return 0;
20037 ;
20038 return 0;
20039}
20040_ACEOF
20041rm -f conftest.$ac_objext
64ff59ba 20042if { (ac_try="$ac_compile"
20043case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046esac
20047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest.$ac_objext; then
d9898ee8 20058 ac_cv_type_pid_t=yes
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
64ff59ba 20063 ac_cv_type_pid_t=no
d9898ee8 20064fi
64ff59ba 20065
20066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20067fi
64ff59ba 20068{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20069echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
d9898ee8 20070if test $ac_cv_type_pid_t = yes; then
20071 :
20072else
20073
20074cat >>confdefs.h <<_ACEOF
20075#define pid_t int
20076_ACEOF
20077
20078fi
20079
64ff59ba 20080{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
20081echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
d9898ee8 20082if test "${ac_cv_type_uid_t+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084else
20085 cat >conftest.$ac_ext <<_ACEOF
20086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
20091#include <sys/types.h>
20092
20093_ACEOF
20094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20095 $EGREP "uid_t" >/dev/null 2>&1; then
20096 ac_cv_type_uid_t=yes
20097else
20098 ac_cv_type_uid_t=no
20099fi
20100rm -f conftest*
20101
20102fi
64ff59ba 20103{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
20104echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
d9898ee8 20105if test $ac_cv_type_uid_t = no; then
20106
20107cat >>confdefs.h <<\_ACEOF
20108#define uid_t int
20109_ACEOF
20110
20111
20112cat >>confdefs.h <<\_ACEOF
20113#define gid_t int
20114_ACEOF
20115
20116fi
20117
64ff59ba 20118{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20119echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
d9898ee8 20120if test "${ac_cv_type_signal+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20122else
20123 cat >conftest.$ac_ext <<_ACEOF
20124/* confdefs.h. */
20125_ACEOF
20126cat confdefs.h >>conftest.$ac_ext
20127cat >>conftest.$ac_ext <<_ACEOF
20128/* end confdefs.h. */
20129#include <sys/types.h>
20130#include <signal.h>
d9898ee8 20131
20132int
20133main ()
20134{
64ff59ba 20135return *(signal (0, 0)) (0) == 1;
d9898ee8 20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext
64ff59ba 20141if { (ac_try="$ac_compile"
20142case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145esac
20146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20153 (exit $ac_status); } && {
20154 test -z "$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 } && test -s conftest.$ac_objext; then
20157 ac_cv_type_signal=int
d9898ee8 20158else
20159 echo "$as_me: failed program was:" >&5
20160sed 's/^/| /' conftest.$ac_ext >&5
20161
64ff59ba 20162 ac_cv_type_signal=void
d9898ee8 20163fi
64ff59ba 20164
20165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20166fi
64ff59ba 20167{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20168echo "${ECHO_T}$ac_cv_type_signal" >&6; }
d9898ee8 20169
20170cat >>confdefs.h <<_ACEOF
20171#define RETSIGTYPE $ac_cv_type_signal
20172_ACEOF
20173
20174
20175
20176
64ff59ba 20177{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20178echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
d9898ee8 20179if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181else
20182 ac_check_lib_save_LIBS=$LIBS
20183LIBS="-lcrypt $LIBS"
20184cat >conftest.$ac_ext <<_ACEOF
20185/* confdefs.h. */
20186_ACEOF
20187cat confdefs.h >>conftest.$ac_ext
20188cat >>conftest.$ac_ext <<_ACEOF
20189/* end confdefs.h. */
20190
64ff59ba 20191/* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
d9898ee8 20194#ifdef __cplusplus
20195extern "C"
20196#endif
d9898ee8 20197char crypt ();
20198int
20199main ()
20200{
64ff59ba 20201return crypt ();
d9898ee8 20202 ;
20203 return 0;
20204}
20205_ACEOF
20206rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20207if { (ac_try="$ac_link"
20208case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20211esac
20212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
d9898ee8 20214 ac_status=$?
20215 grep -v '^ *+' conftest.er1 >conftest.err
20216 rm -f conftest.er1
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest$ac_exeext &&
20223 $as_test_x conftest$ac_exeext; then
d9898ee8 20224 ac_cv_lib_crypt_crypt=yes
20225else
20226 echo "$as_me: failed program was:" >&5
20227sed 's/^/| /' conftest.$ac_ext >&5
20228
64ff59ba 20229 ac_cv_lib_crypt_crypt=no
d9898ee8 20230fi
64ff59ba 20231
20232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20233 conftest$ac_exeext conftest.$ac_ext
20234LIBS=$ac_check_lib_save_LIBS
20235fi
64ff59ba 20236{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20237echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
d9898ee8 20238if test $ac_cv_lib_crypt_crypt = yes; then
20239 CRYPTLIBS="-lcrypt"
20240fi
20241
20242saveLIBS="$LIBS"
20243LIBS="$CRYPTLIBS $LIBS"
64ff59ba 20244{ echo "$as_me:$LINENO: checking for crypt" >&5
20245echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
d9898ee8 20246if test "${ac_cv_func_crypt+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248else
20249 cat >conftest.$ac_ext <<_ACEOF
20250/* confdefs.h. */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
20254/* end confdefs.h. */
20255/* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
20256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20257#define crypt innocuous_crypt
20258
20259/* System header to define __stub macros and hopefully few prototypes,
20260 which can conflict with char crypt (); below.
20261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20262 <limits.h> exists even on freestanding compilers. */
20263
20264#ifdef __STDC__
20265# include <limits.h>
20266#else
20267# include <assert.h>
20268#endif
20269
20270#undef crypt
20271
64ff59ba 20272/* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
d9898ee8 20275#ifdef __cplusplus
20276extern "C"
d9898ee8 20277#endif
d9898ee8 20278char crypt ();
20279/* The GNU C library defines this for functions which it implements
20280 to always fail with ENOSYS. Some functions are actually named
20281 something starting with __ and the normal name is an alias. */
64ff59ba 20282#if defined __stub_crypt || defined __stub___crypt
d9898ee8 20283choke me
d9898ee8 20284#endif
20285
20286int
20287main ()
20288{
64ff59ba 20289return crypt ();
d9898ee8 20290 ;
20291 return 0;
20292}
20293_ACEOF
20294rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20295if { (ac_try="$ac_link"
20296case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20299esac
20300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_link") 2>conftest.er1
d9898ee8 20302 ac_status=$?
20303 grep -v '^ *+' conftest.er1 >conftest.err
20304 rm -f conftest.er1
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20307 (exit $ac_status); } && {
20308 test -z "$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 } && test -s conftest$ac_exeext &&
20311 $as_test_x conftest$ac_exeext; then
d9898ee8 20312 ac_cv_func_crypt=yes
20313else
20314 echo "$as_me: failed program was:" >&5
20315sed 's/^/| /' conftest.$ac_ext >&5
20316
64ff59ba 20317 ac_cv_func_crypt=no
d9898ee8 20318fi
64ff59ba 20319
20320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20321 conftest$ac_exeext conftest.$ac_ext
20322fi
64ff59ba 20323{ echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
20324echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
d9898ee8 20325if test $ac_cv_func_crypt = yes; then
20326
20327cat >>confdefs.h <<_ACEOF
20328#define HAVE_CRYPT 1
20329_ACEOF
20330
20331fi
20332
20333LIBS="$saveLIBS"
64ff59ba 20334{ echo "$as_me:$LINENO: checking for crypt() prototype" >&5
20335echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
d9898ee8 20336if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338else
20339 cat >conftest.$ac_ext <<_ACEOF
20340/* confdefs.h. */
20341_ACEOF
20342cat confdefs.h >>conftest.$ac_ext
20343cat >>conftest.$ac_ext <<_ACEOF
20344/* end confdefs.h. */
20345
20346 #if HAVE_CRYPT_H
20347 #include <crypt.h>
20348 #endif
20349 #if HAVE_UNISTD_H
20350 #include <unistd.h>
20351 #endif
20352 int crypt(int, int);
20353
20354
20355int
20356main ()
20357{
20358
20359 ;
20360 return 0;
20361}
20362_ACEOF
20363rm -f conftest.$ac_objext
64ff59ba 20364if { (ac_try="$ac_compile"
20365case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368esac
20369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest.$ac_objext; then
d9898ee8 20380 userdb_cv_NEED_CRYPT_PROTOTYPE=1
20381else
20382 echo "$as_me: failed program was:" >&5
20383sed 's/^/| /' conftest.$ac_ext >&5
20384
64ff59ba 20385 userdb_cv_NEED_CRYPT_PROTOTYPE=0
d9898ee8 20386fi
64ff59ba 20387
20388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20389
20390
20391fi
64ff59ba 20392{ echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
20393echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
d9898ee8 20394
20395
20396cat >>confdefs.h <<_ACEOF
20397#define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
20398_ACEOF
20399
20400
20401
20402
20403
20404for ac_func in isatty gettimeofday
20405do
20406as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64ff59ba 20407{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20408echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20409if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411else
20412 cat >conftest.$ac_ext <<_ACEOF
20413/* confdefs.h. */
20414_ACEOF
20415cat confdefs.h >>conftest.$ac_ext
20416cat >>conftest.$ac_ext <<_ACEOF
20417/* end confdefs.h. */
20418/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20420#define $ac_func innocuous_$ac_func
20421
20422/* System header to define __stub macros and hopefully few prototypes,
20423 which can conflict with char $ac_func (); below.
20424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20425 <limits.h> exists even on freestanding compilers. */
20426
20427#ifdef __STDC__
20428# include <limits.h>
20429#else
20430# include <assert.h>
20431#endif
20432
20433#undef $ac_func
20434
64ff59ba 20435/* Override any GCC internal prototype to avoid an error.
20436 Use char because int might match the return type of a GCC
20437 builtin and then its argument prototype would still apply. */
d9898ee8 20438#ifdef __cplusplus
20439extern "C"
d9898ee8 20440#endif
d9898ee8 20441char $ac_func ();
20442/* The GNU C library defines this for functions which it implements
20443 to always fail with ENOSYS. Some functions are actually named
20444 something starting with __ and the normal name is an alias. */
64ff59ba 20445#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 20446choke me
d9898ee8 20447#endif
20448
20449int
20450main ()
20451{
64ff59ba 20452return $ac_func ();
d9898ee8 20453 ;
20454 return 0;
20455}
20456_ACEOF
20457rm -f conftest.$ac_objext conftest$ac_exeext
64ff59ba 20458if { (ac_try="$ac_link"
20459case "(($ac_try" in
20460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461 *) ac_try_echo=$ac_try;;
20462esac
20463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464 (eval "$ac_link") 2>conftest.er1
d9898ee8 20465 ac_status=$?
20466 grep -v '^ *+' conftest.er1 >conftest.err
20467 rm -f conftest.er1
20468 cat conftest.err >&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
64ff59ba 20470 (exit $ac_status); } && {
20471 test -z "$ac_c_werror_flag" ||
20472 test ! -s conftest.err
20473 } && test -s conftest$ac_exeext &&
20474 $as_test_x conftest$ac_exeext; then
d9898ee8 20475 eval "$as_ac_var=yes"
20476else
20477 echo "$as_me: failed program was:" >&5
20478sed 's/^/| /' conftest.$ac_ext >&5
20479
64ff59ba 20480 eval "$as_ac_var=no"
d9898ee8 20481fi
64ff59ba 20482
20483rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20484 conftest$ac_exeext conftest.$ac_ext
20485fi
64ff59ba 20486ac_res=`eval echo '${'$as_ac_var'}'`
20487 { echo "$as_me:$LINENO: result: $ac_res" >&5
20488echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20489if test `eval echo '${'$as_ac_var'}'` = yes; then
20490 cat >>confdefs.h <<_ACEOF
20491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20492_ACEOF
20493
20494fi
20495done
20496
20497
20498
64ff59ba 20499# Check whether --with-random was given.
d9898ee8 20500if test "${with_random+set}" = set; then
64ff59ba 20501 withval=$with_random; random="$withval"
d9898ee8 20502else
20503 random="y"
64ff59ba 20504fi
20505
d9898ee8 20506
20507case "$random" in
20508/*)
20509 ;;
20510y*|1*)
64ff59ba 20511 { echo "$as_me:$LINENO: checking for random source" >&5
20512echo $ECHO_N "checking for random source... $ECHO_C" >&6; }
d9898ee8 20513if test "${userdb_cv_RANDOM+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515else
20516 if test -c /dev/urandom
20517 then
20518 userdb_cv_RANDOM=/dev/urandom
20519 else
20520 if test -c /dev/random
20521 then
20522 userdb_cv_RANDOM=/dev/random
20523 else
20524 userdb_cv_RANDOM="none"
20525 fi
20526 fi
20527
20528fi
64ff59ba 20529{ echo "$as_me:$LINENO: result: $userdb_cv_RANDOM" >&5
20530echo "${ECHO_T}$userdb_cv_RANDOM" >&6; }
d9898ee8 20531 random="$userdb_cv_RANDOM"
20532 ;;
20533*)
20534 random="none"
20535 ;;
20536esac
20537
20538if test "$random" != "none"
20539then
20540
20541cat >>confdefs.h <<_ACEOF
20542#define RANDOM "$random"
20543_ACEOF
20544
20545fi
20546
64ff59ba 20547 if test -d ${srcdir}/../docbook; then
d9898ee8 20548 HAVE_SGML_TRUE=
20549 HAVE_SGML_FALSE='#'
20550else
20551 HAVE_SGML_TRUE='#'
20552 HAVE_SGML_FALSE=
20553fi
20554
20555
64ff59ba 20556ac_config_files="$ac_config_files Makefile userdb.pl makeuserdb pw2userdb vchkpw2userdb"
20557
d9898ee8 20558cat >confcache <<\_ACEOF
20559# This file is a shell script that caches the results of configure
20560# tests run on this system so they can be shared between configure
20561# scripts and configure runs, see configure's option --config-cache.
20562# It is not useful on other systems. If it contains results you don't
20563# want to keep, you may remove or edit it.
20564#
20565# config.status only pays attention to the cache file if you give it
20566# the --recheck option to rerun configure.
20567#
20568# `ac_cv_env_foo' variables (set or unset) will be overridden when
20569# loading this file, other *unset* `ac_cv_foo' will be assigned the
20570# following values.
20571
20572_ACEOF
20573
20574# The following way of writing the cache mishandles newlines in values,
20575# but we know of no workaround that is simple, portable, and efficient.
64ff59ba 20576# So, we kill variables containing newlines.
d9898ee8 20577# Ultrix sh set writes to stderr and can't be redirected directly,
20578# and sets the high bit in the cache file unless we assign to the vars.
64ff59ba 20579(
20580 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20581 eval ac_val=\$$ac_var
20582 case $ac_val in #(
20583 *${as_nl}*)
20584 case $ac_var in #(
20585 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20586echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20587 esac
20588 case $ac_var in #(
20589 _ | IFS | as_nl) ;; #(
20590 *) $as_unset $ac_var ;;
20591 esac ;;
20592 esac
20593 done
20594
d9898ee8 20595 (set) 2>&1 |
64ff59ba 20596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20597 *${as_nl}ac_space=\ *)
d9898ee8 20598 # `set' does not quote correctly, so add quotes (double-quote
20599 # substitution turns \\\\ into \\, and sed turns \\ into \).
20600 sed -n \
20601 "s/'/'\\\\''/g;
20602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
64ff59ba 20603 ;; #(
d9898ee8 20604 *)
20605 # `set' quotes correctly as required by POSIX, so do not add quotes.
64ff59ba 20606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 20607 ;;
64ff59ba 20608 esac |
20609 sort
20610) |
d9898ee8 20611 sed '
64ff59ba 20612 /^ac_cv_env_/b end
d9898ee8 20613 t clear
64ff59ba 20614 :clear
d9898ee8 20615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20616 t end
64ff59ba 20617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20618 :end' >>confcache
20619if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20620 if test -w "$cache_file"; then
20621 test "x$cache_file" != "x/dev/null" &&
20622 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20623echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 20624 cat confcache >$cache_file
20625 else
64ff59ba 20626 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20627echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 20628 fi
20629fi
20630rm -f confcache
20631
20632test "x$prefix" = xNONE && prefix=$ac_default_prefix
20633# Let make expand exec_prefix.
20634test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20635
d9898ee8 20636# Transform confdefs.h into DEFS.
20637# Protect against shell expansion while executing Makefile rules.
20638# Protect against Makefile macro expansion.
20639#
20640# If the first sed substitution is executed (which looks for macros that
64ff59ba 20641# take arguments), then branch to the quote section. Otherwise,
d9898ee8 20642# look for a macro that doesn't take arguments.
64ff59ba 20643ac_script='
d9898ee8 20644t clear
64ff59ba 20645:clear
20646s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
d9898ee8 20647t quote
64ff59ba 20648s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
d9898ee8 20649t quote
64ff59ba 20650b any
20651:quote
20652s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20653s/\[/\\&/g
20654s/\]/\\&/g
20655s/\$/$$/g
20656H
20657:any
20658${
20659 g
20660 s/^\n//
20661 s/\n/ /g
20662 p
20663}
20664'
20665DEFS=`sed -n "$ac_script" confdefs.h`
d9898ee8 20666
20667
20668ac_libobjs=
20669ac_ltlibobjs=
20670for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20671 # 1. Remove the extension, and $U if already installed.
64ff59ba 20672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20673 ac_i=`echo "$ac_i" | sed "$ac_script"`
20674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20675 # will be set to the directory where LIBOBJS objects are built.
20676 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20677 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 20678done
20679LIBOBJS=$ac_libobjs
20680
20681LTLIBOBJS=$ac_ltlibobjs
20682
20683
20684if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20685 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20686Usually this means the macro was only invoked conditionally." >&5
20687echo "$as_me: error: conditional \"AMDEP\" was never defined.
20688Usually this means the macro was only invoked conditionally." >&2;}
20689 { (exit 1); exit 1; }; }
20690fi
20691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20692 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20693Usually this means the macro was only invoked conditionally." >&5
20694echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20695Usually this means the macro was only invoked conditionally." >&2;}
20696 { (exit 1); exit 1; }; }
20697fi
20698if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20699 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20700Usually this means the macro was only invoked conditionally." >&5
20701echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20702Usually this means the macro was only invoked conditionally." >&2;}
20703 { (exit 1); exit 1; }; }
20704fi
20705if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20706 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
20707Usually this means the macro was only invoked conditionally." >&5
20708echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
20709Usually this means the macro was only invoked conditionally." >&2;}
20710 { (exit 1); exit 1; }; }
20711fi
20712
20713: ${CONFIG_STATUS=./config.status}
20714ac_clean_files_save=$ac_clean_files
20715ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20716{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20717echo "$as_me: creating $CONFIG_STATUS" >&6;}
20718cat >$CONFIG_STATUS <<_ACEOF
20719#! $SHELL
20720# Generated by $as_me.
20721# Run this file to recreate the current configuration.
20722# Compiler output produced by configure, useful for debugging
20723# configure, is in config.log if it exists.
20724
20725debug=false
20726ac_cs_recheck=false
20727ac_cs_silent=false
20728SHELL=\${CONFIG_SHELL-$SHELL}
20729_ACEOF
20730
20731cat >>$CONFIG_STATUS <<\_ACEOF
20732## --------------------- ##
20733## M4sh Initialization. ##
20734## --------------------- ##
20735
64ff59ba 20736# Be more Bourne compatible
20737DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 20738if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20739 emulate sh
20740 NULLCMD=:
20741 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20742 # is contrary to our usage. Disable this feature.
20743 alias -g '${1+"$@"}'='"$@"'
64ff59ba 20744 setopt NO_GLOB_SUBST
d9898ee8 20745else
64ff59ba 20746 case `(set -o) 2>/dev/null` in
20747 *posix*) set -o posix ;;
20748esac
d9898ee8 20749
d9898ee8 20750fi
20751
20752
d9898ee8 20753
20754
64ff59ba 20755# PATH needs CR
d9898ee8 20756# Avoid depending upon Character Ranges.
20757as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20758as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20759as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20760as_cr_digits='0123456789'
20761as_cr_alnum=$as_cr_Letters$as_cr_digits
20762
20763# The user is always right.
20764if test "${PATH_SEPARATOR+set}" != set; then
20765 echo "#! /bin/sh" >conf$$.sh
20766 echo "exit 0" >>conf$$.sh
20767 chmod +x conf$$.sh
20768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20769 PATH_SEPARATOR=';'
20770 else
20771 PATH_SEPARATOR=:
20772 fi
20773 rm -f conf$$.sh
20774fi
20775
64ff59ba 20776# Support unset when possible.
20777if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20778 as_unset=unset
20779else
20780 as_unset=false
20781fi
20782
20783
20784# IFS
20785# We need space, tab and new line, in precisely that order. Quoting is
20786# there to prevent editors from complaining about space-tab.
20787# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20788# splitting by setting IFS to empty value.)
20789as_nl='
20790'
20791IFS=" "" $as_nl"
20792
20793# Find who we are. Look in the path if we contain no directory separator.
20794case $0 in
20795 *[\\/]* ) as_myself=$0 ;;
20796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d9898ee8 20797for as_dir in $PATH
20798do
20799 IFS=$as_save_IFS
20800 test -z "$as_dir" && as_dir=.
20801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20802done
64ff59ba 20803IFS=$as_save_IFS
d9898ee8 20804
64ff59ba 20805 ;;
20806esac
20807# We did not find ourselves, most probably we were run as `sh COMMAND'
20808# in which case we are not to be found in the path.
20809if test "x$as_myself" = x; then
20810 as_myself=$0
20811fi
20812if test ! -f "$as_myself"; then
20813 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20814 { (exit 1); exit 1; }
20815fi
20816
20817# Work around bugs in pre-3.0 UWIN ksh.
20818for as_var in ENV MAIL MAILPATH
20819do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20820done
20821PS1='$ '
20822PS2='> '
20823PS4='+ '
20824
20825# NLS nuisances.
20826for as_var in \
20827 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20828 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20829 LC_TELEPHONE LC_TIME
d9898ee8 20830do
64ff59ba 20831 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20832 eval $as_var=C; export $as_var
20833 else
20834 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20835 fi
20836done
20837
20838# Required to use basename.
20839if expr a : '\(a\)' >/dev/null 2>&1 &&
20840 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20841 as_expr=expr
20842else
20843 as_expr=false
20844fi
20845
20846if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20847 as_basename=basename
20848else
20849 as_basename=false
20850fi
20851
20852
20853# Name of the executable.
20854as_me=`$as_basename -- "$0" ||
20855$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20856 X"$0" : 'X\(//\)$' \| \
20857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20858echo X/"$0" |
20859 sed '/^.*\/\([^/][^/]*\)\/*$/{
20860 s//\1/
20861 q
20862 }
20863 /^X\/\(\/\/\)$/{
20864 s//\1/
20865 q
20866 }
20867 /^X\/\(\/\).*/{
20868 s//\1/
20869 q
20870 }
20871 s/.*/./; q'`
20872
20873# CDPATH.
20874$as_unset CDPATH
20875
20876
20877
d9898ee8 20878 as_lineno_1=$LINENO
20879 as_lineno_2=$LINENO
d9898ee8 20880 test "x$as_lineno_1" != "x$as_lineno_2" &&
64ff59ba 20881 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20882
20883 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20884 # uniformly replaced by the line number. The first 'sed' inserts a
64ff59ba 20885 # line-number line after each line using $LINENO; the second 'sed'
20886 # does the real work. The second script uses 'N' to pair each
20887 # line-number line with the line containing $LINENO, and appends
20888 # trailing '-' during substitution so that $LINENO is not a special
20889 # case at line end.
d9898ee8 20890 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
64ff59ba 20891 # scripts with optimization help from Paolo Bonzini. Blame Lee
20892 # E. McMahon (1931-1989) for sed's syntax. :-)
20893 sed -n '
20894 p
20895 /[$]LINENO/=
20896 ' <$as_myself |
d9898ee8 20897 sed '
64ff59ba 20898 s/[$]LINENO.*/&-/
20899 t lineno
20900 b
20901 :lineno
d9898ee8 20902 N
64ff59ba 20903 :loop
20904 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20905 t loop
64ff59ba 20906 s/-\n.*//
d9898ee8 20907 ' >$as_me.lineno &&
64ff59ba 20908 chmod +x "$as_me.lineno" ||
20909 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20910 { (exit 1); exit 1; }; }
20911
20912 # Don't try to exec as it changes $[0], causing all sort of problems
20913 # (the dirname of $[0] is not the place where we might find the
64ff59ba 20914 # original and so on. Autoconf is especially sensitive to this).
20915 . "./$as_me.lineno"
d9898ee8 20916 # Exit status is that of the last command.
20917 exit
20918}
20919
20920
64ff59ba 20921if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20922 as_dirname=dirname
20923else
20924 as_dirname=false
20925fi
20926
20927ECHO_C= ECHO_N= ECHO_T=
20928case `echo -n x` in
20929-n*)
20930 case `echo 'x\c'` in
20931 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20932 *) ECHO_C='\c';;
20933 esac;;
20934*)
20935 ECHO_N='-n';;
d9898ee8 20936esac
20937
64ff59ba 20938if expr a : '\(a\)' >/dev/null 2>&1 &&
20939 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20940 as_expr=expr
20941else
20942 as_expr=false
20943fi
20944
20945rm -f conf$$ conf$$.exe conf$$.file
64ff59ba 20946if test -d conf$$.dir; then
20947 rm -f conf$$.dir/conf$$.file
20948else
20949 rm -f conf$$.dir
20950 mkdir conf$$.dir
20951fi
d9898ee8 20952echo >conf$$.file
20953if ln -s conf$$.file conf$$ 2>/dev/null; then
64ff59ba 20954 as_ln_s='ln -s'
20955 # ... but there are two gotchas:
20956 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20957 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20958 # In both cases, we have to default to `cp -p'.
20959 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20960 as_ln_s='cp -p'
d9898ee8 20961elif ln conf$$.file conf$$ 2>/dev/null; then
20962 as_ln_s=ln
20963else
20964 as_ln_s='cp -p'
20965fi
64ff59ba 20966rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20967rmdir conf$$.dir 2>/dev/null
d9898ee8 20968
20969if mkdir -p . 2>/dev/null; then
20970 as_mkdir_p=:
20971else
20972 test -d ./-p && rmdir ./-p
20973 as_mkdir_p=false
20974fi
20975
64ff59ba 20976if test -x / >/dev/null 2>&1; then
20977 as_test_x='test -x'
20978else
20979 if ls -dL / >/dev/null 2>&1; then
20980 as_ls_L_option=L
20981 else
20982 as_ls_L_option=
20983 fi
20984 as_test_x='
20985 eval sh -c '\''
20986 if test -d "$1"; then
20987 test -d "$1/.";
20988 else
20989 case $1 in
20990 -*)set "./$1";;
20991 esac;
20992 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20993 ???[sx]*):;;*)false;;esac;fi
20994 '\'' sh
20995 '
20996fi
20997as_executable_p=$as_test_x
d9898ee8 20998
20999# Sed expression to map a string onto a valid CPP name.
21000as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21001
21002# Sed expression to map a string onto a valid variable name.
21003as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21004
21005
d9898ee8 21006exec 6>&1
21007
64ff59ba 21008# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 21009# report actual input values of CONFIG_FILES etc. instead of their
64ff59ba 21010# values after options handling.
21011ac_log="
d9898ee8 21012This file was extended by libuserdb $as_me 0.10, which was
64ff59ba 21013generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 21014
21015 CONFIG_FILES = $CONFIG_FILES
21016 CONFIG_HEADERS = $CONFIG_HEADERS
21017 CONFIG_LINKS = $CONFIG_LINKS
21018 CONFIG_COMMANDS = $CONFIG_COMMANDS
21019 $ $0 $@
21020
64ff59ba 21021on `(hostname || uname -n) 2>/dev/null | sed 1q`
21022"
21023
d9898ee8 21024_ACEOF
21025
64ff59ba 21026cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 21027# Files that config.status was made for.
64ff59ba 21028config_files="$ac_config_files"
21029config_commands="$ac_config_commands"
d9898ee8 21030
64ff59ba 21031_ACEOF
d9898ee8 21032
21033cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21034ac_cs_usage="\
21035\`$as_me' instantiates files from templates according to the
21036current configuration.
21037
21038Usage: $0 [OPTIONS] [FILE]...
21039
21040 -h, --help print this help, then exit
64ff59ba 21041 -V, --version print version number and configuration settings, then exit
d9898ee8 21042 -q, --quiet do not print progress messages
21043 -d, --debug don't remove temporary files
21044 --recheck update $as_me by reconfiguring in the same conditions
21045 --file=FILE[:TEMPLATE]
21046 instantiate the configuration file FILE
21047
21048Configuration files:
21049$config_files
21050
21051Configuration commands:
21052$config_commands
21053
21054Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 21055
64ff59ba 21056_ACEOF
d9898ee8 21057cat >>$CONFIG_STATUS <<_ACEOF
21058ac_cs_version="\\
21059libuserdb config.status 0.10
64ff59ba 21060configured by $0, generated by GNU Autoconf 2.61,
21061 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 21062
64ff59ba 21063Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 21064This config.status script is free software; the Free Software Foundation
21065gives unlimited permission to copy, distribute and modify it."
64ff59ba 21066
21067ac_pwd='$ac_pwd'
21068srcdir='$srcdir'
21069INSTALL='$INSTALL'
21070MKDIR_P='$MKDIR_P'
d9898ee8 21071_ACEOF
21072
21073cat >>$CONFIG_STATUS <<\_ACEOF
21074# If no file are specified by the user, then we need to provide default
21075# value. By we need to know if files were specified by the user.
21076ac_need_defaults=:
21077while test $# != 0
21078do
21079 case $1 in
21080 --*=*)
64ff59ba 21081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21082 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 21083 ac_shift=:
21084 ;;
64ff59ba 21085 *)
d9898ee8 21086 ac_option=$1
21087 ac_optarg=$2
21088 ac_shift=shift
21089 ;;
d9898ee8 21090 esac
21091
21092 case $ac_option in
21093 # Handling of the options.
d9898ee8 21094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21095 ac_cs_recheck=: ;;
64ff59ba 21096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21097 echo "$ac_cs_version"; exit ;;
21098 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 21099 debug=: ;;
21100 --file | --fil | --fi | --f )
21101 $ac_shift
21102 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21103 ac_need_defaults=false;;
64ff59ba 21104 --he | --h | --help | --hel | -h )
21105 echo "$ac_cs_usage"; exit ;;
d9898ee8 21106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21108 ac_cs_silent=: ;;
21109
21110 # This is an error.
64ff59ba 21111 -*) { echo "$as_me: error: unrecognized option: $1
21112Try \`$0 --help' for more information." >&2
d9898ee8 21113 { (exit 1); exit 1; }; } ;;
21114
64ff59ba 21115 *) ac_config_targets="$ac_config_targets $1"
21116 ac_need_defaults=false ;;
d9898ee8 21117
21118 esac
21119 shift
21120done
21121
21122ac_configure_extra_args=
21123
21124if $ac_cs_silent; then
21125 exec 6>/dev/null
21126 ac_configure_extra_args="$ac_configure_extra_args --silent"
21127fi
21128
21129_ACEOF
21130cat >>$CONFIG_STATUS <<_ACEOF
21131if \$ac_cs_recheck; then
64ff59ba 21132 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21133 CONFIG_SHELL=$SHELL
21134 export CONFIG_SHELL
21135 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21136fi
21137
21138_ACEOF
64ff59ba 21139cat >>$CONFIG_STATUS <<\_ACEOF
21140exec 5>>config.log
21141{
21142 echo
21143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21144## Running $as_me. ##
21145_ASBOX
21146 echo "$ac_log"
21147} >&5
d9898ee8 21148
64ff59ba 21149_ACEOF
d9898ee8 21150cat >>$CONFIG_STATUS <<_ACEOF
21151#
64ff59ba 21152# INIT-COMMANDS
d9898ee8 21153#
d9898ee8 21154AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21155
21156_ACEOF
21157
d9898ee8 21158cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21159
21160# Handling of arguments.
d9898ee8 21161for ac_config_target in $ac_config_targets
21162do
64ff59ba 21163 case $ac_config_target in
21164 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21165 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21166 "userdb.pl") CONFIG_FILES="$CONFIG_FILES userdb.pl" ;;
21167 "makeuserdb") CONFIG_FILES="$CONFIG_FILES makeuserdb" ;;
21168 "pw2userdb") CONFIG_FILES="$CONFIG_FILES pw2userdb" ;;
21169 "vchkpw2userdb") CONFIG_FILES="$CONFIG_FILES vchkpw2userdb" ;;
21170
d9898ee8 21171 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21172echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21173 { (exit 1); exit 1; }; };;
21174 esac
21175done
21176
64ff59ba 21177
d9898ee8 21178# If the user did not use the arguments to specify the items to instantiate,
21179# then the envvar interface is used. Set only those that are not.
21180# We use the long form for the default assignment because of an extremely
21181# bizarre bug on SunOS 4.1.3.
21182if $ac_need_defaults; then
21183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21185fi
21186
21187# Have a temporary directory for convenience. Make it in the build tree
64ff59ba 21188# simply because there is no reason against having it here, and in addition,
d9898ee8 21189# creating and moving files from /tmp can sometimes cause problems.
64ff59ba 21190# Hook for its removal unless debugging.
21191# Note that there is a small window in which the directory will not be cleaned:
21192# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21193$debug ||
21194{
64ff59ba 21195 tmp=
21196 trap 'exit_status=$?
21197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21198' 0
d9898ee8 21199 trap '{ (exit 1); exit 1; }' 1 2 13 15
21200}
d9898ee8 21201# Create a (secure) tmp directory for tmp files.
21202
21203{
64ff59ba 21204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21205 test -n "$tmp" && test -d "$tmp"
21206} ||
21207{
64ff59ba 21208 tmp=./conf$$-$RANDOM
21209 (umask 077 && mkdir "$tmp")
d9898ee8 21210} ||
21211{
21212 echo "$me: cannot create a temporary directory in ." >&2
21213 { (exit 1); exit 1; }
21214}
21215
d9898ee8 21216#
64ff59ba 21217# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21218#
21219
21220# No need to generate the scripts if there are no CONFIG_FILES.
21221# This happens for instance when ./config.status config.h
64ff59ba 21222if test -n "$CONFIG_FILES"; then
d9898ee8 21223
21224_ACEOF
21225
64ff59ba 21226
21227
21228ac_delim='%!_!# '
21229for ac_last_try in false false false false false :; do
21230 cat >conf$$subs.sed <<_ACEOF
21231SHELL!$SHELL$ac_delim
21232PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21233PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21234PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21235PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21236PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21237PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21238exec_prefix!$exec_prefix$ac_delim
21239prefix!$prefix$ac_delim
21240program_transform_name!$program_transform_name$ac_delim
21241bindir!$bindir$ac_delim
21242sbindir!$sbindir$ac_delim
21243libexecdir!$libexecdir$ac_delim
21244datarootdir!$datarootdir$ac_delim
21245datadir!$datadir$ac_delim
21246sysconfdir!$sysconfdir$ac_delim
21247sharedstatedir!$sharedstatedir$ac_delim
21248localstatedir!$localstatedir$ac_delim
21249includedir!$includedir$ac_delim
21250oldincludedir!$oldincludedir$ac_delim
21251docdir!$docdir$ac_delim
21252infodir!$infodir$ac_delim
21253htmldir!$htmldir$ac_delim
21254dvidir!$dvidir$ac_delim
21255pdfdir!$pdfdir$ac_delim
21256psdir!$psdir$ac_delim
21257libdir!$libdir$ac_delim
21258localedir!$localedir$ac_delim
21259mandir!$mandir$ac_delim
21260DEFS!$DEFS$ac_delim
21261ECHO_C!$ECHO_C$ac_delim
21262ECHO_N!$ECHO_N$ac_delim
21263ECHO_T!$ECHO_T$ac_delim
21264LIBS!$LIBS$ac_delim
21265build_alias!$build_alias$ac_delim
21266host_alias!$host_alias$ac_delim
21267target_alias!$target_alias$ac_delim
21268INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21269INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21270INSTALL_DATA!$INSTALL_DATA$ac_delim
21271am__isrc!$am__isrc$ac_delim
21272CYGPATH_W!$CYGPATH_W$ac_delim
21273PACKAGE!$PACKAGE$ac_delim
21274VERSION!$VERSION$ac_delim
21275ACLOCAL!$ACLOCAL$ac_delim
21276AUTOCONF!$AUTOCONF$ac_delim
21277AUTOMAKE!$AUTOMAKE$ac_delim
21278AUTOHEADER!$AUTOHEADER$ac_delim
21279MAKEINFO!$MAKEINFO$ac_delim
21280install_sh!$install_sh$ac_delim
21281STRIP!$STRIP$ac_delim
21282INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21283mkdir_p!$mkdir_p$ac_delim
21284AWK!$AWK$ac_delim
21285SET_MAKE!$SET_MAKE$ac_delim
21286am__leading_dot!$am__leading_dot$ac_delim
21287AMTAR!$AMTAR$ac_delim
21288am__tar!$am__tar$ac_delim
21289am__untar!$am__untar$ac_delim
21290CC!$CC$ac_delim
21291CFLAGS!$CFLAGS$ac_delim
21292LDFLAGS!$LDFLAGS$ac_delim
21293CPPFLAGS!$CPPFLAGS$ac_delim
21294ac_ct_CC!$ac_ct_CC$ac_delim
21295EXEEXT!$EXEEXT$ac_delim
21296OBJEXT!$OBJEXT$ac_delim
21297DEPDIR!$DEPDIR$ac_delim
21298am__include!$am__include$ac_delim
21299am__quote!$am__quote$ac_delim
21300AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21301AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21302AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21303CCDEPMODE!$CCDEPMODE$ac_delim
21304am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21305am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21306LN_S!$LN_S$ac_delim
21307build!$build$ac_delim
21308build_cpu!$build_cpu$ac_delim
21309build_vendor!$build_vendor$ac_delim
21310build_os!$build_os$ac_delim
21311host!$host$ac_delim
21312host_cpu!$host_cpu$ac_delim
21313host_vendor!$host_vendor$ac_delim
21314host_os!$host_os$ac_delim
21315SED!$SED$ac_delim
21316GREP!$GREP$ac_delim
21317EGREP!$EGREP$ac_delim
21318ECHO!$ECHO$ac_delim
21319AR!$AR$ac_delim
21320RANLIB!$RANLIB$ac_delim
21321CPP!$CPP$ac_delim
21322CXX!$CXX$ac_delim
21323CXXFLAGS!$CXXFLAGS$ac_delim
21324ac_ct_CXX!$ac_ct_CXX$ac_delim
21325CXXDEPMODE!$CXXDEPMODE$ac_delim
21326am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21327am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21328_ACEOF
21329
21330 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21331 break
21332 elif $ac_last_try; then
21333 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21334echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21335 { (exit 1); exit 1; }; }
21336 else
21337 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21338 fi
64ff59ba 21339done
21340
21341ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21342if test -n "$ac_eof"; then
21343 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21344 ac_eof=`expr $ac_eof + 1`
21345fi
21346
21347cat >>$CONFIG_STATUS <<_ACEOF
21348cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21350_ACEOF
21351sed '
21352s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21353s/^/s,@/; s/!/@,|#_!!_#|/
21354:n
21355t n
21356s/'"$ac_delim"'$/,g/; t
21357s/$/\\/; p
21358N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21359' >>$CONFIG_STATUS <conf$$subs.sed
21360rm -f conf$$subs.sed
21361cat >>$CONFIG_STATUS <<_ACEOF
21362CEOF$ac_eof
21363_ACEOF
21364
d9898ee8 21365
64ff59ba 21366ac_delim='%!_!# '
21367for ac_last_try in false false false false false :; do
21368 cat >conf$$subs.sed <<_ACEOF
21369CXXCPP!$CXXCPP$ac_delim
21370F77!$F77$ac_delim
21371FFLAGS!$FFLAGS$ac_delim
21372ac_ct_F77!$ac_ct_F77$ac_delim
21373LIBTOOL!$LIBTOOL$ac_delim
21374PERL!$PERL$ac_delim
21375userdb!$userdb$ac_delim
21376USERDB!$USERDB$ac_delim
21377userdbtmpdir!$userdbtmpdir$ac_delim
21378tmpdir!$tmpdir$ac_delim
21379makedat!$makedat$ac_delim
21380MD5LIB!$MD5LIB$ac_delim
21381SHA1LIB!$SHA1LIB$ac_delim
21382HMACLIB!$HMACLIB$ac_delim
21383CRYPTLIBS!$CRYPTLIBS$ac_delim
21384HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21385HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21386LIBOBJS!$LIBOBJS$ac_delim
21387LTLIBOBJS!$LTLIBOBJS$ac_delim
d9898ee8 21388_ACEOF
64ff59ba 21389
21390 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
21391 break
21392 elif $ac_last_try; then
21393 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21394echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21395 { (exit 1); exit 1; }; }
21396 else
21397 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21398 fi
21399done
21400
21401ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21402if test -n "$ac_eof"; then
21403 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21404 ac_eof=`expr $ac_eof + 1`
21405fi
21406
21407cat >>$CONFIG_STATUS <<_ACEOF
21408cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21409/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21410_ACEOF
21411sed '
21412s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21413s/^/s,@/; s/!/@,|#_!!_#|/
21414:n
21415t n
21416s/'"$ac_delim"'$/,g/; t
21417s/$/\\/; p
21418N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21419' >>$CONFIG_STATUS <conf$$subs.sed
21420rm -f conf$$subs.sed
21421cat >>$CONFIG_STATUS <<_ACEOF
21422:end
21423s/|#_!!_#|//g
21424CEOF$ac_eof
21425_ACEOF
21426
21427
21428# VPATH may cause trouble with some makes, so we remove $(srcdir),
21429# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21430# trailing colons and then remove the whole line if VPATH becomes empty
21431# (actually we leave an empty line to preserve line numbers).
21432if test "x$srcdir" = x.; then
21433 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21434s/:*\$(srcdir):*/:/
21435s/:*\${srcdir}:*/:/
21436s/:*@srcdir@:*/:/
21437s/^\([^=]*=[ ]*\):*/\1/
21438s/:*$//
21439s/^[^=]*=[ ]*$//
21440}'
21441fi
21442
d9898ee8 21443cat >>$CONFIG_STATUS <<\_ACEOF
64ff59ba 21444fi # test -n "$CONFIG_FILES"
21445
21446
21447for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
21448do
21449 case $ac_tag in
21450 :[FHLC]) ac_mode=$ac_tag; continue;;
21451 esac
21452 case $ac_mode$ac_tag in
21453 :[FHL]*:*);;
21454 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21455echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21456 { (exit 1); exit 1; }; };;
21457 :[FH]-) ac_tag=-:-;;
21458 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21459 esac
21460 ac_save_IFS=$IFS
21461 IFS=:
21462 set x $ac_tag
21463 IFS=$ac_save_IFS
21464 shift
21465 ac_file=$1
21466 shift
21467
21468 case $ac_mode in
21469 :L) ac_source=$1;;
21470 :[FH])
21471 ac_file_inputs=
21472 for ac_f
21473 do
21474 case $ac_f in
21475 -) ac_f="$tmp/stdin";;
21476 *) # Look for the file first in the build tree, then in the source tree
21477 # (if the path is not absolute). The absolute path cannot be DOS-style,
21478 # because $ac_f cannot contain `:'.
21479 test -f "$ac_f" ||
21480 case $ac_f in
21481 [\\/$]*) false;;
21482 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21483 esac ||
21484 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21485echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21486 { (exit 1); exit 1; }; };;
21487 esac
21488 ac_file_inputs="$ac_file_inputs $ac_f"
21489 done
21490
21491 # Let's still pretend it is `configure' which instantiates (i.e., don't
21492 # use $as_me), people would be surprised to read:
21493 # /* config.h. Generated by config.status. */
21494 configure_input="Generated from "`IFS=:
21495 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21496 if test x"$ac_file" != x-; then
21497 configure_input="$ac_file. $configure_input"
21498 { echo "$as_me:$LINENO: creating $ac_file" >&5
21499echo "$as_me: creating $ac_file" >&6;}
21500 fi
21501
21502 case $ac_tag in
21503 *:-:* | *:-) cat >"$tmp/stdin";;
21504 esac
21505 ;;
d9898ee8 21506 esac
21507
64ff59ba 21508 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21509$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21510 X"$ac_file" : 'X\(//\)[^/]' \| \
21511 X"$ac_file" : 'X\(//\)$' \| \
64ff59ba 21512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21513echo X"$ac_file" |
64ff59ba 21514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21515 s//\1/
21516 q
21517 }
21518 /^X\(\/\/\)[^/].*/{
21519 s//\1/
21520 q
21521 }
21522 /^X\(\/\/\)$/{
21523 s//\1/
21524 q
21525 }
21526 /^X\(\/\).*/{
21527 s//\1/
21528 q
21529 }
21530 s/.*/./; q'`
21531 { as_dir="$ac_dir"
21532 case $as_dir in #(
21533 -*) as_dir=./$as_dir;;
21534 esac
21535 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21536 as_dirs=
64ff59ba 21537 while :; do
21538 case $as_dir in #(
21539 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21540 *) as_qdir=$as_dir;;
21541 esac
21542 as_dirs="'$as_qdir' $as_dirs"
21543 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21544$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21545 X"$as_dir" : 'X\(//\)[^/]' \| \
21546 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 21547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21548echo X"$as_dir" |
64ff59ba 21549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21550 s//\1/
21551 q
21552 }
21553 /^X\(\/\/\)[^/].*/{
21554 s//\1/
21555 q
21556 }
21557 /^X\(\/\/\)$/{
21558 s//\1/
21559 q
21560 }
21561 /^X\(\/\).*/{
21562 s//\1/
21563 q
21564 }
21565 s/.*/./; q'`
21566 test -d "$as_dir" && break
d9898ee8 21567 done
64ff59ba 21568 test -z "$as_dirs" || eval "mkdir $as_dirs"
21569 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21570echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21571 { (exit 1); exit 1; }; }; }
d9898ee8 21572 ac_builddir=.
21573
64ff59ba 21574case "$ac_dir" in
21575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21576*)
d9898ee8 21577 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
64ff59ba 21578 # A ".." for each directory in $ac_dir_suffix.
21579 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21580 case $ac_top_builddir_sub in
21581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21583 esac ;;
21584esac
21585ac_abs_top_builddir=$ac_pwd
21586ac_abs_builddir=$ac_pwd$ac_dir_suffix
21587# for backward compatibility:
21588ac_top_builddir=$ac_top_build_prefix
d9898ee8 21589
21590case $srcdir in
64ff59ba 21591 .) # We are building in place.
d9898ee8 21592 ac_srcdir=.
64ff59ba 21593 ac_top_srcdir=$ac_top_builddir_sub
21594 ac_abs_top_srcdir=$ac_pwd ;;
21595 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 21596 ac_srcdir=$srcdir$ac_dir_suffix;
64ff59ba 21597 ac_top_srcdir=$srcdir
21598 ac_abs_top_srcdir=$srcdir ;;
21599 *) # Relative name.
21600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21601 ac_top_srcdir=$ac_top_build_prefix$srcdir
21602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 21603esac
64ff59ba 21604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21605
d9898ee8 21606
64ff59ba 21607 case $ac_mode in
21608 :F)
21609 #
21610 # CONFIG_FILE
21611 #
d9898ee8 21612
21613 case $INSTALL in
21614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
64ff59ba 21615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21616 esac
21617 ac_MKDIR_P=$MKDIR_P
21618 case $MKDIR_P in
21619 [\\/$]* | ?:[\\/]* ) ;;
21620 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
d9898ee8 21621 esac
64ff59ba 21622_ACEOF
d9898ee8 21623
64ff59ba 21624cat >>$CONFIG_STATUS <<\_ACEOF
21625# If the template does not know about datarootdir, expand it.
21626# FIXME: This hack should be removed a few years after 2.60.
21627ac_datarootdir_hack=; ac_datarootdir_seen=
21628
21629case `sed -n '/datarootdir/ {
21630 p
21631 q
21632}
21633/@datadir@/p
21634/@docdir@/p
21635/@infodir@/p
21636/@localedir@/p
21637/@mandir@/p
21638' $ac_file_inputs` in
21639*datarootdir*) ac_datarootdir_seen=yes;;
21640*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21641 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21642echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
d9898ee8 21643_ACEOF
64ff59ba 21644cat >>$CONFIG_STATUS <<_ACEOF
21645 ac_datarootdir_hack='
21646 s&@datadir@&$datadir&g
21647 s&@docdir@&$docdir&g
21648 s&@infodir@&$infodir&g
21649 s&@localedir@&$localedir&g
21650 s&@mandir@&$mandir&g
21651 s&\\\${datarootdir}&$datarootdir&g' ;;
21652esac
21653_ACEOF
21654
21655# Neutralize VPATH when `$srcdir' = `.'.
21656# Shell code in configure.ac might set extrasub.
21657# FIXME: do we really want to maintain this feature?
d9898ee8 21658cat >>$CONFIG_STATUS <<_ACEOF
21659 sed "$ac_vpsub
21660$extrasub
21661_ACEOF
21662cat >>$CONFIG_STATUS <<\_ACEOF
21663:t
21664/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
64ff59ba 21665s&@configure_input@&$configure_input&;t t
21666s&@top_builddir@&$ac_top_builddir_sub&;t t
21667s&@srcdir@&$ac_srcdir&;t t
21668s&@abs_srcdir@&$ac_abs_srcdir&;t t
21669s&@top_srcdir@&$ac_top_srcdir&;t t
21670s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21671s&@builddir@&$ac_builddir&;t t
21672s&@abs_builddir@&$ac_abs_builddir&;t t
21673s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21674s&@INSTALL@&$ac_INSTALL&;t t
21675s&@MKDIR_P@&$ac_MKDIR_P&;t t
21676$ac_datarootdir_hack
21677" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21678
21679test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21680 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21681 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21682 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21683which seems to be undefined. Please make sure it is defined." >&5
21684echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21685which seems to be undefined. Please make sure it is defined." >&2;}
21686
21687 rm -f "$tmp/stdin"
21688 case $ac_file in
21689 -) cat "$tmp/out"; rm -f "$tmp/out";;
21690 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21691 esac
21692 ;;
d9898ee8 21693
d9898ee8 21694
64ff59ba 21695 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21696echo "$as_me: executing $ac_file commands" >&6;}
21697 ;;
21698 esac
d9898ee8 21699
21700
64ff59ba 21701 case $ac_file$ac_mode in
21702 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21703 # Strip MF so we end up with the name of the file.
21704 mf=`echo "$mf" | sed -e 's/:.*$//'`
21705 # Check whether this is an Automake generated Makefile or not.
21706 # We used to match only the files named `Makefile.in', but
21707 # some people rename them; so instead we look at the file content.
21708 # Grep'ing the first line is not enough: some people post-process
21709 # each Makefile.in and add a new line on top of each file to say so.
64ff59ba 21710 # Grep'ing the whole file is not good either: AIX grep has a line
21711 # limit of 2048, but all sed's we know have understand at least 4000.
21712 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
21713 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21714$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21715 X"$mf" : 'X\(//\)[^/]' \| \
21716 X"$mf" : 'X\(//\)$' \| \
64ff59ba 21717 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21718echo X"$mf" |
64ff59ba 21719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21720 s//\1/
21721 q
21722 }
21723 /^X\(\/\/\)[^/].*/{
21724 s//\1/
21725 q
21726 }
21727 /^X\(\/\/\)$/{
21728 s//\1/
21729 q
21730 }
21731 /^X\(\/\).*/{
21732 s//\1/
21733 q
21734 }
21735 s/.*/./; q'`
d9898ee8 21736 else
21737 continue
21738 fi
21739 # Extract the definition of DEPDIR, am__include, and am__quote
21740 # from the Makefile without running `make'.
21741 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21742 test -z "$DEPDIR" && continue
21743 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21744 test -z "am__include" && continue
21745 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21746 # When using ansi2knr, U may be empty or an underscore; expand it
21747 U=`sed -n 's/^U = //p' < "$mf"`
21748 # Find all dependency output files, they are included files with
21749 # $(DEPDIR) in their names. We invoke sed twice because it is the
21750 # simplest approach to changing $(DEPDIR) to its actual value in the
21751 # expansion.
21752 for file in `sed -n "
21753 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21754 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21755 # Make sure the directory exists.
21756 test -f "$dirpart/$file" && continue
64ff59ba 21757 fdir=`$as_dirname -- "$file" ||
d9898ee8 21758$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21759 X"$file" : 'X\(//\)[^/]' \| \
21760 X"$file" : 'X\(//\)$' \| \
64ff59ba 21761 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21762echo X"$file" |
64ff59ba 21763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21764 s//\1/
21765 q
21766 }
21767 /^X\(\/\/\)[^/].*/{
21768 s//\1/
21769 q
21770 }
21771 /^X\(\/\/\)$/{
21772 s//\1/
21773 q
21774 }
21775 /^X\(\/\).*/{
21776 s//\1/
21777 q
21778 }
21779 s/.*/./; q'`
21780 { as_dir=$dirpart/$fdir
21781 case $as_dir in #(
21782 -*) as_dir=./$as_dir;;
21783 esac
21784 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21785 as_dirs=
64ff59ba 21786 while :; do
21787 case $as_dir in #(
21788 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21789 *) as_qdir=$as_dir;;
21790 esac
21791 as_dirs="'$as_qdir' $as_dirs"
21792 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21793$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21794 X"$as_dir" : 'X\(//\)[^/]' \| \
21795 X"$as_dir" : 'X\(//\)$' \| \
64ff59ba 21796 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21797echo X"$as_dir" |
64ff59ba 21798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21799 s//\1/
21800 q
21801 }
21802 /^X\(\/\/\)[^/].*/{
21803 s//\1/
21804 q
21805 }
21806 /^X\(\/\/\)$/{
21807 s//\1/
21808 q
21809 }
21810 /^X\(\/\).*/{
21811 s//\1/
21812 q
21813 }
21814 s/.*/./; q'`
21815 test -d "$as_dir" && break
d9898ee8 21816 done
64ff59ba 21817 test -z "$as_dirs" || eval "mkdir $as_dirs"
21818 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21819echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21820 { (exit 1); exit 1; }; }; }
d9898ee8 21821 # echo "creating $dirpart/$file"
21822 echo '# dummy' > "$dirpart/$file"
21823 done
21824done
21825 ;;
64ff59ba 21826
d9898ee8 21827 esac
64ff59ba 21828done # for ac_tag
d9898ee8 21829
d9898ee8 21830
21831{ (exit 0); exit 0; }
21832_ACEOF
21833chmod +x $CONFIG_STATUS
21834ac_clean_files=$ac_clean_files_save
21835
21836
21837# configure is writing to config.log, and then calls config.status.
21838# config.status does its own redirection, appending to config.log.
21839# Unfortunately, on DOS this fails, as config.log is still kept open
21840# by configure, so config.status won't be able to write to it; its
21841# output is simply discarded. So we exec the FD to /dev/null,
21842# effectively closing config.log, so it can be properly (re)opened and
21843# appended to by config.status. When coming back to configure, we
21844# need to make the FD available again.
21845if test "$no_create" != yes; then
21846 ac_cs_success=:
21847 ac_config_status_args=
21848 test "$silent" = yes &&
21849 ac_config_status_args="$ac_config_status_args --quiet"
21850 exec 5>/dev/null
21851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21852 exec 5>>config.log
21853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21854 # would make configure fail if this is the last instruction.
21855 $ac_cs_success || { (exit 1); exit 1; }
21856fi
21857