Imported upstream version 0.61.0
[hcoop/debian/courier-authlib.git] / rfc822 / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
dd184caf 3# Generated by GNU Autoconf 2.61 for rfc822lib 0.12.
d9898ee8 4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
d9898ee8 53fi
d9898ee8 54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
61
62
dd184caf 63# IFS
64# We need space, tab and new line, in precisely that order. Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94fi
95
d9898ee8 96# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
d9898ee8 100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
dd184caf 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 114 fi
115done
116
117# Required to use basename.
dd184caf 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 120 as_expr=expr
121else
122 as_expr=false
123fi
124
dd184caf 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
dd184caf 133as_me=`$as_basename -- "$0" ||
d9898ee8 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
dd184caf 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 137echo X/"$0" |
dd184caf 138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
d9898ee8 151
dd184caf 152# CDPATH.
153$as_unset CDPATH
d9898ee8 154
d9898ee8 155
dd184caf 156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
d9898ee8 161fi
162
dd184caf 163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
d9898ee8 179
dd184caf 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
d9898ee8 187
dd184caf 188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220 :
221else
222 as_candidate_shells=
d9898ee8 223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
dd184caf 228 case $as_dir in
d9898ee8 229 /*)
dd184caf 230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234done
235IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
d9898ee8 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
d9898ee8 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337 break
338fi
339
340fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421}
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
d9898ee8 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
d9898ee8 444 sed '
dd184caf 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
d9898ee8 449 N
dd184caf 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 452 t loop
dd184caf 453 s/-\n.*//
d9898ee8 454 ' >$as_me.lineno &&
dd184caf 455 chmod +x "$as_me.lineno" ||
d9898ee8 456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
dd184caf 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
d9898ee8 463 # Exit status is that of the last command.
464 exit
465}
466
467
dd184caf 468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481*)
482 ECHO_N='-n';;
d9898ee8 483esac
484
dd184caf 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
dd184caf 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
d9898ee8 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 507 as_ln_s='cp -p'
d9898ee8 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
dd184caf 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
d9898ee8 515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
dd184caf 523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543fi
544as_executable_p=$as_test_x
d9898ee8 545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
d9898ee8 553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562 ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
568 shift
569elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
571 :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
574 :
575else
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
582 shift
583 cat <<EOF
584$*
585EOF
586 exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601 then
602 break
603 fi
604 done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 :
611else
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
615 #
616 # So, first we look for a working echo in the user's PATH.
617
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
620 IFS="$lt_save_ifs"
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
625 echo="$dir/echo"
626 break
627 fi
628 done
629 IFS="$lt_save_ifs"
630
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
637 echo='print -r'
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
644 export CONFIG_SHELL
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 else
647 # Try using printf.
648 echo='printf %s\n'
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 # Cool, printf works
653 :
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 export CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
661 export SHELL
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
668 else
669 # maybe with a smaller string...
670 prev=:
671
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674 then
675 break
676 fi
677 prev="$cmd"
678 done
679
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 else
685 # Oops. We lost completely, so just stick with echo.
686 echo=echo
687 fi
688 fi
689 fi
690 fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
dd184caf 708exec 7<&0 </dev/null 6>&1
709
d9898ee8 710# Name of the host.
711# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712# so uname gets run too.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
d9898ee8 715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
dd184caf 719ac_clean_files=
d9898ee8 720ac_config_libobj_dir=.
dd184caf 721LIBOBJS=
d9898ee8 722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
d9898ee8 728# Identity of this package.
729PACKAGE_NAME='rfc822lib'
730PACKAGE_TARNAME='rfc822lib'
731PACKAGE_VERSION='0.12'
732PACKAGE_STRING='rfc822lib 0.12'
733PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
734
735ac_unique_file="rfc822.c"
736# Factoring default headers for most tests.
737ac_includes_default="\
738#include <stdio.h>
dd184caf 739#ifdef HAVE_SYS_TYPES_H
d9898ee8 740# include <sys/types.h>
741#endif
dd184caf 742#ifdef HAVE_SYS_STAT_H
d9898ee8 743# include <sys/stat.h>
744#endif
dd184caf 745#ifdef STDC_HEADERS
d9898ee8 746# include <stdlib.h>
747# include <stddef.h>
748#else
dd184caf 749# ifdef HAVE_STDLIB_H
d9898ee8 750# include <stdlib.h>
751# endif
752#endif
dd184caf 753#ifdef HAVE_STRING_H
754# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 755# include <memory.h>
756# endif
757# include <string.h>
758#endif
dd184caf 759#ifdef HAVE_STRINGS_H
d9898ee8 760# include <strings.h>
761#endif
dd184caf 762#ifdef HAVE_INTTYPES_H
d9898ee8 763# include <inttypes.h>
d9898ee8 764#endif
dd184caf 765#ifdef HAVE_STDINT_H
766# include <stdint.h>
767#endif
768#ifdef HAVE_UNISTD_H
d9898ee8 769# include <unistd.h>
770#endif"
771
dd184caf 772ac_subst_vars='SHELL
773PATH_SEPARATOR
774PACKAGE_NAME
775PACKAGE_TARNAME
776PACKAGE_VERSION
777PACKAGE_STRING
778PACKAGE_BUGREPORT
779exec_prefix
780prefix
781program_transform_name
782bindir
783sbindir
784libexecdir
785datarootdir
786datadir
787sysconfdir
788sharedstatedir
789localstatedir
790includedir
791oldincludedir
792docdir
793infodir
794htmldir
795dvidir
796pdfdir
797psdir
798libdir
799localedir
800mandir
801DEFS
802ECHO_C
803ECHO_N
804ECHO_T
805LIBS
806build_alias
807host_alias
808target_alias
809INSTALL_PROGRAM
810INSTALL_SCRIPT
811INSTALL_DATA
812am__isrc
813CYGPATH_W
814PACKAGE
815VERSION
816ACLOCAL
817AUTOCONF
818AUTOMAKE
819AUTOHEADER
820MAKEINFO
821install_sh
822STRIP
823INSTALL_STRIP_PROGRAM
824mkdir_p
825AWK
826SET_MAKE
827am__leading_dot
828AMTAR
829am__tar
830am__untar
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848GREP
849EGREP
850build
851build_cpu
852build_vendor
853build_os
854host
855host_cpu
856host_vendor
857host_os
858SED
859LN_S
860ECHO
861AR
862RANLIB
863CXX
864CXXFLAGS
865ac_ct_CXX
866CXXDEPMODE
867am__fastdepCXX_TRUE
868am__fastdepCXX_FALSE
869CXXCPP
870F77
871FFLAGS
872ac_ct_F77
873LIBTOOL
874HAVE_SGML_TRUE
875HAVE_SGML_FALSE
876LIBOBJS
877LTLIBOBJS'
d9898ee8 878ac_subst_files=''
dd184caf 879 ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888CXX
889CXXFLAGS
890CCC
891CXXCPP
892F77
893FFLAGS'
894
d9898ee8 895
896# Initialize some variables set by options.
897ac_init_help=
898ac_init_version=false
899# The variables have the same names as the options, with
900# dashes changed to underlines.
901cache_file=/dev/null
902exec_prefix=NONE
903no_create=
904no_recursion=
905prefix=NONE
906program_prefix=NONE
907program_suffix=NONE
908program_transform_name=s,x,x,
909silent=
910site=
911srcdir=
912verbose=
913x_includes=NONE
914x_libraries=NONE
915
916# Installation directory options.
917# These are left unexpanded so users can "make install exec_prefix=/foo"
918# and all the variables that are supposed to be based on exec_prefix
919# by default will actually change.
920# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 921# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 922bindir='${exec_prefix}/bin'
923sbindir='${exec_prefix}/sbin'
924libexecdir='${exec_prefix}/libexec'
dd184caf 925datarootdir='${prefix}/share'
926datadir='${datarootdir}'
d9898ee8 927sysconfdir='${prefix}/etc'
928sharedstatedir='${prefix}/com'
929localstatedir='${prefix}/var'
d9898ee8 930includedir='${prefix}/include'
931oldincludedir='/usr/include'
dd184caf 932docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933infodir='${datarootdir}/info'
934htmldir='${docdir}'
935dvidir='${docdir}'
936pdfdir='${docdir}'
937psdir='${docdir}'
938libdir='${exec_prefix}/lib'
939localedir='${datarootdir}/locale'
940mandir='${datarootdir}/man'
d9898ee8 941
942ac_prev=
dd184caf 943ac_dashdash=
d9898ee8 944for ac_option
945do
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
dd184caf 948 eval $ac_prev=\$ac_option
d9898ee8 949 ac_prev=
950 continue
951 fi
952
dd184caf 953 case $ac_option in
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 *) ac_optarg=yes ;;
956 esac
d9898ee8 957
958 # Accept the important Cygnus configure options, so we can diagnose typos.
959
dd184caf 960 case $ac_dashdash$ac_option in
961 --)
962 ac_dashdash=yes ;;
d9898ee8 963
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
965 ac_prev=bindir ;;
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
967 bindir=$ac_optarg ;;
968
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
973
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
980
981 --config-cache | -C)
982 cache_file=config.cache ;;
983
dd184caf 984 -datadir | --datadir | --datadi | --datad)
d9898ee8 985 ac_prev=datadir ;;
dd184caf 986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 987 datadir=$ac_optarg ;;
988
dd184caf 989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
995
d9898ee8 996 -disable-* | --disable-*)
997 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
dd184caf 999 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1000 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1001 { (exit 1); exit 1; }; }
dd184caf 1002 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1003 eval enable_$ac_feature=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
d9898ee8 1014
1015 -enable-* | --enable-*)
1016 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
dd184caf 1018 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1019 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020 { (exit 1); exit 1; }; }
dd184caf 1021 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022 eval enable_$ac_feature=\$ac_optarg ;;
d9898ee8 1023
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1032
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1036
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1043
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1048
dd184caf 1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1054
d9898ee8 1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1061
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1066
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1071
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1078
dd184caf 1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1083
d9898ee8 1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1085 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1089 localstatedir=$ac_optarg ;;
1090
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1095
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1099
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1103
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1107
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1116
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1121
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1128
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1135
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1152
dd184caf 1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1157
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1162
d9898ee8 1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1166
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1172
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1183
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1188
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1193
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1200
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1205
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1208
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1211
1212 -with-* | --with-*)
1213 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
dd184caf 1215 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1216 { echo "$as_me: error: invalid package name: $ac_package" >&2
1217 { (exit 1); exit 1; }; }
dd184caf 1218 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219 eval with_$ac_package=\$ac_optarg ;;
d9898ee8 1220
1221 -without-* | --without-*)
1222 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
dd184caf 1224 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
d9898ee8 1225 { echo "$as_me: error: invalid package name: $ac_package" >&2
1226 { (exit 1); exit 1; }; }
dd184caf 1227 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1228 eval with_$ac_package=no ;;
d9898ee8 1229
1230 --x)
1231 # Obsolete; use --with-x.
1232 with_x=yes ;;
1233
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1240
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1247
1248 -*) { echo "$as_me: error: unrecognized option: $ac_option
1249Try \`$0 --help' for more information." >&2
1250 { (exit 1); exit 1; }; }
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1257 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1258 { (exit 1); exit 1; }; }
dd184caf 1259 eval $ac_envvar=\$ac_optarg
d9898ee8 1260 export $ac_envvar ;;
1261
1262 *)
1263 # FIXME: should be removed in autoconf 3.0.
1264 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1268 ;;
1269
1270 esac
1271done
1272
1273if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 { echo "$as_me: error: missing argument to $ac_option" >&2
1276 { (exit 1); exit 1; }; }
1277fi
1278
dd184caf 1279# Be sure to have absolute directory names.
1280for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1281 datadir sysconfdir sharedstatedir localstatedir includedir \
1282 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1283 libdir localedir mandir
d9898ee8 1284do
dd184caf 1285 eval ac_val=\$$ac_var
d9898ee8 1286 case $ac_val in
dd184caf 1287 [\\/$]* | ?:[\\/]* ) continue;;
1288 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1289 esac
dd184caf 1290 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1291 { (exit 1); exit 1; }; }
d9898ee8 1292done
1293
1294# There might be people who depend on the old broken behavior: `$host'
1295# used to hold the argument of --host etc.
1296# FIXME: To remove some day.
1297build=$build_alias
1298host=$host_alias
1299target=$target_alias
1300
1301# FIXME: To remove some day.
1302if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1306 If a cross compiler is detected then cross compile mode will be used." >&2
1307 elif test "x$build_alias" != "x$host_alias"; then
1308 cross_compiling=yes
1309 fi
1310fi
1311
1312ac_tool_prefix=
1313test -n "$host_alias" && ac_tool_prefix=$host_alias-
1314
1315test "$silent" = yes && exec 6>/dev/null
1316
1317
dd184caf 1318ac_pwd=`pwd` && test -n "$ac_pwd" &&
1319ac_ls_di=`ls -di .` &&
1320ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1321 { echo "$as_me: error: Working directory cannot be determined" >&2
1322 { (exit 1); exit 1; }; }
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324 { echo "$as_me: error: pwd does not report name of working directory" >&2
1325 { (exit 1); exit 1; }; }
1326
1327
d9898ee8 1328# Find the source files, if location was not specified.
1329if test -z "$srcdir"; then
1330 ac_srcdir_defaulted=yes
dd184caf 1331 # Try the directory containing this script, then the parent directory.
1332 ac_confdir=`$as_dirname -- "$0" ||
d9898ee8 1333$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1334 X"$0" : 'X\(//\)[^/]' \| \
1335 X"$0" : 'X\(//\)$' \| \
dd184caf 1336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 1337echo X"$0" |
dd184caf 1338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)[^/].*/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\).*/{
1351 s//\1/
1352 q
1353 }
1354 s/.*/./; q'`
d9898ee8 1355 srcdir=$ac_confdir
dd184caf 1356 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1357 srcdir=..
1358 fi
1359else
1360 ac_srcdir_defaulted=no
1361fi
dd184caf 1362if test ! -r "$srcdir/$ac_unique_file"; then
1363 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1364 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1365 { (exit 1); exit 1; }; }
d9898ee8 1366fi
dd184caf 1367ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
d9898ee8 1370 { (exit 1); exit 1; }; }
dd184caf 1371 pwd)`
1372# When building in place, set srcdir=.
1373if test "$ac_abs_confdir" = "$ac_pwd"; then
1374 srcdir=.
1375fi
1376# Remove unnecessary trailing slashes from srcdir.
1377# Double slashes in file names in object file debugging info
1378# mess up M-x gdb in Emacs.
1379case $srcdir in
1380*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1381esac
1382for ac_var in $ac_precious_vars; do
1383 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1384 eval ac_env_${ac_var}_value=\$${ac_var}
1385 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1387done
d9898ee8 1388
1389#
1390# Report the --help message.
1391#
1392if test "$ac_init_help" = "long"; then
1393 # Omit some internal or obsolete options to make the list less imposing.
1394 # This message is too long to be a string in the A/UX 3.1 sh.
1395 cat <<_ACEOF
1396\`configure' configures rfc822lib 0.12 to adapt to many kinds of systems.
1397
1398Usage: $0 [OPTION]... [VAR=VALUE]...
1399
1400To assign environment variables (e.g., CC, CFLAGS...), specify them as
1401VAR=VALUE. See below for descriptions of some of the useful variables.
1402
1403Defaults for the options are specified in brackets.
1404
1405Configuration:
1406 -h, --help display this help and exit
1407 --help=short display options specific to this package
1408 --help=recursive display the short help of all the included packages
1409 -V, --version display version information and exit
1410 -q, --quiet, --silent do not print \`checking...' messages
1411 --cache-file=FILE cache test results in FILE [disabled]
1412 -C, --config-cache alias for \`--cache-file=config.cache'
1413 -n, --no-create do not create output files
1414 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415
d9898ee8 1416Installation directories:
1417 --prefix=PREFIX install architecture-independent files in PREFIX
1418 [$ac_default_prefix]
1419 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1420 [PREFIX]
1421
1422By default, \`make install' will install all the files in
1423\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1424an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1425for instance \`--prefix=\$HOME'.
1426
1427For better control, use the options below.
1428
1429Fine tuning of the installation directories:
1430 --bindir=DIR user executables [EPREFIX/bin]
1431 --sbindir=DIR system admin executables [EPREFIX/sbin]
1432 --libexecdir=DIR program executables [EPREFIX/libexec]
d9898ee8 1433 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1434 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1435 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1436 --libdir=DIR object code libraries [EPREFIX/lib]
1437 --includedir=DIR C header files [PREFIX/include]
1438 --oldincludedir=DIR C header files for non-gcc [/usr/include]
dd184caf 1439 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1440 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1441 --infodir=DIR info documentation [DATAROOTDIR/info]
1442 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1443 --mandir=DIR man documentation [DATAROOTDIR/man]
1444 --docdir=DIR documentation root [DATAROOTDIR/doc/rfc822lib]
1445 --htmldir=DIR html documentation [DOCDIR]
1446 --dvidir=DIR dvi documentation [DOCDIR]
1447 --pdfdir=DIR pdf documentation [DOCDIR]
1448 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1449_ACEOF
1450
1451 cat <<\_ACEOF
1452
1453Program names:
1454 --program-prefix=PREFIX prepend PREFIX to installed program names
1455 --program-suffix=SUFFIX append SUFFIX to installed program names
1456 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1457
1458System types:
1459 --build=BUILD configure for building on BUILD [guessed]
1460 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465 case $ac_init_help in
1466 short | recursive ) echo "Configuration of rfc822lib 0.12:";;
1467 esac
1468 cat <<\_ACEOF
1469
1470Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --disable-dependency-tracking speeds up one-time build
1474 --enable-dependency-tracking do not reject slow dependency extractors
dd184caf 1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
dd184caf 1487 --with-tags[=TAGS] include additional configurations [automatic]
d9898ee8 1488
1489Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
dd184caf 1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
d9898ee8 1497 CPP C preprocessor
1498 CXX C++ compiler command
1499 CXXFLAGS C++ compiler flags
1500 CXXCPP C++ preprocessor
1501 F77 Fortran 77 compiler command
1502 FFLAGS Fortran 77 compiler flags
1503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
1507Report bugs to <courier-users@lists.sourceforge.net>.
1508_ACEOF
dd184caf 1509ac_status=$?
d9898ee8 1510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
d9898ee8 1514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
dd184caf 1515 test -d "$ac_dir" || continue
d9898ee8 1516 ac_builddir=.
1517
dd184caf 1518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
d9898ee8 1521 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 1522 # A ".." for each directory in $ac_dir_suffix.
1523 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
d9898ee8 1533
1534case $srcdir in
dd184caf 1535 .) # We are building in place.
d9898ee8 1536 ac_srcdir=.
dd184caf 1537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1540 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1547esac
dd184caf 1548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1558 else
1559 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1562 done
1563fi
1564
dd184caf 1565test -n "$ac_init_help" && exit $ac_status
d9898ee8 1566if $ac_init_version; then
1567 cat <<\_ACEOF
1568rfc822lib configure 0.12
dd184caf 1569generated by GNU Autoconf 2.61
d9898ee8 1570
dd184caf 1571Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
d9898ee8 1573This configure script is free software; the Free Software Foundation
1574gives unlimited permission to copy, distribute and modify it.
1575_ACEOF
dd184caf 1576 exit
d9898ee8 1577fi
dd184caf 1578cat >config.log <<_ACEOF
d9898ee8 1579This file contains any messages produced by compilers while
1580running configure, to aid debugging if configure makes a mistake.
1581
1582It was created by rfc822lib $as_me 0.12, which was
dd184caf 1583generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 1584
1585 $ $0 $@
1586
1587_ACEOF
dd184caf 1588exec 5>>config.log
d9898ee8 1589{
1590cat <<_ASUNAME
1591## --------- ##
1592## Platform. ##
1593## --------- ##
1594
1595hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603
1604/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1605/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1606/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1607/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1608/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1609/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1610/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611
1612_ASUNAME
1613
1614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615for as_dir in $PATH
1616do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 echo "PATH: $as_dir"
1620done
dd184caf 1621IFS=$as_save_IFS
d9898ee8 1622
1623} >&5
1624
1625cat >&5 <<_ACEOF
1626
1627
1628## ----------- ##
1629## Core tests. ##
1630## ----------- ##
1631
1632_ACEOF
1633
1634
1635# Keep a trace of the command line.
1636# Strip out --no-create and --no-recursion so they do not pile up.
1637# Strip out --silent because we don't want to record it for future runs.
1638# Also quote any args containing shell meta-characters.
1639# Make two passes to allow for proper duplicate-argument suppression.
1640ac_configure_args=
1641ac_configure_args0=
1642ac_configure_args1=
d9898ee8 1643ac_must_keep_next=false
1644for ac_pass in 1 2
1645do
1646 for ac_arg
1647 do
1648 case $ac_arg in
1649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651 | -silent | --silent | --silen | --sile | --sil)
1652 continue ;;
dd184caf 1653 *\'*)
d9898ee8 1654 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655 esac
1656 case $ac_pass in
1657 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658 2)
1659 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660 if test $ac_must_keep_next = true; then
1661 ac_must_keep_next=false # Got value, back to normal.
1662 else
1663 case $ac_arg in
1664 *=* | --config-cache | -C | -disable-* | --disable-* \
1665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667 | -with-* | --with-* | -without-* | --without-* | --x)
1668 case "$ac_configure_args0 " in
1669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670 esac
1671 ;;
1672 -* ) ac_must_keep_next=true ;;
1673 esac
1674 fi
dd184caf 1675 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1676 ;;
1677 esac
1678 done
1679done
1680$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683# When interrupted or exit'd, cleanup temporary files, and complete
1684# config.log. We remove comments because anyway the quotes in there
1685# would cause problems or look ugly.
dd184caf 1686# WARNING: Use '\'' to represent an apostrophe within the trap.
1687# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1688trap 'exit_status=$?
1689 # Save into config.log some information that might help in debugging.
1690 {
1691 echo
1692
1693 cat <<\_ASBOX
1694## ---------------- ##
1695## Cache variables. ##
1696## ---------------- ##
1697_ASBOX
1698 echo
1699 # The following way of writing the cache mishandles newlines in values,
dd184caf 1700(
1701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702 eval ac_val=\$$ac_var
1703 case $ac_val in #(
1704 *${as_nl}*)
1705 case $ac_var in #(
1706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708 esac
1709 case $ac_var in #(
1710 _ | IFS | as_nl) ;; #(
1711 *) $as_unset $ac_var ;;
1712 esac ;;
1713 esac
1714 done
d9898ee8 1715 (set) 2>&1 |
dd184caf 1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
d9898ee8 1718 sed -n \
dd184caf 1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
d9898ee8 1722 *)
dd184caf 1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1724 ;;
dd184caf 1725 esac |
1726 sort
1727)
d9898ee8 1728 echo
1729
1730 cat <<\_ASBOX
1731## ----------------- ##
1732## Output variables. ##
1733## ----------------- ##
1734_ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
1737 do
dd184caf 1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1743 done | sort
1744 echo
1745
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
dd184caf 1748## ------------------- ##
1749## File substitutions. ##
1750## ------------------- ##
d9898ee8 1751_ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1754 do
dd184caf 1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 echo "$ac_var='\''$ac_val'\''"
d9898ee8 1760 done | sort
1761 echo
1762 fi
1763
1764 if test -s confdefs.h; then
1765 cat <<\_ASBOX
1766## ----------- ##
1767## confdefs.h. ##
1768## ----------- ##
1769_ASBOX
1770 echo
dd184caf 1771 cat confdefs.h
d9898ee8 1772 echo
1773 fi
1774 test "$ac_signal" != 0 &&
1775 echo "$as_me: caught signal $ac_signal"
1776 echo "$as_me: exit $exit_status"
1777 } >&5
dd184caf 1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1780 exit $exit_status
dd184caf 1781' 0
d9898ee8 1782for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784done
1785ac_signal=0
1786
1787# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1788rm -f -r conftest* confdefs.h
d9898ee8 1789
1790# Predefined preprocessor variables.
1791
1792cat >>confdefs.h <<_ACEOF
1793#define PACKAGE_NAME "$PACKAGE_NAME"
1794_ACEOF
1795
1796
1797cat >>confdefs.h <<_ACEOF
1798#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799_ACEOF
1800
1801
1802cat >>confdefs.h <<_ACEOF
1803#define PACKAGE_VERSION "$PACKAGE_VERSION"
1804_ACEOF
1805
1806
1807cat >>confdefs.h <<_ACEOF
1808#define PACKAGE_STRING "$PACKAGE_STRING"
1809_ACEOF
1810
1811
1812cat >>confdefs.h <<_ACEOF
1813#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814_ACEOF
1815
1816
1817# Let the site file select an alternate cache file if it wants to.
1818# Prefer explicitly selected file to automatically selected ones.
dd184caf 1819if test -n "$CONFIG_SITE"; then
1820 set x "$CONFIG_SITE"
1821elif test "x$prefix" != xNONE; then
1822 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823else
1824 set x "$ac_default_prefix/share/config.site" \
1825 "$ac_default_prefix/etc/config.site"
d9898ee8 1826fi
dd184caf 1827shift
1828for ac_site_file
1829do
d9898ee8 1830 if test -r "$ac_site_file"; then
1831 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832echo "$as_me: loading site script $ac_site_file" >&6;}
1833 sed 's/^/| /' "$ac_site_file" >&5
1834 . "$ac_site_file"
1835 fi
1836done
1837
1838if test -r "$cache_file"; then
1839 # Some versions of bash will fail to source /dev/null (special
1840 # files actually), so we avoid doing that.
1841 if test -f "$cache_file"; then
1842 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843echo "$as_me: loading cache $cache_file" >&6;}
1844 case $cache_file in
dd184caf 1845 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846 *) . "./$cache_file";;
d9898ee8 1847 esac
1848 fi
1849else
1850 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851echo "$as_me: creating cache $cache_file" >&6;}
1852 >$cache_file
1853fi
1854
1855# Check that the precious variables saved in the cache have kept the same
1856# value.
1857ac_cache_corrupted=false
dd184caf 1858for ac_var in $ac_precious_vars; do
d9898ee8 1859 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1861 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1863 case $ac_old_set,$ac_new_set in
1864 set,)
1865 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867 ac_cache_corrupted=: ;;
1868 ,set)
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1872 ,);;
1873 *)
1874 if test "x$ac_old_val" != "x$ac_new_val"; then
1875 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1878echo "$as_me: former value: $ac_old_val" >&2;}
1879 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1880echo "$as_me: current value: $ac_new_val" >&2;}
1881 ac_cache_corrupted=:
1882 fi;;
1883 esac
1884 # Pass precious variables to config.status.
1885 if test "$ac_new_set" = set; then
1886 case $ac_new_val in
dd184caf 1887 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1888 *) ac_arg=$ac_var=$ac_new_val ;;
1889 esac
1890 case " $ac_configure_args " in
1891 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1892 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893 esac
1894 fi
1895done
1896if $ac_cache_corrupted; then
1897 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901 { (exit 1); exit 1; }; }
1902fi
1903
d9898ee8 1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
dd184caf 1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 1933
1934
1935
1936>confdefs.h # Kill PACKAGE_ macros
1937
1938
dd184caf 1939am__api_version='1.10'
1940
d9898ee8 1941ac_aux_dir=
dd184caf 1942for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
d9898ee8 1944 ac_aux_dir=$ac_dir
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1946 break
dd184caf 1947 elif test -f "$ac_dir/install.sh"; then
d9898ee8 1948 ac_aux_dir=$ac_dir
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1950 break
dd184caf 1951 elif test -f "$ac_dir/shtool"; then
d9898ee8 1952 ac_aux_dir=$ac_dir
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1954 break
1955 fi
1956done
1957if test -z "$ac_aux_dir"; then
dd184caf 1958 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
d9898ee8 1960 { (exit 1); exit 1; }; }
1961fi
dd184caf 1962
1963# These three variables are undocumented and unsupported,
1964# and are intended to be withdrawn in a future Autoconf release.
1965# They can cause serious problems if a builder's source tree is in a directory
1966# whose full name contains unusual characters.
1967ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970
d9898ee8 1971
1972# Find a good install program. We prefer a C program (faster),
1973# so one script is as good as another. But avoid the broken or
1974# incompatible versions:
1975# SysV /etc/install, /usr/sbin/install
1976# SunOS /usr/etc/install
1977# IRIX /sbin/install
1978# AIX /bin/install
1979# AmigaOS /C/install, which installs bootblocks on floppy discs
1980# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1981# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1982# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1983# OS/2's system install, which has a completely different semantic
1984# ./install, which can be erroneously created by make from ./install.sh.
dd184caf 1985{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
d9898ee8 1987if test -z "$INSTALL"; then
1988if test "${ac_cv_path_install+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992for as_dir in $PATH
1993do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1997case $as_dir/ in
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001 /usr/ucb/* ) ;;
2002 *)
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2005 # by default.
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2012 :
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2016 :
2017 else
2018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2019 break 3
2020 fi
2021 fi
2022 done
2023 done
2024 ;;
2025esac
2026done
dd184caf 2027IFS=$as_save_IFS
d9898ee8 2028
2029
2030fi
2031 if test "${ac_cv_path_install+set}" = set; then
2032 INSTALL=$ac_cv_path_install
2033 else
dd184caf 2034 # As a last resort, use the slow shell script. Don't cache a
2035 # value for INSTALL within a source directory, because that will
d9898ee8 2036 # break other packages using the cache if that directory is
dd184caf 2037 # removed, or if the value is a relative name.
d9898ee8 2038 INSTALL=$ac_install_sh
2039 fi
2040fi
dd184caf 2041{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2042echo "${ECHO_T}$INSTALL" >&6; }
d9898ee8 2043
2044# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2045# It thinks the first close brace ends the variable substitution.
2046test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2047
2048test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2049
2050test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2051
dd184caf 2052{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2053echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
d9898ee8 2054# Just in case
2055sleep 1
2056echo timestamp > conftest.file
2057# Do `set' in a subshell so we don't clobber the current shell's
2058# arguments. Must try -L first in case configure is actually a
2059# symlink; some systems play weird games with the mod time of symlinks
2060# (eg FreeBSD returns the mod time of the symlink's containing
2061# directory).
2062if (
2063 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2064 if test "$*" = "X"; then
2065 # -L didn't work.
2066 set X `ls -t $srcdir/configure conftest.file`
2067 fi
2068 rm -f conftest.file
2069 if test "$*" != "X $srcdir/configure conftest.file" \
2070 && test "$*" != "X conftest.file $srcdir/configure"; then
2071
2072 # If neither matched, then we have a broken ls. This can happen
2073 # if, for instance, CONFIG_SHELL is bash and it inherits a
2074 # broken ls alias from the environment. This has actually
2075 # happened. Such a system could not be considered "sane".
2076 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2077alias in your environment" >&5
2078echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2079alias in your environment" >&2;}
2080 { (exit 1); exit 1; }; }
2081 fi
2082
2083 test "$2" = conftest.file
2084 )
2085then
2086 # Ok.
2087 :
2088else
2089 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2090Check your system clock" >&5
2091echo "$as_me: error: newly created file is older than distributed files!
2092Check your system clock" >&2;}
2093 { (exit 1); exit 1; }; }
2094fi
dd184caf 2095{ echo "$as_me:$LINENO: result: yes" >&5
2096echo "${ECHO_T}yes" >&6; }
d9898ee8 2097test "$program_prefix" != NONE &&
dd184caf 2098 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2099# Use a double $ so make ignores it.
2100test "$program_suffix" != NONE &&
dd184caf 2101 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
d9898ee8 2102# Double any \ or $. echo might interpret backslashes.
2103# By default was `s,x,x', remove it if useless.
2104cat <<\_ACEOF >conftest.sed
2105s/[\\$]/&&/g;s/;s,x,x,$//
2106_ACEOF
2107program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
dd184caf 2108rm -f conftest.sed
d9898ee8 2109
2110# expand $ac_aux_dir to an absolute path
2111am_aux_dir=`cd $ac_aux_dir && pwd`
2112
2113test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2114# Use eval to expand $SHELL
2115if eval "$MISSING --run true"; then
2116 am_missing_run="$MISSING --run "
2117else
2118 am_missing_run=
2119 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2120echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2121fi
2122
dd184caf 2123{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2124echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2125if test -z "$MKDIR_P"; then
2126 if test "${ac_cv_path_mkdir+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2131do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 for ac_prog in mkdir gmkdir; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2137 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2138 'mkdir (GNU coreutils) '* | \
2139 'mkdir (coreutils) '* | \
2140 'mkdir (fileutils) '4.1*)
2141 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2142 break 3;;
2143 esac
2144 done
2145 done
2146done
2147IFS=$as_save_IFS
2148
2149fi
2150
2151 if test "${ac_cv_path_mkdir+set}" = set; then
2152 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2153 else
dd184caf 2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for MKDIR_P within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 test -d ./--version && rmdir ./--version
2159 MKDIR_P="$ac_install_sh -d"
d9898ee8 2160 fi
2161fi
dd184caf 2162{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2163echo "${ECHO_T}$MKDIR_P" >&6; }
2164
2165mkdir_p="$MKDIR_P"
2166case $mkdir_p in
2167 [\\/$]* | ?:[\\/]*) ;;
2168 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2169esac
d9898ee8 2170
2171for ac_prog in gawk mawk nawk awk
2172do
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174set dummy $ac_prog; ac_word=$2
dd184caf 2175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2177if test "${ac_cv_prog_AWK+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180 if test -n "$AWK"; then
2181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2182else
2183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2190 ac_cv_prog_AWK="$ac_prog"
2191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2192 break 2
2193 fi
2194done
2195done
dd184caf 2196IFS=$as_save_IFS
d9898ee8 2197
2198fi
2199fi
2200AWK=$ac_cv_prog_AWK
2201if test -n "$AWK"; then
dd184caf 2202 { echo "$as_me:$LINENO: result: $AWK" >&5
2203echo "${ECHO_T}$AWK" >&6; }
d9898ee8 2204else
dd184caf 2205 { echo "$as_me:$LINENO: result: no" >&5
2206echo "${ECHO_T}no" >&6; }
d9898ee8 2207fi
2208
dd184caf 2209
d9898ee8 2210 test -n "$AWK" && break
2211done
2212
dd184caf 2213{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2214echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2215set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2216if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219 cat >conftest.make <<\_ACEOF
dd184caf 2220SHELL = /bin/sh
d9898ee8 2221all:
dd184caf 2222 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2223_ACEOF
2224# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2225case `${MAKE-make} -f conftest.make 2>/dev/null` in
2226 *@@@%%%=?*=@@@%%%*)
2227 eval ac_cv_prog_make_${ac_make}_set=yes;;
2228 *)
2229 eval ac_cv_prog_make_${ac_make}_set=no;;
2230esac
d9898ee8 2231rm -f conftest.make
2232fi
dd184caf 2233if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235echo "${ECHO_T}yes" >&6; }
d9898ee8 2236 SET_MAKE=
2237else
dd184caf 2238 { echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6; }
d9898ee8 2240 SET_MAKE="MAKE=${MAKE-make}"
2241fi
2242
2243rm -rf .tst 2>/dev/null
2244mkdir .tst 2>/dev/null
2245if test -d .tst; then
2246 am__leading_dot=.
2247else
2248 am__leading_dot=_
2249fi
2250rmdir .tst 2>/dev/null
2251
dd184caf 2252if test "`cd $srcdir && pwd`" != "`pwd`"; then
2253 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2254 # is not polluted with repeated "-I."
2255 am__isrc=' -I$(srcdir)'
2256 # test to see if srcdir already configured
2257 if test -f $srcdir/config.status; then
2258 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
d9898ee8 2259echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2260 { (exit 1); exit 1; }; }
dd184caf 2261 fi
d9898ee8 2262fi
2263
2264# test whether we have cygpath
2265if test -z "$CYGPATH_W"; then
2266 if (cygpath --version) >/dev/null 2>/dev/null; then
2267 CYGPATH_W='cygpath -w'
2268 else
2269 CYGPATH_W=echo
2270 fi
2271fi
2272
2273
2274# Define the identity of the package.
2275 PACKAGE='rfc822lib'
2276 VERSION='0.12'
2277
2278
2279# Some tools Automake needs.
2280
2281ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2282
2283
2284AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2285
2286
2287AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2288
2289
2290AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2291
2292
2293MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2294
dd184caf 2295install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
d9898ee8 2296
2297# Installed binaries are usually stripped using `strip' when the user
2298# run `make install-strip'. However `strip' might not be the right
2299# tool to use in cross-compilation environments, therefore Automake
2300# will honor the `STRIP' environment variable to overrule this program.
2301if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 2305{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2307if test "${ac_cv_prog_STRIP+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324done
2325done
dd184caf 2326IFS=$as_save_IFS
d9898ee8 2327
2328fi
2329fi
2330STRIP=$ac_cv_prog_STRIP
2331if test -n "$STRIP"; then
dd184caf 2332 { echo "$as_me:$LINENO: result: $STRIP" >&5
2333echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 2334else
dd184caf 2335 { echo "$as_me:$LINENO: result: no" >&5
2336echo "${ECHO_T}no" >&6; }
d9898ee8 2337fi
2338
dd184caf 2339
d9898ee8 2340fi
2341if test -z "$ac_cv_prog_STRIP"; then
2342 ac_ct_STRIP=$STRIP
2343 # Extract the first word of "strip", so it can be a program name with args.
2344set dummy strip; ac_word=$2
dd184caf 2345{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2347if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2349else
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2352else
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2363 fi
2364done
2365done
dd184caf 2366IFS=$as_save_IFS
d9898ee8 2367
d9898ee8 2368fi
2369fi
2370ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371if test -n "$ac_ct_STRIP"; then
dd184caf 2372 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 2374else
dd184caf 2375 { echo "$as_me:$LINENO: result: no" >&5
2376echo "${ECHO_T}no" >&6; }
d9898ee8 2377fi
2378
dd184caf 2379 if test "x$ac_ct_STRIP" = x; then
2380 STRIP=":"
2381 else
2382 case $cross_compiling:$ac_tool_warned in
2383yes:)
2384{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385whose name does not start with the host triplet. If you think this
2386configuration is useful to you, please write to autoconf@gnu.org." >&5
2387echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388whose name does not start with the host triplet. If you think this
2389configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390ac_tool_warned=yes ;;
2391esac
2392 STRIP=$ac_ct_STRIP
2393 fi
d9898ee8 2394else
2395 STRIP="$ac_cv_prog_STRIP"
2396fi
2397
2398fi
dd184caf 2399INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
d9898ee8 2400
2401# We need awk for the "check" target. The system "awk" is bad on
2402# some platforms.
2403# Always define AMTAR for backward compatibility.
2404
2405AMTAR=${AMTAR-"${am_missing_run}tar"}
2406
2407am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2408
2409
2410
2411
2412
dd184caf 2413ac_config_headers="$ac_config_headers config.h"
d9898ee8 2414
2415
2416ac_ext=c
2417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}gcc; ac_word=$2
dd184caf 2424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2426if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443done
2444done
dd184caf 2445IFS=$as_save_IFS
d9898ee8 2446
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
dd184caf 2451 { echo "$as_me:$LINENO: result: $CC" >&5
2452echo "${ECHO_T}$CC" >&6; }
d9898ee8 2453else
dd184caf 2454 { echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6; }
d9898ee8 2456fi
2457
dd184caf 2458
d9898ee8 2459fi
2460if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463set dummy gcc; ac_word=$2
dd184caf 2464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2479 ac_cv_prog_ac_ct_CC="gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483done
2484done
dd184caf 2485IFS=$as_save_IFS
d9898ee8 2486
2487fi
2488fi
2489ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490if test -n "$ac_ct_CC"; then
dd184caf 2491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2493else
dd184caf 2494 { echo "$as_me:$LINENO: result: no" >&5
2495echo "${ECHO_T}no" >&6; }
d9898ee8 2496fi
2497
dd184caf 2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
2503{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504whose name does not start with the host triplet. If you think this
2505configuration is useful to you, please write to autoconf@gnu.org." >&5
2506echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507whose name does not start with the host triplet. If you think this
2508configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509ac_tool_warned=yes ;;
2510esac
2511 CC=$ac_ct_CC
2512 fi
d9898ee8 2513else
2514 CC="$ac_cv_prog_CC"
2515fi
2516
2517if test -z "$CC"; then
dd184caf 2518 if test -n "$ac_tool_prefix"; then
2519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2520set dummy ${ac_tool_prefix}cc; ac_word=$2
dd184caf 2521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2523if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2536 ac_cv_prog_CC="${ac_tool_prefix}cc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540done
2541done
dd184caf 2542IFS=$as_save_IFS
d9898ee8 2543
2544fi
2545fi
2546CC=$ac_cv_prog_CC
2547if test -n "$CC"; then
dd184caf 2548 { echo "$as_me:$LINENO: result: $CC" >&5
2549echo "${ECHO_T}$CC" >&6; }
d9898ee8 2550else
dd184caf 2551 { echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6; }
d9898ee8 2553fi
2554
d9898ee8 2555
dd184caf 2556 fi
d9898ee8 2557fi
2558if test -z "$CC"; then
2559 # Extract the first word of "cc", so it can be a program name with args.
2560set dummy cc; ac_word=$2
dd184caf 2561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2563if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569 ac_prog_rejected=no
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2578 ac_prog_rejected=yes
2579 continue
2580 fi
2581 ac_cv_prog_CC="cc"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585done
2586done
dd184caf 2587IFS=$as_save_IFS
d9898ee8 2588
2589if test $ac_prog_rejected = yes; then
2590 # We found a bogon in the path, so make sure we never use it.
2591 set dummy $ac_cv_prog_CC
2592 shift
2593 if test $# != 0; then
2594 # We chose a different compiler from the bogus one.
2595 # However, it has the same basename, so the bogon will be chosen
2596 # first if we set CC to just the basename; use the full file name.
2597 shift
2598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2599 fi
2600fi
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
dd184caf 2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6; }
d9898ee8 2607else
dd184caf 2608 { echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6; }
d9898ee8 2610fi
2611
dd184caf 2612
d9898ee8 2613fi
2614if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
dd184caf 2616 for ac_prog in cl.exe
d9898ee8 2617 do
2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 2620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2622if test "${ac_cv_prog_CC+set}" = set; then
2623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
2625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
2627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640done
dd184caf 2641IFS=$as_save_IFS
d9898ee8 2642
2643fi
2644fi
2645CC=$ac_cv_prog_CC
2646if test -n "$CC"; then
dd184caf 2647 { echo "$as_me:$LINENO: result: $CC" >&5
2648echo "${ECHO_T}$CC" >&6; }
d9898ee8 2649else
dd184caf 2650 { echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6; }
d9898ee8 2652fi
2653
dd184caf 2654
d9898ee8 2655 test -n "$CC" && break
2656 done
2657fi
2658if test -z "$CC"; then
2659 ac_ct_CC=$CC
dd184caf 2660 for ac_prog in cl.exe
d9898ee8 2661do
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663set dummy $ac_prog; ac_word=$2
dd184caf 2664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 2666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
2669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2679 ac_cv_prog_ac_ct_CC="$ac_prog"
2680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683done
2684done
dd184caf 2685IFS=$as_save_IFS
d9898ee8 2686
2687fi
2688fi
2689ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690if test -n "$ac_ct_CC"; then
dd184caf 2691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692echo "${ECHO_T}$ac_ct_CC" >&6; }
d9898ee8 2693else
dd184caf 2694 { echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6; }
d9898ee8 2696fi
2697
dd184caf 2698
d9898ee8 2699 test -n "$ac_ct_CC" && break
2700done
2701
dd184caf 2702 if test "x$ac_ct_CC" = x; then
2703 CC=""
2704 else
2705 case $cross_compiling:$ac_tool_warned in
2706yes:)
2707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708whose name does not start with the host triplet. If you think this
2709configuration is useful to you, please write to autoconf@gnu.org." >&5
2710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711whose name does not start with the host triplet. If you think this
2712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713ac_tool_warned=yes ;;
2714esac
2715 CC=$ac_ct_CC
2716 fi
d9898ee8 2717fi
2718
2719fi
2720
2721
2722test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2723See \`config.log' for more details." >&5
2724echo "$as_me: error: no acceptable C compiler found in \$PATH
2725See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2727
2728# Provide some information about the compiler.
dd184caf 2729echo "$as_me:$LINENO: checking for C compiler version" >&5
d9898ee8 2730ac_compiler=`set X $ac_compile; echo $2`
dd184caf 2731{ (ac_try="$ac_compiler --version >&5"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
dd184caf 2741{ (ac_try="$ac_compiler -v >&5"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
dd184caf 2751{ (ac_try="$ac_compiler -V >&5"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 2758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761
2762cat >conftest.$ac_ext <<_ACEOF
2763/* confdefs.h. */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h. */
2768
2769int
2770main ()
2771{
2772
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777ac_clean_files_save=$ac_clean_files
2778ac_clean_files="$ac_clean_files a.out a.exe b.out"
2779# Try to create an executable without -o first, disregard a.out.
2780# It will help us diagnose broken compilers, and finding out an intuition
2781# of exeext.
dd184caf 2782{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2783echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
d9898ee8 2784ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
dd184caf 2785#
2786# List of possible output files, starting from the most likely.
2787# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2788# only as a last resort. b.out is created by i960 compilers.
2789ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2790#
2791# The IRIX 6 linker writes into existing files which may not be
2792# executable, retaining their permissions. Remove them first so a
2793# subsequent execution test works.
2794ac_rmfiles=
2795for ac_file in $ac_files
2796do
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2800 esac
2801done
2802rm -f $ac_rmfiles
2803
2804if { (ac_try="$ac_link_default"
2805case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link_default") 2>&5
d9898ee8 2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
dd184caf 2814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2816# in a Makefile. We should not override ac_cv_exeext if it was cached,
2817# so that the user can short-circuit this test for compilers unknown to
2818# Autoconf.
2819for ac_file in $ac_files ''
d9898ee8 2820do
2821 test -f "$ac_file" || continue
2822 case $ac_file in
dd184caf 2823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
d9898ee8 2824 ;;
2825 [ab].out )
2826 # We found the default executable, but exeext='' is most
2827 # certainly right.
2828 break;;
2829 *.* )
dd184caf 2830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2831 then :; else
2832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 fi
2834 # We set ac_cv_exeext here because the later test for it is not
2835 # safe: cross compilers may not add the suffix if given an `-o'
2836 # argument, so we may need to know it at that point already.
2837 # Even if this section looks crufty: it has the advantage of
2838 # actually working.
d9898ee8 2839 break;;
2840 * )
2841 break;;
2842 esac
2843done
dd184caf 2844test "$ac_cv_exeext" = no && ac_cv_exeext=
2845
d9898ee8 2846else
dd184caf 2847 ac_file=''
2848fi
2849
2850{ echo "$as_me:$LINENO: result: $ac_file" >&5
2851echo "${ECHO_T}$ac_file" >&6; }
2852if test -z "$ac_file"; then
d9898ee8 2853 echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2857See \`config.log' for more details." >&5
2858echo "$as_me: error: C compiler cannot create executables
2859See \`config.log' for more details." >&2;}
2860 { (exit 77); exit 77; }; }
2861fi
2862
2863ac_exeext=$ac_cv_exeext
d9898ee8 2864
dd184caf 2865# Check that the compiler produces executables we can run. If not, either
d9898ee8 2866# the compiler is broken, or we cross compile.
dd184caf 2867{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2868echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
d9898ee8 2869# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2870# If not cross compiling, check that we can run a simple program.
2871if test "$cross_compiling" != yes; then
2872 if { ac_try='./$ac_file'
dd184caf 2873 { (case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
2877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_try") 2>&5
d9898ee8 2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 cross_compiling=no
2883 else
2884 if test "$cross_compiling" = maybe; then
2885 cross_compiling=yes
2886 else
2887 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2888If you meant to cross compile, use \`--host'.
2889See \`config.log' for more details." >&5
2890echo "$as_me: error: cannot run C compiled programs.
2891If you meant to cross compile, use \`--host'.
2892See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2894 fi
2895 fi
2896fi
dd184caf 2897{ echo "$as_me:$LINENO: result: yes" >&5
2898echo "${ECHO_T}yes" >&6; }
d9898ee8 2899
2900rm -f a.out a.exe conftest$ac_cv_exeext b.out
2901ac_clean_files=$ac_clean_files_save
dd184caf 2902# Check that the compiler produces executables we can run. If not, either
d9898ee8 2903# the compiler is broken, or we cross compile.
dd184caf 2904{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2905echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2906{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2907echo "${ECHO_T}$cross_compiling" >&6; }
2908
2909{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2910echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2911if { (ac_try="$ac_link"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_link") 2>&5
d9898ee8 2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
2921 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2922# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2923# work properly (i.e., refer to `conftest.exe'), while it won't with
2924# `rm'.
2925for ac_file in conftest.exe conftest conftest.*; do
2926 test -f "$ac_file" || continue
2927 case $ac_file in
dd184caf 2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
d9898ee8 2929 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 2930 break;;
2931 * ) break;;
2932 esac
2933done
2934else
2935 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2936See \`config.log' for more details." >&5
2937echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2938See \`config.log' for more details." >&2;}
2939 { (exit 1); exit 1; }; }
2940fi
2941
2942rm -f conftest$ac_cv_exeext
dd184caf 2943{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2944echo "${ECHO_T}$ac_cv_exeext" >&6; }
d9898ee8 2945
2946rm -f conftest.$ac_ext
2947EXEEXT=$ac_cv_exeext
2948ac_exeext=$EXEEXT
dd184caf 2949{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2950echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
d9898ee8 2951if test "${ac_cv_objext+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953else
2954 cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h. */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h. */
2960
2961int
2962main ()
2963{
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.o conftest.obj
dd184caf 2970if { (ac_try="$ac_compile"
2971case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>&5
d9898ee8 2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; then
dd184caf 2980 for ac_file in conftest.o conftest.obj conftest.*; do
2981 test -f "$ac_file" || continue;
d9898ee8 2982 case $ac_file in
dd184caf 2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
d9898ee8 2984 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2985 break;;
2986 esac
2987done
2988else
2989 echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2993See \`config.log' for more details." >&5
2994echo "$as_me: error: cannot compute suffix of object files: cannot compile
2995See \`config.log' for more details." >&2;}
2996 { (exit 1); exit 1; }; }
2997fi
2998
2999rm -f conftest.$ac_cv_objext conftest.$ac_ext
3000fi
dd184caf 3001{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3002echo "${ECHO_T}$ac_cv_objext" >&6; }
d9898ee8 3003OBJEXT=$ac_cv_objext
3004ac_objext=$OBJEXT
dd184caf 3005{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3006echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
d9898ee8 3007if test "${ac_cv_c_compiler_gnu+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009else
3010 cat >conftest.$ac_ext <<_ACEOF
3011/* confdefs.h. */
3012_ACEOF
3013cat confdefs.h >>conftest.$ac_ext
3014cat >>conftest.$ac_ext <<_ACEOF
3015/* end confdefs.h. */
3016
3017int
3018main ()
3019{
3020#ifndef __GNUC__
3021 choke me
3022#endif
3023
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028rm -f conftest.$ac_objext
dd184caf 3029if { (ac_try="$ac_compile"
3030case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3041 (exit $ac_status); } && {
3042 test -z "$ac_c_werror_flag" ||
3043 test ! -s conftest.err
3044 } && test -s conftest.$ac_objext; then
d9898ee8 3045 ac_compiler_gnu=yes
3046else
3047 echo "$as_me: failed program was:" >&5
3048sed 's/^/| /' conftest.$ac_ext >&5
3049
dd184caf 3050 ac_compiler_gnu=no
d9898ee8 3051fi
dd184caf 3052
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3054ac_cv_c_compiler_gnu=$ac_compiler_gnu
3055
3056fi
dd184caf 3057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
d9898ee8 3059GCC=`test $ac_compiler_gnu = yes && echo yes`
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
dd184caf 3062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
d9898ee8 3064if test "${ac_cv_prog_cc_g+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
dd184caf 3067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3069 ac_cv_prog_cc_g=no
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
dd184caf 3087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3099 (exit $ac_status); } && {
3100 test -z "$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 } && test -s conftest.$ac_objext; then
3103 ac_cv_prog_cc_g=yes
3104else
3105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 CFLAGS=""
3109 cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115
3116int
3117main ()
3118{
3119
3120 ;
3121 return 0;
3122}
3123_ACEOF
3124rm -f conftest.$ac_objext
3125if { (ac_try="$ac_compile"
3126case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3132 ac_status=$?
dd184caf 3133 grep -v '^ *+' conftest.er1 >conftest.err
3134 rm -f conftest.er1
3135 cat conftest.err >&5
d9898ee8 3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3141 :
3142else
3143 echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 ac_c_werror_flag=$ac_save_c_werror_flag
3147 CFLAGS="-g"
3148 cat >conftest.$ac_ext <<_ACEOF
3149/* confdefs.h. */
3150_ACEOF
3151cat confdefs.h >>conftest.$ac_ext
3152cat >>conftest.$ac_ext <<_ACEOF
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163rm -f conftest.$ac_objext
3164if { (ac_try="$ac_compile"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3171 ac_status=$?
dd184caf 3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
d9898ee8 3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3176 (exit $ac_status); } && {
3177 test -z "$ac_c_werror_flag" ||
3178 test ! -s conftest.err
3179 } && test -s conftest.$ac_objext; then
d9898ee8 3180 ac_cv_prog_cc_g=yes
3181else
3182 echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
dd184caf 3185
3186fi
3187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189fi
3190
3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3192fi
dd184caf 3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3196fi
dd184caf 3197{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3198echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
d9898ee8 3199if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3203 CFLAGS="-g -O2"
3204 else
3205 CFLAGS="-g"
3206 fi
3207else
3208 if test "$GCC" = yes; then
3209 CFLAGS="-O2"
3210 else
3211 CFLAGS=
3212 fi
3213fi
dd184caf 3214{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3215echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3216if test "${ac_cv_prog_cc_c89+set}" = set; then
d9898ee8 3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
dd184caf 3219 ac_cv_prog_cc_c89=no
d9898ee8 3220ac_save_CC=$CC
3221cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227#include <stdarg.h>
3228#include <stdio.h>
3229#include <sys/types.h>
3230#include <sys/stat.h>
3231/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232struct buf { int x; };
3233FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234static char *e (p, i)
3235 char **p;
3236 int i;
3237{
3238 return p[i];
3239}
3240static char *f (char * (*g) (char **, int), char **p, ...)
3241{
3242 char *s;
3243 va_list v;
3244 va_start (v,p);
3245 s = g (p, va_arg (v,int));
3246 va_end (v);
3247 return s;
3248}
3249
3250/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3253 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3256 that's true only with -std. */
d9898ee8 3257int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258
dd184caf 3259/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3261#define FOO(x) 'x'
3262int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263
d9898ee8 3264int test (int i, double x);
3265struct s1 {int (*f) (int a);};
3266struct s2 {int (*f) (double a);};
3267int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3268int argc;
3269char **argv;
3270int
3271main ()
3272{
3273return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 ;
3275 return 0;
3276}
3277_ACEOF
dd184caf 3278for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3280do
3281 CC="$ac_save_CC $ac_arg"
3282 rm -f conftest.$ac_objext
dd184caf 3283if { (ac_try="$ac_compile"
3284case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3295 (exit $ac_status); } && {
3296 test -z "$ac_c_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest.$ac_objext; then
3299 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3300else
3301 echo "$as_me: failed program was:" >&5
3302sed 's/^/| /' conftest.$ac_ext >&5
3303
dd184caf 3304
d9898ee8 3305fi
dd184caf 3306
3307rm -f core conftest.err conftest.$ac_objext
3308 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3309done
dd184caf 3310rm -f conftest.$ac_ext
d9898ee8 3311CC=$ac_save_CC
3312
3313fi
dd184caf 3314# AC_CACHE_VAL
3315case "x$ac_cv_prog_cc_c89" in
3316 x)
3317 { echo "$as_me:$LINENO: result: none needed" >&5
3318echo "${ECHO_T}none needed" >&6; } ;;
3319 xno)
3320 { echo "$as_me:$LINENO: result: unsupported" >&5
3321echo "${ECHO_T}unsupported" >&6; } ;;
d9898ee8 3322 *)
dd184caf 3323 CC="$CC $ac_cv_prog_cc_c89"
3324 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3325echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3326esac
3327
d9898ee8 3328
d9898ee8 3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334DEPDIR="${am__leading_dot}deps"
3335
dd184caf 3336ac_config_commands="$ac_config_commands depfiles"
d9898ee8 3337
3338
3339am_make=${MAKE-make}
3340cat > confinc << 'END'
3341am__doit:
3342 @echo done
3343.PHONY: am__doit
3344END
3345# If we don't find an include directive, just comment out the code.
dd184caf 3346{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3347echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
d9898ee8 3348am__include="#"
3349am__quote=
3350_am_result=none
3351# First try GNU make style include.
3352echo "include confinc" > confmf
3353# We grep out `Entering directory' and `Leaving directory'
3354# messages which can occur if `w' ends up in MAKEFLAGS.
3355# In particular we don't look at `^make:' because GNU make might
3356# be invoked under some other name (usually "gmake"), in which
3357# case it prints its new name instead of `make'.
3358if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3359 am__include=include
3360 am__quote=
3361 _am_result=GNU
3362fi
3363# Now try BSD make style include.
3364if test "$am__include" = "#"; then
3365 echo '.include "confinc"' > confmf
3366 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3367 am__include=.include
3368 am__quote="\""
3369 _am_result=BSD
3370 fi
3371fi
3372
3373
dd184caf 3374{ echo "$as_me:$LINENO: result: $_am_result" >&5
3375echo "${ECHO_T}$_am_result" >&6; }
d9898ee8 3376rm -f confinc confmf
3377
dd184caf 3378# Check whether --enable-dependency-tracking was given.
d9898ee8 3379if test "${enable_dependency_tracking+set}" = set; then
dd184caf 3380 enableval=$enable_dependency_tracking;
3381fi
d9898ee8 3382
d9898ee8 3383if test "x$enable_dependency_tracking" != xno; then
3384 am_depcomp="$ac_aux_dir/depcomp"
3385 AMDEPBACKSLASH='\'
3386fi
dd184caf 3387 if test "x$enable_dependency_tracking" != xno; then
d9898ee8 3388 AMDEP_TRUE=
3389 AMDEP_FALSE='#'
3390else
3391 AMDEP_TRUE='#'
3392 AMDEP_FALSE=
3393fi
3394
3395
3396
d9898ee8 3397depcc="$CC" am_compiler_list=
3398
dd184caf 3399{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3400echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 3401if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3405 # We make a subdir and do the tests there. Otherwise we can end up
3406 # making bogus files that we don't know about and never remove. For
3407 # instance it was reported that on HP-UX the gcc test will end up
3408 # making a dummy file named `D' -- because `-MD' means `put the output
3409 # in D'.
3410 mkdir conftest.dir
3411 # Copy depcomp to subdir because otherwise we won't find it if we're
3412 # using a relative directory.
3413 cp "$am_depcomp" conftest.dir
3414 cd conftest.dir
3415 # We will build objects and dependencies in a subdirectory because
3416 # it helps to detect inapplicable dependency modes. For instance
3417 # both Tru64's cc and ICC support -MD to output dependencies as a
3418 # side effect of compilation, but ICC will put the dependencies in
3419 # the current directory while Tru64 will put them in the object
3420 # directory.
3421 mkdir sub
3422
3423 am_cv_CC_dependencies_compiler_type=none
3424 if test "$am_compiler_list" = ""; then
3425 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3426 fi
3427 for depmode in $am_compiler_list; do
3428 # Setup a source with many dependencies, because some compilers
3429 # like to wrap large dependency lists on column 80 (with \), and
3430 # we should not choose a depcomp mode which is confused by this.
3431 #
3432 # We need to recreate these files for each test, as the compiler may
3433 # overwrite some of them when testing with obscure command lines.
3434 # This happens at least with the AIX C compiler.
3435 : > sub/conftest.c
3436 for i in 1 2 3 4 5 6; do
3437 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3438 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3439 # Solaris 8's {/usr,}/bin/sh.
3440 touch sub/conftst$i.h
3441 done
3442 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3443
3444 case $depmode in
3445 nosideeffect)
3446 # after this tag, mechanisms are not by side-effect, so they'll
3447 # only be used when explicitly requested
3448 if test "x$enable_dependency_tracking" = xyes; then
3449 continue
3450 else
3451 break
3452 fi
3453 ;;
3454 none) break ;;
3455 esac
3456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3457 # mode. It turns out that the SunPro C++ compiler does not properly
3458 # handle `-M -o', and we need to detect this.
3459 if depmode=$depmode \
3460 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3461 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3462 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3463 >/dev/null 2>conftest.err &&
dd184caf 3464 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3465 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3466 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3467 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3468 # icc doesn't choke on unknown options, it will just issue warnings
3469 # or remarks (even with -Werror). So we grep stderr for any message
3470 # that says an option was ignored or not supported.
3471 # When given -MP, icc 7.0 and 7.1 complain thusly:
3472 # icc: Command line warning: ignoring option '-M'; no argument required
3473 # The diagnosis changed in icc 8.0:
3474 # icc: Command line remark: option '-MP' not supported
3475 if (grep 'ignoring option' conftest.err ||
3476 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3477 am_cv_CC_dependencies_compiler_type=$depmode
3478 break
3479 fi
3480 fi
3481 done
3482
3483 cd ..
3484 rm -rf conftest.dir
3485else
3486 am_cv_CC_dependencies_compiler_type=none
3487fi
3488
3489fi
dd184caf 3490{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3491echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3492CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3493
dd184caf 3494 if
d9898ee8 3495 test "x$enable_dependency_tracking" != xno \
3496 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3497 am__fastdepCC_TRUE=
3498 am__fastdepCC_FALSE='#'
3499else
3500 am__fastdepCC_TRUE='#'
3501 am__fastdepCC_FALSE=
3502fi
3503
3504
3505
dd184caf 3506{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3507echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3508if test "${ac_cv_search_strerror+set}" = set; then
d9898ee8 3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
dd184caf 3511 ac_func_search_save_LIBS=$LIBS
d9898ee8 3512cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h. */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h. */
3518
dd184caf 3519/* Override any GCC internal prototype to avoid an error.
3520 Use char because int might match the return type of a GCC
3521 builtin and then its argument prototype would still apply. */
d9898ee8 3522#ifdef __cplusplus
3523extern "C"
3524#endif
d9898ee8 3525char strerror ();
3526int
3527main ()
3528{
dd184caf 3529return strerror ();
d9898ee8 3530 ;
3531 return 0;
3532}
3533_ACEOF
dd184caf 3534for ac_lib in '' cposix; do
3535 if test -z "$ac_lib"; then
3536 ac_res="none required"
3537 else
3538 ac_res=-l$ac_lib
3539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3540 fi
3541 rm -f conftest.$ac_objext conftest$ac_exeext
3542if { (ac_try="$ac_link"
3543case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3546esac
3547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_link") 2>conftest.er1
d9898ee8 3549 ac_status=$?
3550 grep -v '^ *+' conftest.er1 >conftest.err
3551 rm -f conftest.er1
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3554 (exit $ac_status); } && {
3555 test -z "$ac_c_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest$ac_exeext &&
3558 $as_test_x conftest$ac_exeext; then
3559 ac_cv_search_strerror=$ac_res
d9898ee8 3560else
3561 echo "$as_me: failed program was:" >&5
3562sed 's/^/| /' conftest.$ac_ext >&5
3563
dd184caf 3564
d9898ee8 3565fi
dd184caf 3566
3567rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3568 conftest$ac_exeext
3569 if test "${ac_cv_search_strerror+set}" = set; then
3570 break
3571fi
3572done
3573if test "${ac_cv_search_strerror+set}" = set; then
3574 :
3575else
3576 ac_cv_search_strerror=no
d9898ee8 3577fi
dd184caf 3578rm conftest.$ac_ext
3579LIBS=$ac_func_search_save_LIBS
d9898ee8 3580fi
dd184caf 3581{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3582echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3583ac_res=$ac_cv_search_strerror
3584if test "$ac_res" != no; then
3585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 3586
dd184caf 3587fi
d9898ee8 3588
3589ac_ext=c
3590ac_cpp='$CPP $CPPFLAGS'
3591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593ac_compiler_gnu=$ac_cv_c_compiler_gnu
dd184caf 3594{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3595echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
d9898ee8 3596# On Suns, sometimes $CPP names a directory.
3597if test -n "$CPP" && test -d "$CPP"; then
3598 CPP=
3599fi
3600if test -z "$CPP"; then
3601 if test "${ac_cv_prog_CPP+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604 # Double quotes because CPP needs to be expanded
3605 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3606 do
3607 ac_preproc_ok=false
3608for ac_c_preproc_warn_flag in '' yes
3609do
3610 # Use a header file that comes with gcc, so configuring glibc
3611 # with a fresh cross-compiler works.
3612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3613 # <limits.h> exists even on freestanding compilers.
3614 # On the NeXT, cc -E runs the code through the compiler's parser,
3615 # not just through cpp. "Syntax error" is here to catch this case.
3616 cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h. */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h. */
3622#ifdef __STDC__
3623# include <limits.h>
3624#else
3625# include <assert.h>
3626#endif
3627 Syntax error
3628_ACEOF
dd184caf 3629if { (ac_try="$ac_cpp conftest.$ac_ext"
3630case "(($ac_try" in
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3633esac
3634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3636 ac_status=$?
3637 grep -v '^ *+' conftest.er1 >conftest.err
3638 rm -f conftest.er1
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3641 (exit $ac_status); } >/dev/null && {
3642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3643 test ! -s conftest.err
3644 }; then
d9898ee8 3645 :
3646else
3647 echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650 # Broken: fails on valid input.
3651continue
3652fi
dd184caf 3653
d9898ee8 3654rm -f conftest.err conftest.$ac_ext
3655
dd184caf 3656 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3657 # can be detected and how.
3658 cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
3664#include <ac_nonexistent.h>
3665_ACEOF
dd184caf 3666if { (ac_try="$ac_cpp conftest.$ac_ext"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 }; then
d9898ee8 3682 # Broken: success on invalid input.
3683continue
3684else
3685 echo "$as_me: failed program was:" >&5
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 # Passes both tests.
3689ac_preproc_ok=:
3690break
3691fi
dd184caf 3692
d9898ee8 3693rm -f conftest.err conftest.$ac_ext
3694
3695done
3696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3697rm -f conftest.err conftest.$ac_ext
3698if $ac_preproc_ok; then
3699 break
3700fi
3701
3702 done
3703 ac_cv_prog_CPP=$CPP
3704
3705fi
3706 CPP=$ac_cv_prog_CPP
3707else
3708 ac_cv_prog_CPP=$CPP
3709fi
dd184caf 3710{ echo "$as_me:$LINENO: result: $CPP" >&5
3711echo "${ECHO_T}$CPP" >&6; }
d9898ee8 3712ac_preproc_ok=false
3713for ac_c_preproc_warn_flag in '' yes
3714do
3715 # Use a header file that comes with gcc, so configuring glibc
3716 # with a fresh cross-compiler works.
3717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3718 # <limits.h> exists even on freestanding compilers.
3719 # On the NeXT, cc -E runs the code through the compiler's parser,
3720 # not just through cpp. "Syntax error" is here to catch this case.
3721 cat >conftest.$ac_ext <<_ACEOF
3722/* confdefs.h. */
3723_ACEOF
3724cat confdefs.h >>conftest.$ac_ext
3725cat >>conftest.$ac_ext <<_ACEOF
3726/* end confdefs.h. */
3727#ifdef __STDC__
3728# include <limits.h>
3729#else
3730# include <assert.h>
3731#endif
3732 Syntax error
3733_ACEOF
dd184caf 3734if { (ac_try="$ac_cpp conftest.$ac_ext"
3735case "(($ac_try" in
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3738esac
3739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3741 ac_status=$?
3742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3746 (exit $ac_status); } >/dev/null && {
3747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 }; then
d9898ee8 3750 :
3751else
3752 echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 # Broken: fails on valid input.
3756continue
3757fi
dd184caf 3758
d9898ee8 3759rm -f conftest.err conftest.$ac_ext
3760
dd184caf 3761 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 3762 # can be detected and how.
3763 cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h. */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
3768/* end confdefs.h. */
3769#include <ac_nonexistent.h>
3770_ACEOF
dd184caf 3771if { (ac_try="$ac_cpp conftest.$ac_ext"
3772case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775esac
3776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 3778 ac_status=$?
3779 grep -v '^ *+' conftest.er1 >conftest.err
3780 rm -f conftest.er1
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3783 (exit $ac_status); } >/dev/null && {
3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3786 }; then
d9898ee8 3787 # Broken: success on invalid input.
3788continue
3789else
3790 echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793 # Passes both tests.
3794ac_preproc_ok=:
3795break
3796fi
dd184caf 3797
d9898ee8 3798rm -f conftest.err conftest.$ac_ext
3799
3800done
3801# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3802rm -f conftest.err conftest.$ac_ext
3803if $ac_preproc_ok; then
3804 :
3805else
3806 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3807See \`config.log' for more details." >&5
3808echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3809See \`config.log' for more details." >&2;}
3810 { (exit 1); exit 1; }; }
3811fi
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819
dd184caf 3820{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3821echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3822if test "${ac_cv_path_GREP+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 # Extract the first word of "grep ggrep" to use in msg output
3826if test -z "$GREP"; then
3827set dummy grep ggrep; ac_prog_name=$2
3828if test "${ac_cv_path_GREP+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3830else
3831 ac_path_GREP_found=false
3832# Loop through the user's path and test for each of PROGNAME-LIST
3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3835do
3836 IFS=$as_save_IFS
3837 test -z "$as_dir" && as_dir=.
3838 for ac_prog in grep ggrep; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3841 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3842 # Check for GNU ac_path_GREP and select it if it is found.
3843 # Check for GNU $ac_path_GREP
3844case `"$ac_path_GREP" --version 2>&1` in
3845*GNU*)
3846 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3847*)
3848 ac_count=0
3849 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3850 while :
3851 do
3852 cat "conftest.in" "conftest.in" >"conftest.tmp"
3853 mv "conftest.tmp" "conftest.in"
3854 cp "conftest.in" "conftest.nl"
3855 echo 'GREP' >> "conftest.nl"
3856 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3858 ac_count=`expr $ac_count + 1`
3859 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3860 # Best one so far, save it but keep looking for a better one
3861 ac_cv_path_GREP="$ac_path_GREP"
3862 ac_path_GREP_max=$ac_count
3863 fi
3864 # 10*(2^10) chars as input seems more than enough
3865 test $ac_count -gt 10 && break
3866 done
3867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3868esac
3869
3870
3871 $ac_path_GREP_found && break 3
3872 done
3873done
3874
3875done
3876IFS=$as_save_IFS
3877
3878
3879fi
3880
3881GREP="$ac_cv_path_GREP"
3882if test -z "$GREP"; then
3883 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3884echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3885 { (exit 1); exit 1; }; }
3886fi
3887
3888else
3889 ac_cv_path_GREP=$GREP
3890fi
3891
3892
3893fi
3894{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3895echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3896 GREP="$ac_cv_path_GREP"
3897
3898
3899{ echo "$as_me:$LINENO: checking for egrep" >&5
3900echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3901if test "${ac_cv_path_EGREP+set}" = set; then
d9898ee8 3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
dd184caf 3904 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3905 then ac_cv_path_EGREP="$GREP -E"
3906 else
3907 # Extract the first word of "egrep" to use in msg output
3908if test -z "$EGREP"; then
3909set dummy egrep; ac_prog_name=$2
3910if test "${ac_cv_path_EGREP+set}" = set; then
3911 echo $ECHO_N "(cached) $ECHO_C" >&6
3912else
3913 ac_path_EGREP_found=false
3914# Loop through the user's path and test for each of PROGNAME-LIST
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_prog in egrep; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3923 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3924 # Check for GNU ac_path_EGREP and select it if it is found.
3925 # Check for GNU $ac_path_EGREP
3926case `"$ac_path_EGREP" --version 2>&1` in
3927*GNU*)
3928 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3929*)
3930 ac_count=0
3931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3932 while :
3933 do
3934 cat "conftest.in" "conftest.in" >"conftest.tmp"
3935 mv "conftest.tmp" "conftest.in"
3936 cp "conftest.in" "conftest.nl"
3937 echo 'EGREP' >> "conftest.nl"
3938 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940 ac_count=`expr $ac_count + 1`
3941 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3942 # Best one so far, save it but keep looking for a better one
3943 ac_cv_path_EGREP="$ac_path_EGREP"
3944 ac_path_EGREP_max=$ac_count
d9898ee8 3945 fi
dd184caf 3946 # 10*(2^10) chars as input seems more than enough
3947 test $ac_count -gt 10 && break
3948 done
3949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950esac
3951
3952
3953 $ac_path_EGREP_found && break 3
3954 done
3955done
3956
3957done
3958IFS=$as_save_IFS
3959
3960
3961fi
3962
3963EGREP="$ac_cv_path_EGREP"
3964if test -z "$EGREP"; then
3965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3966echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3967 { (exit 1); exit 1; }; }
3968fi
3969
3970else
3971 ac_cv_path_EGREP=$EGREP
3972fi
3973
3974
3975 fi
d9898ee8 3976fi
dd184caf 3977{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3978echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3979 EGREP="$ac_cv_path_EGREP"
d9898ee8 3980
3981
3982
dd184caf 3983{ echo "$as_me:$LINENO: checking for AIX" >&5
3984echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
d9898ee8 3985cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h. */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h. */
3991#ifdef _AIX
3992 yes
3993#endif
3994
3995_ACEOF
3996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3997 $EGREP "yes" >/dev/null 2>&1; then
dd184caf 3998 { echo "$as_me:$LINENO: result: yes" >&5
3999echo "${ECHO_T}yes" >&6; }
d9898ee8 4000cat >>confdefs.h <<\_ACEOF
4001#define _ALL_SOURCE 1
4002_ACEOF
4003
4004else
dd184caf 4005 { echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6; }
d9898ee8 4007fi
4008rm -f conftest*
4009
4010
dd184caf 4011{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4012echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 4013if test "${ac_cv_header_stdc+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015else
4016 cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h. */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h. */
4022#include <stdlib.h>
4023#include <stdarg.h>
4024#include <string.h>
4025#include <float.h>
4026
4027int
4028main ()
4029{
4030
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035rm -f conftest.$ac_objext
dd184caf 4036if { (ac_try="$ac_compile"
4037case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4043 ac_status=$?
4044 grep -v '^ *+' conftest.er1 >conftest.err
4045 rm -f conftest.er1
4046 cat conftest.err >&5
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4048 (exit $ac_status); } && {
4049 test -z "$ac_c_werror_flag" ||
4050 test ! -s conftest.err
4051 } && test -s conftest.$ac_objext; then
d9898ee8 4052 ac_cv_header_stdc=yes
4053else
4054 echo "$as_me: failed program was:" >&5
4055sed 's/^/| /' conftest.$ac_ext >&5
4056
dd184caf 4057 ac_cv_header_stdc=no
d9898ee8 4058fi
dd184caf 4059
4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4061
4062if test $ac_cv_header_stdc = yes; then
4063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4064 cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h. */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h. */
4070#include <string.h>
4071
4072_ACEOF
4073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4074 $EGREP "memchr" >/dev/null 2>&1; then
4075 :
4076else
4077 ac_cv_header_stdc=no
4078fi
4079rm -f conftest*
4080
4081fi
4082
4083if test $ac_cv_header_stdc = yes; then
4084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4085 cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4090/* end confdefs.h. */
4091#include <stdlib.h>
4092
4093_ACEOF
4094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4095 $EGREP "free" >/dev/null 2>&1; then
4096 :
4097else
4098 ac_cv_header_stdc=no
4099fi
4100rm -f conftest*
4101
4102fi
4103
4104if test $ac_cv_header_stdc = yes; then
4105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4106 if test "$cross_compiling" = yes; then
4107 :
4108else
4109 cat >conftest.$ac_ext <<_ACEOF
4110/* confdefs.h. */
4111_ACEOF
4112cat confdefs.h >>conftest.$ac_ext
4113cat >>conftest.$ac_ext <<_ACEOF
4114/* end confdefs.h. */
4115#include <ctype.h>
dd184caf 4116#include <stdlib.h>
d9898ee8 4117#if ((' ' & 0x0FF) == 0x020)
4118# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4119# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4120#else
4121# define ISLOWER(c) \
4122 (('a' <= (c) && (c) <= 'i') \
4123 || ('j' <= (c) && (c) <= 'r') \
4124 || ('s' <= (c) && (c) <= 'z'))
4125# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4126#endif
4127
4128#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4129int
4130main ()
4131{
4132 int i;
4133 for (i = 0; i < 256; i++)
4134 if (XOR (islower (i), ISLOWER (i))
4135 || toupper (i) != TOUPPER (i))
dd184caf 4136 return 2;
4137 return 0;
d9898ee8 4138}
4139_ACEOF
4140rm -f conftest$ac_exeext
dd184caf 4141if { (ac_try="$ac_link"
4142case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_link") 2>&5
d9898ee8 4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
d9898ee8 4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; }; then
4160 :
4161else
4162 echo "$as_me: program exited with status $ac_status" >&5
4163echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
4165
4166( exit $ac_status )
4167ac_cv_header_stdc=no
4168fi
dd184caf 4169rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 4170fi
dd184caf 4171
4172
d9898ee8 4173fi
4174fi
dd184caf 4175{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4176echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 4177if test $ac_cv_header_stdc = yes; then
4178
4179cat >>confdefs.h <<\_ACEOF
4180#define STDC_HEADERS 1
4181_ACEOF
4182
4183fi
4184
4185# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4196 inttypes.h stdint.h unistd.h
4197do
4198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 4199{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4200echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204 cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */
4210$ac_includes_default
4211
4212#include <$ac_header>
4213_ACEOF
4214rm -f conftest.$ac_objext
dd184caf 4215if { (ac_try="$ac_compile"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4227 (exit $ac_status); } && {
4228 test -z "$ac_c_werror_flag" ||
4229 test ! -s conftest.err
4230 } && test -s conftest.$ac_objext; then
d9898ee8 4231 eval "$as_ac_Header=yes"
4232else
4233 echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
dd184caf 4236 eval "$as_ac_Header=no"
d9898ee8 4237fi
dd184caf 4238
4239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 4240fi
dd184caf 4241ac_res=`eval echo '${'$as_ac_Header'}'`
4242 { echo "$as_me:$LINENO: result: $ac_res" >&5
4243echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 4244if test `eval echo '${'$as_ac_Header'}'` = yes; then
4245 cat >>confdefs.h <<_ACEOF
4246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4247_ACEOF
4248
4249fi
4250
4251done
4252
4253
4254if test "${ac_cv_header_minix_config_h+set}" = set; then
dd184caf 4255 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4256echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4257if test "${ac_cv_header_minix_config_h+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259fi
dd184caf 4260{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4261echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4262else
4263 # Is the header compilable?
dd184caf 4264{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4265echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
d9898ee8 4266cat >conftest.$ac_ext <<_ACEOF
4267/* confdefs.h. */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h. */
4272$ac_includes_default
4273#include <minix/config.h>
4274_ACEOF
4275rm -f conftest.$ac_objext
dd184caf 4276if { (ac_try="$ac_compile"
4277case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280esac
4281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_compile") 2>conftest.er1
d9898ee8 4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
d9898ee8 4292 ac_header_compiler=yes
4293else
4294 echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
4296
dd184caf 4297 ac_header_compiler=no
d9898ee8 4298fi
dd184caf 4299
4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4302echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 4303
4304# Is the header present?
dd184caf 4305{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4306echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
d9898ee8 4307cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h. */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h. */
4313#include <minix/config.h>
4314_ACEOF
dd184caf 4315if { (ac_try="$ac_cpp conftest.$ac_ext"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 4327 (exit $ac_status); } >/dev/null && {
4328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4329 test ! -s conftest.err
4330 }; then
d9898ee8 4331 ac_header_preproc=yes
4332else
4333 echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
4336 ac_header_preproc=no
4337fi
dd184caf 4338
d9898ee8 4339rm -f conftest.err conftest.$ac_ext
dd184caf 4340{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4341echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 4342
4343# So? What about this header?
4344case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4345 yes:no: )
4346 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4347echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4348 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4349echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4350 ac_header_preproc=yes
4351 ;;
4352 no:yes:* )
4353 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4354echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4355 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4356echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4357 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4358echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4359 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4360echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4361 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4362echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4363 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4364echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
dd184caf 4365 ( cat <<\_ASBOX
d9898ee8 4366## -------------------------------------------------- ##
4367## Report this to courier-users@lists.sourceforge.net ##
4368## -------------------------------------------------- ##
4369_ASBOX
dd184caf 4370 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 4371 ;;
4372esac
dd184caf 4373{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4374echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
d9898ee8 4375if test "${ac_cv_header_minix_config_h+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4377else
4378 ac_cv_header_minix_config_h=$ac_header_preproc
4379fi
dd184caf 4380{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4381echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
d9898ee8 4382
4383fi
4384if test $ac_cv_header_minix_config_h = yes; then
4385 MINIX=yes
4386else
4387 MINIX=
4388fi
4389
4390
4391if test "$MINIX" = yes; then
4392
4393cat >>confdefs.h <<\_ACEOF
4394#define _POSIX_SOURCE 1
4395_ACEOF
4396
4397
4398cat >>confdefs.h <<\_ACEOF
4399#define _POSIX_1_SOURCE 2
4400_ACEOF
4401
4402
4403cat >>confdefs.h <<\_ACEOF
4404#define _MINIX 1
4405_ACEOF
4406
4407fi
4408
dd184caf 4409# Check whether --enable-shared was given.
d9898ee8 4410if test "${enable_shared+set}" = set; then
dd184caf 4411 enableval=$enable_shared; p=${PACKAGE-default}
d9898ee8 4412 case $enableval in
4413 yes) enable_shared=yes ;;
4414 no) enable_shared=no ;;
4415 *)
4416 enable_shared=no
4417 # Look at the argument we got. We use all the common list separators.
4418 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4419 for pkg in $enableval; do
4420 IFS="$lt_save_ifs"
4421 if test "X$pkg" = "X$p"; then
4422 enable_shared=yes
4423 fi
4424 done
4425 IFS="$lt_save_ifs"
4426 ;;
4427 esac
4428else
4429 enable_shared=yes
dd184caf 4430fi
4431
d9898ee8 4432
dd184caf 4433# Check whether --enable-static was given.
d9898ee8 4434if test "${enable_static+set}" = set; then
dd184caf 4435 enableval=$enable_static; p=${PACKAGE-default}
d9898ee8 4436 case $enableval in
4437 yes) enable_static=yes ;;
4438 no) enable_static=no ;;
4439 *)
4440 enable_static=no
4441 # Look at the argument we got. We use all the common list separators.
4442 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4443 for pkg in $enableval; do
4444 IFS="$lt_save_ifs"
4445 if test "X$pkg" = "X$p"; then
4446 enable_static=yes
4447 fi
4448 done
4449 IFS="$lt_save_ifs"
4450 ;;
4451 esac
4452else
4453 enable_static=yes
dd184caf 4454fi
4455
d9898ee8 4456
dd184caf 4457# Check whether --enable-fast-install was given.
d9898ee8 4458if test "${enable_fast_install+set}" = set; then
dd184caf 4459 enableval=$enable_fast_install; p=${PACKAGE-default}
d9898ee8 4460 case $enableval in
4461 yes) enable_fast_install=yes ;;
4462 no) enable_fast_install=no ;;
4463 *)
4464 enable_fast_install=no
4465 # Look at the argument we got. We use all the common list separators.
4466 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4467 for pkg in $enableval; do
4468 IFS="$lt_save_ifs"
4469 if test "X$pkg" = "X$p"; then
4470 enable_fast_install=yes
4471 fi
4472 done
4473 IFS="$lt_save_ifs"
4474 ;;
4475 esac
4476else
4477 enable_fast_install=yes
dd184caf 4478fi
4479
d9898ee8 4480
4481# Make sure we can run config.sub.
dd184caf 4482$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4483 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4484echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
d9898ee8 4485 { (exit 1); exit 1; }; }
4486
dd184caf 4487{ echo "$as_me:$LINENO: checking build system type" >&5
4488echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
d9898ee8 4489if test "${ac_cv_build+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
dd184caf 4492 ac_build_alias=$build_alias
4493test "x$ac_build_alias" = x &&
4494 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4495test "x$ac_build_alias" = x &&
d9898ee8 4496 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4497echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4498 { (exit 1); exit 1; }; }
dd184caf 4499ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4500 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4501echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
d9898ee8 4502 { (exit 1); exit 1; }; }
4503
4504fi
dd184caf 4505{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4506echo "${ECHO_T}$ac_cv_build" >&6; }
4507case $ac_cv_build in
4508*-*-*) ;;
4509*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4510echo "$as_me: error: invalid value of canonical build" >&2;}
4511 { (exit 1); exit 1; }; };;
4512esac
d9898ee8 4513build=$ac_cv_build
dd184caf 4514ac_save_IFS=$IFS; IFS='-'
4515set x $ac_cv_build
4516shift
4517build_cpu=$1
4518build_vendor=$2
4519shift; shift
4520# Remember, the first character of IFS is used to create $*,
4521# except with old shells:
4522build_os=$*
4523IFS=$ac_save_IFS
4524case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4525
4526
4527{ echo "$as_me:$LINENO: checking host system type" >&5
4528echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
d9898ee8 4529if test "${ac_cv_host+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
dd184caf 4532 if test "x$host_alias" = x; then
4533 ac_cv_host=$ac_cv_build
4534else
4535 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4536 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4537echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
d9898ee8 4538 { (exit 1); exit 1; }; }
dd184caf 4539fi
d9898ee8 4540
4541fi
dd184caf 4542{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4543echo "${ECHO_T}$ac_cv_host" >&6; }
4544case $ac_cv_host in
4545*-*-*) ;;
4546*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4547echo "$as_me: error: invalid value of canonical host" >&2;}
4548 { (exit 1); exit 1; }; };;
4549esac
d9898ee8 4550host=$ac_cv_host
dd184caf 4551ac_save_IFS=$IFS; IFS='-'
4552set x $ac_cv_host
4553shift
4554host_cpu=$1
4555host_vendor=$2
4556shift; shift
4557# Remember, the first character of IFS is used to create $*,
4558# except with old shells:
4559host_os=$*
4560IFS=$ac_save_IFS
4561case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4562
4563
4564{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4565echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
d9898ee8 4566if test "${lt_cv_path_SED+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 # Loop through the user's path and test for sed and gsed.
4570# Then use that list of sed's as ones to test for truncation.
4571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572for as_dir in $PATH
4573do
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for lt_ac_prog in sed gsed; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
ac40fd9e 4578 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
d9898ee8 4579 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4580 fi
4581 done
4582 done
4583done
4584IFS=$as_save_IFS
4585lt_ac_max=0
4586lt_ac_count=0
4587# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4588# along with /bin/sed that truncates output.
4589for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4590 test ! -f $lt_ac_sed && continue
4591 cat /dev/null > conftest.in
4592 lt_ac_count=0
4593 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4594 # Check for GNU sed and select it if it is found.
4595 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4596 lt_cv_path_SED=$lt_ac_sed
4597 break
4598 fi
4599 while true; do
4600 cat conftest.in conftest.in >conftest.tmp
4601 mv conftest.tmp conftest.in
4602 cp conftest.in conftest.nl
4603 echo >>conftest.nl
4604 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4605 cmp -s conftest.out conftest.nl || break
4606 # 10000 chars as input seems more than enough
4607 test $lt_ac_count -gt 10 && break
4608 lt_ac_count=`expr $lt_ac_count + 1`
4609 if test $lt_ac_count -gt $lt_ac_max; then
4610 lt_ac_max=$lt_ac_count
4611 lt_cv_path_SED=$lt_ac_sed
4612 fi
4613 done
4614done
4615
4616fi
4617
4618SED=$lt_cv_path_SED
4619
dd184caf 4620{ echo "$as_me:$LINENO: result: $SED" >&5
4621echo "${ECHO_T}$SED" >&6; }
d9898ee8 4622
4623
dd184caf 4624# Check whether --with-gnu-ld was given.
d9898ee8 4625if test "${with_gnu_ld+set}" = set; then
dd184caf 4626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 4627else
4628 with_gnu_ld=no
dd184caf 4629fi
4630
d9898ee8 4631ac_prog=ld
4632if test "$GCC" = yes; then
4633 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 4634 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4635echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 4636 case $host in
4637 *-*-mingw*)
4638 # gcc leaves a trailing carriage return which upsets mingw
4639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4640 *)
4641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4642 esac
4643 case $ac_prog in
4644 # Accept absolute paths.
4645 [\\/]* | ?:[\\/]*)
4646 re_direlt='/[^/][^/]*/\.\./'
4647 # Canonicalize the pathname of ld
4648 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4649 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4650 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4651 done
4652 test -z "$LD" && LD="$ac_prog"
4653 ;;
4654 "")
4655 # If it fails, then pretend we aren't using GCC.
4656 ac_prog=ld
4657 ;;
4658 *)
4659 # If it is relative, then search for the first ld in PATH.
4660 with_gnu_ld=unknown
4661 ;;
4662 esac
4663elif test "$with_gnu_ld" = yes; then
dd184caf 4664 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4665echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 4666else
dd184caf 4667 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4668echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 4669fi
4670if test "${lt_cv_path_LD+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672else
4673 if test -z "$LD"; then
4674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4675 for ac_dir in $PATH; do
4676 IFS="$lt_save_ifs"
4677 test -z "$ac_dir" && ac_dir=.
4678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4679 lt_cv_path_LD="$ac_dir/$ac_prog"
4680 # Check to see if the program is GNU ld. I'd rather use --version,
4681 # but apparently some variants of GNU ld only accept -v.
4682 # Break only if it was the GNU/non-GNU ld that we prefer.
4683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4684 *GNU* | *'with BFD'*)
4685 test "$with_gnu_ld" != no && break
4686 ;;
4687 *)
4688 test "$with_gnu_ld" != yes && break
4689 ;;
4690 esac
4691 fi
4692 done
4693 IFS="$lt_save_ifs"
4694else
4695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4696fi
4697fi
4698
4699LD="$lt_cv_path_LD"
4700if test -n "$LD"; then
dd184caf 4701 { echo "$as_me:$LINENO: result: $LD" >&5
4702echo "${ECHO_T}$LD" >&6; }
d9898ee8 4703else
dd184caf 4704 { echo "$as_me:$LINENO: result: no" >&5
4705echo "${ECHO_T}no" >&6; }
d9898ee8 4706fi
4707test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4708echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4709 { (exit 1); exit 1; }; }
dd184caf 4710{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4711echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 4712if test "${lt_cv_prog_gnu_ld+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4716case `$LD -v 2>&1 </dev/null` in
4717*GNU* | *'with BFD'*)
4718 lt_cv_prog_gnu_ld=yes
4719 ;;
4720*)
4721 lt_cv_prog_gnu_ld=no
4722 ;;
4723esac
4724fi
dd184caf 4725{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4726echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4727with_gnu_ld=$lt_cv_prog_gnu_ld
4728
4729
dd184caf 4730{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4731echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
d9898ee8 4732if test "${lt_cv_ld_reload_flag+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 lt_cv_ld_reload_flag='-r'
4736fi
dd184caf 4737{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4738echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
d9898ee8 4739reload_flag=$lt_cv_ld_reload_flag
4740case $reload_flag in
4741"" | " "*) ;;
4742*) reload_flag=" $reload_flag" ;;
4743esac
4744reload_cmds='$LD$reload_flag -o $output$reload_objs'
4745case $host_os in
4746 darwin*)
4747 if test "$GCC" = yes; then
4748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4749 else
4750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4751 fi
4752 ;;
4753esac
4754
dd184caf 4755{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4756echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
d9898ee8 4757if test "${lt_cv_path_NM+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 if test -n "$NM"; then
4761 # Let the user override the test.
4762 lt_cv_path_NM="$NM"
4763else
4764 lt_nm_to_check="${ac_tool_prefix}nm"
4765 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4766 lt_nm_to_check="$lt_nm_to_check nm"
4767 fi
4768 for lt_tmp_nm in $lt_nm_to_check; do
4769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4770 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4771 IFS="$lt_save_ifs"
4772 test -z "$ac_dir" && ac_dir=.
4773 tmp_nm="$ac_dir/$lt_tmp_nm"
4774 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4775 # Check to see if the nm accepts a BSD-compat flag.
4776 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4777 # nm: unknown option "B" ignored
4778 # Tru64's nm complains that /dev/null is an invalid object file
4779 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4780 */dev/null* | *'Invalid file or object type'*)
4781 lt_cv_path_NM="$tmp_nm -B"
4782 break
4783 ;;
4784 *)
4785 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4786 */dev/null*)
4787 lt_cv_path_NM="$tmp_nm -p"
4788 break
4789 ;;
4790 *)
4791 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4792 continue # so that we can try to find one that supports BSD flags
4793 ;;
4794 esac
4795 ;;
4796 esac
4797 fi
4798 done
4799 IFS="$lt_save_ifs"
4800 done
4801 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4802fi
4803fi
dd184caf 4804{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4805echo "${ECHO_T}$lt_cv_path_NM" >&6; }
d9898ee8 4806NM="$lt_cv_path_NM"
4807
dd184caf 4808{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4809echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
d9898ee8 4810LN_S=$as_ln_s
4811if test "$LN_S" = "ln -s"; then
dd184caf 4812 { echo "$as_me:$LINENO: result: yes" >&5
4813echo "${ECHO_T}yes" >&6; }
d9898ee8 4814else
dd184caf 4815 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4816echo "${ECHO_T}no, using $LN_S" >&6; }
d9898ee8 4817fi
4818
ac40fd9e 4819{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4820echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
d9898ee8 4821if test "${lt_cv_deplibs_check_method+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 lt_cv_file_magic_cmd='$MAGIC_CMD'
4825lt_cv_file_magic_test_file=
4826lt_cv_deplibs_check_method='unknown'
4827# Need to set the preceding variable on all platforms that support
4828# interlibrary dependencies.
4829# 'none' -- dependencies not supported.
4830# `unknown' -- same as none, but documents that we really don't know.
4831# 'pass_all' -- all dependencies passed with no checks.
4832# 'test_compile' -- check by making test program.
4833# 'file_magic [[regex]]' -- check by looking for files in library path
4834# which responds to the $file_magic_cmd with a given extended regex.
4835# If you have `file' or equivalent on your system and you're not sure
4836# whether `pass_all' will *always* work, you probably want this one.
4837
4838case $host_os in
4839aix4* | aix5*)
4840 lt_cv_deplibs_check_method=pass_all
4841 ;;
4842
4843beos*)
4844 lt_cv_deplibs_check_method=pass_all
4845 ;;
4846
4847bsdi[45]*)
4848 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4849 lt_cv_file_magic_cmd='/usr/bin/file -L'
4850 lt_cv_file_magic_test_file=/shlib/libc.so
4851 ;;
4852
4853cygwin*)
4854 # func_win32_libid is a shell function defined in ltmain.sh
4855 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4856 lt_cv_file_magic_cmd='func_win32_libid'
4857 ;;
4858
4859mingw* | pw32*)
4860 # Base MSYS/MinGW do not provide the 'file' command needed by
ac40fd9e 4861 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4862 # unless we find 'file', for example because we are cross-compiling.
4863 if ( file / ) >/dev/null 2>&1; then
4864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4865 lt_cv_file_magic_cmd='func_win32_libid'
4866 else
4867 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4868 lt_cv_file_magic_cmd='$OBJDUMP -f'
4869 fi
d9898ee8 4870 ;;
4871
4872darwin* | rhapsody*)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875
ac40fd9e 4876freebsd* | dragonfly*)
d9898ee8 4877 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4878 case $host_cpu in
4879 i*86 )
4880 # Not sure whether the presence of OpenBSD here was a mistake.
4881 # Let's accept both of them until this is cleared up.
4882 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4883 lt_cv_file_magic_cmd=/usr/bin/file
4884 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4885 ;;
4886 esac
4887 else
4888 lt_cv_deplibs_check_method=pass_all
4889 fi
4890 ;;
4891
4892gnu*)
4893 lt_cv_deplibs_check_method=pass_all
4894 ;;
4895
4896hpux10.20* | hpux11*)
4897 lt_cv_file_magic_cmd=/usr/bin/file
4898 case $host_cpu in
4899 ia64*)
4900 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4901 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4902 ;;
4903 hppa*64*)
4904 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]'
4905 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4906 ;;
4907 *)
4908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4910 ;;
4911 esac
4912 ;;
4913
ac40fd9e 4914interix[3-9]*)
d9898ee8 4915 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4917 ;;
4918
4919irix5* | irix6* | nonstopux*)
4920 case $LD in
4921 *-32|*"-32 ") libmagic=32-bit;;
4922 *-n32|*"-n32 ") libmagic=N32;;
4923 *-64|*"-64 ") libmagic=64-bit;;
4924 *) libmagic=never-match;;
4925 esac
4926 lt_cv_deplibs_check_method=pass_all
4927 ;;
4928
4929# This must be Linux ELF.
ac40fd9e 4930linux* | k*bsd*-gnu)
d9898ee8 4931 lt_cv_deplibs_check_method=pass_all
4932 ;;
4933
4934netbsd*)
4935 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4936 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4937 else
4938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4939 fi
4940 ;;
4941
4942newos6*)
4943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4944 lt_cv_file_magic_cmd=/usr/bin/file
4945 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4946 ;;
4947
4948nto-qnx*)
4949 lt_cv_deplibs_check_method=unknown
4950 ;;
4951
4952openbsd*)
4953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4955 else
4956 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4957 fi
4958 ;;
4959
4960osf3* | osf4* | osf5*)
4961 lt_cv_deplibs_check_method=pass_all
4962 ;;
4963
ac40fd9e 4964rdos*)
4965 lt_cv_deplibs_check_method=pass_all
4966 ;;
4967
d9898ee8 4968solaris*)
4969 lt_cv_deplibs_check_method=pass_all
4970 ;;
4971
4972sysv4 | sysv4.3*)
4973 case $host_vendor in
4974 motorola)
4975 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]'
4976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4977 ;;
4978 ncr)
4979 lt_cv_deplibs_check_method=pass_all
4980 ;;
4981 sequent)
4982 lt_cv_file_magic_cmd='/bin/file'
4983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4984 ;;
4985 sni)
4986 lt_cv_file_magic_cmd='/bin/file'
4987 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4988 lt_cv_file_magic_test_file=/lib/libc.so
4989 ;;
4990 siemens)
4991 lt_cv_deplibs_check_method=pass_all
4992 ;;
4993 pc)
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
4996 esac
4997 ;;
4998
4999sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5000 lt_cv_deplibs_check_method=pass_all
5001 ;;
5002esac
5003
5004fi
dd184caf 5005{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5006echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
d9898ee8 5007file_magic_cmd=$lt_cv_file_magic_cmd
5008deplibs_check_method=$lt_cv_deplibs_check_method
5009test -z "$deplibs_check_method" && deplibs_check_method=unknown
5010
5011
5012
5013
5014# If no C compiler was specified, use CC.
5015LTCC=${LTCC-"$CC"}
5016
5017# If no C compiler flags were specified, use CFLAGS.
5018LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5019
5020# Allow CC to be a program name with arguments.
5021compiler=$CC
5022
dd184caf 5023# Check whether --enable-libtool-lock was given.
d9898ee8 5024if test "${enable_libtool_lock+set}" = set; then
dd184caf 5025 enableval=$enable_libtool_lock;
5026fi
d9898ee8 5027
d9898ee8 5028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5029
5030# Some flags need to be propagated to the compiler or linker for good
5031# libtool support.
5032case $host in
5033ia64-*-hpux*)
5034 # Find out which ABI we are using.
5035 echo 'int i;' > conftest.$ac_ext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 case `/usr/bin/file conftest.$ac_objext` in
5042 *ELF-32*)
5043 HPUX_IA64_MODE="32"
5044 ;;
5045 *ELF-64*)
5046 HPUX_IA64_MODE="64"
5047 ;;
5048 esac
5049 fi
5050 rm -rf conftest*
5051 ;;
5052*-*-irix6*)
5053 # Find out which ABI we are using.
ac40fd9e 5054 echo '#line 5054 "configure"' > conftest.$ac_ext
d9898ee8 5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); }; then
5060 if test "$lt_cv_prog_gnu_ld" = yes; then
5061 case `/usr/bin/file conftest.$ac_objext` in
5062 *32-bit*)
5063 LD="${LD-ld} -melf32bsmip"
5064 ;;
5065 *N32*)
5066 LD="${LD-ld} -melf32bmipn32"
5067 ;;
5068 *64-bit*)
5069 LD="${LD-ld} -melf64bmip"
5070 ;;
5071 esac
5072 else
5073 case `/usr/bin/file conftest.$ac_objext` in
5074 *32-bit*)
5075 LD="${LD-ld} -32"
5076 ;;
5077 *N32*)
5078 LD="${LD-ld} -n32"
5079 ;;
5080 *64-bit*)
5081 LD="${LD-ld} -64"
5082 ;;
5083 esac
5084 fi
5085 fi
5086 rm -rf conftest*
5087 ;;
5088
ac40fd9e 5089x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5090s390*-*linux*|sparc*-*linux*)
d9898ee8 5091 # Find out which ABI we are using.
5092 echo 'int i;' > conftest.$ac_ext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>&5
5095 ac_status=$?
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; then
5098 case `/usr/bin/file conftest.o` in
5099 *32-bit*)
5100 case $host in
ac40fd9e 5101 x86_64-*kfreebsd*-gnu)
5102 LD="${LD-ld} -m elf_i386_fbsd"
5103 ;;
d9898ee8 5104 x86_64-*linux*)
5105 LD="${LD-ld} -m elf_i386"
5106 ;;
5107 ppc64-*linux*|powerpc64-*linux*)
5108 LD="${LD-ld} -m elf32ppclinux"
5109 ;;
5110 s390x-*linux*)
5111 LD="${LD-ld} -m elf_s390"
5112 ;;
5113 sparc64-*linux*)
5114 LD="${LD-ld} -m elf32_sparc"
5115 ;;
5116 esac
5117 ;;
5118 *64-bit*)
ac40fd9e 5119 libsuff=64
d9898ee8 5120 case $host in
ac40fd9e 5121 x86_64-*kfreebsd*-gnu)
5122 LD="${LD-ld} -m elf_x86_64_fbsd"
5123 ;;
d9898ee8 5124 x86_64-*linux*)
5125 LD="${LD-ld} -m elf_x86_64"
5126 ;;
5127 ppc*-*linux*|powerpc*-*linux*)
5128 LD="${LD-ld} -m elf64ppc"
5129 ;;
5130 s390*-*linux*)
5131 LD="${LD-ld} -m elf64_s390"
5132 ;;
5133 sparc*-*linux*)
5134 LD="${LD-ld} -m elf64_sparc"
5135 ;;
5136 esac
5137 ;;
5138 esac
5139 fi
5140 rm -rf conftest*
5141 ;;
5142
5143*-*-sco3.2v5*)
5144 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5145 SAVE_CFLAGS="$CFLAGS"
5146 CFLAGS="$CFLAGS -belf"
dd184caf 5147 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5148echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
d9898ee8 5149if test "${lt_cv_cc_needs_belf+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152 ac_ext=c
5153ac_cpp='$CPP $CPPFLAGS'
5154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5156ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164
5165int
5166main ()
5167{
5168
5169 ;
5170 return 0;
5171}
5172_ACEOF
5173rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 5174if { (ac_try="$ac_link"
5175case "(($ac_try" in
5176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5177 *) ac_try_echo=$ac_try;;
5178esac
5179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5180 (eval "$ac_link") 2>conftest.er1
d9898ee8 5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5186 (exit $ac_status); } && {
5187 test -z "$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 } && test -s conftest$ac_exeext &&
5190 $as_test_x conftest$ac_exeext; then
d9898ee8 5191 lt_cv_cc_needs_belf=yes
5192else
5193 echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
dd184caf 5196 lt_cv_cc_needs_belf=no
d9898ee8 5197fi
dd184caf 5198
5199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 5200 conftest$ac_exeext conftest.$ac_ext
5201 ac_ext=c
5202ac_cpp='$CPP $CPPFLAGS'
5203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5205ac_compiler_gnu=$ac_cv_c_compiler_gnu
5206
5207fi
dd184caf 5208{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5209echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
d9898ee8 5210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5212 CFLAGS="$SAVE_CFLAGS"
5213 fi
5214 ;;
5215sparc*-*solaris*)
5216 # Find out which ABI we are using.
5217 echo 'int i;' > conftest.$ac_ext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; then
5223 case `/usr/bin/file conftest.o` in
5224 *64-bit*)
5225 case $lt_cv_prog_gnu_ld in
5226 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5227 *) LD="${LD-ld} -64" ;;
5228 esac
5229 ;;
5230 esac
5231 fi
5232 rm -rf conftest*
5233 ;;
5234
5235
5236esac
5237
5238need_locks="$enable_libtool_lock"
5239
5240
5241
5242for ac_header in dlfcn.h
5243do
5244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 5245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250fi
dd184caf 5251ac_res=`eval echo '${'$as_ac_Header'}'`
5252 { echo "$as_me:$LINENO: result: $ac_res" >&5
5253echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5254else
5255 # Is the header compilable?
dd184caf 5256{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 5258cat >conftest.$ac_ext <<_ACEOF
5259/* confdefs.h. */
5260_ACEOF
5261cat confdefs.h >>conftest.$ac_ext
5262cat >>conftest.$ac_ext <<_ACEOF
5263/* end confdefs.h. */
5264$ac_includes_default
5265#include <$ac_header>
5266_ACEOF
5267rm -f conftest.$ac_objext
dd184caf 5268if { (ac_try="$ac_compile"
5269case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5272esac
5273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5275 ac_status=$?
5276 grep -v '^ *+' conftest.er1 >conftest.err
5277 rm -f conftest.er1
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest.$ac_objext; then
d9898ee8 5284 ac_header_compiler=yes
5285else
5286 echo "$as_me: failed program was:" >&5
5287sed 's/^/| /' conftest.$ac_ext >&5
5288
dd184caf 5289 ac_header_compiler=no
d9898ee8 5290fi
dd184caf 5291
5292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5293{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5294echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 5295
5296# Is the header present?
dd184caf 5297{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5298echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 5299cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h. */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h. */
5305#include <$ac_header>
5306_ACEOF
dd184caf 5307if { (ac_try="$ac_cpp conftest.$ac_ext"
5308case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5319 (exit $ac_status); } >/dev/null && {
5320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 }; then
d9898ee8 5323 ac_header_preproc=yes
5324else
5325 echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_header_preproc=no
5329fi
dd184caf 5330
d9898ee8 5331rm -f conftest.err conftest.$ac_ext
dd184caf 5332{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5333echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 5334
5335# So? What about this header?
5336case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5337 yes:no: )
5338 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5339echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5341echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5342 ac_header_preproc=yes
5343 ;;
5344 no:yes:* )
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5346echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5348echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5350echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5352echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5354echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5355 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5356echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 5357 ( cat <<\_ASBOX
d9898ee8 5358## -------------------------------------------------- ##
5359## Report this to courier-users@lists.sourceforge.net ##
5360## -------------------------------------------------- ##
5361_ASBOX
dd184caf 5362 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 5363 ;;
5364esac
dd184caf 5365{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5367if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370 eval "$as_ac_Header=\$ac_header_preproc"
5371fi
dd184caf 5372ac_res=`eval echo '${'$as_ac_Header'}'`
5373 { echo "$as_me:$LINENO: result: $ac_res" >&5
5374echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 5375
5376fi
5377if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378 cat >>confdefs.h <<_ACEOF
5379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380_ACEOF
5381
5382fi
5383
5384done
5385
dd184caf 5386ac_ext=cpp
d9898ee8 5387ac_cpp='$CXXCPP $CPPFLAGS'
5388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5391if test -z "$CXX"; then
5392 if test -n "$CCC"; then
5393 CXX=$CCC
5394 else
5395 if test -n "$ac_tool_prefix"; then
5396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5397 do
5398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 5400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5402if test "${ac_cv_prog_CXX+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5404else
5405 if test -n "$CXX"; then
5406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 break 2
5418 fi
5419done
5420done
dd184caf 5421IFS=$as_save_IFS
d9898ee8 5422
5423fi
5424fi
5425CXX=$ac_cv_prog_CXX
5426if test -n "$CXX"; then
dd184caf 5427 { echo "$as_me:$LINENO: result: $CXX" >&5
5428echo "${ECHO_T}$CXX" >&6; }
d9898ee8 5429else
dd184caf 5430 { echo "$as_me:$LINENO: result: no" >&5
5431echo "${ECHO_T}no" >&6; }
d9898ee8 5432fi
5433
dd184caf 5434
d9898ee8 5435 test -n "$CXX" && break
5436 done
5437fi
5438if test -z "$CXX"; then
5439 ac_ct_CXX=$CXX
dd184caf 5440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
d9898ee8 5441do
5442 # Extract the first word of "$ac_prog", so it can be a program name with args.
5443set dummy $ac_prog; ac_word=$2
dd184caf 5444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 5446if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449 if test -n "$ac_ct_CXX"; then
5450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
5457 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 5459 ac_cv_prog_ac_ct_CXX="$ac_prog"
5460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 break 2
5462 fi
5463done
5464done
dd184caf 5465IFS=$as_save_IFS
d9898ee8 5466
5467fi
5468fi
5469ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5470if test -n "$ac_ct_CXX"; then
dd184caf 5471 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5472echo "${ECHO_T}$ac_ct_CXX" >&6; }
d9898ee8 5473else
dd184caf 5474 { echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6; }
d9898ee8 5476fi
5477
dd184caf 5478
d9898ee8 5479 test -n "$ac_ct_CXX" && break
5480done
d9898ee8 5481
dd184caf 5482 if test "x$ac_ct_CXX" = x; then
5483 CXX="g++"
5484 else
5485 case $cross_compiling:$ac_tool_warned in
5486yes:)
5487{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5488whose name does not start with the host triplet. If you think this
5489configuration is useful to you, please write to autoconf@gnu.org." >&5
5490echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5491whose name does not start with the host triplet. If you think this
5492configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5493ac_tool_warned=yes ;;
5494esac
5495 CXX=$ac_ct_CXX
5496 fi
d9898ee8 5497fi
5498
dd184caf 5499 fi
5500fi
d9898ee8 5501# Provide some information about the compiler.
dd184caf 5502echo "$as_me:$LINENO: checking for C++ compiler version" >&5
d9898ee8 5503ac_compiler=`set X $ac_compile; echo $2`
dd184caf 5504{ (ac_try="$ac_compiler --version >&5"
5505case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508esac
5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }
dd184caf 5514{ (ac_try="$ac_compiler -v >&5"
5515case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 5521 ac_status=$?
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }
dd184caf 5524{ (ac_try="$ac_compiler -V >&5"
5525case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528esac
5529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }
5534
dd184caf 5535{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5536echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
d9898ee8 5537if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5539else
5540 cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
5546
5547int
5548main ()
5549{
5550#ifndef __GNUC__
5551 choke me
5552#endif
5553
5554 ;
5555 return 0;
5556}
5557_ACEOF
5558rm -f conftest.$ac_objext
dd184caf 5559if { (ac_try="$ac_compile"
5560case "(($ac_try" in
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5563esac
5564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5566 ac_status=$?
5567 grep -v '^ *+' conftest.er1 >conftest.err
5568 rm -f conftest.er1
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5571 (exit $ac_status); } && {
5572 test -z "$ac_cxx_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.$ac_objext; then
d9898ee8 5575 ac_compiler_gnu=yes
5576else
5577 echo "$as_me: failed program was:" >&5
5578sed 's/^/| /' conftest.$ac_ext >&5
5579
dd184caf 5580 ac_compiler_gnu=no
d9898ee8 5581fi
dd184caf 5582
5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5584ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5585
5586fi
dd184caf 5587{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5588echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
d9898ee8 5589GXX=`test $ac_compiler_gnu = yes && echo yes`
5590ac_test_CXXFLAGS=${CXXFLAGS+set}
5591ac_save_CXXFLAGS=$CXXFLAGS
dd184caf 5592{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5593echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
d9898ee8 5594if test "${ac_cv_prog_cxx_g+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
dd184caf 5597 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5598 ac_cxx_werror_flag=yes
5599 ac_cv_prog_cxx_g=no
5600 CXXFLAGS="-g"
5601 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607
5608int
5609main ()
5610{
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5616rm -f conftest.$ac_objext
dd184caf 5617if { (ac_try="$ac_compile"
5618case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5623 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5629 (exit $ac_status); } && {
5630 test -z "$ac_cxx_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.$ac_objext; then
d9898ee8 5633 ac_cv_prog_cxx_g=yes
5634else
5635 echo "$as_me: failed program was:" >&5
5636sed 's/^/| /' conftest.$ac_ext >&5
5637
dd184caf 5638 CXXFLAGS=""
5639 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5640/* confdefs.h. */
5641_ACEOF
5642cat confdefs.h >>conftest.$ac_ext
5643cat >>conftest.$ac_ext <<_ACEOF
5644/* end confdefs.h. */
dd184caf 5645
d9898ee8 5646int
5647main ()
5648{
dd184caf 5649
d9898ee8 5650 ;
5651 return 0;
5652}
5653_ACEOF
5654rm -f conftest.$ac_objext
dd184caf 5655if { (ac_try="$ac_compile"
5656case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659esac
5660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5667 (exit $ac_status); } && {
5668 test -z "$ac_cxx_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
d9898ee8 5671 :
5672else
5673 echo "$as_me: failed program was:" >&5
5674sed 's/^/| /' conftest.$ac_ext >&5
5675
dd184caf 5676 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5677 CXXFLAGS="-g"
5678 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 5679/* confdefs.h. */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h. */
dd184caf 5684
d9898ee8 5685int
5686main ()
5687{
dd184caf 5688
d9898ee8 5689 ;
5690 return 0;
5691}
5692_ACEOF
5693rm -f conftest.$ac_objext
dd184caf 5694if { (ac_try="$ac_compile"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compile") 2>conftest.er1
d9898ee8 5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5706 (exit $ac_status); } && {
5707 test -z "$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 } && test -s conftest.$ac_objext; then
5710 ac_cv_prog_cxx_g=yes
d9898ee8 5711else
5712 echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
dd184caf 5715
d9898ee8 5716fi
dd184caf 5717
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719fi
5720
5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 5722fi
5723
dd184caf 5724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5725 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5726fi
5727{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5728echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5729if test "$ac_test_CXXFLAGS" = set; then
5730 CXXFLAGS=$ac_save_CXXFLAGS
5731elif test $ac_cv_prog_cxx_g = yes; then
5732 if test "$GXX" = yes; then
5733 CXXFLAGS="-g -O2"
5734 else
5735 CXXFLAGS="-g"
5736 fi
5737else
5738 if test "$GXX" = yes; then
5739 CXXFLAGS="-O2"
5740 else
5741 CXXFLAGS=
5742 fi
5743fi
5744ac_ext=cpp
d9898ee8 5745ac_cpp='$CXXCPP $CPPFLAGS'
5746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5749
5750depcc="$CXX" am_compiler_list=
5751
dd184caf 5752{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5753echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
d9898ee8 5754if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5758 # We make a subdir and do the tests there. Otherwise we can end up
5759 # making bogus files that we don't know about and never remove. For
5760 # instance it was reported that on HP-UX the gcc test will end up
5761 # making a dummy file named `D' -- because `-MD' means `put the output
5762 # in D'.
5763 mkdir conftest.dir
5764 # Copy depcomp to subdir because otherwise we won't find it if we're
5765 # using a relative directory.
5766 cp "$am_depcomp" conftest.dir
5767 cd conftest.dir
5768 # We will build objects and dependencies in a subdirectory because
5769 # it helps to detect inapplicable dependency modes. For instance
5770 # both Tru64's cc and ICC support -MD to output dependencies as a
5771 # side effect of compilation, but ICC will put the dependencies in
5772 # the current directory while Tru64 will put them in the object
5773 # directory.
5774 mkdir sub
5775
5776 am_cv_CXX_dependencies_compiler_type=none
5777 if test "$am_compiler_list" = ""; then
5778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5779 fi
5780 for depmode in $am_compiler_list; do
5781 # Setup a source with many dependencies, because some compilers
5782 # like to wrap large dependency lists on column 80 (with \), and
5783 # we should not choose a depcomp mode which is confused by this.
5784 #
5785 # We need to recreate these files for each test, as the compiler may
5786 # overwrite some of them when testing with obscure command lines.
5787 # This happens at least with the AIX C compiler.
5788 : > sub/conftest.c
5789 for i in 1 2 3 4 5 6; do
5790 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5791 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5792 # Solaris 8's {/usr,}/bin/sh.
5793 touch sub/conftst$i.h
5794 done
5795 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5796
5797 case $depmode in
5798 nosideeffect)
5799 # after this tag, mechanisms are not by side-effect, so they'll
5800 # only be used when explicitly requested
5801 if test "x$enable_dependency_tracking" = xyes; then
5802 continue
5803 else
5804 break
5805 fi
5806 ;;
5807 none) break ;;
5808 esac
5809 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5810 # mode. It turns out that the SunPro C++ compiler does not properly
5811 # handle `-M -o', and we need to detect this.
5812 if depmode=$depmode \
5813 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5814 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5815 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5816 >/dev/null 2>conftest.err &&
dd184caf 5817 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 5818 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5819 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5820 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5821 # icc doesn't choke on unknown options, it will just issue warnings
5822 # or remarks (even with -Werror). So we grep stderr for any message
5823 # that says an option was ignored or not supported.
5824 # When given -MP, icc 7.0 and 7.1 complain thusly:
5825 # icc: Command line warning: ignoring option '-M'; no argument required
5826 # The diagnosis changed in icc 8.0:
5827 # icc: Command line remark: option '-MP' not supported
5828 if (grep 'ignoring option' conftest.err ||
5829 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5830 am_cv_CXX_dependencies_compiler_type=$depmode
5831 break
5832 fi
5833 fi
5834 done
5835
5836 cd ..
5837 rm -rf conftest.dir
5838else
5839 am_cv_CXX_dependencies_compiler_type=none
5840fi
5841
5842fi
dd184caf 5843{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5844echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
d9898ee8 5845CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5846
dd184caf 5847 if
d9898ee8 5848 test "x$enable_dependency_tracking" != xno \
5849 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5850 am__fastdepCXX_TRUE=
5851 am__fastdepCXX_FALSE='#'
5852else
5853 am__fastdepCXX_TRUE='#'
5854 am__fastdepCXX_FALSE=
5855fi
5856
5857
5858
5859
5860if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5862 (test "X$CXX" != "Xg++"))) ; then
dd184caf 5863 ac_ext=cpp
d9898ee8 5864ac_cpp='$CXXCPP $CPPFLAGS'
5865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
dd184caf 5868{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5869echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
d9898ee8 5870if test -z "$CXXCPP"; then
5871 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873else
5874 # Double quotes because CXXCPP needs to be expanded
5875 for CXXCPP in "$CXX -E" "/lib/cpp"
5876 do
5877 ac_preproc_ok=false
5878for ac_cxx_preproc_warn_flag in '' yes
5879do
5880 # Use a header file that comes with gcc, so configuring glibc
5881 # with a fresh cross-compiler works.
5882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5883 # <limits.h> exists even on freestanding compilers.
5884 # On the NeXT, cc -E runs the code through the compiler's parser,
5885 # not just through cpp. "Syntax error" is here to catch this case.
5886 cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892#ifdef __STDC__
5893# include <limits.h>
5894#else
5895# include <assert.h>
5896#endif
5897 Syntax error
5898_ACEOF
dd184caf 5899if { (ac_try="$ac_cpp conftest.$ac_ext"
5900case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903esac
5904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5911 (exit $ac_status); } >/dev/null && {
5912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5913 test ! -s conftest.err
5914 }; then
d9898ee8 5915 :
5916else
5917 echo "$as_me: failed program was:" >&5
5918sed 's/^/| /' conftest.$ac_ext >&5
5919
5920 # Broken: fails on valid input.
5921continue
5922fi
dd184caf 5923
d9898ee8 5924rm -f conftest.err conftest.$ac_ext
5925
dd184caf 5926 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 5927 # can be detected and how.
5928 cat >conftest.$ac_ext <<_ACEOF
5929/* confdefs.h. */
5930_ACEOF
5931cat confdefs.h >>conftest.$ac_ext
5932cat >>conftest.$ac_ext <<_ACEOF
5933/* end confdefs.h. */
5934#include <ac_nonexistent.h>
5935_ACEOF
dd184caf 5936if { (ac_try="$ac_cpp conftest.$ac_ext"
5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
5941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 5943 ac_status=$?
5944 grep -v '^ *+' conftest.er1 >conftest.err
5945 rm -f conftest.er1
5946 cat conftest.err >&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 5948 (exit $ac_status); } >/dev/null && {
5949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5950 test ! -s conftest.err
5951 }; then
d9898ee8 5952 # Broken: success on invalid input.
5953continue
5954else
5955 echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 # Passes both tests.
5959ac_preproc_ok=:
5960break
5961fi
dd184caf 5962
d9898ee8 5963rm -f conftest.err conftest.$ac_ext
5964
5965done
5966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5967rm -f conftest.err conftest.$ac_ext
5968if $ac_preproc_ok; then
5969 break
5970fi
5971
5972 done
5973 ac_cv_prog_CXXCPP=$CXXCPP
5974
5975fi
5976 CXXCPP=$ac_cv_prog_CXXCPP
5977else
5978 ac_cv_prog_CXXCPP=$CXXCPP
5979fi
dd184caf 5980{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5981echo "${ECHO_T}$CXXCPP" >&6; }
d9898ee8 5982ac_preproc_ok=false
5983for ac_cxx_preproc_warn_flag in '' yes
5984do
5985 # Use a header file that comes with gcc, so configuring glibc
5986 # with a fresh cross-compiler works.
5987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 # <limits.h> exists even on freestanding compilers.
5989 # On the NeXT, cc -E runs the code through the compiler's parser,
5990 # not just through cpp. "Syntax error" is here to catch this case.
5991 cat >conftest.$ac_ext <<_ACEOF
5992/* confdefs.h. */
5993_ACEOF
5994cat confdefs.h >>conftest.$ac_ext
5995cat >>conftest.$ac_ext <<_ACEOF
5996/* end confdefs.h. */
5997#ifdef __STDC__
5998# include <limits.h>
5999#else
6000# include <assert.h>
6001#endif
6002 Syntax error
6003_ACEOF
dd184caf 6004if { (ac_try="$ac_cpp conftest.$ac_ext"
6005case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008esac
6009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6016 (exit $ac_status); } >/dev/null && {
6017 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6018 test ! -s conftest.err
6019 }; then
d9898ee8 6020 :
6021else
6022 echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 # Broken: fails on valid input.
6026continue
6027fi
dd184caf 6028
d9898ee8 6029rm -f conftest.err conftest.$ac_ext
6030
dd184caf 6031 # OK, works on sane cases. Now check whether nonexistent headers
d9898ee8 6032 # can be detected and how.
6033 cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
6039#include <ac_nonexistent.h>
6040_ACEOF
dd184caf 6041if { (ac_try="$ac_cpp conftest.$ac_ext"
6042case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045esac
6046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6053 (exit $ac_status); } >/dev/null && {
6054 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6055 test ! -s conftest.err
6056 }; then
d9898ee8 6057 # Broken: success on invalid input.
6058continue
6059else
6060 echo "$as_me: failed program was:" >&5
6061sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 # Passes both tests.
6064ac_preproc_ok=:
6065break
6066fi
dd184caf 6067
d9898ee8 6068rm -f conftest.err conftest.$ac_ext
6069
6070done
6071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6072rm -f conftest.err conftest.$ac_ext
6073if $ac_preproc_ok; then
6074 :
6075else
6076 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6077See \`config.log' for more details." >&5
6078echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6079See \`config.log' for more details." >&2;}
6080 { (exit 1); exit 1; }; }
6081fi
6082
dd184caf 6083ac_ext=cpp
d9898ee8 6084ac_cpp='$CXXCPP $CPPFLAGS'
6085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6088
6089fi
6090
6091
6092ac_ext=f
6093ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6094ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6095ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6096if test -n "$ac_tool_prefix"; then
dd184caf 6097 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 6098 do
6099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6100set dummy $ac_tool_prefix$ac_prog; ac_word=$2
dd184caf 6101{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6103if test "${ac_cv_prog_F77+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6105else
6106 if test -n "$F77"; then
6107 ac_cv_prog_F77="$F77" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6116 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121done
dd184caf 6122IFS=$as_save_IFS
d9898ee8 6123
6124fi
6125fi
6126F77=$ac_cv_prog_F77
6127if test -n "$F77"; then
dd184caf 6128 { echo "$as_me:$LINENO: result: $F77" >&5
6129echo "${ECHO_T}$F77" >&6; }
d9898ee8 6130else
dd184caf 6131 { echo "$as_me:$LINENO: result: no" >&5
6132echo "${ECHO_T}no" >&6; }
d9898ee8 6133fi
6134
dd184caf 6135
d9898ee8 6136 test -n "$F77" && break
6137 done
6138fi
6139if test -z "$F77"; then
6140 ac_ct_F77=$F77
dd184caf 6141 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 6142do
6143 # Extract the first word of "$ac_prog", so it can be a program name with args.
6144set dummy $ac_prog; ac_word=$2
dd184caf 6145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6147if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150 if test -n "$ac_ct_F77"; then
6151 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6160 ac_cv_prog_ac_ct_F77="$ac_prog"
6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6162 break 2
6163 fi
6164done
6165done
dd184caf 6166IFS=$as_save_IFS
d9898ee8 6167
6168fi
6169fi
6170ac_ct_F77=$ac_cv_prog_ac_ct_F77
6171if test -n "$ac_ct_F77"; then
dd184caf 6172 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6173echo "${ECHO_T}$ac_ct_F77" >&6; }
d9898ee8 6174else
dd184caf 6175 { echo "$as_me:$LINENO: result: no" >&5
6176echo "${ECHO_T}no" >&6; }
d9898ee8 6177fi
6178
dd184caf 6179
d9898ee8 6180 test -n "$ac_ct_F77" && break
6181done
6182
dd184caf 6183 if test "x$ac_ct_F77" = x; then
6184 F77=""
6185 else
6186 case $cross_compiling:$ac_tool_warned in
6187yes:)
6188{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6189whose name does not start with the host triplet. If you think this
6190configuration is useful to you, please write to autoconf@gnu.org." >&5
6191echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6192whose name does not start with the host triplet. If you think this
6193configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6194ac_tool_warned=yes ;;
6195esac
6196 F77=$ac_ct_F77
6197 fi
d9898ee8 6198fi
6199
6200
6201# Provide some information about the compiler.
dd184caf 6202echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
d9898ee8 6203ac_compiler=`set X $ac_compile; echo $2`
dd184caf 6204{ (ac_try="$ac_compiler --version >&5"
6205case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208esac
6209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 6211 ac_status=$?
6212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); }
dd184caf 6214{ (ac_try="$ac_compiler -v >&5"
6215case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218esac
6219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }
dd184caf 6224{ (ac_try="$ac_compiler -V >&5"
6225case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228esac
6229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 6231 ac_status=$?
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); }
6234rm -f a.out
6235
6236# If we don't use `.F' as extension, the preprocessor is not run on the
6237# input file. (Note that this only needs to work for GNU compilers.)
6238ac_save_ext=$ac_ext
6239ac_ext=F
dd184caf 6240{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6241echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
d9898ee8 6242if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245 cat >conftest.$ac_ext <<_ACEOF
6246 program main
6247#ifndef __GNUC__
6248 choke me
6249#endif
6250
6251 end
6252_ACEOF
6253rm -f conftest.$ac_objext
dd184caf 6254if { (ac_try="$ac_compile"
6255case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
6259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6266 (exit $ac_status); } && {
6267 test -z "$ac_f77_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
d9898ee8 6270 ac_compiler_gnu=yes
6271else
6272 echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
dd184caf 6275 ac_compiler_gnu=no
d9898ee8 6276fi
dd184caf 6277
6278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6279ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6280
6281fi
dd184caf 6282{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6283echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
d9898ee8 6284ac_ext=$ac_save_ext
6285ac_test_FFLAGS=${FFLAGS+set}
6286ac_save_FFLAGS=$FFLAGS
6287FFLAGS=
dd184caf 6288{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6289echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
d9898ee8 6290if test "${ac_cv_prog_f77_g+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293 FFLAGS=-g
6294cat >conftest.$ac_ext <<_ACEOF
6295 program main
6296
6297 end
6298_ACEOF
6299rm -f conftest.$ac_objext
dd184caf 6300if { (ac_try="$ac_compile"
6301case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304esac
6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
d9898ee8 6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 6312 (exit $ac_status); } && {
6313 test -z "$ac_f77_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
d9898ee8 6316 ac_cv_prog_f77_g=yes
6317else
6318 echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
dd184caf 6321 ac_cv_prog_f77_g=no
d9898ee8 6322fi
dd184caf 6323
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6325
6326fi
dd184caf 6327{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6328echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
d9898ee8 6329if test "$ac_test_FFLAGS" = set; then
6330 FFLAGS=$ac_save_FFLAGS
6331elif test $ac_cv_prog_f77_g = yes; then
6332 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6333 FFLAGS="-g -O2"
6334 else
6335 FFLAGS="-g"
6336 fi
6337else
6338 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6339 FFLAGS="-O2"
6340 else
6341 FFLAGS=
6342 fi
6343fi
6344
6345G77=`test $ac_compiler_gnu = yes && echo yes`
6346ac_ext=c
6347ac_cpp='$CPP $CPPFLAGS'
6348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351
6352
6353
6354# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6355
6356# find the maximum length of command line arguments
dd184caf 6357{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6358echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
d9898ee8 6359if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362 i=0
6363 teststring="ABCD"
6364
6365 case $build_os in
6366 msdosdjgpp*)
6367 # On DJGPP, this test can blow up pretty badly due to problems in libc
6368 # (any single argument exceeding 2000 bytes causes a buffer overrun
6369 # during glob expansion). Even if it were fixed, the result of this
6370 # check would be larger than it should be.
6371 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6372 ;;
6373
6374 gnu*)
6375 # Under GNU Hurd, this test is not required because there is
6376 # no limit to the length of command line arguments.
6377 # Libtool will interpret -1 as no limit whatsoever
6378 lt_cv_sys_max_cmd_len=-1;
6379 ;;
6380
6381 cygwin* | mingw*)
6382 # On Win9x/ME, this test blows up -- it succeeds, but takes
6383 # about 5 minutes as the teststring grows exponentially.
6384 # Worse, since 9x/ME are not pre-emptively multitasking,
6385 # you end up with a "frozen" computer, even though with patience
6386 # the test eventually succeeds (with a max line length of 256k).
6387 # Instead, let's just punt: use the minimum linelength reported by
6388 # all of the supported platforms: 8192 (on NT/2K/XP).
6389 lt_cv_sys_max_cmd_len=8192;
6390 ;;
6391
6392 amigaos*)
6393 # On AmigaOS with pdksh, this test takes hours, literally.
6394 # So we just punt and use a minimum line length of 8192.
6395 lt_cv_sys_max_cmd_len=8192;
6396 ;;
6397
6398 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6399 # This has been around since 386BSD, at least. Likely further.
6400 if test -x /sbin/sysctl; then
6401 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6402 elif test -x /usr/sbin/sysctl; then
6403 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6404 else
6405 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6406 fi
6407 # And add a safety zone
6408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6409 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6410 ;;
6411
6412 interix*)
6413 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6414 lt_cv_sys_max_cmd_len=196608
6415 ;;
6416
6417 osf*)
6418 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6419 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6420 # nice to cause kernel panics so lets avoid the loop below.
6421 # First set a reasonable default.
6422 lt_cv_sys_max_cmd_len=16384
6423 #
6424 if test -x /sbin/sysconfig; then
6425 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6426 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6427 esac
6428 fi
6429 ;;
6430 sco3.2v5*)
6431 lt_cv_sys_max_cmd_len=102400
6432 ;;
6433 sysv5* | sco5v6* | sysv4.2uw2*)
6434 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6435 if test -n "$kargmax"; then
6436 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6437 else
6438 lt_cv_sys_max_cmd_len=32768
6439 fi
6440 ;;
6441 *)
ac40fd9e 6442 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6443 if test -n "$lt_cv_sys_max_cmd_len"; then
6444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6446 else
6447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6448 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
d9898ee8 6449 = "XX$teststring") >/dev/null 2>&1 &&
ac40fd9e 6450 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6451 lt_cv_sys_max_cmd_len=$new_result &&
6452 test $i != 17 # 1/2 MB should be enough
6453 do
6454 i=`expr $i + 1`
6455 teststring=$teststring$teststring
6456 done
6457 teststring=
6458 # Add a significant safety factor because C++ compilers can tack on massive
6459 # amounts of additional arguments before passing them to the linker.
6460 # It appears as though 1/2 is a usable value.
6461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6462 fi
d9898ee8 6463 ;;
6464 esac
6465
6466fi
6467
6468if test -n $lt_cv_sys_max_cmd_len ; then
dd184caf 6469 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6470echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
d9898ee8 6471else
dd184caf 6472 { echo "$as_me:$LINENO: result: none" >&5
6473echo "${ECHO_T}none" >&6; }
d9898ee8 6474fi
6475
6476
6477
6478
ac40fd9e 6479
d9898ee8 6480# Check for command to grab the raw symbol name followed by C symbol from nm.
dd184caf 6481{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6482echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
d9898ee8 6483if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486
6487# These are sane defaults that work on at least a few old systems.
6488# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6489
6490# Character class describing NM global symbol codes.
6491symcode='[BCDEGRST]'
6492
6493# Regexp to match symbols that can be accessed directly from C.
6494sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6495
6496# Transform an extracted symbol line into a proper C declaration
6497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6498
6499# Transform an extracted symbol line into symbol name and symbol address
6500lt_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'"
6501
6502# Define system-specific variables.
6503case $host_os in
6504aix*)
6505 symcode='[BCDT]'
6506 ;;
6507cygwin* | mingw* | pw32*)
6508 symcode='[ABCDGISTW]'
6509 ;;
6510hpux*) # Its linker distinguishes data from code symbols
6511 if test "$host_cpu" = ia64; then
6512 symcode='[ABCDEGRST]'
6513 fi
6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515 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'"
6516 ;;
ac40fd9e 6517linux* | k*bsd*-gnu)
d9898ee8 6518 if test "$host_cpu" = ia64; then
6519 symcode='[ABCDGIRSTW]'
6520 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6521 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'"
6522 fi
6523 ;;
6524irix* | nonstopux*)
6525 symcode='[BCDEGRST]'
6526 ;;
6527osf*)
6528 symcode='[BCDEGQRST]'
6529 ;;
6530solaris*)
6531 symcode='[BDRT]'
6532 ;;
6533sco3.2v5*)
6534 symcode='[DT]'
6535 ;;
6536sysv4.2uw2*)
6537 symcode='[DT]'
6538 ;;
6539sysv5* | sco5v6* | unixware* | OpenUNIX*)
6540 symcode='[ABDT]'
6541 ;;
6542sysv4)
6543 symcode='[DFNSTU]'
6544 ;;
6545esac
6546
6547# Handle CRLF in mingw tool chain
6548opt_cr=
6549case $build_os in
6550mingw*)
6551 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6552 ;;
6553esac
6554
6555# If we're using GNU nm, then use its standard symbol codes.
6556case `$NM -V 2>&1` in
6557*GNU* | *'with BFD'*)
6558 symcode='[ABCDGIRSTW]' ;;
6559esac
6560
6561# Try without a prefix undercore, then with it.
6562for ac_symprfx in "" "_"; do
6563
6564 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565 symxfrm="\\1 $ac_symprfx\\2 \\2"
6566
6567 # Write the raw and C identifiers.
6568 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6569
6570 # Check to see that the pipe works correctly.
6571 pipe_works=no
6572
6573 rm -f conftest*
6574 cat > conftest.$ac_ext <<EOF
6575#ifdef __cplusplus
6576extern "C" {
6577#endif
6578char nm_test_var;
6579void nm_test_func(){}
6580#ifdef __cplusplus
6581}
6582#endif
6583int main(){nm_test_var='a';nm_test_func();return(0);}
6584EOF
6585
6586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6587 (eval $ac_compile) 2>&5
6588 ac_status=$?
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; then
6591 # Now try to grab the symbols.
6592 nlist=conftest.nm
6593 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6594 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && test -s "$nlist"; then
6598 # Try sorting and uniquifying the output.
6599 if sort "$nlist" | uniq > "$nlist"T; then
6600 mv -f "$nlist"T "$nlist"
6601 else
6602 rm -f "$nlist"T
6603 fi
6604
6605 # Make sure that we snagged all the symbols we need.
6606 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6607 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6608 cat <<EOF > conftest.$ac_ext
6609#ifdef __cplusplus
6610extern "C" {
6611#endif
6612
6613EOF
6614 # Now generate the symbol file.
6615 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6616
6617 cat <<EOF >> conftest.$ac_ext
6618#if defined (__STDC__) && __STDC__
6619# define lt_ptr_t void *
6620#else
6621# define lt_ptr_t char *
6622# define const
6623#endif
6624
6625/* The mapping between symbol names and symbols. */
6626const struct {
6627 const char *name;
6628 lt_ptr_t address;
6629}
6630lt_preloaded_symbols[] =
6631{
6632EOF
6633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6634 cat <<\EOF >> conftest.$ac_ext
6635 {0, (lt_ptr_t) 0}
6636};
6637
6638#ifdef __cplusplus
6639}
6640#endif
6641EOF
6642 # Now try linking the two files.
6643 mv conftest.$ac_objext conftstm.$ac_objext
6644 lt_save_LIBS="$LIBS"
6645 lt_save_CFLAGS="$CFLAGS"
6646 LIBS="conftstm.$ac_objext"
6647 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6649 (eval $ac_link) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6653 pipe_works=yes
6654 fi
6655 LIBS="$lt_save_LIBS"
6656 CFLAGS="$lt_save_CFLAGS"
6657 else
6658 echo "cannot find nm_test_func in $nlist" >&5
6659 fi
6660 else
6661 echo "cannot find nm_test_var in $nlist" >&5
6662 fi
6663 else
6664 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665 fi
6666 else
6667 echo "$progname: failed program was:" >&5
6668 cat conftest.$ac_ext >&5
6669 fi
6670 rm -f conftest* conftst*
6671
6672 # Do not use the global_symbol_pipe unless it works.
6673 if test "$pipe_works" = yes; then
6674 break
6675 else
6676 lt_cv_sys_global_symbol_pipe=
6677 fi
6678done
6679
6680fi
6681
6682if test -z "$lt_cv_sys_global_symbol_pipe"; then
6683 lt_cv_sys_global_symbol_to_cdecl=
6684fi
6685if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
dd184caf 6686 { echo "$as_me:$LINENO: result: failed" >&5
6687echo "${ECHO_T}failed" >&6; }
d9898ee8 6688else
dd184caf 6689 { echo "$as_me:$LINENO: result: ok" >&5
6690echo "${ECHO_T}ok" >&6; }
d9898ee8 6691fi
6692
dd184caf 6693{ echo "$as_me:$LINENO: checking for objdir" >&5
6694echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
d9898ee8 6695if test "${lt_cv_objdir+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698 rm -f .libs 2>/dev/null
6699mkdir .libs 2>/dev/null
6700if test -d .libs; then
6701 lt_cv_objdir=.libs
6702else
6703 # MS-DOS does not allow filenames that begin with a dot.
6704 lt_cv_objdir=_libs
6705fi
6706rmdir .libs 2>/dev/null
6707fi
dd184caf 6708{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6709echo "${ECHO_T}$lt_cv_objdir" >&6; }
d9898ee8 6710objdir=$lt_cv_objdir
6711
6712
6713
6714
6715
6716case $host_os in
6717aix3*)
6718 # AIX sometimes has problems with the GCC collect2 program. For some
6719 # reason, if we set the COLLECT_NAMES environment variable, the problems
6720 # vanish in a puff of smoke.
6721 if test "X${COLLECT_NAMES+set}" != Xset; then
6722 COLLECT_NAMES=
6723 export COLLECT_NAMES
6724 fi
6725 ;;
6726esac
6727
6728# Sed substitution that helps us do robust quoting. It backslashifies
6729# metacharacters that are still active within double-quoted strings.
6730Xsed='sed -e 1s/^X//'
6731sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6732
6733# Same as above, but do not quote variable references.
6734double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6735
6736# Sed substitution to delay expansion of an escaped shell variable in a
6737# double_quote_subst'ed string.
6738delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6739
6740# Sed substitution to avoid accidental globbing in evaled expressions
6741no_glob_subst='s/\*/\\\*/g'
6742
6743# Constants:
6744rm="rm -f"
6745
6746# Global variables:
6747default_ofile=libtool
6748can_build_shared=yes
6749
6750# All known linkers require a `.a' archive for static linking (except MSVC,
6751# which needs '.lib').
6752libext=a
6753ltmain="$ac_aux_dir/ltmain.sh"
6754ofile="$default_ofile"
6755with_gnu_ld="$lt_cv_prog_gnu_ld"
6756
6757if test -n "$ac_tool_prefix"; then
6758 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6759set dummy ${ac_tool_prefix}ar; ac_word=$2
dd184caf 6760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6762if test "${ac_cv_prog_AR+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764else
6765 if test -n "$AR"; then
6766 ac_cv_prog_AR="$AR" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6775 ac_cv_prog_AR="${ac_tool_prefix}ar"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779done
6780done
dd184caf 6781IFS=$as_save_IFS
d9898ee8 6782
6783fi
6784fi
6785AR=$ac_cv_prog_AR
6786if test -n "$AR"; then
dd184caf 6787 { echo "$as_me:$LINENO: result: $AR" >&5
6788echo "${ECHO_T}$AR" >&6; }
d9898ee8 6789else
dd184caf 6790 { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
d9898ee8 6792fi
6793
dd184caf 6794
d9898ee8 6795fi
6796if test -z "$ac_cv_prog_AR"; then
6797 ac_ct_AR=$AR
6798 # Extract the first word of "ar", so it can be a program name with args.
6799set dummy ar; ac_word=$2
dd184caf 6800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6802if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804else
6805 if test -n "$ac_ct_AR"; then
6806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6807else
6808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809for as_dir in $PATH
6810do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6815 ac_cv_prog_ac_ct_AR="ar"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819done
6820done
dd184caf 6821IFS=$as_save_IFS
d9898ee8 6822
d9898ee8 6823fi
6824fi
6825ac_ct_AR=$ac_cv_prog_ac_ct_AR
6826if test -n "$ac_ct_AR"; then
dd184caf 6827 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6828echo "${ECHO_T}$ac_ct_AR" >&6; }
d9898ee8 6829else
dd184caf 6830 { echo "$as_me:$LINENO: result: no" >&5
6831echo "${ECHO_T}no" >&6; }
d9898ee8 6832fi
6833
dd184caf 6834 if test "x$ac_ct_AR" = x; then
6835 AR="false"
6836 else
6837 case $cross_compiling:$ac_tool_warned in
6838yes:)
6839{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6840whose name does not start with the host triplet. If you think this
6841configuration is useful to you, please write to autoconf@gnu.org." >&5
6842echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6843whose name does not start with the host triplet. If you think this
6844configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6845ac_tool_warned=yes ;;
6846esac
6847 AR=$ac_ct_AR
6848 fi
d9898ee8 6849else
6850 AR="$ac_cv_prog_AR"
6851fi
6852
6853if test -n "$ac_tool_prefix"; then
6854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6855set dummy ${ac_tool_prefix}ranlib; ac_word=$2
dd184caf 6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6858if test "${ac_cv_prog_RANLIB+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 if test -n "$RANLIB"; then
6862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867 IFS=$as_save_IFS
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 break 2
6874 fi
6875done
6876done
dd184caf 6877IFS=$as_save_IFS
d9898ee8 6878
6879fi
6880fi
6881RANLIB=$ac_cv_prog_RANLIB
6882if test -n "$RANLIB"; then
dd184caf 6883 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6884echo "${ECHO_T}$RANLIB" >&6; }
d9898ee8 6885else
dd184caf 6886 { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
d9898ee8 6888fi
6889
dd184caf 6890
d9898ee8 6891fi
6892if test -z "$ac_cv_prog_RANLIB"; then
6893 ac_ct_RANLIB=$RANLIB
6894 # Extract the first word of "ranlib", so it can be a program name with args.
6895set dummy ranlib; ac_word=$2
dd184caf 6896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6898if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901 if test -n "$ac_ct_RANLIB"; then
6902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907 IFS=$as_save_IFS
6908 test -z "$as_dir" && as_dir=.
6909 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6911 ac_cv_prog_ac_ct_RANLIB="ranlib"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913 break 2
6914 fi
6915done
6916done
dd184caf 6917IFS=$as_save_IFS
d9898ee8 6918
d9898ee8 6919fi
6920fi
6921ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6922if test -n "$ac_ct_RANLIB"; then
dd184caf 6923 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6924echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
d9898ee8 6925else
dd184caf 6926 { echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6; }
d9898ee8 6928fi
6929
dd184caf 6930 if test "x$ac_ct_RANLIB" = x; then
6931 RANLIB=":"
6932 else
6933 case $cross_compiling:$ac_tool_warned in
6934yes:)
6935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6936whose name does not start with the host triplet. If you think this
6937configuration is useful to you, please write to autoconf@gnu.org." >&5
6938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6939whose name does not start with the host triplet. If you think this
6940configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6941ac_tool_warned=yes ;;
6942esac
6943 RANLIB=$ac_ct_RANLIB
6944 fi
d9898ee8 6945else
6946 RANLIB="$ac_cv_prog_RANLIB"
6947fi
6948
6949if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6951set dummy ${ac_tool_prefix}strip; ac_word=$2
dd184caf 6952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6954if test "${ac_cv_prog_STRIP+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956else
6957 if test -n "$STRIP"; then
6958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6959else
6960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961for as_dir in $PATH
6962do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 6967 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971done
6972done
dd184caf 6973IFS=$as_save_IFS
d9898ee8 6974
6975fi
6976fi
6977STRIP=$ac_cv_prog_STRIP
6978if test -n "$STRIP"; then
dd184caf 6979 { echo "$as_me:$LINENO: result: $STRIP" >&5
6980echo "${ECHO_T}$STRIP" >&6; }
d9898ee8 6981else
dd184caf 6982 { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
d9898ee8 6984fi
6985
dd184caf 6986
d9898ee8 6987fi
6988if test -z "$ac_cv_prog_STRIP"; then
6989 ac_ct_STRIP=$STRIP
6990 # Extract the first word of "strip", so it can be a program name with args.
6991set dummy strip; ac_word=$2
dd184caf 6992{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
d9898ee8 6994if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997 if test -n "$ac_ct_STRIP"; then
6998 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6999else
7000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001for as_dir in $PATH
7002do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 7007 ac_cv_prog_ac_ct_STRIP="strip"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011done
7012done
dd184caf 7013IFS=$as_save_IFS
d9898ee8 7014
d9898ee8 7015fi
7016fi
7017ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7018if test -n "$ac_ct_STRIP"; then
dd184caf 7019 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7020echo "${ECHO_T}$ac_ct_STRIP" >&6; }
d9898ee8 7021else
dd184caf 7022 { echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6; }
d9898ee8 7024fi
7025
dd184caf 7026 if test "x$ac_ct_STRIP" = x; then
7027 STRIP=":"
7028 else
7029 case $cross_compiling:$ac_tool_warned in
7030yes:)
7031{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7032whose name does not start with the host triplet. If you think this
7033configuration is useful to you, please write to autoconf@gnu.org." >&5
7034echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7035whose name does not start with the host triplet. If you think this
7036configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7037ac_tool_warned=yes ;;
7038esac
7039 STRIP=$ac_ct_STRIP
7040 fi
d9898ee8 7041else
7042 STRIP="$ac_cv_prog_STRIP"
7043fi
7044
7045
7046old_CC="$CC"
7047old_CFLAGS="$CFLAGS"
7048
7049# Set sane defaults for various variables
7050test -z "$AR" && AR=ar
7051test -z "$AR_FLAGS" && AR_FLAGS=cru
7052test -z "$AS" && AS=as
7053test -z "$CC" && CC=cc
7054test -z "$LTCC" && LTCC=$CC
7055test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7056test -z "$DLLTOOL" && DLLTOOL=dlltool
7057test -z "$LD" && LD=ld
7058test -z "$LN_S" && LN_S="ln -s"
7059test -z "$MAGIC_CMD" && MAGIC_CMD=file
7060test -z "$NM" && NM=nm
7061test -z "$SED" && SED=sed
7062test -z "$OBJDUMP" && OBJDUMP=objdump
7063test -z "$RANLIB" && RANLIB=:
7064test -z "$STRIP" && STRIP=:
7065test -z "$ac_objext" && ac_objext=o
7066
7067# Determine commands to create old-style static archives.
ac40fd9e 7068old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
d9898ee8 7069old_postinstall_cmds='chmod 644 $oldlib'
7070old_postuninstall_cmds=
7071
7072if test -n "$RANLIB"; then
7073 case $host_os in
7074 openbsd*)
7075 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7076 ;;
7077 *)
7078 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7079 ;;
7080 esac
7081 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7082fi
7083
7084for cc_temp in $compiler""; do
7085 case $cc_temp in
7086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7088 \-*) ;;
7089 *) break;;
7090 esac
7091done
7092cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7093
7094
7095# Only perform the check for file, if the check method requires it
7096case $deplibs_check_method in
7097file_magic*)
7098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
dd184caf 7099 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7100echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
d9898ee8 7101if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104 case $MAGIC_CMD in
7105[\\/*] | ?:[\\/]*)
7106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7107 ;;
7108*)
7109 lt_save_MAGIC_CMD="$MAGIC_CMD"
7110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7112 for ac_dir in $ac_dummy; do
7113 IFS="$lt_save_ifs"
7114 test -z "$ac_dir" && ac_dir=.
7115 if test -f $ac_dir/${ac_tool_prefix}file; then
7116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7117 if test -n "$file_magic_test_file"; then
7118 case $deplibs_check_method in
7119 "file_magic "*)
7120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7123 $EGREP "$file_magic_regex" > /dev/null; then
7124 :
7125 else
7126 cat <<EOF 1>&2
7127
7128*** Warning: the command libtool uses to detect shared libraries,
7129*** $file_magic_cmd, produces output that libtool cannot recognize.
7130*** The result is that libtool may fail to recognize shared libraries
7131*** as such. This will affect the creation of libtool libraries that
7132*** depend on shared libraries, but programs linked with such libtool
7133*** libraries will work regardless of this problem. Nevertheless, you
7134*** may want to report the problem to your system manager and/or to
7135*** bug-libtool@gnu.org
7136
7137EOF
7138 fi ;;
7139 esac
7140 fi
7141 break
7142 fi
7143 done
7144 IFS="$lt_save_ifs"
7145 MAGIC_CMD="$lt_save_MAGIC_CMD"
7146 ;;
7147esac
7148fi
7149
7150MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7151if test -n "$MAGIC_CMD"; then
dd184caf 7152 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7153echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7154else
dd184caf 7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
d9898ee8 7157fi
7158
7159if test -z "$lt_cv_path_MAGIC_CMD"; then
7160 if test -n "$ac_tool_prefix"; then
dd184caf 7161 { echo "$as_me:$LINENO: checking for file" >&5
7162echo $ECHO_N "checking for file... $ECHO_C" >&6; }
d9898ee8 7163if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165else
7166 case $MAGIC_CMD in
7167[\\/*] | ?:[\\/]*)
7168 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7169 ;;
7170*)
7171 lt_save_MAGIC_CMD="$MAGIC_CMD"
7172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7174 for ac_dir in $ac_dummy; do
7175 IFS="$lt_save_ifs"
7176 test -z "$ac_dir" && ac_dir=.
7177 if test -f $ac_dir/file; then
7178 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7179 if test -n "$file_magic_test_file"; then
7180 case $deplibs_check_method in
7181 "file_magic "*)
7182 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7185 $EGREP "$file_magic_regex" > /dev/null; then
7186 :
7187 else
7188 cat <<EOF 1>&2
7189
7190*** Warning: the command libtool uses to detect shared libraries,
7191*** $file_magic_cmd, produces output that libtool cannot recognize.
7192*** The result is that libtool may fail to recognize shared libraries
7193*** as such. This will affect the creation of libtool libraries that
7194*** depend on shared libraries, but programs linked with such libtool
7195*** libraries will work regardless of this problem. Nevertheless, you
7196*** may want to report the problem to your system manager and/or to
7197*** bug-libtool@gnu.org
7198
7199EOF
7200 fi ;;
7201 esac
7202 fi
7203 break
7204 fi
7205 done
7206 IFS="$lt_save_ifs"
7207 MAGIC_CMD="$lt_save_MAGIC_CMD"
7208 ;;
7209esac
7210fi
7211
7212MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7213if test -n "$MAGIC_CMD"; then
dd184caf 7214 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7215echo "${ECHO_T}$MAGIC_CMD" >&6; }
d9898ee8 7216else
dd184caf 7217 { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
d9898ee8 7219fi
7220
7221 else
7222 MAGIC_CMD=:
7223 fi
7224fi
7225
7226 fi
7227 ;;
7228esac
7229
7230enable_dlopen=no
7231enable_win32_dll=no
7232
dd184caf 7233# Check whether --enable-libtool-lock was given.
d9898ee8 7234if test "${enable_libtool_lock+set}" = set; then
dd184caf 7235 enableval=$enable_libtool_lock;
7236fi
d9898ee8 7237
d9898ee8 7238test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7239
7240
dd184caf 7241# Check whether --with-pic was given.
d9898ee8 7242if test "${with_pic+set}" = set; then
dd184caf 7243 withval=$with_pic; pic_mode="$withval"
d9898ee8 7244else
7245 pic_mode=default
dd184caf 7246fi
7247
d9898ee8 7248test -z "$pic_mode" && pic_mode=default
7249
7250# Use C for the default configuration in the libtool script
7251tagname=
7252lt_save_CC="$CC"
7253ac_ext=c
7254ac_cpp='$CPP $CPPFLAGS'
7255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258
7259
7260# Source file extension for C test sources.
7261ac_ext=c
7262
7263# Object file extension for compiled C test sources.
7264objext=o
7265objext=$objext
7266
7267# Code to be used in simple compile tests
ac40fd9e 7268lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7269
7270# Code to be used in simple link tests
ac40fd9e 7271lt_simple_link_test_code='int main(){return(0);}'
d9898ee8 7272
7273
7274# If no C compiler was specified, use CC.
7275LTCC=${LTCC-"$CC"}
7276
7277# If no C compiler flags were specified, use CFLAGS.
7278LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7279
7280# Allow CC to be a program name with arguments.
7281compiler=$CC
7282
7283
7284# save warnings/boilerplate of simple test code
7285ac_outfile=conftest.$ac_objext
ac40fd9e 7286echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7287eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7288_lt_compiler_boilerplate=`cat conftest.err`
7289$rm conftest*
7290
7291ac_outfile=conftest.$ac_objext
ac40fd9e 7292echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7293eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7294_lt_linker_boilerplate=`cat conftest.err`
7295$rm conftest*
7296
7297
7298
7299lt_prog_compiler_no_builtin_flag=
7300
7301if test "$GCC" = yes; then
7302 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7303
7304
dd184caf 7305{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7306echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 7307if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309else
7310 lt_cv_prog_compiler_rtti_exceptions=no
7311 ac_outfile=conftest.$ac_objext
ac40fd9e 7312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7313 lt_compiler_flag="-fno-rtti -fno-exceptions"
7314 # Insert the option either (1) after the last *FLAGS variable, or
7315 # (2) before a word containing "conftest.", or (3) at the end.
7316 # Note that $ac_compile itself does not contain backslashes and begins
7317 # with a dollar sign (not a hyphen), so the echo should work correctly.
7318 # The option is referenced via a variable to avoid confusing sed.
7319 lt_compile=`echo "$ac_compile" | $SED \
7320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7322 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7323 (eval echo "\"\$as_me:7323: $lt_compile\"" >&5)
d9898ee8 7324 (eval "$lt_compile" 2>conftest.err)
7325 ac_status=$?
7326 cat conftest.err >&5
ac40fd9e 7327 echo "$as_me:7327: \$? = $ac_status" >&5
d9898ee8 7328 if (exit $ac_status) && test -s "$ac_outfile"; then
7329 # The compiler can only warn and ignore the option if not recognized
7330 # So say no if there are warnings other than the usual output.
7331 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7332 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7333 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7334 lt_cv_prog_compiler_rtti_exceptions=yes
7335 fi
7336 fi
7337 $rm conftest*
7338
7339fi
dd184caf 7340{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7341echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7342
7343if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7344 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7345else
7346 :
7347fi
7348
7349fi
7350
7351lt_prog_compiler_wl=
7352lt_prog_compiler_pic=
7353lt_prog_compiler_static=
7354
dd184caf 7355{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 7357
7358 if test "$GCC" = yes; then
7359 lt_prog_compiler_wl='-Wl,'
7360 lt_prog_compiler_static='-static'
7361
7362 case $host_os in
7363 aix*)
7364 # All AIX code is PIC.
7365 if test "$host_cpu" = ia64; then
7366 # AIX 5 now supports IA64 processor
7367 lt_prog_compiler_static='-Bstatic'
7368 fi
7369 ;;
7370
7371 amigaos*)
7372 # FIXME: we need at least 68020 code to build shared libraries, but
7373 # adding the `-m68020' flag to GCC prevents building anything better,
7374 # like `-m68040'.
7375 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7376 ;;
7377
ac40fd9e 7378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7379 # PIC is the default for these OSes.
7380 ;;
7381
ac40fd9e 7382 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7383 # This hack is so that the source file can tell whether it is being
7384 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 7385 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7386 # (--disable-auto-import) libraries
d9898ee8 7387 lt_prog_compiler_pic='-DDLL_EXPORT'
7388 ;;
7389
7390 darwin* | rhapsody*)
7391 # PIC is the default on this platform
7392 # Common symbols not allowed in MH_DYLIB files
7393 lt_prog_compiler_pic='-fno-common'
7394 ;;
7395
ac40fd9e 7396 interix[3-9]*)
d9898ee8 7397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7398 # Instead, we relocate shared libraries at runtime.
7399 ;;
7400
7401 msdosdjgpp*)
7402 # Just because we use GCC doesn't mean we suddenly get shared libraries
7403 # on systems that don't support them.
7404 lt_prog_compiler_can_build_shared=no
7405 enable_shared=no
7406 ;;
7407
7408 sysv4*MP*)
7409 if test -d /usr/nec; then
7410 lt_prog_compiler_pic=-Kconform_pic
7411 fi
7412 ;;
7413
7414 hpux*)
7415 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7416 # not for PA HP-UX.
7417 case $host_cpu in
7418 hppa*64*|ia64*)
7419 # +Z the default
7420 ;;
7421 *)
7422 lt_prog_compiler_pic='-fPIC'
7423 ;;
7424 esac
7425 ;;
7426
7427 *)
7428 lt_prog_compiler_pic='-fPIC'
7429 ;;
7430 esac
7431 else
7432 # PORTME Check for flag to pass linker flags through the system compiler.
7433 case $host_os in
7434 aix*)
7435 lt_prog_compiler_wl='-Wl,'
7436 if test "$host_cpu" = ia64; then
7437 # AIX 5 now supports IA64 processor
7438 lt_prog_compiler_static='-Bstatic'
7439 else
7440 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7441 fi
7442 ;;
7443 darwin*)
7444 # PIC is the default on this platform
7445 # Common symbols not allowed in MH_DYLIB files
7446 case $cc_basename in
7447 xlc*)
7448 lt_prog_compiler_pic='-qnocommon'
7449 lt_prog_compiler_wl='-Wl,'
7450 ;;
7451 esac
7452 ;;
7453
ac40fd9e 7454 mingw* | cygwin* | pw32* | os2*)
d9898ee8 7455 # This hack is so that the source file can tell whether it is being
7456 # built for inclusion in a dll (and should export symbols for example).
7457 lt_prog_compiler_pic='-DDLL_EXPORT'
7458 ;;
7459
7460 hpux9* | hpux10* | hpux11*)
7461 lt_prog_compiler_wl='-Wl,'
7462 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7463 # not for PA HP-UX.
7464 case $host_cpu in
7465 hppa*64*|ia64*)
7466 # +Z the default
7467 ;;
7468 *)
7469 lt_prog_compiler_pic='+Z'
7470 ;;
7471 esac
7472 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7473 lt_prog_compiler_static='${wl}-a ${wl}archive'
7474 ;;
7475
7476 irix5* | irix6* | nonstopux*)
7477 lt_prog_compiler_wl='-Wl,'
7478 # PIC (with -KPIC) is the default.
7479 lt_prog_compiler_static='-non_shared'
7480 ;;
7481
7482 newsos6)
7483 lt_prog_compiler_pic='-KPIC'
7484 lt_prog_compiler_static='-Bstatic'
7485 ;;
7486
ac40fd9e 7487 linux* | k*bsd*-gnu)
d9898ee8 7488 case $cc_basename in
7489 icc* | ecc*)
7490 lt_prog_compiler_wl='-Wl,'
7491 lt_prog_compiler_pic='-KPIC'
7492 lt_prog_compiler_static='-static'
7493 ;;
7494 pgcc* | pgf77* | pgf90* | pgf95*)
7495 # Portland Group compilers (*not* the Pentium gcc compiler,
7496 # which looks to be a dead project)
7497 lt_prog_compiler_wl='-Wl,'
7498 lt_prog_compiler_pic='-fpic'
7499 lt_prog_compiler_static='-Bstatic'
7500 ;;
7501 ccc*)
7502 lt_prog_compiler_wl='-Wl,'
7503 # All Alpha code is PIC.
7504 lt_prog_compiler_static='-non_shared'
7505 ;;
ac40fd9e 7506 *)
7507 case `$CC -V 2>&1 | sed 5q` in
7508 *Sun\ C*)
7509 # Sun C 5.9
7510 lt_prog_compiler_pic='-KPIC'
7511 lt_prog_compiler_static='-Bstatic'
7512 lt_prog_compiler_wl='-Wl,'
7513 ;;
7514 *Sun\ F*)
7515 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7516 lt_prog_compiler_pic='-KPIC'
7517 lt_prog_compiler_static='-Bstatic'
7518 lt_prog_compiler_wl=''
7519 ;;
7520 esac
7521 ;;
d9898ee8 7522 esac
7523 ;;
7524
7525 osf3* | osf4* | osf5*)
7526 lt_prog_compiler_wl='-Wl,'
7527 # All OSF/1 code is PIC.
7528 lt_prog_compiler_static='-non_shared'
7529 ;;
7530
ac40fd9e 7531 rdos*)
7532 lt_prog_compiler_static='-non_shared'
7533 ;;
7534
d9898ee8 7535 solaris*)
7536 lt_prog_compiler_pic='-KPIC'
7537 lt_prog_compiler_static='-Bstatic'
7538 case $cc_basename in
7539 f77* | f90* | f95*)
7540 lt_prog_compiler_wl='-Qoption ld ';;
7541 *)
7542 lt_prog_compiler_wl='-Wl,';;
7543 esac
7544 ;;
7545
7546 sunos4*)
7547 lt_prog_compiler_wl='-Qoption ld '
7548 lt_prog_compiler_pic='-PIC'
7549 lt_prog_compiler_static='-Bstatic'
7550 ;;
7551
7552 sysv4 | sysv4.2uw2* | sysv4.3*)
7553 lt_prog_compiler_wl='-Wl,'
7554 lt_prog_compiler_pic='-KPIC'
7555 lt_prog_compiler_static='-Bstatic'
7556 ;;
7557
7558 sysv4*MP*)
7559 if test -d /usr/nec ;then
7560 lt_prog_compiler_pic='-Kconform_pic'
7561 lt_prog_compiler_static='-Bstatic'
7562 fi
7563 ;;
7564
7565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7566 lt_prog_compiler_wl='-Wl,'
7567 lt_prog_compiler_pic='-KPIC'
7568 lt_prog_compiler_static='-Bstatic'
7569 ;;
7570
7571 unicos*)
7572 lt_prog_compiler_wl='-Wl,'
7573 lt_prog_compiler_can_build_shared=no
7574 ;;
7575
7576 uts4*)
7577 lt_prog_compiler_pic='-pic'
7578 lt_prog_compiler_static='-Bstatic'
7579 ;;
7580
7581 *)
7582 lt_prog_compiler_can_build_shared=no
7583 ;;
7584 esac
7585 fi
7586
dd184caf 7587{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7588echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
d9898ee8 7589
7590#
7591# Check to make sure the PIC flag actually works.
7592#
7593if test -n "$lt_prog_compiler_pic"; then
7594
dd184caf 7595{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7596echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
d9898ee8 7597if test "${lt_prog_compiler_pic_works+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600 lt_prog_compiler_pic_works=no
7601 ac_outfile=conftest.$ac_objext
ac40fd9e 7602 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7603 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7604 # Insert the option either (1) after the last *FLAGS variable, or
7605 # (2) before a word containing "conftest.", or (3) at the end.
7606 # Note that $ac_compile itself does not contain backslashes and begins
7607 # with a dollar sign (not a hyphen), so the echo should work correctly.
7608 # The option is referenced via a variable to avoid confusing sed.
7609 lt_compile=`echo "$ac_compile" | $SED \
7610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7612 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7613 (eval echo "\"\$as_me:7613: $lt_compile\"" >&5)
d9898ee8 7614 (eval "$lt_compile" 2>conftest.err)
7615 ac_status=$?
7616 cat conftest.err >&5
ac40fd9e 7617 echo "$as_me:7617: \$? = $ac_status" >&5
d9898ee8 7618 if (exit $ac_status) && test -s "$ac_outfile"; then
7619 # The compiler can only warn and ignore the option if not recognized
7620 # So say no if there are warnings other than the usual output.
7621 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7623 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7624 lt_prog_compiler_pic_works=yes
7625 fi
7626 fi
7627 $rm conftest*
7628
7629fi
dd184caf 7630{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7631echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
d9898ee8 7632
7633if test x"$lt_prog_compiler_pic_works" = xyes; then
7634 case $lt_prog_compiler_pic in
7635 "" | " "*) ;;
7636 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7637 esac
7638else
7639 lt_prog_compiler_pic=
7640 lt_prog_compiler_can_build_shared=no
7641fi
7642
7643fi
7644case $host_os in
7645 # For platforms which do not support PIC, -DPIC is meaningless:
7646 *djgpp*)
7647 lt_prog_compiler_pic=
7648 ;;
7649 *)
7650 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7651 ;;
7652esac
7653
7654#
7655# Check to make sure the static flag actually works.
7656#
7657wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
dd184caf 7658{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7659echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 7660if test "${lt_prog_compiler_static_works+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7662else
7663 lt_prog_compiler_static_works=no
7664 save_LDFLAGS="$LDFLAGS"
7665 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 7666 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 7667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7668 # The linker can only warn and ignore the option if not recognized
7669 # So say no if there are warnings
7670 if test -s conftest.err; then
7671 # Append any errors to the config.log.
7672 cat conftest.err 1>&5
7673 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7675 if diff conftest.exp conftest.er2 >/dev/null; then
7676 lt_prog_compiler_static_works=yes
7677 fi
7678 else
7679 lt_prog_compiler_static_works=yes
7680 fi
7681 fi
7682 $rm conftest*
7683 LDFLAGS="$save_LDFLAGS"
7684
7685fi
dd184caf 7686{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7687echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
d9898ee8 7688
7689if test x"$lt_prog_compiler_static_works" = xyes; then
7690 :
7691else
7692 lt_prog_compiler_static=
7693fi
7694
7695
dd184caf 7696{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7697echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 7698if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7700else
7701 lt_cv_prog_compiler_c_o=no
7702 $rm -r conftest 2>/dev/null
7703 mkdir conftest
7704 cd conftest
7705 mkdir out
ac40fd9e 7706 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7707
7708 lt_compiler_flag="-o out/conftest2.$ac_objext"
7709 # Insert the option either (1) after the last *FLAGS variable, or
7710 # (2) before a word containing "conftest.", or (3) at the end.
7711 # Note that $ac_compile itself does not contain backslashes and begins
7712 # with a dollar sign (not a hyphen), so the echo should work correctly.
7713 lt_compile=`echo "$ac_compile" | $SED \
7714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7716 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 7717 (eval echo "\"\$as_me:7717: $lt_compile\"" >&5)
d9898ee8 7718 (eval "$lt_compile" 2>out/conftest.err)
7719 ac_status=$?
7720 cat out/conftest.err >&5
ac40fd9e 7721 echo "$as_me:7721: \$? = $ac_status" >&5
d9898ee8 7722 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7723 then
7724 # The compiler can only warn and ignore the option if not recognized
7725 # So say no if there are warnings
7726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7727 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7728 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7729 lt_cv_prog_compiler_c_o=yes
7730 fi
7731 fi
7732 chmod u+w . 2>&5
7733 $rm conftest*
7734 # SGI C++ compiler will create directory out/ii_files/ for
7735 # template instantiation
7736 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7737 $rm out/* && rmdir out
7738 cd ..
7739 rmdir conftest
7740 $rm conftest*
7741
7742fi
dd184caf 7743{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7744echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
d9898ee8 7745
7746
7747hard_links="nottested"
7748if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7749 # do not overwrite the value of need_locks provided by the user
dd184caf 7750 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7751echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 7752 hard_links=yes
7753 $rm conftest*
7754 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7755 touch conftest.a
7756 ln conftest.a conftest.b 2>&5 || hard_links=no
7757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 7758 { echo "$as_me:$LINENO: result: $hard_links" >&5
7759echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 7760 if test "$hard_links" = no; then
7761 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7762echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7763 need_locks=warn
7764 fi
7765else
7766 need_locks=no
7767fi
7768
dd184caf 7769{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7770echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 7771
7772 runpath_var=
7773 allow_undefined_flag=
7774 enable_shared_with_static_runtimes=no
7775 archive_cmds=
7776 archive_expsym_cmds=
7777 old_archive_From_new_cmds=
7778 old_archive_from_expsyms_cmds=
7779 export_dynamic_flag_spec=
7780 whole_archive_flag_spec=
7781 thread_safe_flag_spec=
7782 hardcode_libdir_flag_spec=
7783 hardcode_libdir_flag_spec_ld=
7784 hardcode_libdir_separator=
7785 hardcode_direct=no
7786 hardcode_minus_L=no
7787 hardcode_shlibpath_var=unsupported
7788 link_all_deplibs=unknown
7789 hardcode_automatic=no
7790 module_cmds=
7791 module_expsym_cmds=
7792 always_export_symbols=no
7793 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7794 # include_expsyms should be a list of space-separated symbols to be *always*
7795 # included in the symbol list
7796 include_expsyms=
7797 # exclude_expsyms can be an extended regexp of symbols to exclude
7798 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7799 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7800 # as well as any symbol that contains `d'.
7801 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7802 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7803 # platforms (ab)use it in PIC code, but their linkers get confused if
7804 # the symbol is explicitly referenced. Since portable code cannot
7805 # rely on this symbol name, it's probably fine to never include it in
7806 # preloaded symbol tables.
7807 extract_expsyms_cmds=
7808 # Just being paranoid about ensuring that cc_basename is set.
7809 for cc_temp in $compiler""; do
7810 case $cc_temp in
7811 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7812 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7813 \-*) ;;
7814 *) break;;
7815 esac
7816done
7817cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7818
7819 case $host_os in
7820 cygwin* | mingw* | pw32*)
7821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7822 # When not using gcc, we currently assume that we are using
7823 # Microsoft Visual C++.
7824 if test "$GCC" != yes; then
7825 with_gnu_ld=no
7826 fi
7827 ;;
7828 interix*)
7829 # we just hope/assume this is gcc and not c89 (= MSVC++)
7830 with_gnu_ld=yes
7831 ;;
7832 openbsd*)
7833 with_gnu_ld=no
7834 ;;
7835 esac
7836
7837 ld_shlibs=yes
7838 if test "$with_gnu_ld" = yes; then
7839 # If archive_cmds runs LD, not CC, wlarc should be empty
7840 wlarc='${wl}'
7841
7842 # Set some defaults for GNU ld with shared library support. These
7843 # are reset later if shared libraries are not supported. Putting them
7844 # here allows them to be overridden if necessary.
7845 runpath_var=LD_RUN_PATH
7846 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7847 export_dynamic_flag_spec='${wl}--export-dynamic'
7848 # ancient GNU ld didn't support --whole-archive et. al.
7849 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7850 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7851 else
7852 whole_archive_flag_spec=
7853 fi
7854 supports_anon_versioning=no
7855 case `$LD -v 2>/dev/null` in
7856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7859 *\ 2.11.*) ;; # other 2.11 versions
7860 *) supports_anon_versioning=yes ;;
7861 esac
7862
7863 # See if GNU ld supports shared libraries.
7864 case $host_os in
7865 aix3* | aix4* | aix5*)
7866 # On AIX/PPC, the GNU linker is very broken
7867 if test "$host_cpu" != ia64; then
7868 ld_shlibs=no
7869 cat <<EOF 1>&2
7870
7871*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7872*** to be unable to reliably create shared libraries on AIX.
7873*** Therefore, libtool is disabling shared libraries support. If you
7874*** really care for shared libraries, you may want to modify your PATH
7875*** so that a non-GNU linker is found, and then restart.
7876
7877EOF
7878 fi
7879 ;;
7880
7881 amigaos*)
7882 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)'
7883 hardcode_libdir_flag_spec='-L$libdir'
7884 hardcode_minus_L=yes
7885
7886 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7887 # that the semantics of dynamic libraries on AmigaOS, at least up
7888 # to version 4, is to share data among multiple programs linked
7889 # with the same dynamic library. Since this doesn't match the
7890 # behavior of shared libraries on other platforms, we can't use
7891 # them.
7892 ld_shlibs=no
7893 ;;
7894
7895 beos*)
7896 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7897 allow_undefined_flag=unsupported
7898 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7899 # support --undefined. This deserves some investigation. FIXME
7900 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7901 else
7902 ld_shlibs=no
7903 fi
7904 ;;
7905
7906 cygwin* | mingw* | pw32*)
7907 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7908 # as there is no search path for DLLs.
7909 hardcode_libdir_flag_spec='-L$libdir'
7910 allow_undefined_flag=unsupported
7911 always_export_symbols=no
7912 enable_shared_with_static_runtimes=yes
ac40fd9e 7913 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 7914
7915 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7917 # If the export-symbols file already is a .def file (1st line
7918 # is EXPORTS), use it as is; otherwise, prepend...
7919 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7920 cp $export_symbols $output_objdir/$soname.def;
7921 else
7922 echo EXPORTS > $output_objdir/$soname.def;
7923 cat $export_symbols >> $output_objdir/$soname.def;
7924 fi~
7925 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7926 else
7927 ld_shlibs=no
7928 fi
7929 ;;
7930
ac40fd9e 7931 interix[3-9]*)
d9898ee8 7932 hardcode_direct=no
7933 hardcode_shlibpath_var=no
7934 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7935 export_dynamic_flag_spec='${wl}-E'
7936 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7937 # Instead, shared libraries are loaded at an image base (0x10000000 by
7938 # default) and relocated if they conflict, which is a slow very memory
7939 # consuming and fragmenting process. To avoid this, we pick a random,
7940 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7941 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7942 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7943 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'
7944 ;;
7945
ac40fd9e 7946 gnu* | linux* | k*bsd*-gnu)
d9898ee8 7947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7948 tmp_addflag=
7949 case $cc_basename,$host_cpu in
7950 pgcc*) # Portland Group C compiler
7951 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'
7952 tmp_addflag=' $pic_flag'
7953 ;;
7954 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7955 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'
7956 tmp_addflag=' $pic_flag -Mnomain' ;;
7957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7958 tmp_addflag=' -i_dynamic' ;;
7959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7960 tmp_addflag=' -i_dynamic -nofor_main' ;;
7961 ifc* | ifort*) # Intel Fortran compiler
7962 tmp_addflag=' -nofor_main' ;;
7963 esac
ac40fd9e 7964 case `$CC -V 2>&1 | sed 5q` in
7965 *Sun\ C*) # Sun C 5.9
7966 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7967 tmp_sharedflag='-G' ;;
7968 *Sun\ F*) # Sun Fortran 8.3
7969 tmp_sharedflag='-G' ;;
7970 *)
7971 tmp_sharedflag='-shared' ;;
7972 esac
7973 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 7974
7975 if test $supports_anon_versioning = yes; then
7976 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7978 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 7979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 7980 fi
7981 else
7982 ld_shlibs=no
7983 fi
7984 ;;
7985
7986 netbsd*)
7987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7988 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7989 wlarc=
7990 else
7991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7993 fi
7994 ;;
7995
7996 solaris*)
7997 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7998 ld_shlibs=no
7999 cat <<EOF 1>&2
8000
8001*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8002*** create shared libraries on Solaris systems. Therefore, libtool
8003*** is disabling shared libraries support. We urge you to upgrade GNU
8004*** binutils to release 2.9.1 or newer. Another option is to modify
8005*** your PATH or compiler configuration so that the native linker is
8006*** used, and then restart.
8007
8008EOF
8009 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8012 else
8013 ld_shlibs=no
8014 fi
8015 ;;
8016
8017 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8018 case `$LD -v 2>&1` in
8019 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8020 ld_shlibs=no
8021 cat <<_LT_EOF 1>&2
8022
8023*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8024*** reliably create shared libraries on SCO systems. Therefore, libtool
8025*** is disabling shared libraries support. We urge you to upgrade GNU
8026*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8027*** your PATH or compiler configuration so that the native linker is
8028*** used, and then restart.
8029
8030_LT_EOF
8031 ;;
8032 *)
8033 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8034 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8037 else
8038 ld_shlibs=no
8039 fi
8040 ;;
8041 esac
8042 ;;
8043
8044 sunos4*)
8045 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8046 wlarc=
8047 hardcode_direct=yes
8048 hardcode_shlibpath_var=no
8049 ;;
8050
8051 *)
8052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8055 else
8056 ld_shlibs=no
8057 fi
8058 ;;
8059 esac
8060
8061 if test "$ld_shlibs" = no; then
8062 runpath_var=
8063 hardcode_libdir_flag_spec=
8064 export_dynamic_flag_spec=
8065 whole_archive_flag_spec=
8066 fi
8067 else
8068 # PORTME fill in a description of your system's linker (not GNU ld)
8069 case $host_os in
8070 aix3*)
8071 allow_undefined_flag=unsupported
8072 always_export_symbols=yes
8073 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'
8074 # Note: this linker hardcodes the directories in LIBPATH if there
8075 # are no directories specified by -L.
8076 hardcode_minus_L=yes
8077 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8078 # Neither direct hardcoding nor static linking is supported with a
8079 # broken collect2.
8080 hardcode_direct=unsupported
8081 fi
8082 ;;
8083
8084 aix4* | aix5*)
8085 if test "$host_cpu" = ia64; then
8086 # On IA64, the linker does run time linking by default, so we don't
8087 # have to do anything special.
8088 aix_use_runtimelinking=no
8089 exp_sym_flag='-Bexport'
8090 no_entry_flag=""
8091 else
8092 # If we're using GNU nm, then we don't want the "-C" option.
8093 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8094 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8095 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'
8096 else
8097 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'
8098 fi
8099 aix_use_runtimelinking=no
8100
8101 # Test if we are trying to use run time linking or normal
8102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8103 # need to do runtime linking.
8104 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8105 for ld_flag in $LDFLAGS; do
8106 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8107 aix_use_runtimelinking=yes
8108 break
8109 fi
8110 done
8111 ;;
8112 esac
8113
8114 exp_sym_flag='-bexport'
8115 no_entry_flag='-bnoentry'
8116 fi
8117
8118 # When large executables or shared objects are built, AIX ld can
8119 # have problems creating the table of contents. If linking a library
8120 # or program results in "error TOC overflow" add -mminimal-toc to
8121 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8122 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8123
8124 archive_cmds=''
8125 hardcode_direct=yes
8126 hardcode_libdir_separator=':'
8127 link_all_deplibs=yes
8128
8129 if test "$GCC" = yes; then
8130 case $host_os in aix4.[012]|aix4.[012].*)
8131 # We only want to do this on AIX 4.2 and lower, the check
8132 # below for broken collect2 doesn't work under 4.3+
8133 collect2name=`${CC} -print-prog-name=collect2`
8134 if test -f "$collect2name" && \
8135 strings "$collect2name" | grep resolve_lib_name >/dev/null
8136 then
8137 # We have reworked collect2
ac40fd9e 8138 :
d9898ee8 8139 else
8140 # We have old collect2
8141 hardcode_direct=unsupported
8142 # It fails to find uninstalled libraries when the uninstalled
8143 # path is not listed in the libpath. Setting hardcode_minus_L
8144 # to unsupported forces relinking
8145 hardcode_minus_L=yes
8146 hardcode_libdir_flag_spec='-L$libdir'
8147 hardcode_libdir_separator=
8148 fi
8149 ;;
8150 esac
8151 shared_flag='-shared'
8152 if test "$aix_use_runtimelinking" = yes; then
8153 shared_flag="$shared_flag "'${wl}-G'
8154 fi
8155 else
8156 # not using gcc
8157 if test "$host_cpu" = ia64; then
8158 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8159 # chokes on -Wl,-G. The following line is correct:
8160 shared_flag='-G'
8161 else
8162 if test "$aix_use_runtimelinking" = yes; then
8163 shared_flag='${wl}-G'
8164 else
8165 shared_flag='${wl}-bM:SRE'
8166 fi
8167 fi
8168 fi
8169
8170 # It seems that -bexpall does not export symbols beginning with
8171 # underscore (_), so it is better to generate a list of symbols to export.
8172 always_export_symbols=yes
8173 if test "$aix_use_runtimelinking" = yes; then
8174 # Warning - without using the other runtime loading flags (-brtl),
8175 # -berok will link without error, but may produce a broken library.
8176 allow_undefined_flag='-berok'
8177 # Determine the default libpath from the value encoded in an empty executable.
8178 cat >conftest.$ac_ext <<_ACEOF
8179/* confdefs.h. */
8180_ACEOF
8181cat confdefs.h >>conftest.$ac_ext
8182cat >>conftest.$ac_ext <<_ACEOF
8183/* end confdefs.h. */
8184
8185int
8186main ()
8187{
8188
8189 ;
8190 return 0;
8191}
8192_ACEOF
8193rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8194if { (ac_try="$ac_link"
8195case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198esac
8199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_link") 2>conftest.er1
d9898ee8 8201 ac_status=$?
8202 grep -v '^ *+' conftest.er1 >conftest.err
8203 rm -f conftest.er1
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest$ac_exeext &&
8210 $as_test_x conftest$ac_exeext; then
d9898ee8 8211
ac40fd9e 8212lt_aix_libpath_sed='
8213 /Import File Strings/,/^$/ {
8214 /^0/ {
8215 s/^0 *\(.*\)$/\1/
8216 p
8217 }
8218 }'
8219aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8220# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8221if test -z "$aix_libpath"; then
8222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8223fi
d9898ee8 8224else
8225 echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
dd184caf 8228
d9898ee8 8229fi
dd184caf 8230
8231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8232 conftest$ac_exeext conftest.$ac_ext
8233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8234
8235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8236 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"
8237 else
8238 if test "$host_cpu" = ia64; then
8239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8240 allow_undefined_flag="-z nodefs"
8241 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"
8242 else
8243 # Determine the default libpath from the value encoded in an empty executable.
8244 cat >conftest.$ac_ext <<_ACEOF
8245/* confdefs.h. */
8246_ACEOF
8247cat confdefs.h >>conftest.$ac_ext
8248cat >>conftest.$ac_ext <<_ACEOF
8249/* end confdefs.h. */
8250
8251int
8252main ()
8253{
8254
8255 ;
8256 return 0;
8257}
8258_ACEOF
8259rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8260if { (ac_try="$ac_link"
8261case "(($ac_try" in
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8264esac
8265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_link") 2>conftest.er1
d9898ee8 8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest$ac_exeext &&
8276 $as_test_x conftest$ac_exeext; then
d9898ee8 8277
ac40fd9e 8278lt_aix_libpath_sed='
8279 /Import File Strings/,/^$/ {
8280 /^0/ {
8281 s/^0 *\(.*\)$/\1/
8282 p
8283 }
8284 }'
8285aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8286# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8287if test -z "$aix_libpath"; then
8288 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8289fi
d9898ee8 8290else
8291 echo "$as_me: failed program was:" >&5
8292sed 's/^/| /' conftest.$ac_ext >&5
8293
dd184caf 8294
d9898ee8 8295fi
dd184caf 8296
8297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8298 conftest$ac_exeext conftest.$ac_ext
8299if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8300
8301 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8302 # Warning - without using the other run time loading flags,
8303 # -berok will link without error, but may produce a broken library.
8304 no_undefined_flag=' ${wl}-bernotok'
8305 allow_undefined_flag=' ${wl}-berok'
8306 # Exported symbols can be pulled into shared objects from archives
8307 whole_archive_flag_spec='$convenience'
8308 archive_cmds_need_lc=yes
8309 # This is similar to how AIX traditionally builds its shared libraries.
8310 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'
8311 fi
8312 fi
8313 ;;
8314
8315 amigaos*)
8316 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)'
8317 hardcode_libdir_flag_spec='-L$libdir'
8318 hardcode_minus_L=yes
8319 # see comment about different semantics on the GNU ld section
8320 ld_shlibs=no
8321 ;;
8322
8323 bsdi[45]*)
8324 export_dynamic_flag_spec=-rdynamic
8325 ;;
8326
8327 cygwin* | mingw* | pw32*)
8328 # When not using gcc, we currently assume that we are using
8329 # Microsoft Visual C++.
8330 # hardcode_libdir_flag_spec is actually meaningless, as there is
8331 # no search path for DLLs.
8332 hardcode_libdir_flag_spec=' '
8333 allow_undefined_flag=unsupported
8334 # Tell ltmain to make .lib files, not .a files.
8335 libext=lib
8336 # Tell ltmain to make .dll files, not .so files.
8337 shrext_cmds=".dll"
8338 # FIXME: Setting linknames here is a bad hack.
8339 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8340 # The linker will automatically build a .lib file if we build a DLL.
8341 old_archive_From_new_cmds='true'
8342 # FIXME: Should let the user specify the lib program.
ac40fd9e 8343 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 8344 fix_srcfile_path='`cygpath -w "$srcfile"`'
8345 enable_shared_with_static_runtimes=yes
8346 ;;
8347
8348 darwin* | rhapsody*)
8349 case $host_os in
8350 rhapsody* | darwin1.[012])
8351 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8352 ;;
8353 *) # Darwin 1.3 on
8354 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8355 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8356 else
8357 case ${MACOSX_DEPLOYMENT_TARGET} in
8358 10.[012])
8359 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8360 ;;
8361 10.*)
8362 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8363 ;;
8364 esac
8365 fi
8366 ;;
8367 esac
8368 archive_cmds_need_lc=no
8369 hardcode_direct=no
8370 hardcode_automatic=yes
8371 hardcode_shlibpath_var=unsupported
8372 whole_archive_flag_spec=''
8373 link_all_deplibs=yes
8374 if test "$GCC" = yes ; then
8375 output_verbose_link_cmd='echo'
8376 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8377 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8378 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8379 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}'
8380 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}'
8381 else
8382 case $cc_basename in
8383 xlc*)
8384 output_verbose_link_cmd='echo'
ac40fd9e 8385 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 8386 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8387 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 8388 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 8389 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}'
8390 ;;
8391 *)
8392 ld_shlibs=no
8393 ;;
8394 esac
8395 fi
8396 ;;
8397
8398 dgux*)
8399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400 hardcode_libdir_flag_spec='-L$libdir'
8401 hardcode_shlibpath_var=no
8402 ;;
8403
8404 freebsd1*)
8405 ld_shlibs=no
8406 ;;
8407
8408 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8409 # support. Future versions do this automatically, but an explicit c++rt0.o
8410 # does not break anything, and helps significantly (at the cost of a little
8411 # extra space).
8412 freebsd2.2*)
8413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8414 hardcode_libdir_flag_spec='-R$libdir'
8415 hardcode_direct=yes
8416 hardcode_shlibpath_var=no
8417 ;;
8418
8419 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8420 freebsd2*)
8421 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8422 hardcode_direct=yes
8423 hardcode_minus_L=yes
8424 hardcode_shlibpath_var=no
8425 ;;
8426
8427 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 8428 freebsd* | dragonfly*)
d9898ee8 8429 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8430 hardcode_libdir_flag_spec='-R$libdir'
8431 hardcode_direct=yes
8432 hardcode_shlibpath_var=no
8433 ;;
8434
8435 hpux9*)
8436 if test "$GCC" = yes; then
8437 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'
8438 else
8439 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'
8440 fi
8441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8442 hardcode_libdir_separator=:
8443 hardcode_direct=yes
8444
8445 # hardcode_minus_L: Not really in the search PATH,
8446 # but as the default location of the library.
8447 hardcode_minus_L=yes
8448 export_dynamic_flag_spec='${wl}-E'
8449 ;;
8450
8451 hpux10*)
8452 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8453 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8454 else
8455 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8456 fi
8457 if test "$with_gnu_ld" = no; then
8458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8459 hardcode_libdir_separator=:
8460
8461 hardcode_direct=yes
8462 export_dynamic_flag_spec='${wl}-E'
8463
8464 # hardcode_minus_L: Not really in the search PATH,
8465 # but as the default location of the library.
8466 hardcode_minus_L=yes
8467 fi
8468 ;;
8469
8470 hpux11*)
8471 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8472 case $host_cpu in
8473 hppa*64*)
8474 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 ;;
8476 ia64*)
8477 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8478 ;;
8479 *)
8480 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8481 ;;
8482 esac
8483 else
8484 case $host_cpu in
8485 hppa*64*)
8486 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8487 ;;
8488 ia64*)
8489 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8490 ;;
8491 *)
8492 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8493 ;;
8494 esac
8495 fi
8496 if test "$with_gnu_ld" = no; then
8497 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8498 hardcode_libdir_separator=:
8499
8500 case $host_cpu in
8501 hppa*64*|ia64*)
8502 hardcode_libdir_flag_spec_ld='+b $libdir'
8503 hardcode_direct=no
8504 hardcode_shlibpath_var=no
8505 ;;
8506 *)
8507 hardcode_direct=yes
8508 export_dynamic_flag_spec='${wl}-E'
8509
8510 # hardcode_minus_L: Not really in the search PATH,
8511 # but as the default location of the library.
8512 hardcode_minus_L=yes
8513 ;;
8514 esac
8515 fi
8516 ;;
8517
8518 irix5* | irix6* | nonstopux*)
8519 if test "$GCC" = yes; then
8520 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'
8521 else
8522 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'
8523 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8524 fi
8525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8526 hardcode_libdir_separator=:
8527 link_all_deplibs=yes
8528 ;;
8529
8530 netbsd*)
8531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8533 else
8534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8535 fi
8536 hardcode_libdir_flag_spec='-R$libdir'
8537 hardcode_direct=yes
8538 hardcode_shlibpath_var=no
8539 ;;
8540
8541 newsos6)
8542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8543 hardcode_direct=yes
8544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8545 hardcode_libdir_separator=:
8546 hardcode_shlibpath_var=no
8547 ;;
8548
8549 openbsd*)
ac40fd9e 8550 if test -f /usr/libexec/ld.so; then
8551 hardcode_direct=yes
8552 hardcode_shlibpath_var=no
8553 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8554 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8557 export_dynamic_flag_spec='${wl}-E'
8558 else
8559 case $host_os in
8560 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8561 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_libdir_flag_spec='-R$libdir'
8563 ;;
8564 *)
8565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8566 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8567 ;;
8568 esac
8569 fi
d9898ee8 8570 else
ac40fd9e 8571 ld_shlibs=no
d9898ee8 8572 fi
8573 ;;
8574
8575 os2*)
8576 hardcode_libdir_flag_spec='-L$libdir'
8577 hardcode_minus_L=yes
8578 allow_undefined_flag=unsupported
8579 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'
8580 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8581 ;;
8582
8583 osf3*)
8584 if test "$GCC" = yes; then
8585 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8586 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'
8587 else
8588 allow_undefined_flag=' -expect_unresolved \*'
8589 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'
8590 fi
8591 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592 hardcode_libdir_separator=:
8593 ;;
8594
8595 osf4* | osf5*) # as osf3* with the addition of -msym flag
8596 if test "$GCC" = yes; then
8597 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8598 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'
8599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8600 else
8601 allow_undefined_flag=' -expect_unresolved \*'
8602 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'
8603 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8604 $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'
8605
8606 # Both c and cxx compiler support -rpath directly
8607 hardcode_libdir_flag_spec='-rpath $libdir'
8608 fi
8609 hardcode_libdir_separator=:
8610 ;;
8611
8612 solaris*)
8613 no_undefined_flag=' -z text'
8614 if test "$GCC" = yes; then
8615 wlarc='${wl}'
8616 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8617 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8618 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8619 else
8620 wlarc=''
8621 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8622 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8624 fi
8625 hardcode_libdir_flag_spec='-R$libdir'
8626 hardcode_shlibpath_var=no
8627 case $host_os in
8628 solaris2.[0-5] | solaris2.[0-5].*) ;;
8629 *)
ac40fd9e 8630 # The compiler driver will combine and reorder linker options,
8631 # but understands `-z linker_flag'. GCC discards it without `$wl',
8632 # but is careful enough not to reorder.
d9898ee8 8633 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 8634 if test "$GCC" = yes; then
8635 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8636 else
8637 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8638 fi
8639 ;;
d9898ee8 8640 esac
8641 link_all_deplibs=yes
8642 ;;
8643
8644 sunos4*)
8645 if test "x$host_vendor" = xsequent; then
8646 # Use $CC to link under sequent, because it throws in some extra .o
8647 # files that make .init and .fini sections work.
8648 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8649 else
8650 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8651 fi
8652 hardcode_libdir_flag_spec='-L$libdir'
8653 hardcode_direct=yes
8654 hardcode_minus_L=yes
8655 hardcode_shlibpath_var=no
8656 ;;
8657
8658 sysv4)
8659 case $host_vendor in
8660 sni)
8661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_direct=yes # is this really true???
8663 ;;
8664 siemens)
8665 ## LD is ld it makes a PLAMLIB
8666 ## CC just makes a GrossModule.
8667 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8668 reload_cmds='$CC -r -o $output$reload_objs'
8669 hardcode_direct=no
8670 ;;
8671 motorola)
8672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8673 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8674 ;;
8675 esac
8676 runpath_var='LD_RUN_PATH'
8677 hardcode_shlibpath_var=no
8678 ;;
8679
8680 sysv4.3*)
8681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8682 hardcode_shlibpath_var=no
8683 export_dynamic_flag_spec='-Bexport'
8684 ;;
8685
8686 sysv4*MP*)
8687 if test -d /usr/nec; then
8688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_shlibpath_var=no
8690 runpath_var=LD_RUN_PATH
8691 hardcode_runpath_var=yes
8692 ld_shlibs=yes
8693 fi
8694 ;;
8695
ac40fd9e 8696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 8697 no_undefined_flag='${wl}-z,text'
8698 archive_cmds_need_lc=no
8699 hardcode_shlibpath_var=no
8700 runpath_var='LD_RUN_PATH'
8701
8702 if test "$GCC" = yes; then
8703 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8704 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8705 else
8706 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8707 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8708 fi
8709 ;;
8710
8711 sysv5* | sco3.2v5* | sco5v6*)
8712 # Note: We can NOT use -z defs as we might desire, because we do not
8713 # link with -lc, and that would cause any symbols used from libc to
8714 # always be unresolved, which means just about no library would
8715 # ever link correctly. If we're not using GNU ld we use -z text
8716 # though, which does catch some bad symbols but isn't as heavy-handed
8717 # as -z defs.
8718 no_undefined_flag='${wl}-z,text'
8719 allow_undefined_flag='${wl}-z,nodefs'
8720 archive_cmds_need_lc=no
8721 hardcode_shlibpath_var=no
8722 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8723 hardcode_libdir_separator=':'
8724 link_all_deplibs=yes
8725 export_dynamic_flag_spec='${wl}-Bexport'
8726 runpath_var='LD_RUN_PATH'
8727
8728 if test "$GCC" = yes; then
8729 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8731 else
8732 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 fi
8735 ;;
8736
8737 uts4*)
8738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739 hardcode_libdir_flag_spec='-L$libdir'
8740 hardcode_shlibpath_var=no
8741 ;;
8742
8743 *)
8744 ld_shlibs=no
8745 ;;
8746 esac
8747 fi
8748
dd184caf 8749{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8750echo "${ECHO_T}$ld_shlibs" >&6; }
d9898ee8 8751test "$ld_shlibs" = no && can_build_shared=no
8752
8753#
8754# Do we need to explicitly link libc?
8755#
8756case "x$archive_cmds_need_lc" in
8757x|xyes)
8758 # Assume -lc should be added
8759 archive_cmds_need_lc=yes
8760
8761 if test "$enable_shared" = yes && test "$GCC" = yes; then
8762 case $archive_cmds in
8763 *'~'*)
8764 # FIXME: we may have to deal with multi-command sequences.
8765 ;;
8766 '$CC '*)
8767 # Test whether the compiler implicitly links with -lc since on some
8768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8769 # to ld, don't add -lc before -lgcc.
dd184caf 8770 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8771echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 8772 $rm conftest*
ac40fd9e 8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8774
8775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8776 (eval $ac_compile) 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); } 2>conftest.err; then
8780 soname=conftest
8781 lib=conftest
8782 libobjs=conftest.$ac_objext
8783 deplibs=
8784 wl=$lt_prog_compiler_wl
8785 pic_flag=$lt_prog_compiler_pic
8786 compiler_flags=-v
8787 linker_flags=-v
8788 verstring=
8789 output_objdir=.
8790 libname=conftest
8791 lt_save_allow_undefined_flag=$allow_undefined_flag
8792 allow_undefined_flag=
8793 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8794 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }
8798 then
8799 archive_cmds_need_lc=no
8800 else
8801 archive_cmds_need_lc=yes
8802 fi
8803 allow_undefined_flag=$lt_save_allow_undefined_flag
8804 else
8805 cat conftest.err 1>&5
8806 fi
8807 $rm conftest*
dd184caf 8808 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8809echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
d9898ee8 8810 ;;
8811 esac
8812 fi
8813 ;;
8814esac
8815
dd184caf 8816{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8817echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 8818library_names_spec=
8819libname_spec='lib$name'
8820soname_spec=
8821shrext_cmds=".so"
8822postinstall_cmds=
8823postuninstall_cmds=
8824finish_cmds=
8825finish_eval=
8826shlibpath_var=
8827shlibpath_overrides_runpath=unknown
8828version_type=none
8829dynamic_linker="$host_os ld.so"
8830sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 8831
d9898ee8 8832if test "$GCC" = yes; then
ac40fd9e 8833 case $host_os in
8834 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8835 *) lt_awk_arg="/^libraries:/" ;;
8836 esac
8837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8838 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
d9898ee8 8839 # if the path contains ";" then we assume it to be the separator
8840 # otherwise default to the standard path separator (i.e. ":") - it is
8841 # assumed that no part of a normal pathname contains ";" but that should
8842 # okay in the real world where ";" in dirpaths is itself problematic.
ac40fd9e 8843 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 8844 else
ac40fd9e 8845 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 8846 fi
ac40fd9e 8847 # Ok, now we have the path, separated by spaces, we can step through it
8848 # and add multilib dir if necessary.
8849 lt_tmp_lt_search_path_spec=
8850 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8851 for lt_sys_path in $lt_search_path_spec; do
8852 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8854 else
8855 test -d "$lt_sys_path" && \
8856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8857 fi
8858 done
8859 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8860BEGIN {RS=" "; FS="/|\n";} {
8861 lt_foo="";
8862 lt_count=0;
8863 for (lt_i = NF; lt_i > 0; lt_i--) {
8864 if ($lt_i != "" && $lt_i != ".") {
8865 if ($lt_i == "..") {
8866 lt_count++;
8867 } else {
8868 if (lt_count == 0) {
8869 lt_foo="/" $lt_i lt_foo;
8870 } else {
8871 lt_count--;
8872 }
8873 }
8874 }
8875 }
8876 if (lt_foo != "") { lt_freq[lt_foo]++; }
8877 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8878}'`
8879 sys_lib_search_path_spec=`echo $lt_search_path_spec`
d9898ee8 8880else
8881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8882fi
8883need_lib_prefix=unknown
8884hardcode_into_libs=no
8885
8886# when you set need_version to no, make sure it does not cause -set_version
8887# flags to be left without arguments
8888need_version=unknown
8889
8890case $host_os in
8891aix3*)
8892 version_type=linux
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8894 shlibpath_var=LIBPATH
8895
8896 # AIX 3 has no versioning support, so we append a major version to the name.
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 ;;
8899
8900aix4* | aix5*)
8901 version_type=linux
8902 need_lib_prefix=no
8903 need_version=no
8904 hardcode_into_libs=yes
8905 if test "$host_cpu" = ia64; then
8906 # AIX 5 supports IA64
8907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8908 shlibpath_var=LD_LIBRARY_PATH
8909 else
8910 # With GCC up to 2.95.x, collect2 would create an import file
8911 # for dependence libraries. The import file would start with
8912 # the line `#! .'. This would cause the generated library to
8913 # depend on `.', always an invalid library. This was fixed in
8914 # development snapshots of GCC prior to 3.0.
8915 case $host_os in
8916 aix4 | aix4.[01] | aix4.[01].*)
8917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8918 echo ' yes '
8919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8920 :
8921 else
8922 can_build_shared=no
8923 fi
8924 ;;
8925 esac
8926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8927 # soname into executable. Probably we can add versioning support to
8928 # collect2, so additional links can be useful in future.
8929 if test "$aix_use_runtimelinking" = yes; then
8930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8931 # instead of lib<name>.a to let people know that these are not
8932 # typical AIX shared libraries.
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 else
8935 # We preserve .a as extension for shared libraries through AIX4.2
8936 # and later when we are not doing run time linking.
8937 library_names_spec='${libname}${release}.a $libname.a'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 fi
8940 shlibpath_var=LIBPATH
8941 fi
8942 ;;
8943
8944amigaos*)
8945 library_names_spec='$libname.ixlibrary $libname.a'
8946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8947 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'
8948 ;;
8949
8950beos*)
8951 library_names_spec='${libname}${shared_ext}'
8952 dynamic_linker="$host_os ld.so"
8953 shlibpath_var=LIBRARY_PATH
8954 ;;
8955
8956bsdi[45]*)
8957 version_type=linux
8958 need_version=no
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8965 # the default ld.so.conf also contains /usr/contrib/lib and
8966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8967 # libtool to hard-code these into programs
8968 ;;
8969
8970cygwin* | mingw* | pw32*)
8971 version_type=windows
8972 shrext_cmds=".dll"
8973 need_version=no
8974 need_lib_prefix=no
8975
8976 case $GCC,$host_os in
8977 yes,cygwin* | yes,mingw* | yes,pw32*)
8978 library_names_spec='$libname.dll.a'
8979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8980 postinstall_cmds='base_file=`basename \${file}`~
8981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8982 dldir=$destdir/`dirname \$dlpath`~
8983 test -d \$dldir || mkdir -p \$dldir~
8984 $install_prog $dir/$dlname \$dldir/$dlname~
8985 chmod a+x \$dldir/$dlname'
8986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8987 dlpath=$dir/\$dldll~
8988 $rm \$dlpath'
8989 shlibpath_overrides_runpath=yes
8990
8991 case $host_os in
8992 cygwin*)
8993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8996 ;;
8997 mingw*)
8998 # MinGW DLLs use traditional 'lib' prefix
8999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9001 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9002 # It is most probably a Windows format PATH printed by
9003 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9004 # path with ; separators, and with drive letters. We can handle the
9005 # drive letters (cygwin fileutils understands them), so leave them,
9006 # especially as we might pass files found there to a mingw objdump,
9007 # which wouldn't understand a cygwinified path. Ahh.
9008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9009 else
9010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9011 fi
9012 ;;
9013 pw32*)
9014 # pw32 DLLs use 'pw' prefix rather than 'lib'
9015 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016 ;;
9017 esac
9018 ;;
9019
9020 *)
9021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9022 ;;
9023 esac
9024 dynamic_linker='Win32 ld.exe'
9025 # FIXME: first we should search . and the directory the executable is in
9026 shlibpath_var=PATH
9027 ;;
9028
9029darwin* | rhapsody*)
9030 dynamic_linker="$host_os dyld"
9031 version_type=darwin
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9035 soname_spec='${libname}${release}${major}$shared_ext'
9036 shlibpath_overrides_runpath=yes
9037 shlibpath_var=DYLD_LIBRARY_PATH
9038 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9039
9040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9041 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9042 ;;
9043
9044dgux*)
9045 version_type=linux
9046 need_lib_prefix=no
9047 need_version=no
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 ;;
9052
9053freebsd1*)
9054 dynamic_linker=no
9055 ;;
9056
d9898ee8 9057freebsd* | dragonfly*)
9058 # DragonFly does not have aout. When/if they implement a new
9059 # versioning mechanism, adjust this.
9060 if test -x /usr/bin/objformat; then
9061 objformat=`/usr/bin/objformat`
9062 else
9063 case $host_os in
9064 freebsd[123]*) objformat=aout ;;
9065 *) objformat=elf ;;
9066 esac
9067 fi
9068 version_type=freebsd-$objformat
9069 case $version_type in
9070 freebsd-elf*)
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9072 need_version=no
9073 need_lib_prefix=no
9074 ;;
9075 freebsd-*)
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9077 need_version=yes
9078 ;;
9079 esac
9080 shlibpath_var=LD_LIBRARY_PATH
9081 case $host_os in
9082 freebsd2*)
9083 shlibpath_overrides_runpath=yes
9084 ;;
9085 freebsd3.[01]* | freebsdelf3.[01]*)
9086 shlibpath_overrides_runpath=yes
9087 hardcode_into_libs=yes
9088 ;;
9089 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9090 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9091 shlibpath_overrides_runpath=no
9092 hardcode_into_libs=yes
9093 ;;
ac40fd9e 9094 *) # from 4.6 on, and DragonFly
d9898ee8 9095 shlibpath_overrides_runpath=yes
9096 hardcode_into_libs=yes
9097 ;;
9098 esac
9099 ;;
9100
9101gnu*)
9102 version_type=linux
9103 need_lib_prefix=no
9104 need_version=no
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 hardcode_into_libs=yes
9109 ;;
9110
9111hpux9* | hpux10* | hpux11*)
9112 # Give a soname corresponding to the major version so that dld.sl refuses to
9113 # link against other versions.
9114 version_type=sunos
9115 need_lib_prefix=no
9116 need_version=no
9117 case $host_cpu in
9118 ia64*)
9119 shrext_cmds='.so'
9120 hardcode_into_libs=yes
9121 dynamic_linker="$host_os dld.so"
9122 shlibpath_var=LD_LIBRARY_PATH
9123 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9125 soname_spec='${libname}${release}${shared_ext}$major'
9126 if test "X$HPUX_IA64_MODE" = X32; then
9127 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9128 else
9129 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9130 fi
9131 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9132 ;;
9133 hppa*64*)
9134 shrext_cmds='.sl'
9135 hardcode_into_libs=yes
9136 dynamic_linker="$host_os dld.sl"
9137 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9138 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9142 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9143 ;;
9144 *)
9145 shrext_cmds='.sl'
9146 dynamic_linker="$host_os dld.sl"
9147 shlibpath_var=SHLIB_PATH
9148 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 ;;
9152 esac
9153 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9154 postinstall_cmds='chmod 555 $lib'
9155 ;;
9156
ac40fd9e 9157interix[3-9]*)
d9898ee8 9158 version_type=linux
9159 need_lib_prefix=no
9160 need_version=no
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 shlibpath_overrides_runpath=no
9166 hardcode_into_libs=yes
9167 ;;
9168
9169irix5* | irix6* | nonstopux*)
9170 case $host_os in
9171 nonstopux*) version_type=nonstopux ;;
9172 *)
9173 if test "$lt_cv_prog_gnu_ld" = yes; then
9174 version_type=linux
9175 else
9176 version_type=irix
9177 fi ;;
9178 esac
9179 need_lib_prefix=no
9180 need_version=no
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9183 case $host_os in
9184 irix5* | nonstopux*)
9185 libsuff= shlibsuff=
9186 ;;
9187 *)
9188 case $LD in # libtool.m4 will add one of these switches to LD
9189 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9190 libsuff= shlibsuff= libmagic=32-bit;;
9191 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9192 libsuff=32 shlibsuff=N32 libmagic=N32;;
9193 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9194 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9195 *) libsuff= shlibsuff= libmagic=never-match;;
9196 esac
9197 ;;
9198 esac
9199 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9200 shlibpath_overrides_runpath=no
9201 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9202 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9203 hardcode_into_libs=yes
9204 ;;
9205
9206# No shared lib support for Linux oldld, aout, or coff.
9207linux*oldld* | linux*aout* | linux*coff*)
9208 dynamic_linker=no
9209 ;;
9210
9211# This must be Linux ELF.
ac40fd9e 9212linux* | k*bsd*-gnu)
d9898ee8 9213 version_type=linux
9214 need_lib_prefix=no
9215 need_version=no
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=no
9221 # This implies no fast_install, which is unacceptable.
9222 # Some rework will be needed to allow for fast_install
9223 # before this can be enabled.
9224 hardcode_into_libs=yes
ac40fd9e 9225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 9227
9228 # Append ld.so.conf contents to the search path
9229 if test -f /etc/ld.so.conf; then
ac40fd9e 9230 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9231 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 9232 fi
9233
9234 # We used to test for /lib/ld.so.1 and disable shared libraries on
9235 # powerpc, because MkLinux only supported shared libraries with the
9236 # GNU dynamic linker. Since this was broken with cross compilers,
9237 # most powerpc-linux boxes support dynamic linking these days and
9238 # people can always --disable-shared, the test was removed, and we
9239 # assume the GNU/Linux dynamic linker is in use.
9240 dynamic_linker='GNU/Linux ld.so'
9241 ;;
9242
d9898ee8 9243netbsd*)
9244 version_type=sunos
9245 need_lib_prefix=no
9246 need_version=no
9247 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 dynamic_linker='NetBSD (a.out) ld.so'
9251 else
9252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9253 soname_spec='${libname}${release}${shared_ext}$major'
9254 dynamic_linker='NetBSD ld.elf_so'
9255 fi
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9258 hardcode_into_libs=yes
9259 ;;
9260
9261newsos6)
9262 version_type=linux
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 shlibpath_var=LD_LIBRARY_PATH
9265 shlibpath_overrides_runpath=yes
9266 ;;
9267
9268nto-qnx*)
9269 version_type=linux
9270 need_lib_prefix=no
9271 need_version=no
9272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273 soname_spec='${libname}${release}${shared_ext}$major'
9274 shlibpath_var=LD_LIBRARY_PATH
9275 shlibpath_overrides_runpath=yes
9276 ;;
9277
9278openbsd*)
9279 version_type=sunos
9280 sys_lib_dlsearch_path_spec="/usr/lib"
9281 need_lib_prefix=no
9282 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9283 case $host_os in
9284 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9285 *) need_version=no ;;
9286 esac
9287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9289 shlibpath_var=LD_LIBRARY_PATH
9290 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9291 case $host_os in
9292 openbsd2.[89] | openbsd2.[89].*)
9293 shlibpath_overrides_runpath=no
9294 ;;
9295 *)
9296 shlibpath_overrides_runpath=yes
9297 ;;
9298 esac
9299 else
9300 shlibpath_overrides_runpath=yes
9301 fi
9302 ;;
9303
9304os2*)
9305 libname_spec='$name'
9306 shrext_cmds=".dll"
9307 need_lib_prefix=no
9308 library_names_spec='$libname${shared_ext} $libname.a'
9309 dynamic_linker='OS/2 ld.exe'
9310 shlibpath_var=LIBPATH
9311 ;;
9312
9313osf3* | osf4* | osf5*)
9314 version_type=osf
9315 need_lib_prefix=no
9316 need_version=no
9317 soname_spec='${libname}${release}${shared_ext}$major'
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9321 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9322 ;;
9323
ac40fd9e 9324rdos*)
9325 dynamic_linker=no
9326 ;;
9327
d9898ee8 9328solaris*)
9329 version_type=linux
9330 need_lib_prefix=no
9331 need_version=no
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 shlibpath_overrides_runpath=yes
9336 hardcode_into_libs=yes
9337 # ldd complains unless libraries are executable
9338 postinstall_cmds='chmod +x $lib'
9339 ;;
9340
9341sunos4*)
9342 version_type=sunos
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9344 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 shlibpath_overrides_runpath=yes
9347 if test "$with_gnu_ld" = yes; then
9348 need_lib_prefix=no
9349 fi
9350 need_version=yes
9351 ;;
9352
9353sysv4 | sysv4.3*)
9354 version_type=linux
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 case $host_vendor in
9359 sni)
9360 shlibpath_overrides_runpath=no
9361 need_lib_prefix=no
9362 export_dynamic_flag_spec='${wl}-Blargedynsym'
9363 runpath_var=LD_RUN_PATH
9364 ;;
9365 siemens)
9366 need_lib_prefix=no
9367 ;;
9368 motorola)
9369 need_lib_prefix=no
9370 need_version=no
9371 shlibpath_overrides_runpath=no
9372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9373 ;;
9374 esac
9375 ;;
9376
9377sysv4*MP*)
9378 if test -d /usr/nec ;then
9379 version_type=linux
9380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9381 soname_spec='$libname${shared_ext}.$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 fi
9384 ;;
9385
9386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9387 version_type=freebsd-elf
9388 need_lib_prefix=no
9389 need_version=no
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9391 soname_spec='${libname}${release}${shared_ext}$major'
9392 shlibpath_var=LD_LIBRARY_PATH
9393 hardcode_into_libs=yes
9394 if test "$with_gnu_ld" = yes; then
9395 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9396 shlibpath_overrides_runpath=no
9397 else
9398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9399 shlibpath_overrides_runpath=yes
9400 case $host_os in
9401 sco3.2v5*)
9402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9403 ;;
9404 esac
9405 fi
9406 sys_lib_dlsearch_path_spec='/usr/lib'
9407 ;;
9408
9409uts4*)
9410 version_type=linux
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412 soname_spec='${libname}${release}${shared_ext}$major'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 ;;
9415
9416*)
9417 dynamic_linker=no
9418 ;;
9419esac
dd184caf 9420{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9421echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 9422test "$dynamic_linker" = no && can_build_shared=no
9423
9424variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9425if test "$GCC" = yes; then
9426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9427fi
9428
dd184caf 9429{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9430echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 9431hardcode_action=
9432if test -n "$hardcode_libdir_flag_spec" || \
9433 test -n "$runpath_var" || \
9434 test "X$hardcode_automatic" = "Xyes" ; then
9435
9436 # We can hardcode non-existant directories.
9437 if test "$hardcode_direct" != no &&
9438 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9439 # have to relink, otherwise we might link with an installed library
9440 # when we should be linking with a yet-to-be-installed one
9441 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9442 test "$hardcode_minus_L" != no; then
9443 # Linking always hardcodes the temporary library directory.
9444 hardcode_action=relink
9445 else
9446 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9447 hardcode_action=immediate
9448 fi
9449else
9450 # We cannot hardcode anything, or else we can only hardcode existing
9451 # directories.
9452 hardcode_action=unsupported
9453fi
dd184caf 9454{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9455echo "${ECHO_T}$hardcode_action" >&6; }
d9898ee8 9456
9457if test "$hardcode_action" = relink; then
9458 # Fast installation is not supported
9459 enable_fast_install=no
9460elif test "$shlibpath_overrides_runpath" = yes ||
9461 test "$enable_shared" = no; then
9462 # Fast installation is not necessary
9463 enable_fast_install=needless
9464fi
9465
9466striplib=
9467old_striplib=
dd184caf 9468{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9469echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
d9898ee8 9470if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9471 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9472 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
dd184caf 9473 { echo "$as_me:$LINENO: result: yes" >&5
9474echo "${ECHO_T}yes" >&6; }
d9898ee8 9475else
9476# FIXME - insert some real tests, host_os isn't really good enough
9477 case $host_os in
9478 darwin*)
9479 if test -n "$STRIP" ; then
9480 striplib="$STRIP -x"
ac40fd9e 9481 old_striplib="$STRIP -S"
dd184caf 9482 { echo "$as_me:$LINENO: result: yes" >&5
9483echo "${ECHO_T}yes" >&6; }
d9898ee8 9484 else
dd184caf 9485 { echo "$as_me:$LINENO: result: no" >&5
9486echo "${ECHO_T}no" >&6; }
d9898ee8 9487fi
9488 ;;
9489 *)
dd184caf 9490 { echo "$as_me:$LINENO: result: no" >&5
9491echo "${ECHO_T}no" >&6; }
d9898ee8 9492 ;;
9493 esac
9494fi
9495
9496if test "x$enable_dlopen" != xyes; then
9497 enable_dlopen=unknown
9498 enable_dlopen_self=unknown
9499 enable_dlopen_self_static=unknown
9500else
9501 lt_cv_dlopen=no
9502 lt_cv_dlopen_libs=
9503
9504 case $host_os in
9505 beos*)
9506 lt_cv_dlopen="load_add_on"
9507 lt_cv_dlopen_libs=
9508 lt_cv_dlopen_self=yes
9509 ;;
9510
9511 mingw* | pw32*)
9512 lt_cv_dlopen="LoadLibrary"
9513 lt_cv_dlopen_libs=
9514 ;;
9515
9516 cygwin*)
9517 lt_cv_dlopen="dlopen"
9518 lt_cv_dlopen_libs=
9519 ;;
9520
9521 darwin*)
9522 # if libdl is installed we need to link against it
dd184caf 9523 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9524echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9525if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9527else
9528 ac_check_lib_save_LIBS=$LIBS
9529LIBS="-ldl $LIBS"
9530cat >conftest.$ac_ext <<_ACEOF
9531/* confdefs.h. */
9532_ACEOF
9533cat confdefs.h >>conftest.$ac_ext
9534cat >>conftest.$ac_ext <<_ACEOF
9535/* end confdefs.h. */
9536
dd184caf 9537/* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
d9898ee8 9540#ifdef __cplusplus
9541extern "C"
9542#endif
d9898ee8 9543char dlopen ();
9544int
9545main ()
9546{
dd184caf 9547return dlopen ();
d9898ee8 9548 ;
9549 return 0;
9550}
9551_ACEOF
9552rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9553if { (ac_try="$ac_link"
9554case "(($ac_try" in
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9557esac
9558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
d9898ee8 9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest$ac_exeext &&
9569 $as_test_x conftest$ac_exeext; then
d9898ee8 9570 ac_cv_lib_dl_dlopen=yes
9571else
9572 echo "$as_me: failed program was:" >&5
9573sed 's/^/| /' conftest.$ac_ext >&5
9574
dd184caf 9575 ac_cv_lib_dl_dlopen=no
d9898ee8 9576fi
dd184caf 9577
9578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9579 conftest$ac_exeext conftest.$ac_ext
9580LIBS=$ac_check_lib_save_LIBS
9581fi
dd184caf 9582{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9583echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9584if test $ac_cv_lib_dl_dlopen = yes; then
9585 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9586else
9587
9588 lt_cv_dlopen="dyld"
9589 lt_cv_dlopen_libs=
9590 lt_cv_dlopen_self=yes
9591
9592fi
9593
9594 ;;
9595
9596 *)
dd184caf 9597 { echo "$as_me:$LINENO: checking for shl_load" >&5
9598echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
d9898ee8 9599if test "${ac_cv_func_shl_load+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601else
9602 cat >conftest.$ac_ext <<_ACEOF
9603/* confdefs.h. */
9604_ACEOF
9605cat confdefs.h >>conftest.$ac_ext
9606cat >>conftest.$ac_ext <<_ACEOF
9607/* end confdefs.h. */
9608/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9610#define shl_load innocuous_shl_load
9611
9612/* System header to define __stub macros and hopefully few prototypes,
9613 which can conflict with char shl_load (); below.
9614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9615 <limits.h> exists even on freestanding compilers. */
9616
9617#ifdef __STDC__
9618# include <limits.h>
9619#else
9620# include <assert.h>
9621#endif
9622
9623#undef shl_load
9624
dd184caf 9625/* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
d9898ee8 9628#ifdef __cplusplus
9629extern "C"
d9898ee8 9630#endif
d9898ee8 9631char shl_load ();
9632/* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
dd184caf 9635#if defined __stub_shl_load || defined __stub___shl_load
d9898ee8 9636choke me
d9898ee8 9637#endif
9638
9639int
9640main ()
9641{
dd184caf 9642return shl_load ();
d9898ee8 9643 ;
9644 return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9648if { (ac_try="$ac_link"
9649case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
d9898ee8 9655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext &&
9664 $as_test_x conftest$ac_exeext; then
d9898ee8 9665 ac_cv_func_shl_load=yes
9666else
9667 echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
dd184caf 9670 ac_cv_func_shl_load=no
d9898ee8 9671fi
dd184caf 9672
9673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9674 conftest$ac_exeext conftest.$ac_ext
9675fi
dd184caf 9676{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9677echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
d9898ee8 9678if test $ac_cv_func_shl_load = yes; then
9679 lt_cv_dlopen="shl_load"
9680else
dd184caf 9681 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9682echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
d9898ee8 9683if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685else
9686 ac_check_lib_save_LIBS=$LIBS
9687LIBS="-ldld $LIBS"
9688cat >conftest.$ac_ext <<_ACEOF
9689/* confdefs.h. */
9690_ACEOF
9691cat confdefs.h >>conftest.$ac_ext
9692cat >>conftest.$ac_ext <<_ACEOF
9693/* end confdefs.h. */
9694
dd184caf 9695/* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
d9898ee8 9698#ifdef __cplusplus
9699extern "C"
9700#endif
d9898ee8 9701char shl_load ();
9702int
9703main ()
9704{
dd184caf 9705return shl_load ();
d9898ee8 9706 ;
9707 return 0;
9708}
9709_ACEOF
9710rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9711if { (ac_try="$ac_link"
9712case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715esac
9716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
d9898ee8 9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest$ac_exeext &&
9727 $as_test_x conftest$ac_exeext; then
d9898ee8 9728 ac_cv_lib_dld_shl_load=yes
9729else
9730 echo "$as_me: failed program was:" >&5
9731sed 's/^/| /' conftest.$ac_ext >&5
9732
dd184caf 9733 ac_cv_lib_dld_shl_load=no
d9898ee8 9734fi
dd184caf 9735
9736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9737 conftest$ac_exeext conftest.$ac_ext
9738LIBS=$ac_check_lib_save_LIBS
9739fi
dd184caf 9740{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9741echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
d9898ee8 9742if test $ac_cv_lib_dld_shl_load = yes; then
9743 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9744else
dd184caf 9745 { echo "$as_me:$LINENO: checking for dlopen" >&5
9746echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
d9898ee8 9747if test "${ac_cv_func_dlopen+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750 cat >conftest.$ac_ext <<_ACEOF
9751/* confdefs.h. */
9752_ACEOF
9753cat confdefs.h >>conftest.$ac_ext
9754cat >>conftest.$ac_ext <<_ACEOF
9755/* end confdefs.h. */
9756/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9758#define dlopen innocuous_dlopen
9759
9760/* System header to define __stub macros and hopefully few prototypes,
9761 which can conflict with char dlopen (); below.
9762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9763 <limits.h> exists even on freestanding compilers. */
9764
9765#ifdef __STDC__
9766# include <limits.h>
9767#else
9768# include <assert.h>
9769#endif
9770
9771#undef dlopen
9772
dd184caf 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"
d9898ee8 9778#endif
d9898ee8 9779char dlopen ();
9780/* The GNU C library defines this for functions which it implements
9781 to always fail with ENOSYS. Some functions are actually named
9782 something starting with __ and the normal name is an alias. */
dd184caf 9783#if defined __stub_dlopen || defined __stub___dlopen
d9898ee8 9784choke me
d9898ee8 9785#endif
9786
9787int
9788main ()
9789{
dd184caf 9790return dlopen ();
d9898ee8 9791 ;
9792 return 0;
9793}
9794_ACEOF
9795rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9796if { (ac_try="$ac_link"
9797case "(($ac_try" in
9798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799 *) ac_try_echo=$ac_try;;
9800esac
9801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802 (eval "$ac_link") 2>conftest.er1
d9898ee8 9803 ac_status=$?
9804 grep -v '^ *+' conftest.er1 >conftest.err
9805 rm -f conftest.er1
9806 cat conftest.err >&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9808 (exit $ac_status); } && {
9809 test -z "$ac_c_werror_flag" ||
9810 test ! -s conftest.err
9811 } && test -s conftest$ac_exeext &&
9812 $as_test_x conftest$ac_exeext; then
d9898ee8 9813 ac_cv_func_dlopen=yes
9814else
9815 echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
dd184caf 9818 ac_cv_func_dlopen=no
d9898ee8 9819fi
dd184caf 9820
9821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9822 conftest$ac_exeext conftest.$ac_ext
9823fi
dd184caf 9824{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9825echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
d9898ee8 9826if test $ac_cv_func_dlopen = yes; then
9827 lt_cv_dlopen="dlopen"
9828else
dd184caf 9829 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9830echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
d9898ee8 9831if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9833else
9834 ac_check_lib_save_LIBS=$LIBS
9835LIBS="-ldl $LIBS"
9836cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
9841/* end confdefs.h. */
9842
dd184caf 9843/* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
d9898ee8 9846#ifdef __cplusplus
9847extern "C"
9848#endif
d9898ee8 9849char dlopen ();
9850int
9851main ()
9852{
dd184caf 9853return dlopen ();
d9898ee8 9854 ;
9855 return 0;
9856}
9857_ACEOF
9858rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9859if { (ac_try="$ac_link"
9860case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863esac
9864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_link") 2>conftest.er1
d9898ee8 9866 ac_status=$?
9867 grep -v '^ *+' conftest.er1 >conftest.err
9868 rm -f conftest.er1
9869 cat conftest.err >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9871 (exit $ac_status); } && {
9872 test -z "$ac_c_werror_flag" ||
9873 test ! -s conftest.err
9874 } && test -s conftest$ac_exeext &&
9875 $as_test_x conftest$ac_exeext; then
d9898ee8 9876 ac_cv_lib_dl_dlopen=yes
9877else
9878 echo "$as_me: failed program was:" >&5
9879sed 's/^/| /' conftest.$ac_ext >&5
9880
dd184caf 9881 ac_cv_lib_dl_dlopen=no
d9898ee8 9882fi
dd184caf 9883
9884rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9885 conftest$ac_exeext conftest.$ac_ext
9886LIBS=$ac_check_lib_save_LIBS
9887fi
dd184caf 9888{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9889echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
d9898ee8 9890if test $ac_cv_lib_dl_dlopen = yes; then
9891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9892else
dd184caf 9893 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9894echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
d9898ee8 9895if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897else
9898 ac_check_lib_save_LIBS=$LIBS
9899LIBS="-lsvld $LIBS"
9900cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
9906
dd184caf 9907/* Override any GCC internal prototype to avoid an error.
9908 Use char because int might match the return type of a GCC
9909 builtin and then its argument prototype would still apply. */
d9898ee8 9910#ifdef __cplusplus
9911extern "C"
9912#endif
d9898ee8 9913char dlopen ();
9914int
9915main ()
9916{
dd184caf 9917return dlopen ();
d9898ee8 9918 ;
9919 return 0;
9920}
9921_ACEOF
9922rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9923if { (ac_try="$ac_link"
9924case "(($ac_try" in
9925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926 *) ac_try_echo=$ac_try;;
9927esac
9928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929 (eval "$ac_link") 2>conftest.er1
d9898ee8 9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9935 (exit $ac_status); } && {
9936 test -z "$ac_c_werror_flag" ||
9937 test ! -s conftest.err
9938 } && test -s conftest$ac_exeext &&
9939 $as_test_x conftest$ac_exeext; then
d9898ee8 9940 ac_cv_lib_svld_dlopen=yes
9941else
9942 echo "$as_me: failed program was:" >&5
9943sed 's/^/| /' conftest.$ac_ext >&5
9944
dd184caf 9945 ac_cv_lib_svld_dlopen=no
d9898ee8 9946fi
dd184caf 9947
9948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 9949 conftest$ac_exeext conftest.$ac_ext
9950LIBS=$ac_check_lib_save_LIBS
9951fi
dd184caf 9952{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9953echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
d9898ee8 9954if test $ac_cv_lib_svld_dlopen = yes; then
9955 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9956else
dd184caf 9957 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9958echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
d9898ee8 9959if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9961else
9962 ac_check_lib_save_LIBS=$LIBS
9963LIBS="-ldld $LIBS"
9964cat >conftest.$ac_ext <<_ACEOF
9965/* confdefs.h. */
9966_ACEOF
9967cat confdefs.h >>conftest.$ac_ext
9968cat >>conftest.$ac_ext <<_ACEOF
9969/* end confdefs.h. */
9970
dd184caf 9971/* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
d9898ee8 9974#ifdef __cplusplus
9975extern "C"
9976#endif
d9898ee8 9977char dld_link ();
9978int
9979main ()
9980{
dd184caf 9981return dld_link ();
d9898ee8 9982 ;
9983 return 0;
9984}
9985_ACEOF
9986rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 9987if { (ac_try="$ac_link"
9988case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_link") 2>conftest.er1
d9898ee8 9994 ac_status=$?
9995 grep -v '^ *+' conftest.er1 >conftest.err
9996 rm -f conftest.er1
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest$ac_exeext &&
10003 $as_test_x conftest$ac_exeext; then
d9898ee8 10004 ac_cv_lib_dld_dld_link=yes
10005else
10006 echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
dd184caf 10009 ac_cv_lib_dld_dld_link=no
d9898ee8 10010fi
dd184caf 10011
10012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 10013 conftest$ac_exeext conftest.$ac_ext
10014LIBS=$ac_check_lib_save_LIBS
10015fi
dd184caf 10016{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10017echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
d9898ee8 10018if test $ac_cv_lib_dld_dld_link = yes; then
10019 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10020fi
10021
10022
10023fi
10024
10025
10026fi
10027
10028
10029fi
10030
10031
10032fi
10033
10034
10035fi
10036
10037 ;;
10038 esac
10039
10040 if test "x$lt_cv_dlopen" != xno; then
10041 enable_dlopen=yes
10042 else
10043 enable_dlopen=no
10044 fi
10045
10046 case $lt_cv_dlopen in
10047 dlopen)
10048 save_CPPFLAGS="$CPPFLAGS"
10049 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10050
10051 save_LDFLAGS="$LDFLAGS"
10052 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10053
10054 save_LIBS="$LIBS"
10055 LIBS="$lt_cv_dlopen_libs $LIBS"
10056
dd184caf 10057 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10058echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10059if test "${lt_cv_dlopen_self+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061else
10062 if test "$cross_compiling" = yes; then :
10063 lt_cv_dlopen_self=cross
10064else
10065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10066 lt_status=$lt_dlunknown
10067 cat > conftest.$ac_ext <<EOF
ac40fd9e 10068#line 10068 "configure"
d9898ee8 10069#include "confdefs.h"
10070
10071#if HAVE_DLFCN_H
10072#include <dlfcn.h>
10073#endif
10074
10075#include <stdio.h>
10076
10077#ifdef RTLD_GLOBAL
10078# define LT_DLGLOBAL RTLD_GLOBAL
10079#else
10080# ifdef DL_GLOBAL
10081# define LT_DLGLOBAL DL_GLOBAL
10082# else
10083# define LT_DLGLOBAL 0
10084# endif
10085#endif
10086
10087/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10088 find out it does not work in some platform. */
10089#ifndef LT_DLLAZY_OR_NOW
10090# ifdef RTLD_LAZY
10091# define LT_DLLAZY_OR_NOW RTLD_LAZY
10092# else
10093# ifdef DL_LAZY
10094# define LT_DLLAZY_OR_NOW DL_LAZY
10095# else
10096# ifdef RTLD_NOW
10097# define LT_DLLAZY_OR_NOW RTLD_NOW
10098# else
10099# ifdef DL_NOW
10100# define LT_DLLAZY_OR_NOW DL_NOW
10101# else
10102# define LT_DLLAZY_OR_NOW 0
10103# endif
10104# endif
10105# endif
10106# endif
10107#endif
10108
10109#ifdef __cplusplus
10110extern "C" void exit (int);
10111#endif
10112
10113void fnord() { int i=42;}
10114int main ()
10115{
10116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10117 int status = $lt_dlunknown;
10118
10119 if (self)
10120 {
10121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10123 /* dlclose (self); */
10124 }
10125 else
10126 puts (dlerror ());
10127
10128 exit (status);
10129}
10130EOF
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132 (eval $ac_link) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10136 (./conftest; exit; ) >&5 2>/dev/null
10137 lt_status=$?
10138 case x$lt_status in
10139 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10140 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10141 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10142 esac
10143 else :
10144 # compilation failed
10145 lt_cv_dlopen_self=no
10146 fi
10147fi
10148rm -fr conftest*
10149
10150
10151fi
dd184caf 10152{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10153echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
d9898ee8 10154
10155 if test "x$lt_cv_dlopen_self" = xyes; then
10156 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
dd184caf 10157 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10158echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
d9898ee8 10159if test "${lt_cv_dlopen_self_static+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161else
10162 if test "$cross_compiling" = yes; then :
10163 lt_cv_dlopen_self_static=cross
10164else
10165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10166 lt_status=$lt_dlunknown
10167 cat > conftest.$ac_ext <<EOF
ac40fd9e 10168#line 10168 "configure"
d9898ee8 10169#include "confdefs.h"
10170
10171#if HAVE_DLFCN_H
10172#include <dlfcn.h>
10173#endif
10174
10175#include <stdio.h>
10176
10177#ifdef RTLD_GLOBAL
10178# define LT_DLGLOBAL RTLD_GLOBAL
10179#else
10180# ifdef DL_GLOBAL
10181# define LT_DLGLOBAL DL_GLOBAL
10182# else
10183# define LT_DLGLOBAL 0
10184# endif
10185#endif
10186
10187/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10188 find out it does not work in some platform. */
10189#ifndef LT_DLLAZY_OR_NOW
10190# ifdef RTLD_LAZY
10191# define LT_DLLAZY_OR_NOW RTLD_LAZY
10192# else
10193# ifdef DL_LAZY
10194# define LT_DLLAZY_OR_NOW DL_LAZY
10195# else
10196# ifdef RTLD_NOW
10197# define LT_DLLAZY_OR_NOW RTLD_NOW
10198# else
10199# ifdef DL_NOW
10200# define LT_DLLAZY_OR_NOW DL_NOW
10201# else
10202# define LT_DLLAZY_OR_NOW 0
10203# endif
10204# endif
10205# endif
10206# endif
10207#endif
10208
10209#ifdef __cplusplus
10210extern "C" void exit (int);
10211#endif
10212
10213void fnord() { int i=42;}
10214int main ()
10215{
10216 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10217 int status = $lt_dlunknown;
10218
10219 if (self)
10220 {
10221 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10222 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10223 /* dlclose (self); */
10224 }
10225 else
10226 puts (dlerror ());
10227
10228 exit (status);
10229}
10230EOF
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 (eval $ac_link) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10236 (./conftest; exit; ) >&5 2>/dev/null
10237 lt_status=$?
10238 case x$lt_status in
10239 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10240 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10241 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10242 esac
10243 else :
10244 # compilation failed
10245 lt_cv_dlopen_self_static=no
10246 fi
10247fi
10248rm -fr conftest*
10249
10250
10251fi
dd184caf 10252{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10253echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
d9898ee8 10254 fi
10255
10256 CPPFLAGS="$save_CPPFLAGS"
10257 LDFLAGS="$save_LDFLAGS"
10258 LIBS="$save_LIBS"
10259 ;;
10260 esac
10261
10262 case $lt_cv_dlopen_self in
10263 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10264 *) enable_dlopen_self=unknown ;;
10265 esac
10266
10267 case $lt_cv_dlopen_self_static in
10268 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10269 *) enable_dlopen_self_static=unknown ;;
10270 esac
10271fi
10272
10273
10274# Report which library types will actually be built
dd184caf 10275{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10276echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10277{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10278echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 10279
dd184caf 10280{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10281echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 10282test "$can_build_shared" = "no" && enable_shared=no
10283
10284# On AIX, shared libraries and static libraries use the same namespace, and
10285# are all built from PIC.
10286case $host_os in
10287aix3*)
10288 test "$enable_shared" = yes && enable_static=no
10289 if test -n "$RANLIB"; then
10290 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10291 postinstall_cmds='$RANLIB $lib'
10292 fi
10293 ;;
10294
10295aix4* | aix5*)
10296 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10297 test "$enable_shared" = yes && enable_static=no
10298 fi
10299 ;;
10300esac
dd184caf 10301{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10302echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 10303
dd184caf 10304{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10305echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 10306# Make sure either enable_shared or enable_static is yes.
10307test "$enable_shared" = yes || enable_static=yes
dd184caf 10308{ echo "$as_me:$LINENO: result: $enable_static" >&5
10309echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 10310
10311# The else clause should only fire when bootstrapping the
10312# libtool distribution, otherwise you forgot to ship ltmain.sh
10313# with your package, and you will get complaints that there are
10314# no rules to generate ltmain.sh.
10315if test -f "$ltmain"; then
10316 # See if we are running on zsh, and set the options which allow our commands through
10317 # without removal of \ escapes.
10318 if test -n "${ZSH_VERSION+set}" ; then
10319 setopt NO_GLOB_SUBST
10320 fi
10321 # Now quote all the things that may contain metacharacters while being
10322 # careful not to overquote the AC_SUBSTed values. We take copies of the
10323 # variables and quote the copies for generation of the libtool script.
10324 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10325 SED SHELL STRIP \
10326 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10327 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10328 deplibs_check_method reload_flag reload_cmds need_locks \
10329 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10330 lt_cv_sys_global_symbol_to_c_name_address \
10331 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10332 old_postinstall_cmds old_postuninstall_cmds \
10333 compiler \
10334 CC \
10335 LD \
10336 lt_prog_compiler_wl \
10337 lt_prog_compiler_pic \
10338 lt_prog_compiler_static \
10339 lt_prog_compiler_no_builtin_flag \
10340 export_dynamic_flag_spec \
10341 thread_safe_flag_spec \
10342 whole_archive_flag_spec \
10343 enable_shared_with_static_runtimes \
10344 old_archive_cmds \
10345 old_archive_from_new_cmds \
10346 predep_objects \
10347 postdep_objects \
10348 predeps \
10349 postdeps \
10350 compiler_lib_search_path \
10351 archive_cmds \
10352 archive_expsym_cmds \
10353 postinstall_cmds \
10354 postuninstall_cmds \
10355 old_archive_from_expsyms_cmds \
10356 allow_undefined_flag \
10357 no_undefined_flag \
10358 export_symbols_cmds \
10359 hardcode_libdir_flag_spec \
10360 hardcode_libdir_flag_spec_ld \
10361 hardcode_libdir_separator \
10362 hardcode_automatic \
10363 module_cmds \
10364 module_expsym_cmds \
10365 lt_cv_prog_compiler_c_o \
ac40fd9e 10366 fix_srcfile_path \
d9898ee8 10367 exclude_expsyms \
10368 include_expsyms; do
10369
10370 case $var in
10371 old_archive_cmds | \
10372 old_archive_from_new_cmds | \
10373 archive_cmds | \
10374 archive_expsym_cmds | \
10375 module_cmds | \
10376 module_expsym_cmds | \
10377 old_archive_from_expsyms_cmds | \
10378 export_symbols_cmds | \
10379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10380 postinstall_cmds | postuninstall_cmds | \
10381 old_postinstall_cmds | old_postuninstall_cmds | \
10382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10383 # Double-quote double-evaled strings.
10384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10385 ;;
10386 *)
10387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10388 ;;
10389 esac
10390 done
10391
10392 case $lt_echo in
10393 *'\$0 --fallback-echo"')
10394 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10395 ;;
10396 esac
10397
10398cfgfile="${ofile}T"
10399 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10400 $rm -f "$cfgfile"
10401 { echo "$as_me:$LINENO: creating $ofile" >&5
10402echo "$as_me: creating $ofile" >&6;}
10403
10404 cat <<__EOF__ >> "$cfgfile"
10405#! $SHELL
10406
10407# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10408# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10409# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10410#
ac40fd9e 10411# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
d9898ee8 10412# Free Software Foundation, Inc.
10413#
10414# This file is part of GNU Libtool:
10415# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10416#
10417# This program is free software; you can redistribute it and/or modify
10418# it under the terms of the GNU General Public License as published by
10419# the Free Software Foundation; either version 2 of the License, or
10420# (at your option) any later version.
10421#
10422# This program is distributed in the hope that it will be useful, but
10423# WITHOUT ANY WARRANTY; without even the implied warranty of
10424# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10425# General Public License for more details.
10426#
10427# You should have received a copy of the GNU General Public License
10428# along with this program; if not, write to the Free Software
10429# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10430#
10431# As a special exception to the GNU General Public License, if you
10432# distribute this file as part of a program that contains a
10433# configuration script generated by Autoconf, you may include it under
10434# the same distribution terms that you use for the rest of that program.
10435
10436# A sed program that does not truncate output.
10437SED=$lt_SED
10438
10439# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10440Xsed="$SED -e 1s/^X//"
10441
10442# The HP-UX ksh and POSIX shell print the target directory to stdout
10443# if CDPATH is set.
10444(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10445
10446# The names of the tagged configurations supported by this script.
10447available_tags=
10448
10449# ### BEGIN LIBTOOL CONFIG
10450
10451# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10452
10453# Shell to use when invoking shell scripts.
10454SHELL=$lt_SHELL
10455
10456# Whether or not to build shared libraries.
10457build_libtool_libs=$enable_shared
10458
10459# Whether or not to build static libraries.
10460build_old_libs=$enable_static
10461
10462# Whether or not to add -lc for building shared libraries.
10463build_libtool_need_lc=$archive_cmds_need_lc
10464
10465# Whether or not to disallow shared libs when runtime libs are static
10466allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10467
10468# Whether or not to optimize for fast installation.
10469fast_install=$enable_fast_install
10470
10471# The host system.
10472host_alias=$host_alias
10473host=$host
10474host_os=$host_os
10475
10476# The build system.
10477build_alias=$build_alias
10478build=$build
10479build_os=$build_os
10480
10481# An echo program that does not interpret backslashes.
10482echo=$lt_echo
10483
10484# The archiver.
10485AR=$lt_AR
10486AR_FLAGS=$lt_AR_FLAGS
10487
10488# A C compiler.
10489LTCC=$lt_LTCC
10490
10491# LTCC compiler flags.
10492LTCFLAGS=$lt_LTCFLAGS
10493
10494# A language-specific compiler.
10495CC=$lt_compiler
10496
10497# Is the compiler the GNU C compiler?
10498with_gcc=$GCC
10499
d9898ee8 10500# An ERE matcher.
10501EGREP=$lt_EGREP
10502
10503# The linker used to build libraries.
10504LD=$lt_LD
10505
10506# Whether we need hard or soft links.
10507LN_S=$lt_LN_S
10508
10509# A BSD-compatible nm program.
10510NM=$lt_NM
10511
10512# A symbol stripping program
10513STRIP=$lt_STRIP
10514
10515# Used to examine libraries when file_magic_cmd begins "file"
10516MAGIC_CMD=$MAGIC_CMD
10517
10518# Used on cygwin: DLL creation program.
10519DLLTOOL="$DLLTOOL"
10520
10521# Used on cygwin: object dumper.
10522OBJDUMP="$OBJDUMP"
10523
10524# Used on cygwin: assembler.
10525AS="$AS"
10526
10527# The name of the directory that contains temporary libtool files.
10528objdir=$objdir
10529
10530# How to create reloadable object files.
10531reload_flag=$lt_reload_flag
10532reload_cmds=$lt_reload_cmds
10533
10534# How to pass a linker flag through the compiler.
10535wl=$lt_lt_prog_compiler_wl
10536
10537# Object file suffix (normally "o").
10538objext="$ac_objext"
10539
10540# Old archive suffix (normally "a").
10541libext="$libext"
10542
10543# Shared library suffix (normally ".so").
10544shrext_cmds='$shrext_cmds'
10545
10546# Executable file suffix (normally "").
10547exeext="$exeext"
10548
10549# Additional compiler flags for building library objects.
10550pic_flag=$lt_lt_prog_compiler_pic
10551pic_mode=$pic_mode
10552
10553# What is the maximum length of a command?
10554max_cmd_len=$lt_cv_sys_max_cmd_len
10555
10556# Does compiler simultaneously support -c and -o options?
10557compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10558
10559# Must we lock files when doing compilation?
10560need_locks=$lt_need_locks
10561
10562# Do we need the lib prefix for modules?
10563need_lib_prefix=$need_lib_prefix
10564
10565# Do we need a version for libraries?
10566need_version=$need_version
10567
10568# Whether dlopen is supported.
10569dlopen_support=$enable_dlopen
10570
10571# Whether dlopen of programs is supported.
10572dlopen_self=$enable_dlopen_self
10573
10574# Whether dlopen of statically linked programs is supported.
10575dlopen_self_static=$enable_dlopen_self_static
10576
10577# Compiler flag to prevent dynamic linking.
10578link_static_flag=$lt_lt_prog_compiler_static
10579
10580# Compiler flag to turn off builtin functions.
10581no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10582
10583# Compiler flag to allow reflexive dlopens.
10584export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10585
10586# Compiler flag to generate shared objects directly from archives.
10587whole_archive_flag_spec=$lt_whole_archive_flag_spec
10588
10589# Compiler flag to generate thread-safe objects.
10590thread_safe_flag_spec=$lt_thread_safe_flag_spec
10591
10592# Library versioning type.
10593version_type=$version_type
10594
10595# Format of library name prefix.
10596libname_spec=$lt_libname_spec
10597
10598# List of archive names. First name is the real one, the rest are links.
10599# The last name is the one that the linker finds with -lNAME.
10600library_names_spec=$lt_library_names_spec
10601
10602# The coded name of the library, if different from the real name.
10603soname_spec=$lt_soname_spec
10604
10605# Commands used to build and install an old-style archive.
10606RANLIB=$lt_RANLIB
10607old_archive_cmds=$lt_old_archive_cmds
10608old_postinstall_cmds=$lt_old_postinstall_cmds
10609old_postuninstall_cmds=$lt_old_postuninstall_cmds
10610
10611# Create an old-style archive from a shared archive.
10612old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10613
10614# Create a temporary old-style archive to link instead of a shared archive.
10615old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10616
10617# Commands used to build and install a shared archive.
10618archive_cmds=$lt_archive_cmds
10619archive_expsym_cmds=$lt_archive_expsym_cmds
10620postinstall_cmds=$lt_postinstall_cmds
10621postuninstall_cmds=$lt_postuninstall_cmds
10622
10623# Commands used to build a loadable module (assumed same as above if empty)
10624module_cmds=$lt_module_cmds
10625module_expsym_cmds=$lt_module_expsym_cmds
10626
10627# Commands to strip libraries.
10628old_striplib=$lt_old_striplib
10629striplib=$lt_striplib
10630
10631# Dependencies to place before the objects being linked to create a
10632# shared library.
dd184caf 10633predep_objects=$lt_predep_objects
d9898ee8 10634
10635# Dependencies to place after the objects being linked to create a
10636# shared library.
dd184caf 10637postdep_objects=$lt_postdep_objects
d9898ee8 10638
10639# Dependencies to place before the objects being linked to create a
10640# shared library.
10641predeps=$lt_predeps
10642
10643# Dependencies to place after the objects being linked to create a
10644# shared library.
10645postdeps=$lt_postdeps
10646
10647# The library search path used internally by the compiler when linking
10648# a shared library.
dd184caf 10649compiler_lib_search_path=$lt_compiler_lib_search_path
d9898ee8 10650
10651# Method to check whether dependent libraries are shared objects.
10652deplibs_check_method=$lt_deplibs_check_method
10653
10654# Command to use when deplibs_check_method == file_magic.
10655file_magic_cmd=$lt_file_magic_cmd
10656
10657# Flag that allows shared libraries with undefined symbols to be built.
10658allow_undefined_flag=$lt_allow_undefined_flag
10659
10660# Flag that forces no undefined symbols.
10661no_undefined_flag=$lt_no_undefined_flag
10662
10663# Commands used to finish a libtool library installation in a directory.
10664finish_cmds=$lt_finish_cmds
10665
10666# Same as above, but a single script fragment to be evaled but not shown.
10667finish_eval=$lt_finish_eval
10668
10669# Take the output of nm and produce a listing of raw symbols and C names.
10670global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10671
10672# Transform the output of nm in a proper C declaration
10673global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10674
10675# Transform the output of nm in a C name address pair
10676global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10677
10678# This is the shared library runtime path variable.
10679runpath_var=$runpath_var
10680
10681# This is the shared library path variable.
10682shlibpath_var=$shlibpath_var
10683
10684# Is shlibpath searched before the hard-coded library search path?
10685shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10686
10687# How to hardcode a shared library path into an executable.
10688hardcode_action=$hardcode_action
10689
10690# Whether we should hardcode library paths into libraries.
10691hardcode_into_libs=$hardcode_into_libs
10692
10693# Flag to hardcode \$libdir into a binary during linking.
10694# This must work even if \$libdir does not exist.
10695hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10696
10697# If ld is used when linking, flag to hardcode \$libdir into
10698# a binary during linking. This must work even if \$libdir does
10699# not exist.
10700hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10701
10702# Whether we need a single -rpath flag with a separated argument.
10703hardcode_libdir_separator=$lt_hardcode_libdir_separator
10704
10705# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10706# resulting binary.
10707hardcode_direct=$hardcode_direct
10708
10709# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10710# resulting binary.
10711hardcode_minus_L=$hardcode_minus_L
10712
10713# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10714# the resulting binary.
10715hardcode_shlibpath_var=$hardcode_shlibpath_var
10716
10717# Set to yes if building a shared library automatically hardcodes DIR into the library
10718# and all subsequent libraries and executables linked against it.
10719hardcode_automatic=$hardcode_automatic
10720
10721# Variables whose values should be saved in libtool wrapper scripts and
10722# restored at relink time.
10723variables_saved_for_relink="$variables_saved_for_relink"
10724
10725# Whether libtool must link a program against all its dependency libraries.
10726link_all_deplibs=$link_all_deplibs
10727
10728# Compile-time system search path for libraries
dd184caf 10729sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 10730
10731# Run-time system search path for libraries
10732sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10733
10734# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 10735fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 10736
10737# Set to yes if exported symbols are required.
10738always_export_symbols=$always_export_symbols
10739
10740# The commands to list exported symbols.
10741export_symbols_cmds=$lt_export_symbols_cmds
10742
10743# The commands to extract the exported symbol list from a shared archive.
10744extract_expsyms_cmds=$lt_extract_expsyms_cmds
10745
10746# Symbols that should not be listed in the preloaded symbols.
10747exclude_expsyms=$lt_exclude_expsyms
10748
10749# Symbols that must always be exported.
10750include_expsyms=$lt_include_expsyms
10751
10752# ### END LIBTOOL CONFIG
10753
10754__EOF__
10755
10756
10757 case $host_os in
10758 aix3*)
10759 cat <<\EOF >> "$cfgfile"
10760
10761# AIX sometimes has problems with the GCC collect2 program. For some
10762# reason, if we set the COLLECT_NAMES environment variable, the problems
10763# vanish in a puff of smoke.
10764if test "X${COLLECT_NAMES+set}" != Xset; then
10765 COLLECT_NAMES=
10766 export COLLECT_NAMES
10767fi
10768EOF
10769 ;;
10770 esac
10771
10772 # We use sed instead of cat because bash on DJGPP gets confused if
10773 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10774 # text mode, it properly converts lines to CR/LF. This bash problem
10775 # is reportedly fixed, but why not run on old versions too?
10776 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10777
10778 mv -f "$cfgfile" "$ofile" || \
10779 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10780 chmod +x "$ofile"
10781
10782else
10783 # If there is no Makefile yet, we rely on a make rule to execute
10784 # `config.status --recheck' to rerun these tests and create the
10785 # libtool script then.
10786 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10787 if test -f "$ltmain_in"; then
10788 test -f Makefile && make "$ltmain"
10789 fi
10790fi
10791
10792
10793ac_ext=c
10794ac_cpp='$CPP $CPPFLAGS'
10795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10797ac_compiler_gnu=$ac_cv_c_compiler_gnu
10798
10799CC="$lt_save_CC"
10800
10801
dd184caf 10802# Check whether --with-tags was given.
d9898ee8 10803if test "${with_tags+set}" = set; then
dd184caf 10804 withval=$with_tags; tagnames="$withval"
10805fi
10806
d9898ee8 10807
10808if test -f "$ltmain" && test -n "$tagnames"; then
10809 if test ! -f "${ofile}"; then
10810 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10811echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10812 fi
10813
10814 if test -z "$LTCC"; then
10815 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10816 if test -z "$LTCC"; then
10817 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10818echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10819 else
10820 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10821echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10822 fi
10823 fi
10824 if test -z "$LTCFLAGS"; then
10825 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10826 fi
10827
10828 # Extract list of available tagged configurations in $ofile.
10829 # Note that this assumes the entire list is on one line.
10830 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10831
10832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10833 for tagname in $tagnames; do
10834 IFS="$lt_save_ifs"
10835 # Check whether tagname contains only valid characters
10836 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10837 "") ;;
10838 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10839echo "$as_me: error: invalid tag name: $tagname" >&2;}
10840 { (exit 1); exit 1; }; }
10841 ;;
10842 esac
10843
10844 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10845 then
10846 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10847echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10848 { (exit 1); exit 1; }; }
10849 fi
10850
10851 # Update the list of available tags.
10852 if test -n "$tagname"; then
10853 echo appending configuration tag \"$tagname\" to $ofile
10854
10855 case $tagname in
10856 CXX)
10857 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10858 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10859 (test "X$CXX" != "Xg++"))) ; then
dd184caf 10860 ac_ext=cpp
d9898ee8 10861ac_cpp='$CXXCPP $CPPFLAGS'
10862ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10863ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10864ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10865
10866
10867
10868
10869archive_cmds_need_lc_CXX=no
10870allow_undefined_flag_CXX=
10871always_export_symbols_CXX=no
10872archive_expsym_cmds_CXX=
10873export_dynamic_flag_spec_CXX=
10874hardcode_direct_CXX=no
10875hardcode_libdir_flag_spec_CXX=
10876hardcode_libdir_flag_spec_ld_CXX=
10877hardcode_libdir_separator_CXX=
10878hardcode_minus_L_CXX=no
10879hardcode_shlibpath_var_CXX=unsupported
10880hardcode_automatic_CXX=no
10881module_cmds_CXX=
10882module_expsym_cmds_CXX=
10883link_all_deplibs_CXX=unknown
10884old_archive_cmds_CXX=$old_archive_cmds
10885no_undefined_flag_CXX=
10886whole_archive_flag_spec_CXX=
10887enable_shared_with_static_runtimes_CXX=no
10888
10889# Dependencies to place before and after the object being linked:
10890predep_objects_CXX=
10891postdep_objects_CXX=
10892predeps_CXX=
10893postdeps_CXX=
10894compiler_lib_search_path_CXX=
10895
10896# Source file extension for C++ test sources.
10897ac_ext=cpp
10898
10899# Object file extension for compiled C++ test sources.
10900objext=o
10901objext_CXX=$objext
10902
10903# Code to be used in simple compile tests
ac40fd9e 10904lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 10905
10906# Code to be used in simple link tests
ac40fd9e 10907lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
d9898ee8 10908
10909# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10910
10911# If no C compiler was specified, use CC.
10912LTCC=${LTCC-"$CC"}
10913
10914# If no C compiler flags were specified, use CFLAGS.
10915LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10916
10917# Allow CC to be a program name with arguments.
10918compiler=$CC
10919
10920
10921# save warnings/boilerplate of simple test code
10922ac_outfile=conftest.$ac_objext
ac40fd9e 10923echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 10924eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10925_lt_compiler_boilerplate=`cat conftest.err`
10926$rm conftest*
10927
10928ac_outfile=conftest.$ac_objext
ac40fd9e 10929echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 10930eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10931_lt_linker_boilerplate=`cat conftest.err`
10932$rm conftest*
10933
10934
10935# Allow CC to be a program name with arguments.
10936lt_save_CC=$CC
10937lt_save_LD=$LD
10938lt_save_GCC=$GCC
10939GCC=$GXX
10940lt_save_with_gnu_ld=$with_gnu_ld
10941lt_save_path_LD=$lt_cv_path_LD
10942if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10943 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10944else
10945 $as_unset lt_cv_prog_gnu_ld
10946fi
10947if test -n "${lt_cv_path_LDCXX+set}"; then
10948 lt_cv_path_LD=$lt_cv_path_LDCXX
10949else
10950 $as_unset lt_cv_path_LD
10951fi
10952test -z "${LDCXX+set}" || LD=$LDCXX
10953CC=${CXX-"c++"}
10954compiler=$CC
10955compiler_CXX=$CC
10956for cc_temp in $compiler""; do
10957 case $cc_temp in
10958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10960 \-*) ;;
10961 *) break;;
10962 esac
10963done
10964cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10965
10966
10967# We don't want -fno-exception wen compiling C++ code, so set the
10968# no_builtin_flag separately
10969if test "$GXX" = yes; then
10970 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10971else
10972 lt_prog_compiler_no_builtin_flag_CXX=
10973fi
10974
10975if test "$GXX" = yes; then
10976 # Set up default GNU C++ configuration
10977
10978
dd184caf 10979# Check whether --with-gnu-ld was given.
d9898ee8 10980if test "${with_gnu_ld+set}" = set; then
dd184caf 10981 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
d9898ee8 10982else
10983 with_gnu_ld=no
dd184caf 10984fi
10985
d9898ee8 10986ac_prog=ld
10987if test "$GCC" = yes; then
10988 # Check if gcc -print-prog-name=ld gives a path.
dd184caf 10989 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10990echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
d9898ee8 10991 case $host in
10992 *-*-mingw*)
10993 # gcc leaves a trailing carriage return which upsets mingw
10994 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10995 *)
10996 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10997 esac
10998 case $ac_prog in
10999 # Accept absolute paths.
11000 [\\/]* | ?:[\\/]*)
11001 re_direlt='/[^/][^/]*/\.\./'
11002 # Canonicalize the pathname of ld
11003 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11004 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11005 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11006 done
11007 test -z "$LD" && LD="$ac_prog"
11008 ;;
11009 "")
11010 # If it fails, then pretend we aren't using GCC.
11011 ac_prog=ld
11012 ;;
11013 *)
11014 # If it is relative, then search for the first ld in PATH.
11015 with_gnu_ld=unknown
11016 ;;
11017 esac
11018elif test "$with_gnu_ld" = yes; then
dd184caf 11019 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11020echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
d9898ee8 11021else
dd184caf 11022 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11023echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
d9898ee8 11024fi
11025if test "${lt_cv_path_LD+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027else
11028 if test -z "$LD"; then
11029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11030 for ac_dir in $PATH; do
11031 IFS="$lt_save_ifs"
11032 test -z "$ac_dir" && ac_dir=.
11033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11034 lt_cv_path_LD="$ac_dir/$ac_prog"
11035 # Check to see if the program is GNU ld. I'd rather use --version,
11036 # but apparently some variants of GNU ld only accept -v.
11037 # Break only if it was the GNU/non-GNU ld that we prefer.
11038 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11039 *GNU* | *'with BFD'*)
11040 test "$with_gnu_ld" != no && break
11041 ;;
11042 *)
11043 test "$with_gnu_ld" != yes && break
11044 ;;
11045 esac
11046 fi
11047 done
11048 IFS="$lt_save_ifs"
11049else
11050 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11051fi
11052fi
11053
11054LD="$lt_cv_path_LD"
11055if test -n "$LD"; then
dd184caf 11056 { echo "$as_me:$LINENO: result: $LD" >&5
11057echo "${ECHO_T}$LD" >&6; }
d9898ee8 11058else
dd184caf 11059 { echo "$as_me:$LINENO: result: no" >&5
11060echo "${ECHO_T}no" >&6; }
d9898ee8 11061fi
11062test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11063echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11064 { (exit 1); exit 1; }; }
dd184caf 11065{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11066echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
d9898ee8 11067if test "${lt_cv_prog_gnu_ld+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069else
11070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11071case `$LD -v 2>&1 </dev/null` in
11072*GNU* | *'with BFD'*)
11073 lt_cv_prog_gnu_ld=yes
11074 ;;
11075*)
11076 lt_cv_prog_gnu_ld=no
11077 ;;
11078esac
11079fi
dd184caf 11080{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11081echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 11082with_gnu_ld=$lt_cv_prog_gnu_ld
11083
11084
11085
11086 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11087 # archiving commands below assume that GNU ld is being used.
11088 if test "$with_gnu_ld" = yes; then
11089 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090 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'
11091
11092 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11094
11095 # If archive_cmds runs LD, not CC, wlarc should be empty
11096 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11097 # investigate it a little bit more. (MM)
11098 wlarc='${wl}'
11099
11100 # ancient GNU ld didn't support --whole-archive et. al.
11101 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11102 grep 'no-whole-archive' > /dev/null; then
11103 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11104 else
11105 whole_archive_flag_spec_CXX=
11106 fi
11107 else
11108 with_gnu_ld=no
11109 wlarc=
11110
11111 # A generic and very simple default shared library creation
11112 # command for GNU C++ for the case where it uses the native
11113 # linker, instead of GNU ld. If possible, this setting should
11114 # overridden to take advantage of the native linker features on
11115 # the platform it is being used on.
11116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11117 fi
11118
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11123
11124else
11125 GXX=no
11126 with_gnu_ld=no
11127 wlarc=
11128fi
11129
11130# PORTME: fill in a description of your system's C++ link characteristics
dd184caf 11131{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11132echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 11133ld_shlibs_CXX=yes
11134case $host_os in
11135 aix3*)
11136 # FIXME: insert proper C++ library support
11137 ld_shlibs_CXX=no
11138 ;;
11139 aix4* | aix5*)
11140 if test "$host_cpu" = ia64; then
11141 # On IA64, the linker does run time linking by default, so we don't
11142 # have to do anything special.
11143 aix_use_runtimelinking=no
11144 exp_sym_flag='-Bexport'
11145 no_entry_flag=""
11146 else
11147 aix_use_runtimelinking=no
11148
11149 # Test if we are trying to use run time linking or normal
11150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11151 # need to do runtime linking.
11152 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11153 for ld_flag in $LDFLAGS; do
11154 case $ld_flag in
11155 *-brtl*)
11156 aix_use_runtimelinking=yes
11157 break
11158 ;;
11159 esac
11160 done
11161 ;;
11162 esac
11163
11164 exp_sym_flag='-bexport'
11165 no_entry_flag='-bnoentry'
11166 fi
11167
11168 # When large executables or shared objects are built, AIX ld can
11169 # have problems creating the table of contents. If linking a library
11170 # or program results in "error TOC overflow" add -mminimal-toc to
11171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11173
11174 archive_cmds_CXX=''
11175 hardcode_direct_CXX=yes
11176 hardcode_libdir_separator_CXX=':'
11177 link_all_deplibs_CXX=yes
11178
11179 if test "$GXX" = yes; then
11180 case $host_os in aix4.[012]|aix4.[012].*)
11181 # We only want to do this on AIX 4.2 and lower, the check
11182 # below for broken collect2 doesn't work under 4.3+
11183 collect2name=`${CC} -print-prog-name=collect2`
11184 if test -f "$collect2name" && \
11185 strings "$collect2name" | grep resolve_lib_name >/dev/null
11186 then
11187 # We have reworked collect2
ac40fd9e 11188 :
d9898ee8 11189 else
11190 # We have old collect2
11191 hardcode_direct_CXX=unsupported
11192 # It fails to find uninstalled libraries when the uninstalled
11193 # path is not listed in the libpath. Setting hardcode_minus_L
11194 # to unsupported forces relinking
11195 hardcode_minus_L_CXX=yes
11196 hardcode_libdir_flag_spec_CXX='-L$libdir'
11197 hardcode_libdir_separator_CXX=
11198 fi
11199 ;;
11200 esac
11201 shared_flag='-shared'
11202 if test "$aix_use_runtimelinking" = yes; then
11203 shared_flag="$shared_flag "'${wl}-G'
11204 fi
11205 else
11206 # not using gcc
11207 if test "$host_cpu" = ia64; then
11208 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11209 # chokes on -Wl,-G. The following line is correct:
11210 shared_flag='-G'
11211 else
11212 if test "$aix_use_runtimelinking" = yes; then
11213 shared_flag='${wl}-G'
11214 else
11215 shared_flag='${wl}-bM:SRE'
11216 fi
11217 fi
11218 fi
11219
11220 # It seems that -bexpall does not export symbols beginning with
11221 # underscore (_), so it is better to generate a list of symbols to export.
11222 always_export_symbols_CXX=yes
11223 if test "$aix_use_runtimelinking" = yes; then
11224 # Warning - without using the other runtime loading flags (-brtl),
11225 # -berok will link without error, but may produce a broken library.
11226 allow_undefined_flag_CXX='-berok'
11227 # Determine the default libpath from the value encoded in an empty executable.
11228 cat >conftest.$ac_ext <<_ACEOF
11229/* confdefs.h. */
11230_ACEOF
11231cat confdefs.h >>conftest.$ac_ext
11232cat >>conftest.$ac_ext <<_ACEOF
11233/* end confdefs.h. */
11234
11235int
11236main ()
11237{
11238
11239 ;
11240 return 0;
11241}
11242_ACEOF
11243rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11244if { (ac_try="$ac_link"
11245case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11248esac
11249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_link") 2>conftest.er1
d9898ee8 11251 ac_status=$?
11252 grep -v '^ *+' conftest.er1 >conftest.err
11253 rm -f conftest.er1
11254 cat conftest.err >&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11256 (exit $ac_status); } && {
11257 test -z "$ac_cxx_werror_flag" ||
11258 test ! -s conftest.err
11259 } && test -s conftest$ac_exeext &&
11260 $as_test_x conftest$ac_exeext; then
d9898ee8 11261
ac40fd9e 11262lt_aix_libpath_sed='
11263 /Import File Strings/,/^$/ {
11264 /^0/ {
11265 s/^0 *\(.*\)$/\1/
11266 p
11267 }
11268 }'
11269aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11270# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11271if test -z "$aix_libpath"; then
11272 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11273fi
d9898ee8 11274else
11275 echo "$as_me: failed program was:" >&5
11276sed 's/^/| /' conftest.$ac_ext >&5
11277
dd184caf 11278
d9898ee8 11279fi
dd184caf 11280
11281rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11282 conftest$ac_exeext conftest.$ac_ext
11283if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11284
11285 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11286
11287 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"
11288 else
11289 if test "$host_cpu" = ia64; then
11290 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11291 allow_undefined_flag_CXX="-z nodefs"
11292 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"
11293 else
11294 # Determine the default libpath from the value encoded in an empty executable.
11295 cat >conftest.$ac_ext <<_ACEOF
11296/* confdefs.h. */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>conftest.$ac_ext <<_ACEOF
11300/* end confdefs.h. */
11301
11302int
11303main ()
11304{
11305
11306 ;
11307 return 0;
11308}
11309_ACEOF
11310rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11311if { (ac_try="$ac_link"
11312case "(($ac_try" in
11313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11314 *) ac_try_echo=$ac_try;;
11315esac
11316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11317 (eval "$ac_link") 2>conftest.er1
d9898ee8 11318 ac_status=$?
11319 grep -v '^ *+' conftest.er1 >conftest.err
11320 rm -f conftest.er1
11321 cat conftest.err >&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11323 (exit $ac_status); } && {
11324 test -z "$ac_cxx_werror_flag" ||
11325 test ! -s conftest.err
11326 } && test -s conftest$ac_exeext &&
11327 $as_test_x conftest$ac_exeext; then
d9898ee8 11328
ac40fd9e 11329lt_aix_libpath_sed='
11330 /Import File Strings/,/^$/ {
11331 /^0/ {
11332 s/^0 *\(.*\)$/\1/
11333 p
11334 }
11335 }'
11336aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 11337# Check for a 64-bit object if we didn't find anything.
ac40fd9e 11338if test -z "$aix_libpath"; then
11339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11340fi
d9898ee8 11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
dd184caf 11345
d9898ee8 11346fi
dd184caf 11347
11348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 11349 conftest$ac_exeext conftest.$ac_ext
11350if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11351
11352 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11353 # Warning - without using the other run time loading flags,
11354 # -berok will link without error, but may produce a broken library.
11355 no_undefined_flag_CXX=' ${wl}-bernotok'
11356 allow_undefined_flag_CXX=' ${wl}-berok'
11357 # Exported symbols can be pulled into shared objects from archives
11358 whole_archive_flag_spec_CXX='$convenience'
11359 archive_cmds_need_lc_CXX=yes
11360 # This is similar to how AIX traditionally builds its shared libraries.
11361 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'
11362 fi
11363 fi
11364 ;;
11365
11366 beos*)
11367 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11368 allow_undefined_flag_CXX=unsupported
11369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11370 # support --undefined. This deserves some investigation. FIXME
11371 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11372 else
11373 ld_shlibs_CXX=no
11374 fi
11375 ;;
11376
11377 chorus*)
11378 case $cc_basename in
11379 *)
11380 # FIXME: insert proper C++ library support
11381 ld_shlibs_CXX=no
11382 ;;
11383 esac
11384 ;;
11385
11386 cygwin* | mingw* | pw32*)
11387 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11388 # as there is no search path for DLLs.
11389 hardcode_libdir_flag_spec_CXX='-L$libdir'
11390 allow_undefined_flag_CXX=unsupported
11391 always_export_symbols_CXX=no
11392 enable_shared_with_static_runtimes_CXX=yes
11393
11394 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11395 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'
11396 # If the export-symbols file already is a .def file (1st line
11397 # is EXPORTS), use it as is; otherwise, prepend...
11398 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11399 cp $export_symbols $output_objdir/$soname.def;
11400 else
11401 echo EXPORTS > $output_objdir/$soname.def;
11402 cat $export_symbols >> $output_objdir/$soname.def;
11403 fi~
11404 $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'
11405 else
11406 ld_shlibs_CXX=no
11407 fi
11408 ;;
11409 darwin* | rhapsody*)
11410 case $host_os in
11411 rhapsody* | darwin1.[012])
11412 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11413 ;;
11414 *) # Darwin 1.3 on
11415 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11416 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11417 else
11418 case ${MACOSX_DEPLOYMENT_TARGET} in
11419 10.[012])
11420 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11421 ;;
11422 10.*)
11423 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11424 ;;
11425 esac
11426 fi
11427 ;;
11428 esac
11429 archive_cmds_need_lc_CXX=no
11430 hardcode_direct_CXX=no
11431 hardcode_automatic_CXX=yes
11432 hardcode_shlibpath_var_CXX=unsupported
11433 whole_archive_flag_spec_CXX=''
11434 link_all_deplibs_CXX=yes
11435
11436 if test "$GXX" = yes ; then
11437 lt_int_apple_cc_single_mod=no
11438 output_verbose_link_cmd='echo'
11439 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11440 lt_int_apple_cc_single_mod=yes
11441 fi
11442 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11443 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11444 else
11445 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'
11446 fi
11447 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11448 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11449 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11450 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}'
11451 else
11452 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}'
11453 fi
11454 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}'
11455 else
11456 case $cc_basename in
11457 xlc*)
11458 output_verbose_link_cmd='echo'
ac40fd9e 11459 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 11460 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 11462 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 11463 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}'
11464 ;;
11465 *)
11466 ld_shlibs_CXX=no
11467 ;;
11468 esac
11469 fi
11470 ;;
11471
11472 dgux*)
11473 case $cc_basename in
11474 ec++*)
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 ;;
11478 ghcx*)
11479 # Green Hills C++ Compiler
11480 # FIXME: insert proper C++ library support
11481 ld_shlibs_CXX=no
11482 ;;
11483 *)
11484 # FIXME: insert proper C++ library support
11485 ld_shlibs_CXX=no
11486 ;;
11487 esac
11488 ;;
11489 freebsd[12]*)
11490 # C++ shared libraries reported to be fairly broken before switch to ELF
11491 ld_shlibs_CXX=no
11492 ;;
11493 freebsd-elf*)
11494 archive_cmds_need_lc_CXX=no
11495 ;;
ac40fd9e 11496 freebsd* | dragonfly*)
d9898ee8 11497 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11498 # conventions
11499 ld_shlibs_CXX=yes
11500 ;;
11501 gnu*)
11502 ;;
11503 hpux9*)
11504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11505 hardcode_libdir_separator_CXX=:
11506 export_dynamic_flag_spec_CXX='${wl}-E'
11507 hardcode_direct_CXX=yes
11508 hardcode_minus_L_CXX=yes # Not in the search PATH,
11509 # but as the default
11510 # location of the library.
11511
11512 case $cc_basename in
11513 CC*)
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 ;;
11517 aCC*)
11518 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'
11519 # Commands to make compiler produce verbose output that lists
11520 # what "hidden" libraries, object files and flags are used when
11521 # linking a shared library.
11522 #
11523 # There doesn't appear to be a way to prevent this compiler from
11524 # explicitly linking system object files so we need to strip them
11525 # from the output so that they don't get included in the library
11526 # dependencies.
11527 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'
11528 ;;
11529 *)
11530 if test "$GXX" = yes; then
11531 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'
11532 else
11533 # FIXME: insert proper C++ library support
11534 ld_shlibs_CXX=no
11535 fi
11536 ;;
11537 esac
11538 ;;
11539 hpux10*|hpux11*)
11540 if test $with_gnu_ld = no; then
11541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11542 hardcode_libdir_separator_CXX=:
11543
11544 case $host_cpu in
ac40fd9e 11545 hppa*64*|ia64*) ;;
d9898ee8 11546 *)
11547 export_dynamic_flag_spec_CXX='${wl}-E'
11548 ;;
11549 esac
11550 fi
11551 case $host_cpu in
11552 hppa*64*|ia64*)
11553 hardcode_direct_CXX=no
11554 hardcode_shlibpath_var_CXX=no
11555 ;;
11556 *)
11557 hardcode_direct_CXX=yes
11558 hardcode_minus_L_CXX=yes # Not in the search PATH,
11559 # but as the default
11560 # location of the library.
11561 ;;
11562 esac
11563
11564 case $cc_basename in
11565 CC*)
11566 # FIXME: insert proper C++ library support
11567 ld_shlibs_CXX=no
11568 ;;
11569 aCC*)
11570 case $host_cpu in
11571 hppa*64*)
11572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11573 ;;
11574 ia64*)
11575 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11576 ;;
11577 *)
11578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11579 ;;
11580 esac
11581 # Commands to make compiler produce verbose output that lists
11582 # what "hidden" libraries, object files and flags are used when
11583 # linking a shared library.
11584 #
11585 # There doesn't appear to be a way to prevent this compiler from
11586 # explicitly linking system object files so we need to strip them
11587 # from the output so that they don't get included in the library
11588 # dependencies.
11589 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'
11590 ;;
11591 *)
11592 if test "$GXX" = yes; then
11593 if test $with_gnu_ld = no; then
11594 case $host_cpu in
11595 hppa*64*)
11596 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11597 ;;
11598 ia64*)
11599 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11600 ;;
11601 *)
11602 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'
11603 ;;
11604 esac
11605 fi
11606 else
11607 # FIXME: insert proper C++ library support
11608 ld_shlibs_CXX=no
11609 fi
11610 ;;
11611 esac
11612 ;;
ac40fd9e 11613 interix[3-9]*)
d9898ee8 11614 hardcode_direct_CXX=no
11615 hardcode_shlibpath_var_CXX=no
11616 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11617 export_dynamic_flag_spec_CXX='${wl}-E'
11618 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11619 # Instead, shared libraries are loaded at an image base (0x10000000 by
11620 # default) and relocated if they conflict, which is a slow very memory
11621 # consuming and fragmenting process. To avoid this, we pick a random,
11622 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11623 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11624 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'
11625 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'
11626 ;;
11627 irix5* | irix6*)
11628 case $cc_basename in
11629 CC*)
11630 # SGI C++
11631 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'
11632
11633 # Archives containing C++ object files must be created using
11634 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11635 # necessary to make sure instantiated templates are included
11636 # in the archive.
11637 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11638 ;;
11639 *)
11640 if test "$GXX" = yes; then
11641 if test "$with_gnu_ld" = no; then
11642 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'
11643 else
11644 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'
11645 fi
11646 fi
11647 link_all_deplibs_CXX=yes
11648 ;;
11649 esac
11650 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11651 hardcode_libdir_separator_CXX=:
11652 ;;
ac40fd9e 11653 linux* | k*bsd*-gnu)
d9898ee8 11654 case $cc_basename in
11655 KCC*)
11656 # Kuck and Associates, Inc. (KAI) C++ Compiler
11657
11658 # KCC will only create a shared library if the output file
11659 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11660 # to its proper name (with version) after linking.
11661 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'
11662 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'
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11666 #
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11670 # dependencies.
11671 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'
11672
11673 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11674 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11675
11676 # Archives containing C++ object files must be created using
11677 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11678 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11679 ;;
11680 icpc*)
11681 # Intel C++
11682 with_gnu_ld=yes
11683 # version 8.0 and above of icpc choke on multiply defined symbols
11684 # if we add $predep_objects and $postdep_objects, however 7.1 and
11685 # earlier do not add the objects themselves.
11686 case `$CC -V 2>&1` in
11687 *"Version 7."*)
11688 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11689 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'
11690 ;;
11691 *) # Version 8.0 or newer
11692 tmp_idyn=
11693 case $host_cpu in
11694 ia64*) tmp_idyn=' -i_dynamic';;
11695 esac
11696 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11697 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'
11698 ;;
11699 esac
11700 archive_cmds_need_lc_CXX=no
11701 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11703 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11704 ;;
11705 pgCC*)
11706 # Portland Group C++ compiler
11707 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11708 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'
11709
11710 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11711 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11712 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'
11713 ;;
11714 cxx*)
11715 # Compaq C++
11716 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11717 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'
11718
11719 runpath_var=LD_RUN_PATH
11720 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11721 hardcode_libdir_separator_CXX=:
11722
11723 # Commands to make compiler produce verbose output that lists
11724 # what "hidden" libraries, object files and flags are used when
11725 # linking a shared library.
11726 #
11727 # There doesn't appear to be a way to prevent this compiler from
11728 # explicitly linking system object files so we need to strip them
11729 # from the output so that they don't get included in the library
11730 # dependencies.
11731 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'
11732 ;;
ac40fd9e 11733 *)
11734 case `$CC -V 2>&1 | sed 5q` in
11735 *Sun\ C*)
11736 # Sun C++ 5.9
11737 no_undefined_flag_CXX=' -zdefs'
11738 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11739 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11740 hardcode_libdir_flag_spec_CXX='-R$libdir'
11741 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11742
11743 # Not sure whether something based on
11744 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11745 # would be better.
11746 output_verbose_link_cmd='echo'
11747
11748 # Archives containing C++ object files must be created using
11749 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11750 # necessary to make sure instantiated templates are included
11751 # in the archive.
11752 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11753 ;;
11754 esac
11755 ;;
d9898ee8 11756 esac
11757 ;;
11758 lynxos*)
11759 # FIXME: insert proper C++ library support
11760 ld_shlibs_CXX=no
11761 ;;
11762 m88k*)
11763 # FIXME: insert proper C++ library support
11764 ld_shlibs_CXX=no
11765 ;;
11766 mvs*)
11767 case $cc_basename in
11768 cxx*)
11769 # FIXME: insert proper C++ library support
11770 ld_shlibs_CXX=no
11771 ;;
11772 *)
11773 # FIXME: insert proper C++ library support
11774 ld_shlibs_CXX=no
11775 ;;
11776 esac
11777 ;;
11778 netbsd*)
11779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11780 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11781 wlarc=
11782 hardcode_libdir_flag_spec_CXX='-R$libdir'
11783 hardcode_direct_CXX=yes
11784 hardcode_shlibpath_var_CXX=no
11785 fi
11786 # Workaround some broken pre-1.5 toolchains
11787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11788 ;;
11789 openbsd2*)
11790 # C++ shared libraries are fairly broken
11791 ld_shlibs_CXX=no
11792 ;;
11793 openbsd*)
ac40fd9e 11794 if test -f /usr/libexec/ld.so; then
11795 hardcode_direct_CXX=yes
11796 hardcode_shlibpath_var_CXX=no
11797 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11799 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11800 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11801 export_dynamic_flag_spec_CXX='${wl}-E'
11802 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11803 fi
11804 output_verbose_link_cmd='echo'
11805 else
11806 ld_shlibs_CXX=no
d9898ee8 11807 fi
d9898ee8 11808 ;;
11809 osf3*)
11810 case $cc_basename in
11811 KCC*)
11812 # Kuck and Associates, Inc. (KAI) C++ Compiler
11813
11814 # KCC will only create a shared library if the output file
11815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11816 # to its proper name (with version) after linking.
11817 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'
11818
11819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11820 hardcode_libdir_separator_CXX=:
11821
11822 # Archives containing C++ object files must be created using
11823 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11825
11826 ;;
11827 RCC*)
11828 # Rational C++ 2.4.1
11829 # FIXME: insert proper C++ library support
11830 ld_shlibs_CXX=no
11831 ;;
11832 cxx*)
11833 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11834 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'
11835
11836 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11837 hardcode_libdir_separator_CXX=:
11838
11839 # Commands to make compiler produce verbose output that lists
11840 # what "hidden" libraries, object files and flags are used when
11841 # linking a shared library.
11842 #
11843 # There doesn't appear to be a way to prevent this compiler from
11844 # explicitly linking system object files so we need to strip them
11845 # from the output so that they don't get included in the library
11846 # dependencies.
11847 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11848 ;;
11849 *)
11850 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11851 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11852 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11853
11854 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11855 hardcode_libdir_separator_CXX=:
11856
11857 # Commands to make compiler produce verbose output that lists
11858 # what "hidden" libraries, object files and flags are used when
11859 # linking a shared library.
11860 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11861
11862 else
11863 # FIXME: insert proper C++ library support
11864 ld_shlibs_CXX=no
11865 fi
11866 ;;
11867 esac
11868 ;;
11869 osf4* | osf5*)
11870 case $cc_basename in
11871 KCC*)
11872 # Kuck and Associates, Inc. (KAI) C++ Compiler
11873
11874 # KCC will only create a shared library if the output file
11875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11876 # to its proper name (with version) after linking.
11877 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'
11878
11879 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11880 hardcode_libdir_separator_CXX=:
11881
11882 # Archives containing C++ object files must be created using
11883 # the KAI C++ compiler.
11884 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11885 ;;
11886 RCC*)
11887 # Rational C++ 2.4.1
11888 # FIXME: insert proper C++ library support
11889 ld_shlibs_CXX=no
11890 ;;
11891 cxx*)
11892 allow_undefined_flag_CXX=' -expect_unresolved \*'
11893 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'
11894 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11895 echo "-hidden">> $lib.exp~
11896 $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~
11897 $rm $lib.exp'
11898
11899 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11900 hardcode_libdir_separator_CXX=:
11901
11902 # Commands to make compiler produce verbose output that lists
11903 # what "hidden" libraries, object files and flags are used when
11904 # linking a shared library.
11905 #
11906 # There doesn't appear to be a way to prevent this compiler from
11907 # explicitly linking system object files so we need to strip them
11908 # from the output so that they don't get included in the library
11909 # dependencies.
11910 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'
11911 ;;
11912 *)
11913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11915 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'
11916
11917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11918 hardcode_libdir_separator_CXX=:
11919
11920 # Commands to make compiler produce verbose output that lists
11921 # what "hidden" libraries, object files and flags are used when
11922 # linking a shared library.
11923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11924
11925 else
11926 # FIXME: insert proper C++ library support
11927 ld_shlibs_CXX=no
11928 fi
11929 ;;
11930 esac
11931 ;;
11932 psos*)
11933 # FIXME: insert proper C++ library support
11934 ld_shlibs_CXX=no
11935 ;;
11936 sunos4*)
11937 case $cc_basename in
11938 CC*)
11939 # Sun C++ 4.x
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11942 ;;
11943 lcc*)
11944 # Lucid
11945 # FIXME: insert proper C++ library support
11946 ld_shlibs_CXX=no
11947 ;;
11948 *)
11949 # FIXME: insert proper C++ library support
11950 ld_shlibs_CXX=no
11951 ;;
11952 esac
11953 ;;
11954 solaris*)
11955 case $cc_basename in
11956 CC*)
11957 # Sun C++ 4.2, 5.x and Centerline C++
11958 archive_cmds_need_lc_CXX=yes
11959 no_undefined_flag_CXX=' -zdefs'
11960 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11962 $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'
11963
11964 hardcode_libdir_flag_spec_CXX='-R$libdir'
11965 hardcode_shlibpath_var_CXX=no
11966 case $host_os in
11967 solaris2.[0-5] | solaris2.[0-5].*) ;;
11968 *)
ac40fd9e 11969 # The compiler driver will combine and reorder linker options,
11970 # but understands `-z linker_flag'.
d9898ee8 11971 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 11972 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
d9898ee8 11973 ;;
11974 esac
11975 link_all_deplibs_CXX=yes
11976
11977 output_verbose_link_cmd='echo'
11978
11979 # Archives containing C++ object files must be created using
11980 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11981 # necessary to make sure instantiated templates are included
11982 # in the archive.
11983 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11984 ;;
11985 gcx*)
11986 # Green Hills C++ Compiler
11987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11988
11989 # The C++ compiler must be used to create the archive.
11990 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11991 ;;
11992 *)
11993 # GNU C++ compiler with Solaris linker
11994 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11995 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11996 if $CC --version | grep -v '^2\.7' > /dev/null; then
11997 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11998 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11999 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12000
12001 # Commands to make compiler produce verbose output that lists
12002 # what "hidden" libraries, object files and flags are used when
12003 # linking a shared library.
12004 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12005 else
12006 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12007 # platform.
12008 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12009 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12010 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12011
12012 # Commands to make compiler produce verbose output that lists
12013 # what "hidden" libraries, object files and flags are used when
12014 # linking a shared library.
12015 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12016 fi
12017
12018 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
ac40fd9e 12019 case $host_os in
12020 solaris2.[0-5] | solaris2.[0-5].*) ;;
12021 *)
12022 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12023 ;;
12024 esac
d9898ee8 12025 fi
12026 ;;
12027 esac
12028 ;;
12029 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12030 no_undefined_flag_CXX='${wl}-z,text'
12031 archive_cmds_need_lc_CXX=no
12032 hardcode_shlibpath_var_CXX=no
12033 runpath_var='LD_RUN_PATH'
12034
12035 case $cc_basename in
12036 CC*)
12037 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12038 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12039 ;;
12040 *)
12041 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12042 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12043 ;;
12044 esac
12045 ;;
12046 sysv5* | sco3.2v5* | sco5v6*)
12047 # Note: We can NOT use -z defs as we might desire, because we do not
12048 # link with -lc, and that would cause any symbols used from libc to
12049 # always be unresolved, which means just about no library would
12050 # ever link correctly. If we're not using GNU ld we use -z text
12051 # though, which does catch some bad symbols but isn't as heavy-handed
12052 # as -z defs.
12053 # For security reasons, it is highly recommended that you always
12054 # use absolute paths for naming shared libraries, and exclude the
12055 # DT_RUNPATH tag from executables and libraries. But doing so
12056 # requires that you compile everything twice, which is a pain.
12057 # So that behaviour is only enabled if SCOABSPATH is set to a
12058 # non-empty value in the environment. Most likely only useful for
12059 # creating official distributions of packages.
12060 # This is a hack until libtool officially supports absolute path
12061 # names for shared libraries.
12062 no_undefined_flag_CXX='${wl}-z,text'
12063 allow_undefined_flag_CXX='${wl}-z,nodefs'
12064 archive_cmds_need_lc_CXX=no
12065 hardcode_shlibpath_var_CXX=no
12066 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12067 hardcode_libdir_separator_CXX=':'
12068 link_all_deplibs_CXX=yes
12069 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12070 runpath_var='LD_RUN_PATH'
12071
12072 case $cc_basename in
12073 CC*)
12074 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12075 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12076 ;;
12077 *)
12078 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12079 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12080 ;;
12081 esac
12082 ;;
12083 tandem*)
12084 case $cc_basename in
12085 NCC*)
12086 # NonStop-UX NCC 3.20
12087 # FIXME: insert proper C++ library support
12088 ld_shlibs_CXX=no
12089 ;;
12090 *)
12091 # FIXME: insert proper C++ library support
12092 ld_shlibs_CXX=no
12093 ;;
12094 esac
12095 ;;
12096 vxworks*)
12097 # FIXME: insert proper C++ library support
12098 ld_shlibs_CXX=no
12099 ;;
12100 *)
12101 # FIXME: insert proper C++ library support
12102 ld_shlibs_CXX=no
12103 ;;
12104esac
dd184caf 12105{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12106echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12107test "$ld_shlibs_CXX" = no && can_build_shared=no
12108
12109GCC_CXX="$GXX"
12110LD_CXX="$LD"
12111
12112
12113cat > conftest.$ac_ext <<EOF
12114class Foo
12115{
12116public:
12117 Foo (void) { a = 0; }
12118private:
12119 int a;
12120};
12121EOF
12122
12123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; then
12128 # Parse the compiler output and extract the necessary
12129 # objects, libraries and library flags.
12130
12131 # Sentinel used to keep track of whether or not we are before
12132 # the conftest object file.
12133 pre_test_object_deps_done=no
12134
12135 # The `*' in the case matches for architectures that use `case' in
12136 # $output_verbose_cmd can trigger glob expansion during the loop
12137 # eval without this substitution.
12138 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12139
12140 for p in `eval $output_verbose_link_cmd`; do
12141 case $p in
12142
12143 -L* | -R* | -l*)
12144 # Some compilers place space between "-{L,R}" and the path.
12145 # Remove the space.
12146 if test $p = "-L" \
12147 || test $p = "-R"; then
12148 prev=$p
12149 continue
12150 else
12151 prev=
12152 fi
12153
12154 if test "$pre_test_object_deps_done" = no; then
12155 case $p in
12156 -L* | -R*)
12157 # Internal compiler library paths should come after those
12158 # provided the user. The postdeps already come after the
12159 # user supplied libs so there is no need to process them.
12160 if test -z "$compiler_lib_search_path_CXX"; then
12161 compiler_lib_search_path_CXX="${prev}${p}"
12162 else
12163 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12164 fi
12165 ;;
12166 # The "-l" case would never come before the object being
12167 # linked, so don't bother handling this case.
12168 esac
12169 else
12170 if test -z "$postdeps_CXX"; then
12171 postdeps_CXX="${prev}${p}"
12172 else
12173 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12174 fi
12175 fi
12176 ;;
12177
12178 *.$objext)
12179 # This assumes that the test object file only shows up
12180 # once in the compiler output.
12181 if test "$p" = "conftest.$objext"; then
12182 pre_test_object_deps_done=yes
12183 continue
12184 fi
12185
12186 if test "$pre_test_object_deps_done" = no; then
12187 if test -z "$predep_objects_CXX"; then
12188 predep_objects_CXX="$p"
12189 else
12190 predep_objects_CXX="$predep_objects_CXX $p"
12191 fi
12192 else
12193 if test -z "$postdep_objects_CXX"; then
12194 postdep_objects_CXX="$p"
12195 else
12196 postdep_objects_CXX="$postdep_objects_CXX $p"
12197 fi
12198 fi
12199 ;;
12200
12201 *) ;; # Ignore the rest.
12202
12203 esac
12204 done
12205
12206 # Clean up.
12207 rm -f a.out a.exe
12208else
12209 echo "libtool.m4: error: problem compiling CXX test program"
12210fi
12211
12212$rm -f confest.$objext
12213
12214# PORTME: override above test on systems where it is broken
12215case $host_os in
ac40fd9e 12216interix[3-9]*)
d9898ee8 12217 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12218 # hack all around it, let's just trust "g++" to DTRT.
12219 predep_objects_CXX=
12220 postdep_objects_CXX=
12221 postdeps_CXX=
12222 ;;
12223
ac40fd9e 12224linux*)
12225 case `$CC -V 2>&1 | sed 5q` in
12226 *Sun\ C*)
12227 # Sun C++ 5.9
12228 #
12229 # The more standards-conforming stlport4 library is
12230 # incompatible with the Cstd library. Avoid specifying
12231 # it if it's in CXXFLAGS. Ignore libCrun as
12232 # -library=stlport4 depends on it.
12233 case " $CXX $CXXFLAGS " in
12234 *" -library=stlport4 "*)
12235 solaris_use_stlport4=yes
12236 ;;
12237 esac
12238 if test "$solaris_use_stlport4" != yes; then
12239 postdeps_CXX='-library=Cstd -library=Crun'
12240 fi
12241 ;;
12242 esac
12243 ;;
12244
d9898ee8 12245solaris*)
12246 case $cc_basename in
12247 CC*)
ac40fd9e 12248 # The more standards-conforming stlport4 library is
12249 # incompatible with the Cstd library. Avoid specifying
12250 # it if it's in CXXFLAGS. Ignore libCrun as
12251 # -library=stlport4 depends on it.
12252 case " $CXX $CXXFLAGS " in
12253 *" -library=stlport4 "*)
12254 solaris_use_stlport4=yes
12255 ;;
12256 esac
12257
d9898ee8 12258 # Adding this requires a known-good setup of shared libraries for
12259 # Sun compiler versions before 5.6, else PIC objects from an old
12260 # archive will be linked into the output, leading to subtle bugs.
ac40fd9e 12261 if test "$solaris_use_stlport4" != yes; then
12262 postdeps_CXX='-library=Cstd -library=Crun'
12263 fi
d9898ee8 12264 ;;
12265 esac
12266 ;;
12267esac
12268
12269
12270case " $postdeps_CXX " in
12271*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12272esac
12273
12274lt_prog_compiler_wl_CXX=
12275lt_prog_compiler_pic_CXX=
12276lt_prog_compiler_static_CXX=
12277
dd184caf 12278{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12279echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 12280
12281 # C++ specific cases for pic, static, wl, etc.
12282 if test "$GXX" = yes; then
12283 lt_prog_compiler_wl_CXX='-Wl,'
12284 lt_prog_compiler_static_CXX='-static'
12285
12286 case $host_os in
12287 aix*)
12288 # All AIX code is PIC.
12289 if test "$host_cpu" = ia64; then
12290 # AIX 5 now supports IA64 processor
12291 lt_prog_compiler_static_CXX='-Bstatic'
12292 fi
12293 ;;
12294 amigaos*)
12295 # FIXME: we need at least 68020 code to build shared libraries, but
12296 # adding the `-m68020' flag to GCC prevents building anything better,
12297 # like `-m68040'.
12298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12299 ;;
ac40fd9e 12300 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 12301 # PIC is the default for these OSes.
12302 ;;
ac40fd9e 12303 mingw* | cygwin* | os2* | pw32*)
d9898ee8 12304 # This hack is so that the source file can tell whether it is being
12305 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 12306 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12307 # (--disable-auto-import) libraries
d9898ee8 12308 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12309 ;;
12310 darwin* | rhapsody*)
12311 # PIC is the default on this platform
12312 # Common symbols not allowed in MH_DYLIB files
12313 lt_prog_compiler_pic_CXX='-fno-common'
12314 ;;
12315 *djgpp*)
12316 # DJGPP does not support shared libraries at all
12317 lt_prog_compiler_pic_CXX=
12318 ;;
ac40fd9e 12319 interix[3-9]*)
d9898ee8 12320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12321 # Instead, we relocate shared libraries at runtime.
12322 ;;
12323 sysv4*MP*)
12324 if test -d /usr/nec; then
12325 lt_prog_compiler_pic_CXX=-Kconform_pic
12326 fi
12327 ;;
12328 hpux*)
12329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12330 # not for PA HP-UX.
12331 case $host_cpu in
12332 hppa*64*|ia64*)
12333 ;;
12334 *)
12335 lt_prog_compiler_pic_CXX='-fPIC'
12336 ;;
12337 esac
12338 ;;
12339 *)
12340 lt_prog_compiler_pic_CXX='-fPIC'
12341 ;;
12342 esac
12343 else
12344 case $host_os in
12345 aix4* | aix5*)
12346 # All AIX code is PIC.
12347 if test "$host_cpu" = ia64; then
12348 # AIX 5 now supports IA64 processor
12349 lt_prog_compiler_static_CXX='-Bstatic'
12350 else
12351 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12352 fi
12353 ;;
12354 chorus*)
12355 case $cc_basename in
12356 cxch68*)
12357 # Green Hills C++ Compiler
12358 # _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"
12359 ;;
12360 esac
12361 ;;
12362 darwin*)
12363 # PIC is the default on this platform
12364 # Common symbols not allowed in MH_DYLIB files
12365 case $cc_basename in
12366 xlc*)
12367 lt_prog_compiler_pic_CXX='-qnocommon'
12368 lt_prog_compiler_wl_CXX='-Wl,'
12369 ;;
12370 esac
12371 ;;
12372 dgux*)
12373 case $cc_basename in
12374 ec++*)
12375 lt_prog_compiler_pic_CXX='-KPIC'
12376 ;;
12377 ghcx*)
12378 # Green Hills C++ Compiler
12379 lt_prog_compiler_pic_CXX='-pic'
12380 ;;
12381 *)
12382 ;;
12383 esac
12384 ;;
ac40fd9e 12385 freebsd* | dragonfly*)
d9898ee8 12386 # FreeBSD uses GNU C++
12387 ;;
12388 hpux9* | hpux10* | hpux11*)
12389 case $cc_basename in
12390 CC*)
12391 lt_prog_compiler_wl_CXX='-Wl,'
12392 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12393 if test "$host_cpu" != ia64; then
12394 lt_prog_compiler_pic_CXX='+Z'
12395 fi
12396 ;;
12397 aCC*)
12398 lt_prog_compiler_wl_CXX='-Wl,'
12399 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12400 case $host_cpu in
12401 hppa*64*|ia64*)
12402 # +Z the default
12403 ;;
12404 *)
12405 lt_prog_compiler_pic_CXX='+Z'
12406 ;;
12407 esac
12408 ;;
12409 *)
12410 ;;
12411 esac
12412 ;;
12413 interix*)
12414 # This is c89, which is MS Visual C++ (no shared libs)
12415 # Anyone wants to do a port?
12416 ;;
12417 irix5* | irix6* | nonstopux*)
12418 case $cc_basename in
12419 CC*)
12420 lt_prog_compiler_wl_CXX='-Wl,'
12421 lt_prog_compiler_static_CXX='-non_shared'
12422 # CC pic flag -KPIC is the default.
12423 ;;
12424 *)
12425 ;;
12426 esac
12427 ;;
ac40fd9e 12428 linux* | k*bsd*-gnu)
d9898ee8 12429 case $cc_basename in
12430 KCC*)
12431 # KAI C++ Compiler
12432 lt_prog_compiler_wl_CXX='--backend -Wl,'
12433 lt_prog_compiler_pic_CXX='-fPIC'
12434 ;;
12435 icpc* | ecpc*)
12436 # Intel C++
12437 lt_prog_compiler_wl_CXX='-Wl,'
12438 lt_prog_compiler_pic_CXX='-KPIC'
12439 lt_prog_compiler_static_CXX='-static'
12440 ;;
12441 pgCC*)
12442 # Portland Group C++ compiler.
12443 lt_prog_compiler_wl_CXX='-Wl,'
12444 lt_prog_compiler_pic_CXX='-fpic'
12445 lt_prog_compiler_static_CXX='-Bstatic'
12446 ;;
12447 cxx*)
12448 # Compaq C++
12449 # Make sure the PIC flag is empty. It appears that all Alpha
12450 # Linux and Compaq Tru64 Unix objects are PIC.
12451 lt_prog_compiler_pic_CXX=
12452 lt_prog_compiler_static_CXX='-non_shared'
12453 ;;
12454 *)
ac40fd9e 12455 case `$CC -V 2>&1 | sed 5q` in
12456 *Sun\ C*)
12457 # Sun C++ 5.9
12458 lt_prog_compiler_pic_CXX='-KPIC'
12459 lt_prog_compiler_static_CXX='-Bstatic'
12460 lt_prog_compiler_wl_CXX='-Qoption ld '
12461 ;;
12462 esac
d9898ee8 12463 ;;
12464 esac
12465 ;;
12466 lynxos*)
12467 ;;
12468 m88k*)
12469 ;;
12470 mvs*)
12471 case $cc_basename in
12472 cxx*)
12473 lt_prog_compiler_pic_CXX='-W c,exportall'
12474 ;;
12475 *)
12476 ;;
12477 esac
12478 ;;
12479 netbsd*)
12480 ;;
12481 osf3* | osf4* | osf5*)
12482 case $cc_basename in
12483 KCC*)
12484 lt_prog_compiler_wl_CXX='--backend -Wl,'
12485 ;;
12486 RCC*)
12487 # Rational C++ 2.4.1
12488 lt_prog_compiler_pic_CXX='-pic'
12489 ;;
12490 cxx*)
12491 # Digital/Compaq C++
12492 lt_prog_compiler_wl_CXX='-Wl,'
12493 # Make sure the PIC flag is empty. It appears that all Alpha
12494 # Linux and Compaq Tru64 Unix objects are PIC.
12495 lt_prog_compiler_pic_CXX=
12496 lt_prog_compiler_static_CXX='-non_shared'
12497 ;;
12498 *)
12499 ;;
12500 esac
12501 ;;
12502 psos*)
12503 ;;
12504 solaris*)
12505 case $cc_basename in
12506 CC*)
12507 # Sun C++ 4.2, 5.x and Centerline C++
12508 lt_prog_compiler_pic_CXX='-KPIC'
12509 lt_prog_compiler_static_CXX='-Bstatic'
12510 lt_prog_compiler_wl_CXX='-Qoption ld '
12511 ;;
12512 gcx*)
12513 # Green Hills C++ Compiler
12514 lt_prog_compiler_pic_CXX='-PIC'
12515 ;;
12516 *)
12517 ;;
12518 esac
12519 ;;
12520 sunos4*)
12521 case $cc_basename in
12522 CC*)
12523 # Sun C++ 4.x
12524 lt_prog_compiler_pic_CXX='-pic'
12525 lt_prog_compiler_static_CXX='-Bstatic'
12526 ;;
12527 lcc*)
12528 # Lucid
12529 lt_prog_compiler_pic_CXX='-pic'
12530 ;;
12531 *)
12532 ;;
12533 esac
12534 ;;
12535 tandem*)
12536 case $cc_basename in
12537 NCC*)
12538 # NonStop-UX NCC 3.20
12539 lt_prog_compiler_pic_CXX='-KPIC'
12540 ;;
12541 *)
12542 ;;
12543 esac
12544 ;;
12545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12546 case $cc_basename in
12547 CC*)
12548 lt_prog_compiler_wl_CXX='-Wl,'
12549 lt_prog_compiler_pic_CXX='-KPIC'
12550 lt_prog_compiler_static_CXX='-Bstatic'
12551 ;;
12552 esac
12553 ;;
12554 vxworks*)
12555 ;;
12556 *)
12557 lt_prog_compiler_can_build_shared_CXX=no
12558 ;;
12559 esac
12560 fi
12561
dd184caf 12562{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12563echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
d9898ee8 12564
12565#
12566# Check to make sure the PIC flag actually works.
12567#
12568if test -n "$lt_prog_compiler_pic_CXX"; then
12569
dd184caf 12570{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12571echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
d9898ee8 12572if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12574else
12575 lt_prog_compiler_pic_works_CXX=no
12576 ac_outfile=conftest.$ac_objext
ac40fd9e 12577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12578 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12579 # Insert the option either (1) after the last *FLAGS variable, or
12580 # (2) before a word containing "conftest.", or (3) at the end.
12581 # Note that $ac_compile itself does not contain backslashes and begins
12582 # with a dollar sign (not a hyphen), so the echo should work correctly.
12583 # The option is referenced via a variable to avoid confusing sed.
12584 lt_compile=`echo "$ac_compile" | $SED \
12585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12587 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12588 (eval echo "\"\$as_me:12588: $lt_compile\"" >&5)
d9898ee8 12589 (eval "$lt_compile" 2>conftest.err)
12590 ac_status=$?
12591 cat conftest.err >&5
ac40fd9e 12592 echo "$as_me:12592: \$? = $ac_status" >&5
d9898ee8 12593 if (exit $ac_status) && test -s "$ac_outfile"; then
12594 # The compiler can only warn and ignore the option if not recognized
12595 # So say no if there are warnings other than the usual output.
12596 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12597 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12598 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12599 lt_prog_compiler_pic_works_CXX=yes
12600 fi
12601 fi
12602 $rm conftest*
12603
12604fi
dd184caf 12605{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12606echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
d9898ee8 12607
12608if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12609 case $lt_prog_compiler_pic_CXX in
12610 "" | " "*) ;;
12611 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12612 esac
12613else
12614 lt_prog_compiler_pic_CXX=
12615 lt_prog_compiler_can_build_shared_CXX=no
12616fi
12617
12618fi
12619case $host_os in
12620 # For platforms which do not support PIC, -DPIC is meaningless:
12621 *djgpp*)
12622 lt_prog_compiler_pic_CXX=
12623 ;;
12624 *)
12625 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12626 ;;
12627esac
12628
12629#
12630# Check to make sure the static flag actually works.
12631#
12632wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
dd184caf 12633{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12634echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 12635if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637else
12638 lt_prog_compiler_static_works_CXX=no
12639 save_LDFLAGS="$LDFLAGS"
12640 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 12641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 12642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12643 # The linker can only warn and ignore the option if not recognized
12644 # So say no if there are warnings
12645 if test -s conftest.err; then
12646 # Append any errors to the config.log.
12647 cat conftest.err 1>&5
12648 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12650 if diff conftest.exp conftest.er2 >/dev/null; then
12651 lt_prog_compiler_static_works_CXX=yes
12652 fi
12653 else
12654 lt_prog_compiler_static_works_CXX=yes
12655 fi
12656 fi
12657 $rm conftest*
12658 LDFLAGS="$save_LDFLAGS"
12659
12660fi
dd184caf 12661{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12662echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
d9898ee8 12663
12664if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12665 :
12666else
12667 lt_prog_compiler_static_CXX=
12668fi
12669
12670
dd184caf 12671{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12672echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 12673if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12675else
12676 lt_cv_prog_compiler_c_o_CXX=no
12677 $rm -r conftest 2>/dev/null
12678 mkdir conftest
12679 cd conftest
12680 mkdir out
ac40fd9e 12681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12682
12683 lt_compiler_flag="-o out/conftest2.$ac_objext"
12684 # Insert the option either (1) after the last *FLAGS variable, or
12685 # (2) before a word containing "conftest.", or (3) at the end.
12686 # Note that $ac_compile itself does not contain backslashes and begins
12687 # with a dollar sign (not a hyphen), so the echo should work correctly.
12688 lt_compile=`echo "$ac_compile" | $SED \
12689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12691 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 12692 (eval echo "\"\$as_me:12692: $lt_compile\"" >&5)
d9898ee8 12693 (eval "$lt_compile" 2>out/conftest.err)
12694 ac_status=$?
12695 cat out/conftest.err >&5
ac40fd9e 12696 echo "$as_me:12696: \$? = $ac_status" >&5
d9898ee8 12697 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12698 then
12699 # The compiler can only warn and ignore the option if not recognized
12700 # So say no if there are warnings
12701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12704 lt_cv_prog_compiler_c_o_CXX=yes
12705 fi
12706 fi
12707 chmod u+w . 2>&5
12708 $rm conftest*
12709 # SGI C++ compiler will create directory out/ii_files/ for
12710 # template instantiation
12711 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12712 $rm out/* && rmdir out
12713 cd ..
12714 rmdir conftest
12715 $rm conftest*
12716
12717fi
dd184caf 12718{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12719echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
d9898ee8 12720
12721
12722hard_links="nottested"
12723if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12724 # do not overwrite the value of need_locks provided by the user
dd184caf 12725 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12726echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 12727 hard_links=yes
12728 $rm conftest*
12729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12730 touch conftest.a
12731 ln conftest.a conftest.b 2>&5 || hard_links=no
12732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 12733 { echo "$as_me:$LINENO: result: $hard_links" >&5
12734echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 12735 if test "$hard_links" = no; then
12736 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12737echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12738 need_locks=warn
12739 fi
12740else
12741 need_locks=no
12742fi
12743
dd184caf 12744{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12745echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 12746
12747 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12748 case $host_os in
12749 aix4* | aix5*)
12750 # If we're using GNU nm, then we don't want the "-C" option.
12751 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12752 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12753 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'
12754 else
12755 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'
12756 fi
12757 ;;
12758 pw32*)
12759 export_symbols_cmds_CXX="$ltdll_cmds"
12760 ;;
12761 cygwin* | mingw*)
ac40fd9e 12762 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 12763 ;;
12764 *)
12765 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12766 ;;
12767 esac
12768
dd184caf 12769{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12770echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
d9898ee8 12771test "$ld_shlibs_CXX" = no && can_build_shared=no
12772
12773#
12774# Do we need to explicitly link libc?
12775#
12776case "x$archive_cmds_need_lc_CXX" in
12777x|xyes)
12778 # Assume -lc should be added
12779 archive_cmds_need_lc_CXX=yes
12780
12781 if test "$enable_shared" = yes && test "$GCC" = yes; then
12782 case $archive_cmds_CXX in
12783 *'~'*)
12784 # FIXME: we may have to deal with multi-command sequences.
12785 ;;
12786 '$CC '*)
12787 # Test whether the compiler implicitly links with -lc since on some
12788 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12789 # to ld, don't add -lc before -lgcc.
dd184caf 12790 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12791echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 12792 $rm conftest*
ac40fd9e 12793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 12794
12795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12796 (eval $ac_compile) 2>&5
12797 ac_status=$?
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } 2>conftest.err; then
12800 soname=conftest
12801 lib=conftest
12802 libobjs=conftest.$ac_objext
12803 deplibs=
12804 wl=$lt_prog_compiler_wl_CXX
12805 pic_flag=$lt_prog_compiler_pic_CXX
12806 compiler_flags=-v
12807 linker_flags=-v
12808 verstring=
12809 output_objdir=.
12810 libname=conftest
12811 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12812 allow_undefined_flag_CXX=
12813 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12814 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }
12818 then
12819 archive_cmds_need_lc_CXX=no
12820 else
12821 archive_cmds_need_lc_CXX=yes
12822 fi
12823 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12824 else
12825 cat conftest.err 1>&5
12826 fi
12827 $rm conftest*
dd184caf 12828 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12829echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
d9898ee8 12830 ;;
12831 esac
12832 fi
12833 ;;
12834esac
12835
dd184caf 12836{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12837echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 12838library_names_spec=
12839libname_spec='lib$name'
12840soname_spec=
12841shrext_cmds=".so"
12842postinstall_cmds=
12843postuninstall_cmds=
12844finish_cmds=
12845finish_eval=
12846shlibpath_var=
12847shlibpath_overrides_runpath=unknown
12848version_type=none
12849dynamic_linker="$host_os ld.so"
12850sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 12851
d9898ee8 12852need_lib_prefix=unknown
12853hardcode_into_libs=no
12854
12855# when you set need_version to no, make sure it does not cause -set_version
12856# flags to be left without arguments
12857need_version=unknown
12858
12859case $host_os in
12860aix3*)
12861 version_type=linux
12862 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12863 shlibpath_var=LIBPATH
12864
12865 # AIX 3 has no versioning support, so we append a major version to the name.
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 ;;
12868
12869aix4* | aix5*)
12870 version_type=linux
12871 need_lib_prefix=no
12872 need_version=no
12873 hardcode_into_libs=yes
12874 if test "$host_cpu" = ia64; then
12875 # AIX 5 supports IA64
12876 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12877 shlibpath_var=LD_LIBRARY_PATH
12878 else
12879 # With GCC up to 2.95.x, collect2 would create an import file
12880 # for dependence libraries. The import file would start with
12881 # the line `#! .'. This would cause the generated library to
12882 # depend on `.', always an invalid library. This was fixed in
12883 # development snapshots of GCC prior to 3.0.
12884 case $host_os in
12885 aix4 | aix4.[01] | aix4.[01].*)
12886 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12887 echo ' yes '
12888 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12889 :
12890 else
12891 can_build_shared=no
12892 fi
12893 ;;
12894 esac
12895 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12896 # soname into executable. Probably we can add versioning support to
12897 # collect2, so additional links can be useful in future.
12898 if test "$aix_use_runtimelinking" = yes; then
12899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12900 # instead of lib<name>.a to let people know that these are not
12901 # typical AIX shared libraries.
12902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12903 else
12904 # We preserve .a as extension for shared libraries through AIX4.2
12905 # and later when we are not doing run time linking.
12906 library_names_spec='${libname}${release}.a $libname.a'
12907 soname_spec='${libname}${release}${shared_ext}$major'
12908 fi
12909 shlibpath_var=LIBPATH
12910 fi
12911 ;;
12912
12913amigaos*)
12914 library_names_spec='$libname.ixlibrary $libname.a'
12915 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12916 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'
12917 ;;
12918
12919beos*)
12920 library_names_spec='${libname}${shared_ext}'
12921 dynamic_linker="$host_os ld.so"
12922 shlibpath_var=LIBRARY_PATH
12923 ;;
12924
12925bsdi[45]*)
12926 version_type=linux
12927 need_version=no
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12931 shlibpath_var=LD_LIBRARY_PATH
12932 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12933 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12934 # the default ld.so.conf also contains /usr/contrib/lib and
12935 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12936 # libtool to hard-code these into programs
12937 ;;
12938
12939cygwin* | mingw* | pw32*)
12940 version_type=windows
12941 shrext_cmds=".dll"
12942 need_version=no
12943 need_lib_prefix=no
12944
12945 case $GCC,$host_os in
12946 yes,cygwin* | yes,mingw* | yes,pw32*)
12947 library_names_spec='$libname.dll.a'
12948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12949 postinstall_cmds='base_file=`basename \${file}`~
12950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12951 dldir=$destdir/`dirname \$dlpath`~
12952 test -d \$dldir || mkdir -p \$dldir~
12953 $install_prog $dir/$dlname \$dldir/$dlname~
12954 chmod a+x \$dldir/$dlname'
12955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12956 dlpath=$dir/\$dldll~
12957 $rm \$dlpath'
12958 shlibpath_overrides_runpath=yes
12959
12960 case $host_os in
12961 cygwin*)
12962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12965 ;;
12966 mingw*)
12967 # MinGW DLLs use traditional 'lib' prefix
12968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12969 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12970 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12971 # It is most probably a Windows format PATH printed by
12972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12973 # path with ; separators, and with drive letters. We can handle the
12974 # drive letters (cygwin fileutils understands them), so leave them,
12975 # especially as we might pass files found there to a mingw objdump,
12976 # which wouldn't understand a cygwinified path. Ahh.
12977 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12978 else
12979 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12980 fi
12981 ;;
12982 pw32*)
12983 # pw32 DLLs use 'pw' prefix rather than 'lib'
12984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12985 ;;
12986 esac
12987 ;;
12988
12989 *)
12990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12991 ;;
12992 esac
12993 dynamic_linker='Win32 ld.exe'
12994 # FIXME: first we should search . and the directory the executable is in
12995 shlibpath_var=PATH
12996 ;;
12997
12998darwin* | rhapsody*)
12999 dynamic_linker="$host_os dyld"
13000 version_type=darwin
13001 need_lib_prefix=no
13002 need_version=no
13003 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13004 soname_spec='${libname}${release}${major}$shared_ext'
13005 shlibpath_overrides_runpath=yes
13006 shlibpath_var=DYLD_LIBRARY_PATH
13007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 13008
d9898ee8 13009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13010 ;;
13011
13012dgux*)
13013 version_type=linux
13014 need_lib_prefix=no
13015 need_version=no
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13017 soname_spec='${libname}${release}${shared_ext}$major'
13018 shlibpath_var=LD_LIBRARY_PATH
13019 ;;
13020
13021freebsd1*)
13022 dynamic_linker=no
13023 ;;
13024
d9898ee8 13025freebsd* | dragonfly*)
13026 # DragonFly does not have aout. When/if they implement a new
13027 # versioning mechanism, adjust this.
13028 if test -x /usr/bin/objformat; then
13029 objformat=`/usr/bin/objformat`
13030 else
13031 case $host_os in
13032 freebsd[123]*) objformat=aout ;;
13033 *) objformat=elf ;;
13034 esac
13035 fi
13036 version_type=freebsd-$objformat
13037 case $version_type in
13038 freebsd-elf*)
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13040 need_version=no
13041 need_lib_prefix=no
13042 ;;
13043 freebsd-*)
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13045 need_version=yes
13046 ;;
13047 esac
13048 shlibpath_var=LD_LIBRARY_PATH
13049 case $host_os in
13050 freebsd2*)
13051 shlibpath_overrides_runpath=yes
13052 ;;
13053 freebsd3.[01]* | freebsdelf3.[01]*)
13054 shlibpath_overrides_runpath=yes
13055 hardcode_into_libs=yes
13056 ;;
13057 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13058 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13059 shlibpath_overrides_runpath=no
13060 hardcode_into_libs=yes
13061 ;;
ac40fd9e 13062 *) # from 4.6 on, and DragonFly
d9898ee8 13063 shlibpath_overrides_runpath=yes
13064 hardcode_into_libs=yes
13065 ;;
13066 esac
13067 ;;
13068
13069gnu*)
13070 version_type=linux
13071 need_lib_prefix=no
13072 need_version=no
13073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13074 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 hardcode_into_libs=yes
13077 ;;
13078
13079hpux9* | hpux10* | hpux11*)
13080 # Give a soname corresponding to the major version so that dld.sl refuses to
13081 # link against other versions.
13082 version_type=sunos
13083 need_lib_prefix=no
13084 need_version=no
13085 case $host_cpu in
13086 ia64*)
13087 shrext_cmds='.so'
13088 hardcode_into_libs=yes
13089 dynamic_linker="$host_os dld.so"
13090 shlibpath_var=LD_LIBRARY_PATH
13091 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13093 soname_spec='${libname}${release}${shared_ext}$major'
13094 if test "X$HPUX_IA64_MODE" = X32; then
13095 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13096 else
13097 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13098 fi
13099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13100 ;;
13101 hppa*64*)
13102 shrext_cmds='.sl'
13103 hardcode_into_libs=yes
13104 dynamic_linker="$host_os dld.sl"
13105 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13108 soname_spec='${libname}${release}${shared_ext}$major'
13109 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13111 ;;
13112 *)
13113 shrext_cmds='.sl'
13114 dynamic_linker="$host_os dld.sl"
13115 shlibpath_var=SHLIB_PATH
13116 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13118 soname_spec='${libname}${release}${shared_ext}$major'
13119 ;;
13120 esac
13121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13122 postinstall_cmds='chmod 555 $lib'
13123 ;;
13124
ac40fd9e 13125interix[3-9]*)
d9898ee8 13126 version_type=linux
13127 need_lib_prefix=no
13128 need_version=no
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130 soname_spec='${libname}${release}${shared_ext}$major'
13131 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13132 shlibpath_var=LD_LIBRARY_PATH
13133 shlibpath_overrides_runpath=no
13134 hardcode_into_libs=yes
13135 ;;
13136
13137irix5* | irix6* | nonstopux*)
13138 case $host_os in
13139 nonstopux*) version_type=nonstopux ;;
13140 *)
13141 if test "$lt_cv_prog_gnu_ld" = yes; then
13142 version_type=linux
13143 else
13144 version_type=irix
13145 fi ;;
13146 esac
13147 need_lib_prefix=no
13148 need_version=no
13149 soname_spec='${libname}${release}${shared_ext}$major'
13150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13151 case $host_os in
13152 irix5* | nonstopux*)
13153 libsuff= shlibsuff=
13154 ;;
13155 *)
13156 case $LD in # libtool.m4 will add one of these switches to LD
13157 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13158 libsuff= shlibsuff= libmagic=32-bit;;
13159 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13160 libsuff=32 shlibsuff=N32 libmagic=N32;;
13161 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13162 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13163 *) libsuff= shlibsuff= libmagic=never-match;;
13164 esac
13165 ;;
13166 esac
13167 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13168 shlibpath_overrides_runpath=no
13169 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13170 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13171 hardcode_into_libs=yes
13172 ;;
13173
13174# No shared lib support for Linux oldld, aout, or coff.
13175linux*oldld* | linux*aout* | linux*coff*)
13176 dynamic_linker=no
13177 ;;
13178
13179# This must be Linux ELF.
ac40fd9e 13180linux* | k*bsd*-gnu)
d9898ee8 13181 version_type=linux
13182 need_lib_prefix=no
13183 need_version=no
13184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185 soname_spec='${libname}${release}${shared_ext}$major'
13186 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13187 shlibpath_var=LD_LIBRARY_PATH
13188 shlibpath_overrides_runpath=no
13189 # This implies no fast_install, which is unacceptable.
13190 # Some rework will be needed to allow for fast_install
13191 # before this can be enabled.
13192 hardcode_into_libs=yes
ac40fd9e 13193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 13195
13196 # Append ld.so.conf contents to the search path
13197 if test -f /etc/ld.so.conf; then
ac40fd9e 13198 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13199 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 13200 fi
13201
13202 # We used to test for /lib/ld.so.1 and disable shared libraries on
13203 # powerpc, because MkLinux only supported shared libraries with the
13204 # GNU dynamic linker. Since this was broken with cross compilers,
13205 # most powerpc-linux boxes support dynamic linking these days and
13206 # people can always --disable-shared, the test was removed, and we
13207 # assume the GNU/Linux dynamic linker is in use.
13208 dynamic_linker='GNU/Linux ld.so'
13209 ;;
13210
d9898ee8 13211netbsd*)
13212 version_type=sunos
13213 need_lib_prefix=no
13214 need_version=no
13215 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13217 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13218 dynamic_linker='NetBSD (a.out) ld.so'
13219 else
13220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13221 soname_spec='${libname}${release}${shared_ext}$major'
13222 dynamic_linker='NetBSD ld.elf_so'
13223 fi
13224 shlibpath_var=LD_LIBRARY_PATH
13225 shlibpath_overrides_runpath=yes
13226 hardcode_into_libs=yes
13227 ;;
13228
13229newsos6)
13230 version_type=linux
13231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13232 shlibpath_var=LD_LIBRARY_PATH
13233 shlibpath_overrides_runpath=yes
13234 ;;
13235
13236nto-qnx*)
13237 version_type=linux
13238 need_lib_prefix=no
13239 need_version=no
13240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13241 soname_spec='${libname}${release}${shared_ext}$major'
13242 shlibpath_var=LD_LIBRARY_PATH
13243 shlibpath_overrides_runpath=yes
13244 ;;
13245
13246openbsd*)
13247 version_type=sunos
13248 sys_lib_dlsearch_path_spec="/usr/lib"
13249 need_lib_prefix=no
13250 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13251 case $host_os in
13252 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13253 *) need_version=no ;;
13254 esac
13255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13257 shlibpath_var=LD_LIBRARY_PATH
13258 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13259 case $host_os in
13260 openbsd2.[89] | openbsd2.[89].*)
13261 shlibpath_overrides_runpath=no
13262 ;;
13263 *)
13264 shlibpath_overrides_runpath=yes
13265 ;;
13266 esac
13267 else
13268 shlibpath_overrides_runpath=yes
13269 fi
13270 ;;
13271
13272os2*)
13273 libname_spec='$name'
13274 shrext_cmds=".dll"
13275 need_lib_prefix=no
13276 library_names_spec='$libname${shared_ext} $libname.a'
13277 dynamic_linker='OS/2 ld.exe'
13278 shlibpath_var=LIBPATH
13279 ;;
13280
13281osf3* | osf4* | osf5*)
13282 version_type=osf
13283 need_lib_prefix=no
13284 need_version=no
13285 soname_spec='${libname}${release}${shared_ext}$major'
13286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13287 shlibpath_var=LD_LIBRARY_PATH
13288 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13289 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13290 ;;
13291
ac40fd9e 13292rdos*)
13293 dynamic_linker=no
13294 ;;
13295
d9898ee8 13296solaris*)
13297 version_type=linux
13298 need_lib_prefix=no
13299 need_version=no
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 shlibpath_var=LD_LIBRARY_PATH
13303 shlibpath_overrides_runpath=yes
13304 hardcode_into_libs=yes
13305 # ldd complains unless libraries are executable
13306 postinstall_cmds='chmod +x $lib'
13307 ;;
13308
13309sunos4*)
13310 version_type=sunos
13311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13312 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13313 shlibpath_var=LD_LIBRARY_PATH
13314 shlibpath_overrides_runpath=yes
13315 if test "$with_gnu_ld" = yes; then
13316 need_lib_prefix=no
13317 fi
13318 need_version=yes
13319 ;;
13320
13321sysv4 | sysv4.3*)
13322 version_type=linux
13323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13324 soname_spec='${libname}${release}${shared_ext}$major'
13325 shlibpath_var=LD_LIBRARY_PATH
13326 case $host_vendor in
13327 sni)
13328 shlibpath_overrides_runpath=no
13329 need_lib_prefix=no
13330 export_dynamic_flag_spec='${wl}-Blargedynsym'
13331 runpath_var=LD_RUN_PATH
13332 ;;
13333 siemens)
13334 need_lib_prefix=no
13335 ;;
13336 motorola)
13337 need_lib_prefix=no
13338 need_version=no
13339 shlibpath_overrides_runpath=no
13340 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13341 ;;
13342 esac
13343 ;;
13344
13345sysv4*MP*)
13346 if test -d /usr/nec ;then
13347 version_type=linux
13348 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13349 soname_spec='$libname${shared_ext}.$major'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 fi
13352 ;;
13353
13354sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13355 version_type=freebsd-elf
13356 need_lib_prefix=no
13357 need_version=no
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 hardcode_into_libs=yes
13362 if test "$with_gnu_ld" = yes; then
13363 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13364 shlibpath_overrides_runpath=no
13365 else
13366 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13367 shlibpath_overrides_runpath=yes
13368 case $host_os in
13369 sco3.2v5*)
13370 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13371 ;;
13372 esac
13373 fi
13374 sys_lib_dlsearch_path_spec='/usr/lib'
13375 ;;
13376
13377uts4*)
13378 version_type=linux
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13380 soname_spec='${libname}${release}${shared_ext}$major'
13381 shlibpath_var=LD_LIBRARY_PATH
13382 ;;
13383
13384*)
13385 dynamic_linker=no
13386 ;;
13387esac
dd184caf 13388{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13389echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 13390test "$dynamic_linker" = no && can_build_shared=no
13391
13392variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13393if test "$GCC" = yes; then
13394 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13395fi
13396
dd184caf 13397{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13398echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 13399hardcode_action_CXX=
13400if test -n "$hardcode_libdir_flag_spec_CXX" || \
13401 test -n "$runpath_var_CXX" || \
13402 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13403
13404 # We can hardcode non-existant directories.
13405 if test "$hardcode_direct_CXX" != no &&
13406 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13407 # have to relink, otherwise we might link with an installed library
13408 # when we should be linking with a yet-to-be-installed one
13409 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13410 test "$hardcode_minus_L_CXX" != no; then
13411 # Linking always hardcodes the temporary library directory.
13412 hardcode_action_CXX=relink
13413 else
13414 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13415 hardcode_action_CXX=immediate
13416 fi
13417else
13418 # We cannot hardcode anything, or else we can only hardcode existing
13419 # directories.
13420 hardcode_action_CXX=unsupported
13421fi
dd184caf 13422{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13423echo "${ECHO_T}$hardcode_action_CXX" >&6; }
d9898ee8 13424
13425if test "$hardcode_action_CXX" = relink; then
13426 # Fast installation is not supported
13427 enable_fast_install=no
13428elif test "$shlibpath_overrides_runpath" = yes ||
13429 test "$enable_shared" = no; then
13430 # Fast installation is not necessary
13431 enable_fast_install=needless
13432fi
13433
13434
13435# The else clause should only fire when bootstrapping the
13436# libtool distribution, otherwise you forgot to ship ltmain.sh
13437# with your package, and you will get complaints that there are
13438# no rules to generate ltmain.sh.
13439if test -f "$ltmain"; then
13440 # See if we are running on zsh, and set the options which allow our commands through
13441 # without removal of \ escapes.
13442 if test -n "${ZSH_VERSION+set}" ; then
13443 setopt NO_GLOB_SUBST
13444 fi
13445 # Now quote all the things that may contain metacharacters while being
13446 # careful not to overquote the AC_SUBSTed values. We take copies of the
13447 # variables and quote the copies for generation of the libtool script.
13448 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13449 SED SHELL STRIP \
13450 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13451 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13452 deplibs_check_method reload_flag reload_cmds need_locks \
13453 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13454 lt_cv_sys_global_symbol_to_c_name_address \
13455 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13456 old_postinstall_cmds old_postuninstall_cmds \
13457 compiler_CXX \
13458 CC_CXX \
13459 LD_CXX \
13460 lt_prog_compiler_wl_CXX \
13461 lt_prog_compiler_pic_CXX \
13462 lt_prog_compiler_static_CXX \
13463 lt_prog_compiler_no_builtin_flag_CXX \
13464 export_dynamic_flag_spec_CXX \
13465 thread_safe_flag_spec_CXX \
13466 whole_archive_flag_spec_CXX \
13467 enable_shared_with_static_runtimes_CXX \
13468 old_archive_cmds_CXX \
13469 old_archive_from_new_cmds_CXX \
13470 predep_objects_CXX \
13471 postdep_objects_CXX \
13472 predeps_CXX \
13473 postdeps_CXX \
13474 compiler_lib_search_path_CXX \
13475 archive_cmds_CXX \
13476 archive_expsym_cmds_CXX \
13477 postinstall_cmds_CXX \
13478 postuninstall_cmds_CXX \
13479 old_archive_from_expsyms_cmds_CXX \
13480 allow_undefined_flag_CXX \
13481 no_undefined_flag_CXX \
13482 export_symbols_cmds_CXX \
13483 hardcode_libdir_flag_spec_CXX \
13484 hardcode_libdir_flag_spec_ld_CXX \
13485 hardcode_libdir_separator_CXX \
13486 hardcode_automatic_CXX \
13487 module_cmds_CXX \
13488 module_expsym_cmds_CXX \
13489 lt_cv_prog_compiler_c_o_CXX \
ac40fd9e 13490 fix_srcfile_path_CXX \
d9898ee8 13491 exclude_expsyms_CXX \
13492 include_expsyms_CXX; do
13493
13494 case $var in
13495 old_archive_cmds_CXX | \
13496 old_archive_from_new_cmds_CXX | \
13497 archive_cmds_CXX | \
13498 archive_expsym_cmds_CXX | \
13499 module_cmds_CXX | \
13500 module_expsym_cmds_CXX | \
13501 old_archive_from_expsyms_cmds_CXX | \
13502 export_symbols_cmds_CXX | \
13503 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13504 postinstall_cmds | postuninstall_cmds | \
13505 old_postinstall_cmds | old_postuninstall_cmds | \
13506 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13507 # Double-quote double-evaled strings.
13508 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13509 ;;
13510 *)
13511 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13512 ;;
13513 esac
13514 done
13515
13516 case $lt_echo in
13517 *'\$0 --fallback-echo"')
13518 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13519 ;;
13520 esac
13521
13522cfgfile="$ofile"
13523
13524 cat <<__EOF__ >> "$cfgfile"
13525# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13526
13527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13528
13529# Shell to use when invoking shell scripts.
13530SHELL=$lt_SHELL
13531
13532# Whether or not to build shared libraries.
13533build_libtool_libs=$enable_shared
13534
13535# Whether or not to build static libraries.
13536build_old_libs=$enable_static
13537
13538# Whether or not to add -lc for building shared libraries.
13539build_libtool_need_lc=$archive_cmds_need_lc_CXX
13540
13541# Whether or not to disallow shared libs when runtime libs are static
13542allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13543
13544# Whether or not to optimize for fast installation.
13545fast_install=$enable_fast_install
13546
13547# The host system.
13548host_alias=$host_alias
13549host=$host
13550host_os=$host_os
13551
13552# The build system.
13553build_alias=$build_alias
13554build=$build
13555build_os=$build_os
13556
13557# An echo program that does not interpret backslashes.
13558echo=$lt_echo
13559
13560# The archiver.
13561AR=$lt_AR
13562AR_FLAGS=$lt_AR_FLAGS
13563
13564# A C compiler.
13565LTCC=$lt_LTCC
13566
13567# LTCC compiler flags.
13568LTCFLAGS=$lt_LTCFLAGS
13569
13570# A language-specific compiler.
13571CC=$lt_compiler_CXX
13572
13573# Is the compiler the GNU C compiler?
13574with_gcc=$GCC_CXX
13575
d9898ee8 13576# An ERE matcher.
13577EGREP=$lt_EGREP
13578
13579# The linker used to build libraries.
13580LD=$lt_LD_CXX
13581
13582# Whether we need hard or soft links.
13583LN_S=$lt_LN_S
13584
13585# A BSD-compatible nm program.
13586NM=$lt_NM
13587
13588# A symbol stripping program
13589STRIP=$lt_STRIP
13590
13591# Used to examine libraries when file_magic_cmd begins "file"
13592MAGIC_CMD=$MAGIC_CMD
13593
13594# Used on cygwin: DLL creation program.
13595DLLTOOL="$DLLTOOL"
13596
13597# Used on cygwin: object dumper.
13598OBJDUMP="$OBJDUMP"
13599
13600# Used on cygwin: assembler.
13601AS="$AS"
13602
13603# The name of the directory that contains temporary libtool files.
13604objdir=$objdir
13605
13606# How to create reloadable object files.
13607reload_flag=$lt_reload_flag
13608reload_cmds=$lt_reload_cmds
13609
13610# How to pass a linker flag through the compiler.
13611wl=$lt_lt_prog_compiler_wl_CXX
13612
13613# Object file suffix (normally "o").
13614objext="$ac_objext"
13615
13616# Old archive suffix (normally "a").
13617libext="$libext"
13618
13619# Shared library suffix (normally ".so").
13620shrext_cmds='$shrext_cmds'
13621
13622# Executable file suffix (normally "").
13623exeext="$exeext"
13624
13625# Additional compiler flags for building library objects.
13626pic_flag=$lt_lt_prog_compiler_pic_CXX
13627pic_mode=$pic_mode
13628
13629# What is the maximum length of a command?
13630max_cmd_len=$lt_cv_sys_max_cmd_len
13631
13632# Does compiler simultaneously support -c and -o options?
13633compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13634
13635# Must we lock files when doing compilation?
13636need_locks=$lt_need_locks
13637
13638# Do we need the lib prefix for modules?
13639need_lib_prefix=$need_lib_prefix
13640
13641# Do we need a version for libraries?
13642need_version=$need_version
13643
13644# Whether dlopen is supported.
13645dlopen_support=$enable_dlopen
13646
13647# Whether dlopen of programs is supported.
13648dlopen_self=$enable_dlopen_self
13649
13650# Whether dlopen of statically linked programs is supported.
13651dlopen_self_static=$enable_dlopen_self_static
13652
13653# Compiler flag to prevent dynamic linking.
13654link_static_flag=$lt_lt_prog_compiler_static_CXX
13655
13656# Compiler flag to turn off builtin functions.
13657no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13658
13659# Compiler flag to allow reflexive dlopens.
13660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13661
13662# Compiler flag to generate shared objects directly from archives.
13663whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13664
13665# Compiler flag to generate thread-safe objects.
13666thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13667
13668# Library versioning type.
13669version_type=$version_type
13670
13671# Format of library name prefix.
13672libname_spec=$lt_libname_spec
13673
13674# List of archive names. First name is the real one, the rest are links.
13675# The last name is the one that the linker finds with -lNAME.
13676library_names_spec=$lt_library_names_spec
13677
13678# The coded name of the library, if different from the real name.
13679soname_spec=$lt_soname_spec
13680
13681# Commands used to build and install an old-style archive.
13682RANLIB=$lt_RANLIB
13683old_archive_cmds=$lt_old_archive_cmds_CXX
13684old_postinstall_cmds=$lt_old_postinstall_cmds
13685old_postuninstall_cmds=$lt_old_postuninstall_cmds
13686
13687# Create an old-style archive from a shared archive.
13688old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13689
13690# Create a temporary old-style archive to link instead of a shared archive.
13691old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13692
13693# Commands used to build and install a shared archive.
13694archive_cmds=$lt_archive_cmds_CXX
13695archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13696postinstall_cmds=$lt_postinstall_cmds
13697postuninstall_cmds=$lt_postuninstall_cmds
13698
13699# Commands used to build a loadable module (assumed same as above if empty)
13700module_cmds=$lt_module_cmds_CXX
13701module_expsym_cmds=$lt_module_expsym_cmds_CXX
13702
13703# Commands to strip libraries.
13704old_striplib=$lt_old_striplib
13705striplib=$lt_striplib
13706
13707# Dependencies to place before the objects being linked to create a
13708# shared library.
dd184caf 13709predep_objects=$lt_predep_objects_CXX
d9898ee8 13710
13711# Dependencies to place after the objects being linked to create a
13712# shared library.
dd184caf 13713postdep_objects=$lt_postdep_objects_CXX
d9898ee8 13714
13715# Dependencies to place before the objects being linked to create a
13716# shared library.
13717predeps=$lt_predeps_CXX
13718
13719# Dependencies to place after the objects being linked to create a
13720# shared library.
13721postdeps=$lt_postdeps_CXX
13722
13723# The library search path used internally by the compiler when linking
13724# a shared library.
dd184caf 13725compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
d9898ee8 13726
13727# Method to check whether dependent libraries are shared objects.
13728deplibs_check_method=$lt_deplibs_check_method
13729
13730# Command to use when deplibs_check_method == file_magic.
13731file_magic_cmd=$lt_file_magic_cmd
13732
13733# Flag that allows shared libraries with undefined symbols to be built.
13734allow_undefined_flag=$lt_allow_undefined_flag_CXX
13735
13736# Flag that forces no undefined symbols.
13737no_undefined_flag=$lt_no_undefined_flag_CXX
13738
13739# Commands used to finish a libtool library installation in a directory.
13740finish_cmds=$lt_finish_cmds
13741
13742# Same as above, but a single script fragment to be evaled but not shown.
13743finish_eval=$lt_finish_eval
13744
13745# Take the output of nm and produce a listing of raw symbols and C names.
13746global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13747
13748# Transform the output of nm in a proper C declaration
13749global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13750
13751# Transform the output of nm in a C name address pair
13752global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13753
13754# This is the shared library runtime path variable.
13755runpath_var=$runpath_var
13756
13757# This is the shared library path variable.
13758shlibpath_var=$shlibpath_var
13759
13760# Is shlibpath searched before the hard-coded library search path?
13761shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13762
13763# How to hardcode a shared library path into an executable.
13764hardcode_action=$hardcode_action_CXX
13765
13766# Whether we should hardcode library paths into libraries.
13767hardcode_into_libs=$hardcode_into_libs
13768
13769# Flag to hardcode \$libdir into a binary during linking.
13770# This must work even if \$libdir does not exist.
13771hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13772
13773# If ld is used when linking, flag to hardcode \$libdir into
13774# a binary during linking. This must work even if \$libdir does
13775# not exist.
13776hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13777
13778# Whether we need a single -rpath flag with a separated argument.
13779hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13780
13781# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13782# resulting binary.
13783hardcode_direct=$hardcode_direct_CXX
13784
13785# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13786# resulting binary.
13787hardcode_minus_L=$hardcode_minus_L_CXX
13788
13789# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13790# the resulting binary.
13791hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13792
13793# Set to yes if building a shared library automatically hardcodes DIR into the library
13794# and all subsequent libraries and executables linked against it.
13795hardcode_automatic=$hardcode_automatic_CXX
13796
13797# Variables whose values should be saved in libtool wrapper scripts and
13798# restored at relink time.
13799variables_saved_for_relink="$variables_saved_for_relink"
13800
13801# Whether libtool must link a program against all its dependency libraries.
13802link_all_deplibs=$link_all_deplibs_CXX
13803
13804# Compile-time system search path for libraries
dd184caf 13805sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 13806
13807# Run-time system search path for libraries
13808sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13809
13810# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 13811fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 13812
13813# Set to yes if exported symbols are required.
13814always_export_symbols=$always_export_symbols_CXX
13815
13816# The commands to list exported symbols.
13817export_symbols_cmds=$lt_export_symbols_cmds_CXX
13818
13819# The commands to extract the exported symbol list from a shared archive.
13820extract_expsyms_cmds=$lt_extract_expsyms_cmds
13821
13822# Symbols that should not be listed in the preloaded symbols.
13823exclude_expsyms=$lt_exclude_expsyms_CXX
13824
13825# Symbols that must always be exported.
13826include_expsyms=$lt_include_expsyms_CXX
13827
13828# ### END LIBTOOL TAG CONFIG: $tagname
13829
13830__EOF__
13831
13832
13833else
13834 # If there is no Makefile yet, we rely on a make rule to execute
13835 # `config.status --recheck' to rerun these tests and create the
13836 # libtool script then.
13837 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13838 if test -f "$ltmain_in"; then
13839 test -f Makefile && make "$ltmain"
13840 fi
13841fi
13842
13843
13844ac_ext=c
13845ac_cpp='$CPP $CPPFLAGS'
13846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13848ac_compiler_gnu=$ac_cv_c_compiler_gnu
13849
13850CC=$lt_save_CC
13851LDCXX=$LD
13852LD=$lt_save_LD
13853GCC=$lt_save_GCC
13854with_gnu_ldcxx=$with_gnu_ld
13855with_gnu_ld=$lt_save_with_gnu_ld
13856lt_cv_path_LDCXX=$lt_cv_path_LD
13857lt_cv_path_LD=$lt_save_path_LD
13858lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13859lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13860
13861 else
13862 tagname=""
13863 fi
13864 ;;
13865
13866 F77)
13867 if test -n "$F77" && test "X$F77" != "Xno"; then
13868
13869ac_ext=f
13870ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13871ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13872ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13873
13874
13875archive_cmds_need_lc_F77=no
13876allow_undefined_flag_F77=
13877always_export_symbols_F77=no
13878archive_expsym_cmds_F77=
13879export_dynamic_flag_spec_F77=
13880hardcode_direct_F77=no
13881hardcode_libdir_flag_spec_F77=
13882hardcode_libdir_flag_spec_ld_F77=
13883hardcode_libdir_separator_F77=
13884hardcode_minus_L_F77=no
13885hardcode_automatic_F77=no
13886module_cmds_F77=
13887module_expsym_cmds_F77=
13888link_all_deplibs_F77=unknown
13889old_archive_cmds_F77=$old_archive_cmds
13890no_undefined_flag_F77=
13891whole_archive_flag_spec_F77=
13892enable_shared_with_static_runtimes_F77=no
13893
13894# Source file extension for f77 test sources.
13895ac_ext=f
13896
13897# Object file extension for compiled f77 test sources.
13898objext=o
13899objext_F77=$objext
13900
13901# Code to be used in simple compile tests
ac40fd9e 13902lt_simple_compile_test_code="\
13903 subroutine t
13904 return
13905 end
13906"
d9898ee8 13907
13908# Code to be used in simple link tests
ac40fd9e 13909lt_simple_link_test_code="\
13910 program t
13911 end
13912"
d9898ee8 13913
13914# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13915
13916# If no C compiler was specified, use CC.
13917LTCC=${LTCC-"$CC"}
13918
13919# If no C compiler flags were specified, use CFLAGS.
13920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13921
13922# Allow CC to be a program name with arguments.
13923compiler=$CC
13924
13925
13926# save warnings/boilerplate of simple test code
13927ac_outfile=conftest.$ac_objext
ac40fd9e 13928echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 13929eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13930_lt_compiler_boilerplate=`cat conftest.err`
13931$rm conftest*
13932
13933ac_outfile=conftest.$ac_objext
ac40fd9e 13934echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 13935eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13936_lt_linker_boilerplate=`cat conftest.err`
13937$rm conftest*
13938
13939
13940# Allow CC to be a program name with arguments.
13941lt_save_CC="$CC"
13942CC=${F77-"f77"}
13943compiler=$CC
13944compiler_F77=$CC
13945for cc_temp in $compiler""; do
13946 case $cc_temp in
13947 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13948 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13949 \-*) ;;
13950 *) break;;
13951 esac
13952done
13953cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13954
13955
dd184caf 13956{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13957echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13958{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13959echo "${ECHO_T}$can_build_shared" >&6; }
d9898ee8 13960
dd184caf 13961{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13962echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
d9898ee8 13963test "$can_build_shared" = "no" && enable_shared=no
13964
13965# On AIX, shared libraries and static libraries use the same namespace, and
13966# are all built from PIC.
13967case $host_os in
13968aix3*)
13969 test "$enable_shared" = yes && enable_static=no
13970 if test -n "$RANLIB"; then
13971 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13972 postinstall_cmds='$RANLIB $lib'
13973 fi
13974 ;;
13975aix4* | aix5*)
13976 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13977 test "$enable_shared" = yes && enable_static=no
13978 fi
13979 ;;
13980esac
dd184caf 13981{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13982echo "${ECHO_T}$enable_shared" >&6; }
d9898ee8 13983
dd184caf 13984{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13985echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
d9898ee8 13986# Make sure either enable_shared or enable_static is yes.
13987test "$enable_shared" = yes || enable_static=yes
dd184caf 13988{ echo "$as_me:$LINENO: result: $enable_static" >&5
13989echo "${ECHO_T}$enable_static" >&6; }
d9898ee8 13990
13991GCC_F77="$G77"
13992LD_F77="$LD"
13993
13994lt_prog_compiler_wl_F77=
13995lt_prog_compiler_pic_F77=
13996lt_prog_compiler_static_F77=
13997
dd184caf 13998{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13999echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 14000
14001 if test "$GCC" = yes; then
14002 lt_prog_compiler_wl_F77='-Wl,'
14003 lt_prog_compiler_static_F77='-static'
14004
14005 case $host_os in
14006 aix*)
14007 # All AIX code is PIC.
14008 if test "$host_cpu" = ia64; then
14009 # AIX 5 now supports IA64 processor
14010 lt_prog_compiler_static_F77='-Bstatic'
14011 fi
14012 ;;
14013
14014 amigaos*)
14015 # FIXME: we need at least 68020 code to build shared libraries, but
14016 # adding the `-m68020' flag to GCC prevents building anything better,
14017 # like `-m68040'.
14018 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14019 ;;
14020
ac40fd9e 14021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 14022 # PIC is the default for these OSes.
14023 ;;
14024
ac40fd9e 14025 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14026 # This hack is so that the source file can tell whether it is being
14027 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 14028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14029 # (--disable-auto-import) libraries
d9898ee8 14030 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14031 ;;
14032
14033 darwin* | rhapsody*)
14034 # PIC is the default on this platform
14035 # Common symbols not allowed in MH_DYLIB files
14036 lt_prog_compiler_pic_F77='-fno-common'
14037 ;;
14038
ac40fd9e 14039 interix[3-9]*)
d9898ee8 14040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14041 # Instead, we relocate shared libraries at runtime.
14042 ;;
14043
14044 msdosdjgpp*)
14045 # Just because we use GCC doesn't mean we suddenly get shared libraries
14046 # on systems that don't support them.
14047 lt_prog_compiler_can_build_shared_F77=no
14048 enable_shared=no
14049 ;;
14050
14051 sysv4*MP*)
14052 if test -d /usr/nec; then
14053 lt_prog_compiler_pic_F77=-Kconform_pic
14054 fi
14055 ;;
14056
14057 hpux*)
14058 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14059 # not for PA HP-UX.
14060 case $host_cpu in
14061 hppa*64*|ia64*)
14062 # +Z the default
14063 ;;
14064 *)
14065 lt_prog_compiler_pic_F77='-fPIC'
14066 ;;
14067 esac
14068 ;;
14069
14070 *)
14071 lt_prog_compiler_pic_F77='-fPIC'
14072 ;;
14073 esac
14074 else
14075 # PORTME Check for flag to pass linker flags through the system compiler.
14076 case $host_os in
14077 aix*)
14078 lt_prog_compiler_wl_F77='-Wl,'
14079 if test "$host_cpu" = ia64; then
14080 # AIX 5 now supports IA64 processor
14081 lt_prog_compiler_static_F77='-Bstatic'
14082 else
14083 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14084 fi
14085 ;;
14086 darwin*)
14087 # PIC is the default on this platform
14088 # Common symbols not allowed in MH_DYLIB files
14089 case $cc_basename in
14090 xlc*)
14091 lt_prog_compiler_pic_F77='-qnocommon'
14092 lt_prog_compiler_wl_F77='-Wl,'
14093 ;;
14094 esac
14095 ;;
14096
ac40fd9e 14097 mingw* | cygwin* | pw32* | os2*)
d9898ee8 14098 # This hack is so that the source file can tell whether it is being
14099 # built for inclusion in a dll (and should export symbols for example).
14100 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14101 ;;
14102
14103 hpux9* | hpux10* | hpux11*)
14104 lt_prog_compiler_wl_F77='-Wl,'
14105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14106 # not for PA HP-UX.
14107 case $host_cpu in
14108 hppa*64*|ia64*)
14109 # +Z the default
14110 ;;
14111 *)
14112 lt_prog_compiler_pic_F77='+Z'
14113 ;;
14114 esac
14115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14116 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14117 ;;
14118
14119 irix5* | irix6* | nonstopux*)
14120 lt_prog_compiler_wl_F77='-Wl,'
14121 # PIC (with -KPIC) is the default.
14122 lt_prog_compiler_static_F77='-non_shared'
14123 ;;
14124
14125 newsos6)
14126 lt_prog_compiler_pic_F77='-KPIC'
14127 lt_prog_compiler_static_F77='-Bstatic'
14128 ;;
14129
ac40fd9e 14130 linux* | k*bsd*-gnu)
d9898ee8 14131 case $cc_basename in
14132 icc* | ecc*)
14133 lt_prog_compiler_wl_F77='-Wl,'
14134 lt_prog_compiler_pic_F77='-KPIC'
14135 lt_prog_compiler_static_F77='-static'
14136 ;;
14137 pgcc* | pgf77* | pgf90* | pgf95*)
14138 # Portland Group compilers (*not* the Pentium gcc compiler,
14139 # which looks to be a dead project)
14140 lt_prog_compiler_wl_F77='-Wl,'
14141 lt_prog_compiler_pic_F77='-fpic'
14142 lt_prog_compiler_static_F77='-Bstatic'
14143 ;;
14144 ccc*)
14145 lt_prog_compiler_wl_F77='-Wl,'
14146 # All Alpha code is PIC.
14147 lt_prog_compiler_static_F77='-non_shared'
14148 ;;
ac40fd9e 14149 *)
14150 case `$CC -V 2>&1 | sed 5q` in
14151 *Sun\ C*)
14152 # Sun C 5.9
14153 lt_prog_compiler_pic_F77='-KPIC'
14154 lt_prog_compiler_static_F77='-Bstatic'
14155 lt_prog_compiler_wl_F77='-Wl,'
14156 ;;
14157 *Sun\ F*)
14158 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14159 lt_prog_compiler_pic_F77='-KPIC'
14160 lt_prog_compiler_static_F77='-Bstatic'
14161 lt_prog_compiler_wl_F77=''
14162 ;;
14163 esac
14164 ;;
d9898ee8 14165 esac
14166 ;;
14167
14168 osf3* | osf4* | osf5*)
14169 lt_prog_compiler_wl_F77='-Wl,'
14170 # All OSF/1 code is PIC.
14171 lt_prog_compiler_static_F77='-non_shared'
14172 ;;
14173
ac40fd9e 14174 rdos*)
14175 lt_prog_compiler_static_F77='-non_shared'
14176 ;;
14177
d9898ee8 14178 solaris*)
14179 lt_prog_compiler_pic_F77='-KPIC'
14180 lt_prog_compiler_static_F77='-Bstatic'
14181 case $cc_basename in
14182 f77* | f90* | f95*)
14183 lt_prog_compiler_wl_F77='-Qoption ld ';;
14184 *)
14185 lt_prog_compiler_wl_F77='-Wl,';;
14186 esac
14187 ;;
14188
14189 sunos4*)
14190 lt_prog_compiler_wl_F77='-Qoption ld '
14191 lt_prog_compiler_pic_F77='-PIC'
14192 lt_prog_compiler_static_F77='-Bstatic'
14193 ;;
14194
14195 sysv4 | sysv4.2uw2* | sysv4.3*)
14196 lt_prog_compiler_wl_F77='-Wl,'
14197 lt_prog_compiler_pic_F77='-KPIC'
14198 lt_prog_compiler_static_F77='-Bstatic'
14199 ;;
14200
14201 sysv4*MP*)
14202 if test -d /usr/nec ;then
14203 lt_prog_compiler_pic_F77='-Kconform_pic'
14204 lt_prog_compiler_static_F77='-Bstatic'
14205 fi
14206 ;;
14207
14208 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14209 lt_prog_compiler_wl_F77='-Wl,'
14210 lt_prog_compiler_pic_F77='-KPIC'
14211 lt_prog_compiler_static_F77='-Bstatic'
14212 ;;
14213
14214 unicos*)
14215 lt_prog_compiler_wl_F77='-Wl,'
14216 lt_prog_compiler_can_build_shared_F77=no
14217 ;;
14218
14219 uts4*)
14220 lt_prog_compiler_pic_F77='-pic'
14221 lt_prog_compiler_static_F77='-Bstatic'
14222 ;;
14223
14224 *)
14225 lt_prog_compiler_can_build_shared_F77=no
14226 ;;
14227 esac
14228 fi
14229
dd184caf 14230{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14231echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
d9898ee8 14232
14233#
14234# Check to make sure the PIC flag actually works.
14235#
14236if test -n "$lt_prog_compiler_pic_F77"; then
14237
dd184caf 14238{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14239echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
d9898ee8 14240if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243 lt_prog_compiler_pic_works_F77=no
14244 ac_outfile=conftest.$ac_objext
ac40fd9e 14245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14246 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14247 # Insert the option either (1) after the last *FLAGS variable, or
14248 # (2) before a word containing "conftest.", or (3) at the end.
14249 # Note that $ac_compile itself does not contain backslashes and begins
14250 # with a dollar sign (not a hyphen), so the echo should work correctly.
14251 # The option is referenced via a variable to avoid confusing sed.
14252 lt_compile=`echo "$ac_compile" | $SED \
14253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14255 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14256 (eval echo "\"\$as_me:14256: $lt_compile\"" >&5)
d9898ee8 14257 (eval "$lt_compile" 2>conftest.err)
14258 ac_status=$?
14259 cat conftest.err >&5
ac40fd9e 14260 echo "$as_me:14260: \$? = $ac_status" >&5
d9898ee8 14261 if (exit $ac_status) && test -s "$ac_outfile"; then
14262 # The compiler can only warn and ignore the option if not recognized
14263 # So say no if there are warnings other than the usual output.
14264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14267 lt_prog_compiler_pic_works_F77=yes
14268 fi
14269 fi
14270 $rm conftest*
14271
14272fi
dd184caf 14273{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14274echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
d9898ee8 14275
14276if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14277 case $lt_prog_compiler_pic_F77 in
14278 "" | " "*) ;;
14279 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14280 esac
14281else
14282 lt_prog_compiler_pic_F77=
14283 lt_prog_compiler_can_build_shared_F77=no
14284fi
14285
14286fi
14287case $host_os in
14288 # For platforms which do not support PIC, -DPIC is meaningless:
14289 *djgpp*)
14290 lt_prog_compiler_pic_F77=
14291 ;;
14292 *)
14293 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14294 ;;
14295esac
14296
14297#
14298# Check to make sure the static flag actually works.
14299#
14300wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
dd184caf 14301{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14302echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 14303if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305else
14306 lt_prog_compiler_static_works_F77=no
14307 save_LDFLAGS="$LDFLAGS"
14308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 14309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 14310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14311 # The linker can only warn and ignore the option if not recognized
14312 # So say no if there are warnings
14313 if test -s conftest.err; then
14314 # Append any errors to the config.log.
14315 cat conftest.err 1>&5
14316 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14318 if diff conftest.exp conftest.er2 >/dev/null; then
14319 lt_prog_compiler_static_works_F77=yes
14320 fi
14321 else
14322 lt_prog_compiler_static_works_F77=yes
14323 fi
14324 fi
14325 $rm conftest*
14326 LDFLAGS="$save_LDFLAGS"
14327
14328fi
dd184caf 14329{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14330echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
d9898ee8 14331
14332if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14333 :
14334else
14335 lt_prog_compiler_static_F77=
14336fi
14337
14338
dd184caf 14339{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14340echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 14341if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14343else
14344 lt_cv_prog_compiler_c_o_F77=no
14345 $rm -r conftest 2>/dev/null
14346 mkdir conftest
14347 cd conftest
14348 mkdir out
ac40fd9e 14349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 14350
14351 lt_compiler_flag="-o out/conftest2.$ac_objext"
14352 # Insert the option either (1) after the last *FLAGS variable, or
14353 # (2) before a word containing "conftest.", or (3) at the end.
14354 # Note that $ac_compile itself does not contain backslashes and begins
14355 # with a dollar sign (not a hyphen), so the echo should work correctly.
14356 lt_compile=`echo "$ac_compile" | $SED \
14357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14359 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 14360 (eval echo "\"\$as_me:14360: $lt_compile\"" >&5)
d9898ee8 14361 (eval "$lt_compile" 2>out/conftest.err)
14362 ac_status=$?
14363 cat out/conftest.err >&5
ac40fd9e 14364 echo "$as_me:14364: \$? = $ac_status" >&5
d9898ee8 14365 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14366 then
14367 # The compiler can only warn and ignore the option if not recognized
14368 # So say no if there are warnings
14369 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14370 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14371 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14372 lt_cv_prog_compiler_c_o_F77=yes
14373 fi
14374 fi
14375 chmod u+w . 2>&5
14376 $rm conftest*
14377 # SGI C++ compiler will create directory out/ii_files/ for
14378 # template instantiation
14379 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14380 $rm out/* && rmdir out
14381 cd ..
14382 rmdir conftest
14383 $rm conftest*
14384
14385fi
dd184caf 14386{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14387echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
d9898ee8 14388
14389
14390hard_links="nottested"
14391if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14392 # do not overwrite the value of need_locks provided by the user
dd184caf 14393 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14394echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 14395 hard_links=yes
14396 $rm conftest*
14397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14398 touch conftest.a
14399 ln conftest.a conftest.b 2>&5 || hard_links=no
14400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 14401 { echo "$as_me:$LINENO: result: $hard_links" >&5
14402echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 14403 if test "$hard_links" = no; then
14404 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14405echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14406 need_locks=warn
14407 fi
14408else
14409 need_locks=no
14410fi
14411
dd184caf 14412{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14413echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 14414
14415 runpath_var=
14416 allow_undefined_flag_F77=
14417 enable_shared_with_static_runtimes_F77=no
14418 archive_cmds_F77=
14419 archive_expsym_cmds_F77=
14420 old_archive_From_new_cmds_F77=
14421 old_archive_from_expsyms_cmds_F77=
14422 export_dynamic_flag_spec_F77=
14423 whole_archive_flag_spec_F77=
14424 thread_safe_flag_spec_F77=
14425 hardcode_libdir_flag_spec_F77=
14426 hardcode_libdir_flag_spec_ld_F77=
14427 hardcode_libdir_separator_F77=
14428 hardcode_direct_F77=no
14429 hardcode_minus_L_F77=no
14430 hardcode_shlibpath_var_F77=unsupported
14431 link_all_deplibs_F77=unknown
14432 hardcode_automatic_F77=no
14433 module_cmds_F77=
14434 module_expsym_cmds_F77=
14435 always_export_symbols_F77=no
14436 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14437 # include_expsyms should be a list of space-separated symbols to be *always*
14438 # included in the symbol list
14439 include_expsyms_F77=
14440 # exclude_expsyms can be an extended regexp of symbols to exclude
14441 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14442 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14443 # as well as any symbol that contains `d'.
14444 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14445 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14446 # platforms (ab)use it in PIC code, but their linkers get confused if
14447 # the symbol is explicitly referenced. Since portable code cannot
14448 # rely on this symbol name, it's probably fine to never include it in
14449 # preloaded symbol tables.
14450 extract_expsyms_cmds=
14451 # Just being paranoid about ensuring that cc_basename is set.
14452 for cc_temp in $compiler""; do
14453 case $cc_temp in
14454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14456 \-*) ;;
14457 *) break;;
14458 esac
14459done
14460cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14461
14462 case $host_os in
14463 cygwin* | mingw* | pw32*)
14464 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14465 # When not using gcc, we currently assume that we are using
14466 # Microsoft Visual C++.
14467 if test "$GCC" != yes; then
14468 with_gnu_ld=no
14469 fi
14470 ;;
14471 interix*)
14472 # we just hope/assume this is gcc and not c89 (= MSVC++)
14473 with_gnu_ld=yes
14474 ;;
14475 openbsd*)
14476 with_gnu_ld=no
14477 ;;
14478 esac
14479
14480 ld_shlibs_F77=yes
14481 if test "$with_gnu_ld" = yes; then
14482 # If archive_cmds runs LD, not CC, wlarc should be empty
14483 wlarc='${wl}'
14484
14485 # Set some defaults for GNU ld with shared library support. These
14486 # are reset later if shared libraries are not supported. Putting them
14487 # here allows them to be overridden if necessary.
14488 runpath_var=LD_RUN_PATH
14489 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14490 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14491 # ancient GNU ld didn't support --whole-archive et. al.
14492 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14493 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14494 else
14495 whole_archive_flag_spec_F77=
14496 fi
14497 supports_anon_versioning=no
14498 case `$LD -v 2>/dev/null` in
14499 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14502 *\ 2.11.*) ;; # other 2.11 versions
14503 *) supports_anon_versioning=yes ;;
14504 esac
14505
14506 # See if GNU ld supports shared libraries.
14507 case $host_os in
14508 aix3* | aix4* | aix5*)
14509 # On AIX/PPC, the GNU linker is very broken
14510 if test "$host_cpu" != ia64; then
14511 ld_shlibs_F77=no
14512 cat <<EOF 1>&2
14513
14514*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14515*** to be unable to reliably create shared libraries on AIX.
14516*** Therefore, libtool is disabling shared libraries support. If you
14517*** really care for shared libraries, you may want to modify your PATH
14518*** so that a non-GNU linker is found, and then restart.
14519
14520EOF
14521 fi
14522 ;;
14523
14524 amigaos*)
14525 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)'
14526 hardcode_libdir_flag_spec_F77='-L$libdir'
14527 hardcode_minus_L_F77=yes
14528
14529 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14530 # that the semantics of dynamic libraries on AmigaOS, at least up
14531 # to version 4, is to share data among multiple programs linked
14532 # with the same dynamic library. Since this doesn't match the
14533 # behavior of shared libraries on other platforms, we can't use
14534 # them.
14535 ld_shlibs_F77=no
14536 ;;
14537
14538 beos*)
14539 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14540 allow_undefined_flag_F77=unsupported
14541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14542 # support --undefined. This deserves some investigation. FIXME
14543 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14544 else
14545 ld_shlibs_F77=no
14546 fi
14547 ;;
14548
14549 cygwin* | mingw* | pw32*)
14550 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14551 # as there is no search path for DLLs.
14552 hardcode_libdir_flag_spec_F77='-L$libdir'
14553 allow_undefined_flag_F77=unsupported
14554 always_export_symbols_F77=no
14555 enable_shared_with_static_runtimes_F77=yes
ac40fd9e 14556 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 14557
14558 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14560 # If the export-symbols file already is a .def file (1st line
14561 # is EXPORTS), use it as is; otherwise, prepend...
14562 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14563 cp $export_symbols $output_objdir/$soname.def;
14564 else
14565 echo EXPORTS > $output_objdir/$soname.def;
14566 cat $export_symbols >> $output_objdir/$soname.def;
14567 fi~
14568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14569 else
14570 ld_shlibs_F77=no
14571 fi
14572 ;;
14573
ac40fd9e 14574 interix[3-9]*)
d9898ee8 14575 hardcode_direct_F77=no
14576 hardcode_shlibpath_var_F77=no
14577 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14578 export_dynamic_flag_spec_F77='${wl}-E'
14579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14580 # Instead, shared libraries are loaded at an image base (0x10000000 by
14581 # default) and relocated if they conflict, which is a slow very memory
14582 # consuming and fragmenting process. To avoid this, we pick a random,
14583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14584 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14585 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'
14586 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'
14587 ;;
14588
ac40fd9e 14589 gnu* | linux* | k*bsd*-gnu)
d9898ee8 14590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14591 tmp_addflag=
14592 case $cc_basename,$host_cpu in
14593 pgcc*) # Portland Group C compiler
14594 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'
14595 tmp_addflag=' $pic_flag'
14596 ;;
14597 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14598 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'
14599 tmp_addflag=' $pic_flag -Mnomain' ;;
14600 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14601 tmp_addflag=' -i_dynamic' ;;
14602 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14603 tmp_addflag=' -i_dynamic -nofor_main' ;;
14604 ifc* | ifort*) # Intel Fortran compiler
14605 tmp_addflag=' -nofor_main' ;;
14606 esac
ac40fd9e 14607 case `$CC -V 2>&1 | sed 5q` in
14608 *Sun\ C*) # Sun C 5.9
14609 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14610 tmp_sharedflag='-G' ;;
14611 *Sun\ F*) # Sun Fortran 8.3
14612 tmp_sharedflag='-G' ;;
14613 *)
14614 tmp_sharedflag='-shared' ;;
14615 esac
14616 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 14617
14618 if test $supports_anon_versioning = yes; then
14619 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14620 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14621 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 14622 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 14623 fi
14624 else
14625 ld_shlibs_F77=no
14626 fi
14627 ;;
14628
14629 netbsd*)
14630 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14631 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14632 wlarc=
14633 else
14634 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14635 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14636 fi
14637 ;;
14638
14639 solaris*)
14640 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14641 ld_shlibs_F77=no
14642 cat <<EOF 1>&2
14643
14644*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14645*** create shared libraries on Solaris systems. Therefore, libtool
14646*** is disabling shared libraries support. We urge you to upgrade GNU
14647*** binutils to release 2.9.1 or newer. Another option is to modify
14648*** your PATH or compiler configuration so that the native linker is
14649*** used, and then restart.
14650
14651EOF
14652 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14654 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14655 else
14656 ld_shlibs_F77=no
14657 fi
14658 ;;
14659
14660 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14661 case `$LD -v 2>&1` in
14662 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14663 ld_shlibs_F77=no
14664 cat <<_LT_EOF 1>&2
14665
14666*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14667*** reliably create shared libraries on SCO systems. Therefore, libtool
14668*** is disabling shared libraries support. We urge you to upgrade GNU
14669*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14670*** your PATH or compiler configuration so that the native linker is
14671*** used, and then restart.
14672
14673_LT_EOF
14674 ;;
14675 *)
14676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14677 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14678 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14679 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14680 else
14681 ld_shlibs_F77=no
14682 fi
14683 ;;
14684 esac
14685 ;;
14686
14687 sunos4*)
14688 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14689 wlarc=
14690 hardcode_direct_F77=yes
14691 hardcode_shlibpath_var_F77=no
14692 ;;
14693
14694 *)
14695 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14696 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14697 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14698 else
14699 ld_shlibs_F77=no
14700 fi
14701 ;;
14702 esac
14703
14704 if test "$ld_shlibs_F77" = no; then
14705 runpath_var=
14706 hardcode_libdir_flag_spec_F77=
14707 export_dynamic_flag_spec_F77=
14708 whole_archive_flag_spec_F77=
14709 fi
14710 else
14711 # PORTME fill in a description of your system's linker (not GNU ld)
14712 case $host_os in
14713 aix3*)
14714 allow_undefined_flag_F77=unsupported
14715 always_export_symbols_F77=yes
14716 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'
14717 # Note: this linker hardcodes the directories in LIBPATH if there
14718 # are no directories specified by -L.
14719 hardcode_minus_L_F77=yes
14720 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14721 # Neither direct hardcoding nor static linking is supported with a
14722 # broken collect2.
14723 hardcode_direct_F77=unsupported
14724 fi
14725 ;;
14726
14727 aix4* | aix5*)
14728 if test "$host_cpu" = ia64; then
14729 # On IA64, the linker does run time linking by default, so we don't
14730 # have to do anything special.
14731 aix_use_runtimelinking=no
14732 exp_sym_flag='-Bexport'
14733 no_entry_flag=""
14734 else
14735 # If we're using GNU nm, then we don't want the "-C" option.
14736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14738 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'
14739 else
14740 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'
14741 fi
14742 aix_use_runtimelinking=no
14743
14744 # Test if we are trying to use run time linking or normal
14745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14746 # need to do runtime linking.
14747 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14748 for ld_flag in $LDFLAGS; do
14749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14750 aix_use_runtimelinking=yes
14751 break
14752 fi
14753 done
14754 ;;
14755 esac
14756
14757 exp_sym_flag='-bexport'
14758 no_entry_flag='-bnoentry'
14759 fi
14760
14761 # When large executables or shared objects are built, AIX ld can
14762 # have problems creating the table of contents. If linking a library
14763 # or program results in "error TOC overflow" add -mminimal-toc to
14764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14766
14767 archive_cmds_F77=''
14768 hardcode_direct_F77=yes
14769 hardcode_libdir_separator_F77=':'
14770 link_all_deplibs_F77=yes
14771
14772 if test "$GCC" = yes; then
14773 case $host_os in aix4.[012]|aix4.[012].*)
14774 # We only want to do this on AIX 4.2 and lower, the check
14775 # below for broken collect2 doesn't work under 4.3+
14776 collect2name=`${CC} -print-prog-name=collect2`
14777 if test -f "$collect2name" && \
14778 strings "$collect2name" | grep resolve_lib_name >/dev/null
14779 then
14780 # We have reworked collect2
ac40fd9e 14781 :
d9898ee8 14782 else
14783 # We have old collect2
14784 hardcode_direct_F77=unsupported
14785 # It fails to find uninstalled libraries when the uninstalled
14786 # path is not listed in the libpath. Setting hardcode_minus_L
14787 # to unsupported forces relinking
14788 hardcode_minus_L_F77=yes
14789 hardcode_libdir_flag_spec_F77='-L$libdir'
14790 hardcode_libdir_separator_F77=
14791 fi
14792 ;;
14793 esac
14794 shared_flag='-shared'
14795 if test "$aix_use_runtimelinking" = yes; then
14796 shared_flag="$shared_flag "'${wl}-G'
14797 fi
14798 else
14799 # not using gcc
14800 if test "$host_cpu" = ia64; then
14801 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14802 # chokes on -Wl,-G. The following line is correct:
14803 shared_flag='-G'
14804 else
14805 if test "$aix_use_runtimelinking" = yes; then
14806 shared_flag='${wl}-G'
14807 else
14808 shared_flag='${wl}-bM:SRE'
14809 fi
14810 fi
14811 fi
14812
14813 # It seems that -bexpall does not export symbols beginning with
14814 # underscore (_), so it is better to generate a list of symbols to export.
14815 always_export_symbols_F77=yes
14816 if test "$aix_use_runtimelinking" = yes; then
14817 # Warning - without using the other runtime loading flags (-brtl),
14818 # -berok will link without error, but may produce a broken library.
14819 allow_undefined_flag_F77='-berok'
14820 # Determine the default libpath from the value encoded in an empty executable.
14821 cat >conftest.$ac_ext <<_ACEOF
14822 program main
14823
14824 end
14825_ACEOF
14826rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14827if { (ac_try="$ac_link"
14828case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831esac
14832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_link") 2>conftest.er1
d9898ee8 14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14839 (exit $ac_status); } && {
14840 test -z "$ac_f77_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext &&
14843 $as_test_x conftest$ac_exeext; then
d9898ee8 14844
ac40fd9e 14845lt_aix_libpath_sed='
14846 /Import File Strings/,/^$/ {
14847 /^0/ {
14848 s/^0 *\(.*\)$/\1/
14849 p
14850 }
14851 }'
14852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14853# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14854if test -z "$aix_libpath"; then
14855 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14856fi
d9898ee8 14857else
14858 echo "$as_me: failed program was:" >&5
14859sed 's/^/| /' conftest.$ac_ext >&5
14860
dd184caf 14861
d9898ee8 14862fi
dd184caf 14863
14864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14865 conftest$ac_exeext conftest.$ac_ext
14866if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14867
14868 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14869 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"
14870 else
14871 if test "$host_cpu" = ia64; then
14872 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14873 allow_undefined_flag_F77="-z nodefs"
14874 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"
14875 else
14876 # Determine the default libpath from the value encoded in an empty executable.
14877 cat >conftest.$ac_ext <<_ACEOF
14878 program main
14879
14880 end
14881_ACEOF
14882rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 14883if { (ac_try="$ac_link"
14884case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887esac
14888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14889 (eval "$ac_link") 2>conftest.er1
d9898ee8 14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 14895 (exit $ac_status); } && {
14896 test -z "$ac_f77_werror_flag" ||
14897 test ! -s conftest.err
14898 } && test -s conftest$ac_exeext &&
14899 $as_test_x conftest$ac_exeext; then
d9898ee8 14900
ac40fd9e 14901lt_aix_libpath_sed='
14902 /Import File Strings/,/^$/ {
14903 /^0/ {
14904 s/^0 *\(.*\)$/\1/
14905 p
14906 }
14907 }'
14908aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 14909# Check for a 64-bit object if we didn't find anything.
ac40fd9e 14910if test -z "$aix_libpath"; then
14911 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14912fi
d9898ee8 14913else
14914 echo "$as_me: failed program was:" >&5
14915sed 's/^/| /' conftest.$ac_ext >&5
14916
dd184caf 14917
d9898ee8 14918fi
dd184caf 14919
14920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 14921 conftest$ac_exeext conftest.$ac_ext
14922if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14923
14924 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14925 # Warning - without using the other run time loading flags,
14926 # -berok will link without error, but may produce a broken library.
14927 no_undefined_flag_F77=' ${wl}-bernotok'
14928 allow_undefined_flag_F77=' ${wl}-berok'
14929 # Exported symbols can be pulled into shared objects from archives
14930 whole_archive_flag_spec_F77='$convenience'
14931 archive_cmds_need_lc_F77=yes
14932 # This is similar to how AIX traditionally builds its shared libraries.
14933 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'
14934 fi
14935 fi
14936 ;;
14937
14938 amigaos*)
14939 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)'
14940 hardcode_libdir_flag_spec_F77='-L$libdir'
14941 hardcode_minus_L_F77=yes
14942 # see comment about different semantics on the GNU ld section
14943 ld_shlibs_F77=no
14944 ;;
14945
14946 bsdi[45]*)
14947 export_dynamic_flag_spec_F77=-rdynamic
14948 ;;
14949
14950 cygwin* | mingw* | pw32*)
14951 # When not using gcc, we currently assume that we are using
14952 # Microsoft Visual C++.
14953 # hardcode_libdir_flag_spec is actually meaningless, as there is
14954 # no search path for DLLs.
14955 hardcode_libdir_flag_spec_F77=' '
14956 allow_undefined_flag_F77=unsupported
14957 # Tell ltmain to make .lib files, not .a files.
14958 libext=lib
14959 # Tell ltmain to make .dll files, not .so files.
14960 shrext_cmds=".dll"
14961 # FIXME: Setting linknames here is a bad hack.
14962 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14963 # The linker will automatically build a .lib file if we build a DLL.
14964 old_archive_From_new_cmds_F77='true'
14965 # FIXME: Should let the user specify the lib program.
ac40fd9e 14966 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 14967 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14968 enable_shared_with_static_runtimes_F77=yes
14969 ;;
14970
14971 darwin* | rhapsody*)
14972 case $host_os in
14973 rhapsody* | darwin1.[012])
14974 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14975 ;;
14976 *) # Darwin 1.3 on
14977 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14978 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14979 else
14980 case ${MACOSX_DEPLOYMENT_TARGET} in
14981 10.[012])
14982 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14983 ;;
14984 10.*)
14985 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14986 ;;
14987 esac
14988 fi
14989 ;;
14990 esac
14991 archive_cmds_need_lc_F77=no
14992 hardcode_direct_F77=no
14993 hardcode_automatic_F77=yes
14994 hardcode_shlibpath_var_F77=unsupported
14995 whole_archive_flag_spec_F77=''
14996 link_all_deplibs_F77=yes
14997 if test "$GCC" = yes ; then
14998 output_verbose_link_cmd='echo'
14999 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15000 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15002 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}'
15003 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}'
15004 else
15005 case $cc_basename in
15006 xlc*)
15007 output_verbose_link_cmd='echo'
ac40fd9e 15008 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 15009 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15010 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 15011 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 15012 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}'
15013 ;;
15014 *)
15015 ld_shlibs_F77=no
15016 ;;
15017 esac
15018 fi
15019 ;;
15020
15021 dgux*)
15022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_libdir_flag_spec_F77='-L$libdir'
15024 hardcode_shlibpath_var_F77=no
15025 ;;
15026
15027 freebsd1*)
15028 ld_shlibs_F77=no
15029 ;;
15030
15031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15032 # support. Future versions do this automatically, but an explicit c++rt0.o
15033 # does not break anything, and helps significantly (at the cost of a little
15034 # extra space).
15035 freebsd2.2*)
15036 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15037 hardcode_libdir_flag_spec_F77='-R$libdir'
15038 hardcode_direct_F77=yes
15039 hardcode_shlibpath_var_F77=no
15040 ;;
15041
15042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15043 freebsd2*)
15044 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15045 hardcode_direct_F77=yes
15046 hardcode_minus_L_F77=yes
15047 hardcode_shlibpath_var_F77=no
15048 ;;
15049
15050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 15051 freebsd* | dragonfly*)
d9898ee8 15052 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15053 hardcode_libdir_flag_spec_F77='-R$libdir'
15054 hardcode_direct_F77=yes
15055 hardcode_shlibpath_var_F77=no
15056 ;;
15057
15058 hpux9*)
15059 if test "$GCC" = yes; then
15060 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'
15061 else
15062 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'
15063 fi
15064 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15065 hardcode_libdir_separator_F77=:
15066 hardcode_direct_F77=yes
15067
15068 # hardcode_minus_L: Not really in the search PATH,
15069 # but as the default location of the library.
15070 hardcode_minus_L_F77=yes
15071 export_dynamic_flag_spec_F77='${wl}-E'
15072 ;;
15073
15074 hpux10*)
15075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15076 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15077 else
15078 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15079 fi
15080 if test "$with_gnu_ld" = no; then
15081 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15082 hardcode_libdir_separator_F77=:
15083
15084 hardcode_direct_F77=yes
15085 export_dynamic_flag_spec_F77='${wl}-E'
15086
15087 # hardcode_minus_L: Not really in the search PATH,
15088 # but as the default location of the library.
15089 hardcode_minus_L_F77=yes
15090 fi
15091 ;;
15092
15093 hpux11*)
15094 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15095 case $host_cpu in
15096 hppa*64*)
15097 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15098 ;;
15099 ia64*)
15100 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15101 ;;
15102 *)
15103 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15104 ;;
15105 esac
15106 else
15107 case $host_cpu in
15108 hppa*64*)
15109 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15110 ;;
15111 ia64*)
15112 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15113 ;;
15114 *)
15115 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15116 ;;
15117 esac
15118 fi
15119 if test "$with_gnu_ld" = no; then
15120 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15121 hardcode_libdir_separator_F77=:
15122
15123 case $host_cpu in
15124 hppa*64*|ia64*)
15125 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15126 hardcode_direct_F77=no
15127 hardcode_shlibpath_var_F77=no
15128 ;;
15129 *)
15130 hardcode_direct_F77=yes
15131 export_dynamic_flag_spec_F77='${wl}-E'
15132
15133 # hardcode_minus_L: Not really in the search PATH,
15134 # but as the default location of the library.
15135 hardcode_minus_L_F77=yes
15136 ;;
15137 esac
15138 fi
15139 ;;
15140
15141 irix5* | irix6* | nonstopux*)
15142 if test "$GCC" = yes; then
15143 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'
15144 else
15145 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'
15146 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15147 fi
15148 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15149 hardcode_libdir_separator_F77=:
15150 link_all_deplibs_F77=yes
15151 ;;
15152
15153 netbsd*)
15154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15155 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15156 else
15157 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15158 fi
15159 hardcode_libdir_flag_spec_F77='-R$libdir'
15160 hardcode_direct_F77=yes
15161 hardcode_shlibpath_var_F77=no
15162 ;;
15163
15164 newsos6)
15165 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15166 hardcode_direct_F77=yes
15167 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15168 hardcode_libdir_separator_F77=:
15169 hardcode_shlibpath_var_F77=no
15170 ;;
15171
15172 openbsd*)
ac40fd9e 15173 if test -f /usr/libexec/ld.so; then
15174 hardcode_direct_F77=yes
15175 hardcode_shlibpath_var_F77=no
15176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15177 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15178 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15179 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15180 export_dynamic_flag_spec_F77='${wl}-E'
15181 else
15182 case $host_os in
15183 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15184 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 hardcode_libdir_flag_spec_F77='-R$libdir'
15186 ;;
15187 *)
15188 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15189 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15190 ;;
15191 esac
15192 fi
d9898ee8 15193 else
ac40fd9e 15194 ld_shlibs_F77=no
d9898ee8 15195 fi
15196 ;;
15197
15198 os2*)
15199 hardcode_libdir_flag_spec_F77='-L$libdir'
15200 hardcode_minus_L_F77=yes
15201 allow_undefined_flag_F77=unsupported
15202 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'
15203 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15204 ;;
15205
15206 osf3*)
15207 if test "$GCC" = yes; then
15208 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15209 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'
15210 else
15211 allow_undefined_flag_F77=' -expect_unresolved \*'
15212 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'
15213 fi
15214 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15215 hardcode_libdir_separator_F77=:
15216 ;;
15217
15218 osf4* | osf5*) # as osf3* with the addition of -msym flag
15219 if test "$GCC" = yes; then
15220 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15221 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'
15222 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15223 else
15224 allow_undefined_flag_F77=' -expect_unresolved \*'
15225 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'
15226 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~
15227 $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'
15228
15229 # Both c and cxx compiler support -rpath directly
15230 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15231 fi
15232 hardcode_libdir_separator_F77=:
15233 ;;
15234
15235 solaris*)
15236 no_undefined_flag_F77=' -z text'
15237 if test "$GCC" = yes; then
15238 wlarc='${wl}'
15239 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15241 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15242 else
15243 wlarc=''
15244 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15245 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15246 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15247 fi
15248 hardcode_libdir_flag_spec_F77='-R$libdir'
15249 hardcode_shlibpath_var_F77=no
15250 case $host_os in
15251 solaris2.[0-5] | solaris2.[0-5].*) ;;
15252 *)
ac40fd9e 15253 # The compiler driver will combine and reorder linker options,
15254 # but understands `-z linker_flag'. GCC discards it without `$wl',
15255 # but is careful enough not to reorder.
d9898ee8 15256 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 15257 if test "$GCC" = yes; then
15258 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15259 else
15260 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15261 fi
15262 ;;
d9898ee8 15263 esac
15264 link_all_deplibs_F77=yes
15265 ;;
15266
15267 sunos4*)
15268 if test "x$host_vendor" = xsequent; then
15269 # Use $CC to link under sequent, because it throws in some extra .o
15270 # files that make .init and .fini sections work.
15271 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15272 else
15273 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15274 fi
15275 hardcode_libdir_flag_spec_F77='-L$libdir'
15276 hardcode_direct_F77=yes
15277 hardcode_minus_L_F77=yes
15278 hardcode_shlibpath_var_F77=no
15279 ;;
15280
15281 sysv4)
15282 case $host_vendor in
15283 sni)
15284 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15285 hardcode_direct_F77=yes # is this really true???
15286 ;;
15287 siemens)
15288 ## LD is ld it makes a PLAMLIB
15289 ## CC just makes a GrossModule.
15290 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15291 reload_cmds_F77='$CC -r -o $output$reload_objs'
15292 hardcode_direct_F77=no
15293 ;;
15294 motorola)
15295 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15296 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15297 ;;
15298 esac
15299 runpath_var='LD_RUN_PATH'
15300 hardcode_shlibpath_var_F77=no
15301 ;;
15302
15303 sysv4.3*)
15304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305 hardcode_shlibpath_var_F77=no
15306 export_dynamic_flag_spec_F77='-Bexport'
15307 ;;
15308
15309 sysv4*MP*)
15310 if test -d /usr/nec; then
15311 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15312 hardcode_shlibpath_var_F77=no
15313 runpath_var=LD_RUN_PATH
15314 hardcode_runpath_var=yes
15315 ld_shlibs_F77=yes
15316 fi
15317 ;;
15318
ac40fd9e 15319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 15320 no_undefined_flag_F77='${wl}-z,text'
15321 archive_cmds_need_lc_F77=no
15322 hardcode_shlibpath_var_F77=no
15323 runpath_var='LD_RUN_PATH'
15324
15325 if test "$GCC" = yes; then
15326 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15327 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328 else
15329 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15330 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15331 fi
15332 ;;
15333
15334 sysv5* | sco3.2v5* | sco5v6*)
15335 # Note: We can NOT use -z defs as we might desire, because we do not
15336 # link with -lc, and that would cause any symbols used from libc to
15337 # always be unresolved, which means just about no library would
15338 # ever link correctly. If we're not using GNU ld we use -z text
15339 # though, which does catch some bad symbols but isn't as heavy-handed
15340 # as -z defs.
15341 no_undefined_flag_F77='${wl}-z,text'
15342 allow_undefined_flag_F77='${wl}-z,nodefs'
15343 archive_cmds_need_lc_F77=no
15344 hardcode_shlibpath_var_F77=no
15345 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15346 hardcode_libdir_separator_F77=':'
15347 link_all_deplibs_F77=yes
15348 export_dynamic_flag_spec_F77='${wl}-Bexport'
15349 runpath_var='LD_RUN_PATH'
15350
15351 if test "$GCC" = yes; then
15352 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15353 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15354 else
15355 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15357 fi
15358 ;;
15359
15360 uts4*)
15361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362 hardcode_libdir_flag_spec_F77='-L$libdir'
15363 hardcode_shlibpath_var_F77=no
15364 ;;
15365
15366 *)
15367 ld_shlibs_F77=no
15368 ;;
15369 esac
15370 fi
15371
dd184caf 15372{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15373echo "${ECHO_T}$ld_shlibs_F77" >&6; }
d9898ee8 15374test "$ld_shlibs_F77" = no && can_build_shared=no
15375
15376#
15377# Do we need to explicitly link libc?
15378#
15379case "x$archive_cmds_need_lc_F77" in
15380x|xyes)
15381 # Assume -lc should be added
15382 archive_cmds_need_lc_F77=yes
15383
15384 if test "$enable_shared" = yes && test "$GCC" = yes; then
15385 case $archive_cmds_F77 in
15386 *'~'*)
15387 # FIXME: we may have to deal with multi-command sequences.
15388 ;;
15389 '$CC '*)
15390 # Test whether the compiler implicitly links with -lc since on some
15391 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15392 # to ld, don't add -lc before -lgcc.
dd184caf 15393 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15394echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 15395 $rm conftest*
ac40fd9e 15396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 15397
15398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15399 (eval $ac_compile) 2>&5
15400 ac_status=$?
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); } 2>conftest.err; then
15403 soname=conftest
15404 lib=conftest
15405 libobjs=conftest.$ac_objext
15406 deplibs=
15407 wl=$lt_prog_compiler_wl_F77
15408 pic_flag=$lt_prog_compiler_pic_F77
15409 compiler_flags=-v
15410 linker_flags=-v
15411 verstring=
15412 output_objdir=.
15413 libname=conftest
15414 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15415 allow_undefined_flag_F77=
15416 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15417 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15418 ac_status=$?
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }
15421 then
15422 archive_cmds_need_lc_F77=no
15423 else
15424 archive_cmds_need_lc_F77=yes
15425 fi
15426 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15427 else
15428 cat conftest.err 1>&5
15429 fi
15430 $rm conftest*
dd184caf 15431 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15432echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
d9898ee8 15433 ;;
15434 esac
15435 fi
15436 ;;
15437esac
15438
dd184caf 15439{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15440echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 15441library_names_spec=
15442libname_spec='lib$name'
15443soname_spec=
15444shrext_cmds=".so"
15445postinstall_cmds=
15446postuninstall_cmds=
15447finish_cmds=
15448finish_eval=
15449shlibpath_var=
15450shlibpath_overrides_runpath=unknown
15451version_type=none
15452dynamic_linker="$host_os ld.so"
15453sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 15454
d9898ee8 15455need_lib_prefix=unknown
15456hardcode_into_libs=no
15457
15458# when you set need_version to no, make sure it does not cause -set_version
15459# flags to be left without arguments
15460need_version=unknown
15461
15462case $host_os in
15463aix3*)
15464 version_type=linux
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15466 shlibpath_var=LIBPATH
15467
15468 # AIX 3 has no versioning support, so we append a major version to the name.
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 ;;
15471
15472aix4* | aix5*)
15473 version_type=linux
15474 need_lib_prefix=no
15475 need_version=no
15476 hardcode_into_libs=yes
15477 if test "$host_cpu" = ia64; then
15478 # AIX 5 supports IA64
15479 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 else
15482 # With GCC up to 2.95.x, collect2 would create an import file
15483 # for dependence libraries. The import file would start with
15484 # the line `#! .'. This would cause the generated library to
15485 # depend on `.', always an invalid library. This was fixed in
15486 # development snapshots of GCC prior to 3.0.
15487 case $host_os in
15488 aix4 | aix4.[01] | aix4.[01].*)
15489 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15490 echo ' yes '
15491 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15492 :
15493 else
15494 can_build_shared=no
15495 fi
15496 ;;
15497 esac
15498 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15499 # soname into executable. Probably we can add versioning support to
15500 # collect2, so additional links can be useful in future.
15501 if test "$aix_use_runtimelinking" = yes; then
15502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15503 # instead of lib<name>.a to let people know that these are not
15504 # typical AIX shared libraries.
15505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506 else
15507 # We preserve .a as extension for shared libraries through AIX4.2
15508 # and later when we are not doing run time linking.
15509 library_names_spec='${libname}${release}.a $libname.a'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 fi
15512 shlibpath_var=LIBPATH
15513 fi
15514 ;;
15515
15516amigaos*)
15517 library_names_spec='$libname.ixlibrary $libname.a'
15518 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15519 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'
15520 ;;
15521
15522beos*)
15523 library_names_spec='${libname}${shared_ext}'
15524 dynamic_linker="$host_os ld.so"
15525 shlibpath_var=LIBRARY_PATH
15526 ;;
15527
15528bsdi[45]*)
15529 version_type=linux
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15534 shlibpath_var=LD_LIBRARY_PATH
15535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15537 # the default ld.so.conf also contains /usr/contrib/lib and
15538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15539 # libtool to hard-code these into programs
15540 ;;
15541
15542cygwin* | mingw* | pw32*)
15543 version_type=windows
15544 shrext_cmds=".dll"
15545 need_version=no
15546 need_lib_prefix=no
15547
15548 case $GCC,$host_os in
15549 yes,cygwin* | yes,mingw* | yes,pw32*)
15550 library_names_spec='$libname.dll.a'
15551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15552 postinstall_cmds='base_file=`basename \${file}`~
15553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15554 dldir=$destdir/`dirname \$dlpath`~
15555 test -d \$dldir || mkdir -p \$dldir~
15556 $install_prog $dir/$dlname \$dldir/$dlname~
15557 chmod a+x \$dldir/$dlname'
15558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15559 dlpath=$dir/\$dldll~
15560 $rm \$dlpath'
15561 shlibpath_overrides_runpath=yes
15562
15563 case $host_os in
15564 cygwin*)
15565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15567 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15568 ;;
15569 mingw*)
15570 # MinGW DLLs use traditional 'lib' prefix
15571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15572 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15573 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15574 # It is most probably a Windows format PATH printed by
15575 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15576 # path with ; separators, and with drive letters. We can handle the
15577 # drive letters (cygwin fileutils understands them), so leave them,
15578 # especially as we might pass files found there to a mingw objdump,
15579 # which wouldn't understand a cygwinified path. Ahh.
15580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15581 else
15582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15583 fi
15584 ;;
15585 pw32*)
15586 # pw32 DLLs use 'pw' prefix rather than 'lib'
15587 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15588 ;;
15589 esac
15590 ;;
15591
15592 *)
15593 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15594 ;;
15595 esac
15596 dynamic_linker='Win32 ld.exe'
15597 # FIXME: first we should search . and the directory the executable is in
15598 shlibpath_var=PATH
15599 ;;
15600
15601darwin* | rhapsody*)
15602 dynamic_linker="$host_os dyld"
15603 version_type=darwin
15604 need_lib_prefix=no
15605 need_version=no
15606 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15607 soname_spec='${libname}${release}${major}$shared_ext'
15608 shlibpath_overrides_runpath=yes
15609 shlibpath_var=DYLD_LIBRARY_PATH
15610 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 15611
d9898ee8 15612 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15613 ;;
15614
15615dgux*)
15616 version_type=linux
15617 need_lib_prefix=no
15618 need_version=no
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 ;;
15623
15624freebsd1*)
15625 dynamic_linker=no
15626 ;;
15627
d9898ee8 15628freebsd* | dragonfly*)
15629 # DragonFly does not have aout. When/if they implement a new
15630 # versioning mechanism, adjust this.
15631 if test -x /usr/bin/objformat; then
15632 objformat=`/usr/bin/objformat`
15633 else
15634 case $host_os in
15635 freebsd[123]*) objformat=aout ;;
15636 *) objformat=elf ;;
15637 esac
15638 fi
15639 version_type=freebsd-$objformat
15640 case $version_type in
15641 freebsd-elf*)
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15643 need_version=no
15644 need_lib_prefix=no
15645 ;;
15646 freebsd-*)
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15648 need_version=yes
15649 ;;
15650 esac
15651 shlibpath_var=LD_LIBRARY_PATH
15652 case $host_os in
15653 freebsd2*)
15654 shlibpath_overrides_runpath=yes
15655 ;;
15656 freebsd3.[01]* | freebsdelf3.[01]*)
15657 shlibpath_overrides_runpath=yes
15658 hardcode_into_libs=yes
15659 ;;
15660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15662 shlibpath_overrides_runpath=no
15663 hardcode_into_libs=yes
15664 ;;
ac40fd9e 15665 *) # from 4.6 on, and DragonFly
d9898ee8 15666 shlibpath_overrides_runpath=yes
15667 hardcode_into_libs=yes
15668 ;;
15669 esac
15670 ;;
15671
15672gnu*)
15673 version_type=linux
15674 need_lib_prefix=no
15675 need_version=no
15676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15677 soname_spec='${libname}${release}${shared_ext}$major'
15678 shlibpath_var=LD_LIBRARY_PATH
15679 hardcode_into_libs=yes
15680 ;;
15681
15682hpux9* | hpux10* | hpux11*)
15683 # Give a soname corresponding to the major version so that dld.sl refuses to
15684 # link against other versions.
15685 version_type=sunos
15686 need_lib_prefix=no
15687 need_version=no
15688 case $host_cpu in
15689 ia64*)
15690 shrext_cmds='.so'
15691 hardcode_into_libs=yes
15692 dynamic_linker="$host_os dld.so"
15693 shlibpath_var=LD_LIBRARY_PATH
15694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696 soname_spec='${libname}${release}${shared_ext}$major'
15697 if test "X$HPUX_IA64_MODE" = X32; then
15698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15699 else
15700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15701 fi
15702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15703 ;;
15704 hppa*64*)
15705 shrext_cmds='.sl'
15706 hardcode_into_libs=yes
15707 dynamic_linker="$host_os dld.sl"
15708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15711 soname_spec='${libname}${release}${shared_ext}$major'
15712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15714 ;;
15715 *)
15716 shrext_cmds='.sl'
15717 dynamic_linker="$host_os dld.sl"
15718 shlibpath_var=SHLIB_PATH
15719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 ;;
15723 esac
15724 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15725 postinstall_cmds='chmod 555 $lib'
15726 ;;
15727
ac40fd9e 15728interix[3-9]*)
d9898ee8 15729 version_type=linux
15730 need_lib_prefix=no
15731 need_version=no
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 shlibpath_overrides_runpath=no
15737 hardcode_into_libs=yes
15738 ;;
15739
15740irix5* | irix6* | nonstopux*)
15741 case $host_os in
15742 nonstopux*) version_type=nonstopux ;;
15743 *)
15744 if test "$lt_cv_prog_gnu_ld" = yes; then
15745 version_type=linux
15746 else
15747 version_type=irix
15748 fi ;;
15749 esac
15750 need_lib_prefix=no
15751 need_version=no
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15754 case $host_os in
15755 irix5* | nonstopux*)
15756 libsuff= shlibsuff=
15757 ;;
15758 *)
15759 case $LD in # libtool.m4 will add one of these switches to LD
15760 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15761 libsuff= shlibsuff= libmagic=32-bit;;
15762 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15763 libsuff=32 shlibsuff=N32 libmagic=N32;;
15764 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15765 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15766 *) libsuff= shlibsuff= libmagic=never-match;;
15767 esac
15768 ;;
15769 esac
15770 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15771 shlibpath_overrides_runpath=no
15772 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15773 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15774 hardcode_into_libs=yes
15775 ;;
15776
15777# No shared lib support for Linux oldld, aout, or coff.
15778linux*oldld* | linux*aout* | linux*coff*)
15779 dynamic_linker=no
15780 ;;
15781
15782# This must be Linux ELF.
ac40fd9e 15783linux* | k*bsd*-gnu)
d9898ee8 15784 version_type=linux
15785 need_lib_prefix=no
15786 need_version=no
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 shlibpath_overrides_runpath=no
15792 # This implies no fast_install, which is unacceptable.
15793 # Some rework will be needed to allow for fast_install
15794 # before this can be enabled.
15795 hardcode_into_libs=yes
ac40fd9e 15796 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15797 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 15798
15799 # Append ld.so.conf contents to the search path
15800 if test -f /etc/ld.so.conf; then
ac40fd9e 15801 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15802 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 15803 fi
15804
15805 # We used to test for /lib/ld.so.1 and disable shared libraries on
15806 # powerpc, because MkLinux only supported shared libraries with the
15807 # GNU dynamic linker. Since this was broken with cross compilers,
15808 # most powerpc-linux boxes support dynamic linking these days and
15809 # people can always --disable-shared, the test was removed, and we
15810 # assume the GNU/Linux dynamic linker is in use.
15811 dynamic_linker='GNU/Linux ld.so'
15812 ;;
15813
d9898ee8 15814netbsd*)
15815 version_type=sunos
15816 need_lib_prefix=no
15817 need_version=no
15818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15820 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15821 dynamic_linker='NetBSD (a.out) ld.so'
15822 else
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 dynamic_linker='NetBSD ld.elf_so'
15826 fi
15827 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=yes
15829 hardcode_into_libs=yes
15830 ;;
15831
15832newsos6)
15833 version_type=linux
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 ;;
15838
15839nto-qnx*)
15840 version_type=linux
15841 need_lib_prefix=no
15842 need_version=no
15843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844 soname_spec='${libname}${release}${shared_ext}$major'
15845 shlibpath_var=LD_LIBRARY_PATH
15846 shlibpath_overrides_runpath=yes
15847 ;;
15848
15849openbsd*)
15850 version_type=sunos
15851 sys_lib_dlsearch_path_spec="/usr/lib"
15852 need_lib_prefix=no
15853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15854 case $host_os in
15855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15856 *) need_version=no ;;
15857 esac
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15860 shlibpath_var=LD_LIBRARY_PATH
15861 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15862 case $host_os in
15863 openbsd2.[89] | openbsd2.[89].*)
15864 shlibpath_overrides_runpath=no
15865 ;;
15866 *)
15867 shlibpath_overrides_runpath=yes
15868 ;;
15869 esac
15870 else
15871 shlibpath_overrides_runpath=yes
15872 fi
15873 ;;
15874
15875os2*)
15876 libname_spec='$name'
15877 shrext_cmds=".dll"
15878 need_lib_prefix=no
15879 library_names_spec='$libname${shared_ext} $libname.a'
15880 dynamic_linker='OS/2 ld.exe'
15881 shlibpath_var=LIBPATH
15882 ;;
15883
15884osf3* | osf4* | osf5*)
15885 version_type=osf
15886 need_lib_prefix=no
15887 need_version=no
15888 soname_spec='${libname}${release}${shared_ext}$major'
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15890 shlibpath_var=LD_LIBRARY_PATH
15891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15893 ;;
15894
ac40fd9e 15895rdos*)
15896 dynamic_linker=no
15897 ;;
15898
d9898ee8 15899solaris*)
15900 version_type=linux
15901 need_lib_prefix=no
15902 need_version=no
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904 soname_spec='${libname}${release}${shared_ext}$major'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15907 hardcode_into_libs=yes
15908 # ldd complains unless libraries are executable
15909 postinstall_cmds='chmod +x $lib'
15910 ;;
15911
15912sunos4*)
15913 version_type=sunos
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=yes
15918 if test "$with_gnu_ld" = yes; then
15919 need_lib_prefix=no
15920 fi
15921 need_version=yes
15922 ;;
15923
15924sysv4 | sysv4.3*)
15925 version_type=linux
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 shlibpath_var=LD_LIBRARY_PATH
15929 case $host_vendor in
15930 sni)
15931 shlibpath_overrides_runpath=no
15932 need_lib_prefix=no
15933 export_dynamic_flag_spec='${wl}-Blargedynsym'
15934 runpath_var=LD_RUN_PATH
15935 ;;
15936 siemens)
15937 need_lib_prefix=no
15938 ;;
15939 motorola)
15940 need_lib_prefix=no
15941 need_version=no
15942 shlibpath_overrides_runpath=no
15943 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15944 ;;
15945 esac
15946 ;;
15947
15948sysv4*MP*)
15949 if test -d /usr/nec ;then
15950 version_type=linux
15951 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15952 soname_spec='$libname${shared_ext}.$major'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 fi
15955 ;;
15956
15957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15958 version_type=freebsd-elf
15959 need_lib_prefix=no
15960 need_version=no
15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15962 soname_spec='${libname}${release}${shared_ext}$major'
15963 shlibpath_var=LD_LIBRARY_PATH
15964 hardcode_into_libs=yes
15965 if test "$with_gnu_ld" = yes; then
15966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15967 shlibpath_overrides_runpath=no
15968 else
15969 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15970 shlibpath_overrides_runpath=yes
15971 case $host_os in
15972 sco3.2v5*)
15973 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15974 ;;
15975 esac
15976 fi
15977 sys_lib_dlsearch_path_spec='/usr/lib'
15978 ;;
15979
15980uts4*)
15981 version_type=linux
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 ;;
15986
15987*)
15988 dynamic_linker=no
15989 ;;
15990esac
dd184caf 15991{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15992echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 15993test "$dynamic_linker" = no && can_build_shared=no
15994
15995variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15996if test "$GCC" = yes; then
15997 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15998fi
15999
dd184caf 16000{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16001echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 16002hardcode_action_F77=
16003if test -n "$hardcode_libdir_flag_spec_F77" || \
16004 test -n "$runpath_var_F77" || \
16005 test "X$hardcode_automatic_F77" = "Xyes" ; then
16006
16007 # We can hardcode non-existant directories.
16008 if test "$hardcode_direct_F77" != no &&
16009 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16010 # have to relink, otherwise we might link with an installed library
16011 # when we should be linking with a yet-to-be-installed one
16012 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16013 test "$hardcode_minus_L_F77" != no; then
16014 # Linking always hardcodes the temporary library directory.
16015 hardcode_action_F77=relink
16016 else
16017 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16018 hardcode_action_F77=immediate
16019 fi
16020else
16021 # We cannot hardcode anything, or else we can only hardcode existing
16022 # directories.
16023 hardcode_action_F77=unsupported
16024fi
dd184caf 16025{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16026echo "${ECHO_T}$hardcode_action_F77" >&6; }
d9898ee8 16027
16028if test "$hardcode_action_F77" = relink; then
16029 # Fast installation is not supported
16030 enable_fast_install=no
16031elif test "$shlibpath_overrides_runpath" = yes ||
16032 test "$enable_shared" = no; then
16033 # Fast installation is not necessary
16034 enable_fast_install=needless
16035fi
16036
16037
16038# The else clause should only fire when bootstrapping the
16039# libtool distribution, otherwise you forgot to ship ltmain.sh
16040# with your package, and you will get complaints that there are
16041# no rules to generate ltmain.sh.
16042if test -f "$ltmain"; then
16043 # See if we are running on zsh, and set the options which allow our commands through
16044 # without removal of \ escapes.
16045 if test -n "${ZSH_VERSION+set}" ; then
16046 setopt NO_GLOB_SUBST
16047 fi
16048 # Now quote all the things that may contain metacharacters while being
16049 # careful not to overquote the AC_SUBSTed values. We take copies of the
16050 # variables and quote the copies for generation of the libtool script.
16051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16052 SED SHELL STRIP \
16053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16055 deplibs_check_method reload_flag reload_cmds need_locks \
16056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16057 lt_cv_sys_global_symbol_to_c_name_address \
16058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16059 old_postinstall_cmds old_postuninstall_cmds \
16060 compiler_F77 \
16061 CC_F77 \
16062 LD_F77 \
16063 lt_prog_compiler_wl_F77 \
16064 lt_prog_compiler_pic_F77 \
16065 lt_prog_compiler_static_F77 \
16066 lt_prog_compiler_no_builtin_flag_F77 \
16067 export_dynamic_flag_spec_F77 \
16068 thread_safe_flag_spec_F77 \
16069 whole_archive_flag_spec_F77 \
16070 enable_shared_with_static_runtimes_F77 \
16071 old_archive_cmds_F77 \
16072 old_archive_from_new_cmds_F77 \
16073 predep_objects_F77 \
16074 postdep_objects_F77 \
16075 predeps_F77 \
16076 postdeps_F77 \
16077 compiler_lib_search_path_F77 \
16078 archive_cmds_F77 \
16079 archive_expsym_cmds_F77 \
16080 postinstall_cmds_F77 \
16081 postuninstall_cmds_F77 \
16082 old_archive_from_expsyms_cmds_F77 \
16083 allow_undefined_flag_F77 \
16084 no_undefined_flag_F77 \
16085 export_symbols_cmds_F77 \
16086 hardcode_libdir_flag_spec_F77 \
16087 hardcode_libdir_flag_spec_ld_F77 \
16088 hardcode_libdir_separator_F77 \
16089 hardcode_automatic_F77 \
16090 module_cmds_F77 \
16091 module_expsym_cmds_F77 \
16092 lt_cv_prog_compiler_c_o_F77 \
ac40fd9e 16093 fix_srcfile_path_F77 \
d9898ee8 16094 exclude_expsyms_F77 \
16095 include_expsyms_F77; do
16096
16097 case $var in
16098 old_archive_cmds_F77 | \
16099 old_archive_from_new_cmds_F77 | \
16100 archive_cmds_F77 | \
16101 archive_expsym_cmds_F77 | \
16102 module_cmds_F77 | \
16103 module_expsym_cmds_F77 | \
16104 old_archive_from_expsyms_cmds_F77 | \
16105 export_symbols_cmds_F77 | \
16106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16107 postinstall_cmds | postuninstall_cmds | \
16108 old_postinstall_cmds | old_postuninstall_cmds | \
16109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16110 # Double-quote double-evaled strings.
16111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16112 ;;
16113 *)
16114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16115 ;;
16116 esac
16117 done
16118
16119 case $lt_echo in
16120 *'\$0 --fallback-echo"')
16121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16122 ;;
16123 esac
16124
16125cfgfile="$ofile"
16126
16127 cat <<__EOF__ >> "$cfgfile"
16128# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16129
16130# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16131
16132# Shell to use when invoking shell scripts.
16133SHELL=$lt_SHELL
16134
16135# Whether or not to build shared libraries.
16136build_libtool_libs=$enable_shared
16137
16138# Whether or not to build static libraries.
16139build_old_libs=$enable_static
16140
16141# Whether or not to add -lc for building shared libraries.
16142build_libtool_need_lc=$archive_cmds_need_lc_F77
16143
16144# Whether or not to disallow shared libs when runtime libs are static
16145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16146
16147# Whether or not to optimize for fast installation.
16148fast_install=$enable_fast_install
16149
16150# The host system.
16151host_alias=$host_alias
16152host=$host
16153host_os=$host_os
16154
16155# The build system.
16156build_alias=$build_alias
16157build=$build
16158build_os=$build_os
16159
16160# An echo program that does not interpret backslashes.
16161echo=$lt_echo
16162
16163# The archiver.
16164AR=$lt_AR
16165AR_FLAGS=$lt_AR_FLAGS
16166
16167# A C compiler.
16168LTCC=$lt_LTCC
16169
16170# LTCC compiler flags.
16171LTCFLAGS=$lt_LTCFLAGS
16172
16173# A language-specific compiler.
16174CC=$lt_compiler_F77
16175
16176# Is the compiler the GNU C compiler?
16177with_gcc=$GCC_F77
16178
d9898ee8 16179# An ERE matcher.
16180EGREP=$lt_EGREP
16181
16182# The linker used to build libraries.
16183LD=$lt_LD_F77
16184
16185# Whether we need hard or soft links.
16186LN_S=$lt_LN_S
16187
16188# A BSD-compatible nm program.
16189NM=$lt_NM
16190
16191# A symbol stripping program
16192STRIP=$lt_STRIP
16193
16194# Used to examine libraries when file_magic_cmd begins "file"
16195MAGIC_CMD=$MAGIC_CMD
16196
16197# Used on cygwin: DLL creation program.
16198DLLTOOL="$DLLTOOL"
16199
16200# Used on cygwin: object dumper.
16201OBJDUMP="$OBJDUMP"
16202
16203# Used on cygwin: assembler.
16204AS="$AS"
16205
16206# The name of the directory that contains temporary libtool files.
16207objdir=$objdir
16208
16209# How to create reloadable object files.
16210reload_flag=$lt_reload_flag
16211reload_cmds=$lt_reload_cmds
16212
16213# How to pass a linker flag through the compiler.
16214wl=$lt_lt_prog_compiler_wl_F77
16215
16216# Object file suffix (normally "o").
16217objext="$ac_objext"
16218
16219# Old archive suffix (normally "a").
16220libext="$libext"
16221
16222# Shared library suffix (normally ".so").
16223shrext_cmds='$shrext_cmds'
16224
16225# Executable file suffix (normally "").
16226exeext="$exeext"
16227
16228# Additional compiler flags for building library objects.
16229pic_flag=$lt_lt_prog_compiler_pic_F77
16230pic_mode=$pic_mode
16231
16232# What is the maximum length of a command?
16233max_cmd_len=$lt_cv_sys_max_cmd_len
16234
16235# Does compiler simultaneously support -c and -o options?
16236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16237
16238# Must we lock files when doing compilation?
16239need_locks=$lt_need_locks
16240
16241# Do we need the lib prefix for modules?
16242need_lib_prefix=$need_lib_prefix
16243
16244# Do we need a version for libraries?
16245need_version=$need_version
16246
16247# Whether dlopen is supported.
16248dlopen_support=$enable_dlopen
16249
16250# Whether dlopen of programs is supported.
16251dlopen_self=$enable_dlopen_self
16252
16253# Whether dlopen of statically linked programs is supported.
16254dlopen_self_static=$enable_dlopen_self_static
16255
16256# Compiler flag to prevent dynamic linking.
16257link_static_flag=$lt_lt_prog_compiler_static_F77
16258
16259# Compiler flag to turn off builtin functions.
16260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16261
16262# Compiler flag to allow reflexive dlopens.
16263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16264
16265# Compiler flag to generate shared objects directly from archives.
16266whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16267
16268# Compiler flag to generate thread-safe objects.
16269thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16270
16271# Library versioning type.
16272version_type=$version_type
16273
16274# Format of library name prefix.
16275libname_spec=$lt_libname_spec
16276
16277# List of archive names. First name is the real one, the rest are links.
16278# The last name is the one that the linker finds with -lNAME.
16279library_names_spec=$lt_library_names_spec
16280
16281# The coded name of the library, if different from the real name.
16282soname_spec=$lt_soname_spec
16283
16284# Commands used to build and install an old-style archive.
16285RANLIB=$lt_RANLIB
16286old_archive_cmds=$lt_old_archive_cmds_F77
16287old_postinstall_cmds=$lt_old_postinstall_cmds
16288old_postuninstall_cmds=$lt_old_postuninstall_cmds
16289
16290# Create an old-style archive from a shared archive.
16291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16292
16293# Create a temporary old-style archive to link instead of a shared archive.
16294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16295
16296# Commands used to build and install a shared archive.
16297archive_cmds=$lt_archive_cmds_F77
16298archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16299postinstall_cmds=$lt_postinstall_cmds
16300postuninstall_cmds=$lt_postuninstall_cmds
16301
16302# Commands used to build a loadable module (assumed same as above if empty)
16303module_cmds=$lt_module_cmds_F77
16304module_expsym_cmds=$lt_module_expsym_cmds_F77
16305
16306# Commands to strip libraries.
16307old_striplib=$lt_old_striplib
16308striplib=$lt_striplib
16309
16310# Dependencies to place before the objects being linked to create a
16311# shared library.
dd184caf 16312predep_objects=$lt_predep_objects_F77
d9898ee8 16313
16314# Dependencies to place after the objects being linked to create a
16315# shared library.
dd184caf 16316postdep_objects=$lt_postdep_objects_F77
d9898ee8 16317
16318# Dependencies to place before the objects being linked to create a
16319# shared library.
16320predeps=$lt_predeps_F77
16321
16322# Dependencies to place after the objects being linked to create a
16323# shared library.
16324postdeps=$lt_postdeps_F77
16325
16326# The library search path used internally by the compiler when linking
16327# a shared library.
dd184caf 16328compiler_lib_search_path=$lt_compiler_lib_search_path_F77
d9898ee8 16329
16330# Method to check whether dependent libraries are shared objects.
16331deplibs_check_method=$lt_deplibs_check_method
16332
16333# Command to use when deplibs_check_method == file_magic.
16334file_magic_cmd=$lt_file_magic_cmd
16335
16336# Flag that allows shared libraries with undefined symbols to be built.
16337allow_undefined_flag=$lt_allow_undefined_flag_F77
16338
16339# Flag that forces no undefined symbols.
16340no_undefined_flag=$lt_no_undefined_flag_F77
16341
16342# Commands used to finish a libtool library installation in a directory.
16343finish_cmds=$lt_finish_cmds
16344
16345# Same as above, but a single script fragment to be evaled but not shown.
16346finish_eval=$lt_finish_eval
16347
16348# Take the output of nm and produce a listing of raw symbols and C names.
16349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16350
16351# Transform the output of nm in a proper C declaration
16352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16353
16354# Transform the output of nm in a C name address pair
16355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16356
16357# This is the shared library runtime path variable.
16358runpath_var=$runpath_var
16359
16360# This is the shared library path variable.
16361shlibpath_var=$shlibpath_var
16362
16363# Is shlibpath searched before the hard-coded library search path?
16364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16365
16366# How to hardcode a shared library path into an executable.
16367hardcode_action=$hardcode_action_F77
16368
16369# Whether we should hardcode library paths into libraries.
16370hardcode_into_libs=$hardcode_into_libs
16371
16372# Flag to hardcode \$libdir into a binary during linking.
16373# This must work even if \$libdir does not exist.
16374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16375
16376# If ld is used when linking, flag to hardcode \$libdir into
16377# a binary during linking. This must work even if \$libdir does
16378# not exist.
16379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16380
16381# Whether we need a single -rpath flag with a separated argument.
16382hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16383
16384# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16385# resulting binary.
16386hardcode_direct=$hardcode_direct_F77
16387
16388# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16389# resulting binary.
16390hardcode_minus_L=$hardcode_minus_L_F77
16391
16392# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16393# the resulting binary.
16394hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16395
16396# Set to yes if building a shared library automatically hardcodes DIR into the library
16397# and all subsequent libraries and executables linked against it.
16398hardcode_automatic=$hardcode_automatic_F77
16399
16400# Variables whose values should be saved in libtool wrapper scripts and
16401# restored at relink time.
16402variables_saved_for_relink="$variables_saved_for_relink"
16403
16404# Whether libtool must link a program against all its dependency libraries.
16405link_all_deplibs=$link_all_deplibs_F77
16406
16407# Compile-time system search path for libraries
dd184caf 16408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 16409
16410# Run-time system search path for libraries
16411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16412
16413# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 16414fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 16415
16416# Set to yes if exported symbols are required.
16417always_export_symbols=$always_export_symbols_F77
16418
16419# The commands to list exported symbols.
16420export_symbols_cmds=$lt_export_symbols_cmds_F77
16421
16422# The commands to extract the exported symbol list from a shared archive.
16423extract_expsyms_cmds=$lt_extract_expsyms_cmds
16424
16425# Symbols that should not be listed in the preloaded symbols.
16426exclude_expsyms=$lt_exclude_expsyms_F77
16427
16428# Symbols that must always be exported.
16429include_expsyms=$lt_include_expsyms_F77
16430
16431# ### END LIBTOOL TAG CONFIG: $tagname
16432
16433__EOF__
16434
16435
16436else
16437 # If there is no Makefile yet, we rely on a make rule to execute
16438 # `config.status --recheck' to rerun these tests and create the
16439 # libtool script then.
16440 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16441 if test -f "$ltmain_in"; then
16442 test -f Makefile && make "$ltmain"
16443 fi
16444fi
16445
16446
16447ac_ext=c
16448ac_cpp='$CPP $CPPFLAGS'
16449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16451ac_compiler_gnu=$ac_cv_c_compiler_gnu
16452
16453CC="$lt_save_CC"
16454
16455 else
16456 tagname=""
16457 fi
16458 ;;
16459
16460 GCJ)
16461 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16462
16463
d9898ee8 16464# Source file extension for Java test sources.
16465ac_ext=java
16466
16467# Object file extension for compiled Java test sources.
16468objext=o
16469objext_GCJ=$objext
16470
16471# Code to be used in simple compile tests
ac40fd9e 16472lt_simple_compile_test_code="class foo {}"
d9898ee8 16473
16474# Code to be used in simple link tests
ac40fd9e 16475lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
d9898ee8 16476
16477# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16478
16479# If no C compiler was specified, use CC.
16480LTCC=${LTCC-"$CC"}
16481
16482# If no C compiler flags were specified, use CFLAGS.
16483LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16484
16485# Allow CC to be a program name with arguments.
16486compiler=$CC
16487
16488
16489# save warnings/boilerplate of simple test code
16490ac_outfile=conftest.$ac_objext
ac40fd9e 16491echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 16492eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16493_lt_compiler_boilerplate=`cat conftest.err`
16494$rm conftest*
16495
16496ac_outfile=conftest.$ac_objext
ac40fd9e 16497echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 16498eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16499_lt_linker_boilerplate=`cat conftest.err`
16500$rm conftest*
16501
16502
16503# Allow CC to be a program name with arguments.
16504lt_save_CC="$CC"
16505CC=${GCJ-"gcj"}
16506compiler=$CC
16507compiler_GCJ=$CC
16508for cc_temp in $compiler""; do
16509 case $cc_temp in
16510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16512 \-*) ;;
16513 *) break;;
16514 esac
16515done
16516cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16517
16518
16519# GCJ did not exist at the time GCC didn't implicitly link libc in.
16520archive_cmds_need_lc_GCJ=no
16521
16522old_archive_cmds_GCJ=$old_archive_cmds
16523
16524
16525lt_prog_compiler_no_builtin_flag_GCJ=
16526
16527if test "$GCC" = yes; then
16528 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16529
16530
dd184caf 16531{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16532echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
d9898ee8 16533if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535else
16536 lt_cv_prog_compiler_rtti_exceptions=no
16537 ac_outfile=conftest.$ac_objext
ac40fd9e 16538 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16539 lt_compiler_flag="-fno-rtti -fno-exceptions"
16540 # Insert the option either (1) after the last *FLAGS variable, or
16541 # (2) before a word containing "conftest.", or (3) at the end.
16542 # Note that $ac_compile itself does not contain backslashes and begins
16543 # with a dollar sign (not a hyphen), so the echo should work correctly.
16544 # The option is referenced via a variable to avoid confusing sed.
16545 lt_compile=`echo "$ac_compile" | $SED \
16546 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16547 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16548 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16549 (eval echo "\"\$as_me:16549: $lt_compile\"" >&5)
d9898ee8 16550 (eval "$lt_compile" 2>conftest.err)
16551 ac_status=$?
16552 cat conftest.err >&5
ac40fd9e 16553 echo "$as_me:16553: \$? = $ac_status" >&5
d9898ee8 16554 if (exit $ac_status) && test -s "$ac_outfile"; then
16555 # The compiler can only warn and ignore the option if not recognized
16556 # So say no if there are warnings other than the usual output.
16557 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16559 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16560 lt_cv_prog_compiler_rtti_exceptions=yes
16561 fi
16562 fi
16563 $rm conftest*
16564
16565fi
dd184caf 16566{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16567echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 16568
16569if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16570 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16571else
16572 :
16573fi
16574
16575fi
16576
16577lt_prog_compiler_wl_GCJ=
16578lt_prog_compiler_pic_GCJ=
16579lt_prog_compiler_static_GCJ=
16580
dd184caf 16581{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16582echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
d9898ee8 16583
16584 if test "$GCC" = yes; then
16585 lt_prog_compiler_wl_GCJ='-Wl,'
16586 lt_prog_compiler_static_GCJ='-static'
16587
16588 case $host_os in
16589 aix*)
16590 # All AIX code is PIC.
16591 if test "$host_cpu" = ia64; then
16592 # AIX 5 now supports IA64 processor
16593 lt_prog_compiler_static_GCJ='-Bstatic'
16594 fi
16595 ;;
16596
16597 amigaos*)
16598 # FIXME: we need at least 68020 code to build shared libraries, but
16599 # adding the `-m68020' flag to GCC prevents building anything better,
16600 # like `-m68040'.
16601 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16602 ;;
16603
ac40fd9e 16604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 16605 # PIC is the default for these OSes.
16606 ;;
16607
ac40fd9e 16608 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16609 # This hack is so that the source file can tell whether it is being
16610 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 16611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16612 # (--disable-auto-import) libraries
d9898ee8 16613 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16614 ;;
16615
16616 darwin* | rhapsody*)
16617 # PIC is the default on this platform
16618 # Common symbols not allowed in MH_DYLIB files
16619 lt_prog_compiler_pic_GCJ='-fno-common'
16620 ;;
16621
ac40fd9e 16622 interix[3-9]*)
d9898ee8 16623 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16624 # Instead, we relocate shared libraries at runtime.
16625 ;;
16626
16627 msdosdjgpp*)
16628 # Just because we use GCC doesn't mean we suddenly get shared libraries
16629 # on systems that don't support them.
16630 lt_prog_compiler_can_build_shared_GCJ=no
16631 enable_shared=no
16632 ;;
16633
16634 sysv4*MP*)
16635 if test -d /usr/nec; then
16636 lt_prog_compiler_pic_GCJ=-Kconform_pic
16637 fi
16638 ;;
16639
16640 hpux*)
16641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16642 # not for PA HP-UX.
16643 case $host_cpu in
16644 hppa*64*|ia64*)
16645 # +Z the default
16646 ;;
16647 *)
16648 lt_prog_compiler_pic_GCJ='-fPIC'
16649 ;;
16650 esac
16651 ;;
16652
16653 *)
16654 lt_prog_compiler_pic_GCJ='-fPIC'
16655 ;;
16656 esac
16657 else
16658 # PORTME Check for flag to pass linker flags through the system compiler.
16659 case $host_os in
16660 aix*)
16661 lt_prog_compiler_wl_GCJ='-Wl,'
16662 if test "$host_cpu" = ia64; then
16663 # AIX 5 now supports IA64 processor
16664 lt_prog_compiler_static_GCJ='-Bstatic'
16665 else
16666 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16667 fi
16668 ;;
16669 darwin*)
16670 # PIC is the default on this platform
16671 # Common symbols not allowed in MH_DYLIB files
16672 case $cc_basename in
16673 xlc*)
16674 lt_prog_compiler_pic_GCJ='-qnocommon'
16675 lt_prog_compiler_wl_GCJ='-Wl,'
16676 ;;
16677 esac
16678 ;;
16679
ac40fd9e 16680 mingw* | cygwin* | pw32* | os2*)
d9898ee8 16681 # This hack is so that the source file can tell whether it is being
16682 # built for inclusion in a dll (and should export symbols for example).
16683 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16684 ;;
16685
16686 hpux9* | hpux10* | hpux11*)
16687 lt_prog_compiler_wl_GCJ='-Wl,'
16688 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16689 # not for PA HP-UX.
16690 case $host_cpu in
16691 hppa*64*|ia64*)
16692 # +Z the default
16693 ;;
16694 *)
16695 lt_prog_compiler_pic_GCJ='+Z'
16696 ;;
16697 esac
16698 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16699 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16700 ;;
16701
16702 irix5* | irix6* | nonstopux*)
16703 lt_prog_compiler_wl_GCJ='-Wl,'
16704 # PIC (with -KPIC) is the default.
16705 lt_prog_compiler_static_GCJ='-non_shared'
16706 ;;
16707
16708 newsos6)
16709 lt_prog_compiler_pic_GCJ='-KPIC'
16710 lt_prog_compiler_static_GCJ='-Bstatic'
16711 ;;
16712
ac40fd9e 16713 linux* | k*bsd*-gnu)
d9898ee8 16714 case $cc_basename in
16715 icc* | ecc*)
16716 lt_prog_compiler_wl_GCJ='-Wl,'
16717 lt_prog_compiler_pic_GCJ='-KPIC'
16718 lt_prog_compiler_static_GCJ='-static'
16719 ;;
16720 pgcc* | pgf77* | pgf90* | pgf95*)
16721 # Portland Group compilers (*not* the Pentium gcc compiler,
16722 # which looks to be a dead project)
16723 lt_prog_compiler_wl_GCJ='-Wl,'
16724 lt_prog_compiler_pic_GCJ='-fpic'
16725 lt_prog_compiler_static_GCJ='-Bstatic'
16726 ;;
16727 ccc*)
16728 lt_prog_compiler_wl_GCJ='-Wl,'
16729 # All Alpha code is PIC.
16730 lt_prog_compiler_static_GCJ='-non_shared'
16731 ;;
ac40fd9e 16732 *)
16733 case `$CC -V 2>&1 | sed 5q` in
16734 *Sun\ C*)
16735 # Sun C 5.9
16736 lt_prog_compiler_pic_GCJ='-KPIC'
16737 lt_prog_compiler_static_GCJ='-Bstatic'
16738 lt_prog_compiler_wl_GCJ='-Wl,'
16739 ;;
16740 *Sun\ F*)
16741 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16742 lt_prog_compiler_pic_GCJ='-KPIC'
16743 lt_prog_compiler_static_GCJ='-Bstatic'
16744 lt_prog_compiler_wl_GCJ=''
16745 ;;
16746 esac
16747 ;;
d9898ee8 16748 esac
16749 ;;
16750
16751 osf3* | osf4* | osf5*)
16752 lt_prog_compiler_wl_GCJ='-Wl,'
16753 # All OSF/1 code is PIC.
16754 lt_prog_compiler_static_GCJ='-non_shared'
16755 ;;
16756
ac40fd9e 16757 rdos*)
16758 lt_prog_compiler_static_GCJ='-non_shared'
16759 ;;
16760
d9898ee8 16761 solaris*)
16762 lt_prog_compiler_pic_GCJ='-KPIC'
16763 lt_prog_compiler_static_GCJ='-Bstatic'
16764 case $cc_basename in
16765 f77* | f90* | f95*)
16766 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16767 *)
16768 lt_prog_compiler_wl_GCJ='-Wl,';;
16769 esac
16770 ;;
16771
16772 sunos4*)
16773 lt_prog_compiler_wl_GCJ='-Qoption ld '
16774 lt_prog_compiler_pic_GCJ='-PIC'
16775 lt_prog_compiler_static_GCJ='-Bstatic'
16776 ;;
16777
16778 sysv4 | sysv4.2uw2* | sysv4.3*)
16779 lt_prog_compiler_wl_GCJ='-Wl,'
16780 lt_prog_compiler_pic_GCJ='-KPIC'
16781 lt_prog_compiler_static_GCJ='-Bstatic'
16782 ;;
16783
16784 sysv4*MP*)
16785 if test -d /usr/nec ;then
16786 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16787 lt_prog_compiler_static_GCJ='-Bstatic'
16788 fi
16789 ;;
16790
16791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16792 lt_prog_compiler_wl_GCJ='-Wl,'
16793 lt_prog_compiler_pic_GCJ='-KPIC'
16794 lt_prog_compiler_static_GCJ='-Bstatic'
16795 ;;
16796
16797 unicos*)
16798 lt_prog_compiler_wl_GCJ='-Wl,'
16799 lt_prog_compiler_can_build_shared_GCJ=no
16800 ;;
16801
16802 uts4*)
16803 lt_prog_compiler_pic_GCJ='-pic'
16804 lt_prog_compiler_static_GCJ='-Bstatic'
16805 ;;
16806
16807 *)
16808 lt_prog_compiler_can_build_shared_GCJ=no
16809 ;;
16810 esac
16811 fi
16812
dd184caf 16813{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16814echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
d9898ee8 16815
16816#
16817# Check to make sure the PIC flag actually works.
16818#
16819if test -n "$lt_prog_compiler_pic_GCJ"; then
16820
dd184caf 16821{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16822echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
d9898ee8 16823if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825else
16826 lt_prog_compiler_pic_works_GCJ=no
16827 ac_outfile=conftest.$ac_objext
ac40fd9e 16828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16829 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16830 # Insert the option either (1) after the last *FLAGS variable, or
16831 # (2) before a word containing "conftest.", or (3) at the end.
16832 # Note that $ac_compile itself does not contain backslashes and begins
16833 # with a dollar sign (not a hyphen), so the echo should work correctly.
16834 # The option is referenced via a variable to avoid confusing sed.
16835 lt_compile=`echo "$ac_compile" | $SED \
16836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16839 (eval echo "\"\$as_me:16839: $lt_compile\"" >&5)
d9898ee8 16840 (eval "$lt_compile" 2>conftest.err)
16841 ac_status=$?
16842 cat conftest.err >&5
ac40fd9e 16843 echo "$as_me:16843: \$? = $ac_status" >&5
d9898ee8 16844 if (exit $ac_status) && test -s "$ac_outfile"; then
16845 # The compiler can only warn and ignore the option if not recognized
16846 # So say no if there are warnings other than the usual output.
16847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16850 lt_prog_compiler_pic_works_GCJ=yes
16851 fi
16852 fi
16853 $rm conftest*
16854
16855fi
dd184caf 16856{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16857echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
d9898ee8 16858
16859if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16860 case $lt_prog_compiler_pic_GCJ in
16861 "" | " "*) ;;
16862 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16863 esac
16864else
16865 lt_prog_compiler_pic_GCJ=
16866 lt_prog_compiler_can_build_shared_GCJ=no
16867fi
16868
16869fi
16870case $host_os in
16871 # For platforms which do not support PIC, -DPIC is meaningless:
16872 *djgpp*)
16873 lt_prog_compiler_pic_GCJ=
16874 ;;
16875 *)
16876 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16877 ;;
16878esac
16879
16880#
16881# Check to make sure the static flag actually works.
16882#
16883wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
dd184caf 16884{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16885echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
d9898ee8 16886if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16887 echo $ECHO_N "(cached) $ECHO_C" >&6
16888else
16889 lt_prog_compiler_static_works_GCJ=no
16890 save_LDFLAGS="$LDFLAGS"
16891 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 16892 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 16893 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16894 # The linker can only warn and ignore the option if not recognized
16895 # So say no if there are warnings
16896 if test -s conftest.err; then
16897 # Append any errors to the config.log.
16898 cat conftest.err 1>&5
16899 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16900 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16901 if diff conftest.exp conftest.er2 >/dev/null; then
16902 lt_prog_compiler_static_works_GCJ=yes
16903 fi
16904 else
16905 lt_prog_compiler_static_works_GCJ=yes
16906 fi
16907 fi
16908 $rm conftest*
16909 LDFLAGS="$save_LDFLAGS"
16910
16911fi
dd184caf 16912{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16913echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
d9898ee8 16914
16915if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16916 :
16917else
16918 lt_prog_compiler_static_GCJ=
16919fi
16920
16921
dd184caf 16922{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16923echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
d9898ee8 16924if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926else
16927 lt_cv_prog_compiler_c_o_GCJ=no
16928 $rm -r conftest 2>/dev/null
16929 mkdir conftest
16930 cd conftest
16931 mkdir out
ac40fd9e 16932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 16933
16934 lt_compiler_flag="-o out/conftest2.$ac_objext"
16935 # Insert the option either (1) after the last *FLAGS variable, or
16936 # (2) before a word containing "conftest.", or (3) at the end.
16937 # Note that $ac_compile itself does not contain backslashes and begins
16938 # with a dollar sign (not a hyphen), so the echo should work correctly.
16939 lt_compile=`echo "$ac_compile" | $SED \
16940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16942 -e 's:$: $lt_compiler_flag:'`
ac40fd9e 16943 (eval echo "\"\$as_me:16943: $lt_compile\"" >&5)
d9898ee8 16944 (eval "$lt_compile" 2>out/conftest.err)
16945 ac_status=$?
16946 cat out/conftest.err >&5
ac40fd9e 16947 echo "$as_me:16947: \$? = $ac_status" >&5
d9898ee8 16948 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16949 then
16950 # The compiler can only warn and ignore the option if not recognized
16951 # So say no if there are warnings
16952 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16955 lt_cv_prog_compiler_c_o_GCJ=yes
16956 fi
16957 fi
16958 chmod u+w . 2>&5
16959 $rm conftest*
16960 # SGI C++ compiler will create directory out/ii_files/ for
16961 # template instantiation
16962 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16963 $rm out/* && rmdir out
16964 cd ..
16965 rmdir conftest
16966 $rm conftest*
16967
16968fi
dd184caf 16969{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16970echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
d9898ee8 16971
16972
16973hard_links="nottested"
16974if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16975 # do not overwrite the value of need_locks provided by the user
dd184caf 16976 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16977echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
d9898ee8 16978 hard_links=yes
16979 $rm conftest*
16980 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16981 touch conftest.a
16982 ln conftest.a conftest.b 2>&5 || hard_links=no
16983 ln conftest.a conftest.b 2>/dev/null && hard_links=no
dd184caf 16984 { echo "$as_me:$LINENO: result: $hard_links" >&5
16985echo "${ECHO_T}$hard_links" >&6; }
d9898ee8 16986 if test "$hard_links" = no; then
16987 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16988echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16989 need_locks=warn
16990 fi
16991else
16992 need_locks=no
16993fi
16994
dd184caf 16995{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16996echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
d9898ee8 16997
16998 runpath_var=
16999 allow_undefined_flag_GCJ=
17000 enable_shared_with_static_runtimes_GCJ=no
17001 archive_cmds_GCJ=
17002 archive_expsym_cmds_GCJ=
17003 old_archive_From_new_cmds_GCJ=
17004 old_archive_from_expsyms_cmds_GCJ=
17005 export_dynamic_flag_spec_GCJ=
17006 whole_archive_flag_spec_GCJ=
17007 thread_safe_flag_spec_GCJ=
17008 hardcode_libdir_flag_spec_GCJ=
17009 hardcode_libdir_flag_spec_ld_GCJ=
17010 hardcode_libdir_separator_GCJ=
17011 hardcode_direct_GCJ=no
17012 hardcode_minus_L_GCJ=no
17013 hardcode_shlibpath_var_GCJ=unsupported
17014 link_all_deplibs_GCJ=unknown
17015 hardcode_automatic_GCJ=no
17016 module_cmds_GCJ=
17017 module_expsym_cmds_GCJ=
17018 always_export_symbols_GCJ=no
17019 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17020 # include_expsyms should be a list of space-separated symbols to be *always*
17021 # included in the symbol list
17022 include_expsyms_GCJ=
17023 # exclude_expsyms can be an extended regexp of symbols to exclude
17024 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17025 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17026 # as well as any symbol that contains `d'.
17027 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17028 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17029 # platforms (ab)use it in PIC code, but their linkers get confused if
17030 # the symbol is explicitly referenced. Since portable code cannot
17031 # rely on this symbol name, it's probably fine to never include it in
17032 # preloaded symbol tables.
17033 extract_expsyms_cmds=
17034 # Just being paranoid about ensuring that cc_basename is set.
17035 for cc_temp in $compiler""; do
17036 case $cc_temp in
17037 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17038 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17039 \-*) ;;
17040 *) break;;
17041 esac
17042done
17043cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17044
17045 case $host_os in
17046 cygwin* | mingw* | pw32*)
17047 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17048 # When not using gcc, we currently assume that we are using
17049 # Microsoft Visual C++.
17050 if test "$GCC" != yes; then
17051 with_gnu_ld=no
17052 fi
17053 ;;
17054 interix*)
17055 # we just hope/assume this is gcc and not c89 (= MSVC++)
17056 with_gnu_ld=yes
17057 ;;
17058 openbsd*)
17059 with_gnu_ld=no
17060 ;;
17061 esac
17062
17063 ld_shlibs_GCJ=yes
17064 if test "$with_gnu_ld" = yes; then
17065 # If archive_cmds runs LD, not CC, wlarc should be empty
17066 wlarc='${wl}'
17067
17068 # Set some defaults for GNU ld with shared library support. These
17069 # are reset later if shared libraries are not supported. Putting them
17070 # here allows them to be overridden if necessary.
17071 runpath_var=LD_RUN_PATH
17072 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17073 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17074 # ancient GNU ld didn't support --whole-archive et. al.
17075 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17076 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17077 else
17078 whole_archive_flag_spec_GCJ=
17079 fi
17080 supports_anon_versioning=no
17081 case `$LD -v 2>/dev/null` in
17082 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17083 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17084 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17085 *\ 2.11.*) ;; # other 2.11 versions
17086 *) supports_anon_versioning=yes ;;
17087 esac
17088
17089 # See if GNU ld supports shared libraries.
17090 case $host_os in
17091 aix3* | aix4* | aix5*)
17092 # On AIX/PPC, the GNU linker is very broken
17093 if test "$host_cpu" != ia64; then
17094 ld_shlibs_GCJ=no
17095 cat <<EOF 1>&2
17096
17097*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17098*** to be unable to reliably create shared libraries on AIX.
17099*** Therefore, libtool is disabling shared libraries support. If you
17100*** really care for shared libraries, you may want to modify your PATH
17101*** so that a non-GNU linker is found, and then restart.
17102
17103EOF
17104 fi
17105 ;;
17106
17107 amigaos*)
17108 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)'
17109 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17110 hardcode_minus_L_GCJ=yes
17111
17112 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17113 # that the semantics of dynamic libraries on AmigaOS, at least up
17114 # to version 4, is to share data among multiple programs linked
17115 # with the same dynamic library. Since this doesn't match the
17116 # behavior of shared libraries on other platforms, we can't use
17117 # them.
17118 ld_shlibs_GCJ=no
17119 ;;
17120
17121 beos*)
17122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17123 allow_undefined_flag_GCJ=unsupported
17124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17125 # support --undefined. This deserves some investigation. FIXME
17126 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17127 else
17128 ld_shlibs_GCJ=no
17129 fi
17130 ;;
17131
17132 cygwin* | mingw* | pw32*)
17133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17134 # as there is no search path for DLLs.
17135 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17136 allow_undefined_flag_GCJ=unsupported
17137 always_export_symbols_GCJ=no
17138 enable_shared_with_static_runtimes_GCJ=yes
ac40fd9e 17139 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d9898ee8 17140
17141 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17142 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17143 # If the export-symbols file already is a .def file (1st line
17144 # is EXPORTS), use it as is; otherwise, prepend...
17145 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17146 cp $export_symbols $output_objdir/$soname.def;
17147 else
17148 echo EXPORTS > $output_objdir/$soname.def;
17149 cat $export_symbols >> $output_objdir/$soname.def;
17150 fi~
17151 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17152 else
17153 ld_shlibs_GCJ=no
17154 fi
17155 ;;
17156
ac40fd9e 17157 interix[3-9]*)
d9898ee8 17158 hardcode_direct_GCJ=no
17159 hardcode_shlibpath_var_GCJ=no
17160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17161 export_dynamic_flag_spec_GCJ='${wl}-E'
17162 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17163 # Instead, shared libraries are loaded at an image base (0x10000000 by
17164 # default) and relocated if they conflict, which is a slow very memory
17165 # consuming and fragmenting process. To avoid this, we pick a random,
17166 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17167 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17168 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'
17169 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'
17170 ;;
17171
ac40fd9e 17172 gnu* | linux* | k*bsd*-gnu)
d9898ee8 17173 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17174 tmp_addflag=
17175 case $cc_basename,$host_cpu in
17176 pgcc*) # Portland Group C compiler
17177 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'
17178 tmp_addflag=' $pic_flag'
17179 ;;
17180 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17181 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'
17182 tmp_addflag=' $pic_flag -Mnomain' ;;
17183 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17184 tmp_addflag=' -i_dynamic' ;;
17185 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17186 tmp_addflag=' -i_dynamic -nofor_main' ;;
17187 ifc* | ifort*) # Intel Fortran compiler
17188 tmp_addflag=' -nofor_main' ;;
17189 esac
ac40fd9e 17190 case `$CC -V 2>&1 | sed 5q` in
17191 *Sun\ C*) # Sun C 5.9
17192 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17193 tmp_sharedflag='-G' ;;
17194 *Sun\ F*) # Sun Fortran 8.3
17195 tmp_sharedflag='-G' ;;
17196 *)
17197 tmp_sharedflag='-shared' ;;
17198 esac
17199 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 17200
17201 if test $supports_anon_versioning = yes; then
17202 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17204 $echo "local: *; };" >> $output_objdir/$libname.ver~
ac40fd9e 17205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
d9898ee8 17206 fi
17207 else
17208 ld_shlibs_GCJ=no
17209 fi
17210 ;;
17211
17212 netbsd*)
17213 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17214 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17215 wlarc=
17216 else
17217 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17218 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17219 fi
17220 ;;
17221
17222 solaris*)
17223 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17224 ld_shlibs_GCJ=no
17225 cat <<EOF 1>&2
17226
17227*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17228*** create shared libraries on Solaris systems. Therefore, libtool
17229*** is disabling shared libraries support. We urge you to upgrade GNU
17230*** binutils to release 2.9.1 or newer. Another option is to modify
17231*** your PATH or compiler configuration so that the native linker is
17232*** used, and then restart.
17233
17234EOF
17235 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17237 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17238 else
17239 ld_shlibs_GCJ=no
17240 fi
17241 ;;
17242
17243 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17244 case `$LD -v 2>&1` in
17245 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17246 ld_shlibs_GCJ=no
17247 cat <<_LT_EOF 1>&2
17248
17249*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17250*** reliably create shared libraries on SCO systems. Therefore, libtool
17251*** is disabling shared libraries support. We urge you to upgrade GNU
17252*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17253*** your PATH or compiler configuration so that the native linker is
17254*** used, and then restart.
17255
17256_LT_EOF
17257 ;;
17258 *)
17259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17260 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17261 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17262 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17263 else
17264 ld_shlibs_GCJ=no
17265 fi
17266 ;;
17267 esac
17268 ;;
17269
17270 sunos4*)
17271 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17272 wlarc=
17273 hardcode_direct_GCJ=yes
17274 hardcode_shlibpath_var_GCJ=no
17275 ;;
17276
17277 *)
17278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17279 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17280 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17281 else
17282 ld_shlibs_GCJ=no
17283 fi
17284 ;;
17285 esac
17286
17287 if test "$ld_shlibs_GCJ" = no; then
17288 runpath_var=
17289 hardcode_libdir_flag_spec_GCJ=
17290 export_dynamic_flag_spec_GCJ=
17291 whole_archive_flag_spec_GCJ=
17292 fi
17293 else
17294 # PORTME fill in a description of your system's linker (not GNU ld)
17295 case $host_os in
17296 aix3*)
17297 allow_undefined_flag_GCJ=unsupported
17298 always_export_symbols_GCJ=yes
17299 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'
17300 # Note: this linker hardcodes the directories in LIBPATH if there
17301 # are no directories specified by -L.
17302 hardcode_minus_L_GCJ=yes
17303 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17304 # Neither direct hardcoding nor static linking is supported with a
17305 # broken collect2.
17306 hardcode_direct_GCJ=unsupported
17307 fi
17308 ;;
17309
17310 aix4* | aix5*)
17311 if test "$host_cpu" = ia64; then
17312 # On IA64, the linker does run time linking by default, so we don't
17313 # have to do anything special.
17314 aix_use_runtimelinking=no
17315 exp_sym_flag='-Bexport'
17316 no_entry_flag=""
17317 else
17318 # If we're using GNU nm, then we don't want the "-C" option.
17319 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17320 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17321 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'
17322 else
17323 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'
17324 fi
17325 aix_use_runtimelinking=no
17326
17327 # Test if we are trying to use run time linking or normal
17328 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17329 # need to do runtime linking.
17330 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17331 for ld_flag in $LDFLAGS; do
17332 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17333 aix_use_runtimelinking=yes
17334 break
17335 fi
17336 done
17337 ;;
17338 esac
17339
17340 exp_sym_flag='-bexport'
17341 no_entry_flag='-bnoentry'
17342 fi
17343
17344 # When large executables or shared objects are built, AIX ld can
17345 # have problems creating the table of contents. If linking a library
17346 # or program results in "error TOC overflow" add -mminimal-toc to
17347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17349
17350 archive_cmds_GCJ=''
17351 hardcode_direct_GCJ=yes
17352 hardcode_libdir_separator_GCJ=':'
17353 link_all_deplibs_GCJ=yes
17354
17355 if test "$GCC" = yes; then
17356 case $host_os in aix4.[012]|aix4.[012].*)
17357 # We only want to do this on AIX 4.2 and lower, the check
17358 # below for broken collect2 doesn't work under 4.3+
17359 collect2name=`${CC} -print-prog-name=collect2`
17360 if test -f "$collect2name" && \
17361 strings "$collect2name" | grep resolve_lib_name >/dev/null
17362 then
17363 # We have reworked collect2
ac40fd9e 17364 :
d9898ee8 17365 else
17366 # We have old collect2
17367 hardcode_direct_GCJ=unsupported
17368 # It fails to find uninstalled libraries when the uninstalled
17369 # path is not listed in the libpath. Setting hardcode_minus_L
17370 # to unsupported forces relinking
17371 hardcode_minus_L_GCJ=yes
17372 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17373 hardcode_libdir_separator_GCJ=
17374 fi
17375 ;;
17376 esac
17377 shared_flag='-shared'
17378 if test "$aix_use_runtimelinking" = yes; then
17379 shared_flag="$shared_flag "'${wl}-G'
17380 fi
17381 else
17382 # not using gcc
17383 if test "$host_cpu" = ia64; then
17384 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17385 # chokes on -Wl,-G. The following line is correct:
17386 shared_flag='-G'
17387 else
17388 if test "$aix_use_runtimelinking" = yes; then
17389 shared_flag='${wl}-G'
17390 else
17391 shared_flag='${wl}-bM:SRE'
17392 fi
17393 fi
17394 fi
17395
17396 # It seems that -bexpall does not export symbols beginning with
17397 # underscore (_), so it is better to generate a list of symbols to export.
17398 always_export_symbols_GCJ=yes
17399 if test "$aix_use_runtimelinking" = yes; then
17400 # Warning - without using the other runtime loading flags (-brtl),
17401 # -berok will link without error, but may produce a broken library.
17402 allow_undefined_flag_GCJ='-berok'
17403 # Determine the default libpath from the value encoded in an empty executable.
17404 cat >conftest.$ac_ext <<_ACEOF
17405/* confdefs.h. */
17406_ACEOF
17407cat confdefs.h >>conftest.$ac_ext
17408cat >>conftest.$ac_ext <<_ACEOF
17409/* end confdefs.h. */
17410
17411int
17412main ()
17413{
17414
17415 ;
17416 return 0;
17417}
17418_ACEOF
17419rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17420if { (ac_try="$ac_link"
17421case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17424esac
17425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_link") 2>conftest.er1
d9898ee8 17427 ac_status=$?
17428 grep -v '^ *+' conftest.er1 >conftest.err
17429 rm -f conftest.er1
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest$ac_exeext &&
17436 $as_test_x conftest$ac_exeext; then
d9898ee8 17437
ac40fd9e 17438lt_aix_libpath_sed='
17439 /Import File Strings/,/^$/ {
17440 /^0/ {
17441 s/^0 *\(.*\)$/\1/
17442 p
17443 }
17444 }'
17445aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17446# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17447if test -z "$aix_libpath"; then
17448 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17449fi
d9898ee8 17450else
17451 echo "$as_me: failed program was:" >&5
17452sed 's/^/| /' conftest.$ac_ext >&5
17453
dd184caf 17454
d9898ee8 17455fi
dd184caf 17456
17457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17458 conftest$ac_exeext conftest.$ac_ext
17459if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17460
17461 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17462 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"
17463 else
17464 if test "$host_cpu" = ia64; then
17465 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17466 allow_undefined_flag_GCJ="-z nodefs"
17467 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"
17468 else
17469 # Determine the default libpath from the value encoded in an empty executable.
17470 cat >conftest.$ac_ext <<_ACEOF
17471/* confdefs.h. */
17472_ACEOF
17473cat confdefs.h >>conftest.$ac_ext
17474cat >>conftest.$ac_ext <<_ACEOF
17475/* end confdefs.h. */
17476
17477int
17478main ()
17479{
17480
17481 ;
17482 return 0;
17483}
17484_ACEOF
17485rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 17486if { (ac_try="$ac_link"
17487case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490esac
17491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_link") 2>conftest.er1
d9898ee8 17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest$ac_exeext &&
17502 $as_test_x conftest$ac_exeext; then
d9898ee8 17503
ac40fd9e 17504lt_aix_libpath_sed='
17505 /Import File Strings/,/^$/ {
17506 /^0/ {
17507 s/^0 *\(.*\)$/\1/
17508 p
17509 }
17510 }'
17511aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 17512# Check for a 64-bit object if we didn't find anything.
ac40fd9e 17513if test -z "$aix_libpath"; then
17514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17515fi
d9898ee8 17516else
17517 echo "$as_me: failed program was:" >&5
17518sed 's/^/| /' conftest.$ac_ext >&5
17519
dd184caf 17520
d9898ee8 17521fi
dd184caf 17522
17523rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 17524 conftest$ac_exeext conftest.$ac_ext
17525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17526
17527 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17528 # Warning - without using the other run time loading flags,
17529 # -berok will link without error, but may produce a broken library.
17530 no_undefined_flag_GCJ=' ${wl}-bernotok'
17531 allow_undefined_flag_GCJ=' ${wl}-berok'
17532 # Exported symbols can be pulled into shared objects from archives
17533 whole_archive_flag_spec_GCJ='$convenience'
17534 archive_cmds_need_lc_GCJ=yes
17535 # This is similar to how AIX traditionally builds its shared libraries.
17536 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'
17537 fi
17538 fi
17539 ;;
17540
17541 amigaos*)
17542 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)'
17543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17544 hardcode_minus_L_GCJ=yes
17545 # see comment about different semantics on the GNU ld section
17546 ld_shlibs_GCJ=no
17547 ;;
17548
17549 bsdi[45]*)
17550 export_dynamic_flag_spec_GCJ=-rdynamic
17551 ;;
17552
17553 cygwin* | mingw* | pw32*)
17554 # When not using gcc, we currently assume that we are using
17555 # Microsoft Visual C++.
17556 # hardcode_libdir_flag_spec is actually meaningless, as there is
17557 # no search path for DLLs.
17558 hardcode_libdir_flag_spec_GCJ=' '
17559 allow_undefined_flag_GCJ=unsupported
17560 # Tell ltmain to make .lib files, not .a files.
17561 libext=lib
17562 # Tell ltmain to make .dll files, not .so files.
17563 shrext_cmds=".dll"
17564 # FIXME: Setting linknames here is a bad hack.
17565 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17566 # The linker will automatically build a .lib file if we build a DLL.
17567 old_archive_From_new_cmds_GCJ='true'
17568 # FIXME: Should let the user specify the lib program.
ac40fd9e 17569 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
d9898ee8 17570 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17571 enable_shared_with_static_runtimes_GCJ=yes
17572 ;;
17573
17574 darwin* | rhapsody*)
17575 case $host_os in
17576 rhapsody* | darwin1.[012])
17577 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17578 ;;
17579 *) # Darwin 1.3 on
17580 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17581 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17582 else
17583 case ${MACOSX_DEPLOYMENT_TARGET} in
17584 10.[012])
17585 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17586 ;;
17587 10.*)
17588 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17589 ;;
17590 esac
17591 fi
17592 ;;
17593 esac
17594 archive_cmds_need_lc_GCJ=no
17595 hardcode_direct_GCJ=no
17596 hardcode_automatic_GCJ=yes
17597 hardcode_shlibpath_var_GCJ=unsupported
17598 whole_archive_flag_spec_GCJ=''
17599 link_all_deplibs_GCJ=yes
17600 if test "$GCC" = yes ; then
17601 output_verbose_link_cmd='echo'
17602 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17603 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17604 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17605 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}'
17606 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}'
17607 else
17608 case $cc_basename in
17609 xlc*)
17610 output_verbose_link_cmd='echo'
ac40fd9e 17611 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
d9898ee8 17612 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17613 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
ac40fd9e 17614 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
d9898ee8 17615 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}'
17616 ;;
17617 *)
17618 ld_shlibs_GCJ=no
17619 ;;
17620 esac
17621 fi
17622 ;;
17623
17624 dgux*)
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17627 hardcode_shlibpath_var_GCJ=no
17628 ;;
17629
17630 freebsd1*)
17631 ld_shlibs_GCJ=no
17632 ;;
17633
17634 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17635 # support. Future versions do this automatically, but an explicit c++rt0.o
17636 # does not break anything, and helps significantly (at the cost of a little
17637 # extra space).
17638 freebsd2.2*)
17639 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17640 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17641 hardcode_direct_GCJ=yes
17642 hardcode_shlibpath_var_GCJ=no
17643 ;;
17644
17645 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17646 freebsd2*)
17647 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17648 hardcode_direct_GCJ=yes
17649 hardcode_minus_L_GCJ=yes
17650 hardcode_shlibpath_var_GCJ=no
17651 ;;
17652
17653 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 17654 freebsd* | dragonfly*)
d9898ee8 17655 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17656 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17657 hardcode_direct_GCJ=yes
17658 hardcode_shlibpath_var_GCJ=no
17659 ;;
17660
17661 hpux9*)
17662 if test "$GCC" = yes; then
17663 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'
17664 else
17665 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'
17666 fi
17667 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17668 hardcode_libdir_separator_GCJ=:
17669 hardcode_direct_GCJ=yes
17670
17671 # hardcode_minus_L: Not really in the search PATH,
17672 # but as the default location of the library.
17673 hardcode_minus_L_GCJ=yes
17674 export_dynamic_flag_spec_GCJ='${wl}-E'
17675 ;;
17676
17677 hpux10*)
17678 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17679 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17680 else
17681 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17682 fi
17683 if test "$with_gnu_ld" = no; then
17684 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17685 hardcode_libdir_separator_GCJ=:
17686
17687 hardcode_direct_GCJ=yes
17688 export_dynamic_flag_spec_GCJ='${wl}-E'
17689
17690 # hardcode_minus_L: Not really in the search PATH,
17691 # but as the default location of the library.
17692 hardcode_minus_L_GCJ=yes
17693 fi
17694 ;;
17695
17696 hpux11*)
17697 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17698 case $host_cpu in
17699 hppa*64*)
17700 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17701 ;;
17702 ia64*)
17703 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17704 ;;
17705 *)
17706 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17707 ;;
17708 esac
17709 else
17710 case $host_cpu in
17711 hppa*64*)
17712 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17713 ;;
17714 ia64*)
17715 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17716 ;;
17717 *)
17718 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17719 ;;
17720 esac
17721 fi
17722 if test "$with_gnu_ld" = no; then
17723 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17724 hardcode_libdir_separator_GCJ=:
17725
17726 case $host_cpu in
17727 hppa*64*|ia64*)
17728 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17729 hardcode_direct_GCJ=no
17730 hardcode_shlibpath_var_GCJ=no
17731 ;;
17732 *)
17733 hardcode_direct_GCJ=yes
17734 export_dynamic_flag_spec_GCJ='${wl}-E'
17735
17736 # hardcode_minus_L: Not really in the search PATH,
17737 # but as the default location of the library.
17738 hardcode_minus_L_GCJ=yes
17739 ;;
17740 esac
17741 fi
17742 ;;
17743
17744 irix5* | irix6* | nonstopux*)
17745 if test "$GCC" = yes; then
17746 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'
17747 else
17748 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'
17749 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17750 fi
17751 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17752 hardcode_libdir_separator_GCJ=:
17753 link_all_deplibs_GCJ=yes
17754 ;;
17755
17756 netbsd*)
17757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17758 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17759 else
17760 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17761 fi
17762 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17763 hardcode_direct_GCJ=yes
17764 hardcode_shlibpath_var_GCJ=no
17765 ;;
17766
17767 newsos6)
17768 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17769 hardcode_direct_GCJ=yes
17770 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17771 hardcode_libdir_separator_GCJ=:
17772 hardcode_shlibpath_var_GCJ=no
17773 ;;
17774
17775 openbsd*)
ac40fd9e 17776 if test -f /usr/libexec/ld.so; then
17777 hardcode_direct_GCJ=yes
17778 hardcode_shlibpath_var_GCJ=no
17779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17780 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17781 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17782 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17783 export_dynamic_flag_spec_GCJ='${wl}-E'
17784 else
17785 case $host_os in
17786 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17787 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17788 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17789 ;;
17790 *)
17791 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17793 ;;
17794 esac
17795 fi
d9898ee8 17796 else
ac40fd9e 17797 ld_shlibs_GCJ=no
d9898ee8 17798 fi
17799 ;;
17800
17801 os2*)
17802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17803 hardcode_minus_L_GCJ=yes
17804 allow_undefined_flag_GCJ=unsupported
17805 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'
17806 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17807 ;;
17808
17809 osf3*)
17810 if test "$GCC" = yes; then
17811 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17812 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'
17813 else
17814 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17815 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'
17816 fi
17817 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17818 hardcode_libdir_separator_GCJ=:
17819 ;;
17820
17821 osf4* | osf5*) # as osf3* with the addition of -msym flag
17822 if test "$GCC" = yes; then
17823 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17824 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'
17825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17826 else
17827 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17828 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'
17829 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~
17830 $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'
17831
17832 # Both c and cxx compiler support -rpath directly
17833 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17834 fi
17835 hardcode_libdir_separator_GCJ=:
17836 ;;
17837
17838 solaris*)
17839 no_undefined_flag_GCJ=' -z text'
17840 if test "$GCC" = yes; then
17841 wlarc='${wl}'
17842 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17844 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17845 else
17846 wlarc=''
17847 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17848 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17850 fi
17851 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17852 hardcode_shlibpath_var_GCJ=no
17853 case $host_os in
17854 solaris2.[0-5] | solaris2.[0-5].*) ;;
17855 *)
ac40fd9e 17856 # The compiler driver will combine and reorder linker options,
17857 # but understands `-z linker_flag'. GCC discards it without `$wl',
17858 # but is careful enough not to reorder.
d9898ee8 17859 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 17860 if test "$GCC" = yes; then
17861 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17862 else
17863 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17864 fi
17865 ;;
d9898ee8 17866 esac
17867 link_all_deplibs_GCJ=yes
17868 ;;
17869
17870 sunos4*)
17871 if test "x$host_vendor" = xsequent; then
17872 # Use $CC to link under sequent, because it throws in some extra .o
17873 # files that make .init and .fini sections work.
17874 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17875 else
17876 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17877 fi
17878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17879 hardcode_direct_GCJ=yes
17880 hardcode_minus_L_GCJ=yes
17881 hardcode_shlibpath_var_GCJ=no
17882 ;;
17883
17884 sysv4)
17885 case $host_vendor in
17886 sni)
17887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17888 hardcode_direct_GCJ=yes # is this really true???
17889 ;;
17890 siemens)
17891 ## LD is ld it makes a PLAMLIB
17892 ## CC just makes a GrossModule.
17893 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17894 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17895 hardcode_direct_GCJ=no
17896 ;;
17897 motorola)
17898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17899 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17900 ;;
17901 esac
17902 runpath_var='LD_RUN_PATH'
17903 hardcode_shlibpath_var_GCJ=no
17904 ;;
17905
17906 sysv4.3*)
17907 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17908 hardcode_shlibpath_var_GCJ=no
17909 export_dynamic_flag_spec_GCJ='-Bexport'
17910 ;;
17911
17912 sysv4*MP*)
17913 if test -d /usr/nec; then
17914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915 hardcode_shlibpath_var_GCJ=no
17916 runpath_var=LD_RUN_PATH
17917 hardcode_runpath_var=yes
17918 ld_shlibs_GCJ=yes
17919 fi
17920 ;;
17921
ac40fd9e 17922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
d9898ee8 17923 no_undefined_flag_GCJ='${wl}-z,text'
17924 archive_cmds_need_lc_GCJ=no
17925 hardcode_shlibpath_var_GCJ=no
17926 runpath_var='LD_RUN_PATH'
17927
17928 if test "$GCC" = yes; then
17929 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17931 else
17932 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17933 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17934 fi
17935 ;;
17936
17937 sysv5* | sco3.2v5* | sco5v6*)
17938 # Note: We can NOT use -z defs as we might desire, because we do not
17939 # link with -lc, and that would cause any symbols used from libc to
17940 # always be unresolved, which means just about no library would
17941 # ever link correctly. If we're not using GNU ld we use -z text
17942 # though, which does catch some bad symbols but isn't as heavy-handed
17943 # as -z defs.
17944 no_undefined_flag_GCJ='${wl}-z,text'
17945 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17946 archive_cmds_need_lc_GCJ=no
17947 hardcode_shlibpath_var_GCJ=no
17948 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17949 hardcode_libdir_separator_GCJ=':'
17950 link_all_deplibs_GCJ=yes
17951 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17952 runpath_var='LD_RUN_PATH'
17953
17954 if test "$GCC" = yes; then
17955 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17956 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17957 else
17958 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17959 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17960 fi
17961 ;;
17962
17963 uts4*)
17964 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17965 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17966 hardcode_shlibpath_var_GCJ=no
17967 ;;
17968
17969 *)
17970 ld_shlibs_GCJ=no
17971 ;;
17972 esac
17973 fi
17974
dd184caf 17975{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17976echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
d9898ee8 17977test "$ld_shlibs_GCJ" = no && can_build_shared=no
17978
17979#
17980# Do we need to explicitly link libc?
17981#
17982case "x$archive_cmds_need_lc_GCJ" in
17983x|xyes)
17984 # Assume -lc should be added
17985 archive_cmds_need_lc_GCJ=yes
17986
17987 if test "$enable_shared" = yes && test "$GCC" = yes; then
17988 case $archive_cmds_GCJ in
17989 *'~'*)
17990 # FIXME: we may have to deal with multi-command sequences.
17991 ;;
17992 '$CC '*)
17993 # Test whether the compiler implicitly links with -lc since on some
17994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17995 # to ld, don't add -lc before -lgcc.
dd184caf 17996 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17997echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
d9898ee8 17998 $rm conftest*
ac40fd9e 17999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 18000
18001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18002 (eval $ac_compile) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } 2>conftest.err; then
18006 soname=conftest
18007 lib=conftest
18008 libobjs=conftest.$ac_objext
18009 deplibs=
18010 wl=$lt_prog_compiler_wl_GCJ
18011 pic_flag=$lt_prog_compiler_pic_GCJ
18012 compiler_flags=-v
18013 linker_flags=-v
18014 verstring=
18015 output_objdir=.
18016 libname=conftest
18017 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18018 allow_undefined_flag_GCJ=
18019 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18020 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18021 ac_status=$?
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); }
18024 then
18025 archive_cmds_need_lc_GCJ=no
18026 else
18027 archive_cmds_need_lc_GCJ=yes
18028 fi
18029 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18030 else
18031 cat conftest.err 1>&5
18032 fi
18033 $rm conftest*
dd184caf 18034 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18035echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
d9898ee8 18036 ;;
18037 esac
18038 fi
18039 ;;
18040esac
18041
dd184caf 18042{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18043echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
d9898ee8 18044library_names_spec=
18045libname_spec='lib$name'
18046soname_spec=
18047shrext_cmds=".so"
18048postinstall_cmds=
18049postuninstall_cmds=
18050finish_cmds=
18051finish_eval=
18052shlibpath_var=
18053shlibpath_overrides_runpath=unknown
18054version_type=none
18055dynamic_linker="$host_os ld.so"
18056sys_lib_dlsearch_path_spec="/lib /usr/lib"
ac40fd9e 18057
d9898ee8 18058need_lib_prefix=unknown
18059hardcode_into_libs=no
18060
18061# when you set need_version to no, make sure it does not cause -set_version
18062# flags to be left without arguments
18063need_version=unknown
18064
18065case $host_os in
18066aix3*)
18067 version_type=linux
18068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18069 shlibpath_var=LIBPATH
18070
18071 # AIX 3 has no versioning support, so we append a major version to the name.
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 ;;
18074
18075aix4* | aix5*)
18076 version_type=linux
18077 need_lib_prefix=no
18078 need_version=no
18079 hardcode_into_libs=yes
18080 if test "$host_cpu" = ia64; then
18081 # AIX 5 supports IA64
18082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18083 shlibpath_var=LD_LIBRARY_PATH
18084 else
18085 # With GCC up to 2.95.x, collect2 would create an import file
18086 # for dependence libraries. The import file would start with
18087 # the line `#! .'. This would cause the generated library to
18088 # depend on `.', always an invalid library. This was fixed in
18089 # development snapshots of GCC prior to 3.0.
18090 case $host_os in
18091 aix4 | aix4.[01] | aix4.[01].*)
18092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18093 echo ' yes '
18094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18095 :
18096 else
18097 can_build_shared=no
18098 fi
18099 ;;
18100 esac
18101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18102 # soname into executable. Probably we can add versioning support to
18103 # collect2, so additional links can be useful in future.
18104 if test "$aix_use_runtimelinking" = yes; then
18105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18106 # instead of lib<name>.a to let people know that these are not
18107 # typical AIX shared libraries.
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 else
18110 # We preserve .a as extension for shared libraries through AIX4.2
18111 # and later when we are not doing run time linking.
18112 library_names_spec='${libname}${release}.a $libname.a'
18113 soname_spec='${libname}${release}${shared_ext}$major'
18114 fi
18115 shlibpath_var=LIBPATH
18116 fi
18117 ;;
18118
18119amigaos*)
18120 library_names_spec='$libname.ixlibrary $libname.a'
18121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18122 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'
18123 ;;
18124
18125beos*)
18126 library_names_spec='${libname}${shared_ext}'
18127 dynamic_linker="$host_os ld.so"
18128 shlibpath_var=LIBRARY_PATH
18129 ;;
18130
18131bsdi[45]*)
18132 version_type=linux
18133 need_version=no
18134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18135 soname_spec='${libname}${release}${shared_ext}$major'
18136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18140 # the default ld.so.conf also contains /usr/contrib/lib and
18141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18142 # libtool to hard-code these into programs
18143 ;;
18144
18145cygwin* | mingw* | pw32*)
18146 version_type=windows
18147 shrext_cmds=".dll"
18148 need_version=no
18149 need_lib_prefix=no
18150
18151 case $GCC,$host_os in
18152 yes,cygwin* | yes,mingw* | yes,pw32*)
18153 library_names_spec='$libname.dll.a'
18154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18155 postinstall_cmds='base_file=`basename \${file}`~
18156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18157 dldir=$destdir/`dirname \$dlpath`~
18158 test -d \$dldir || mkdir -p \$dldir~
18159 $install_prog $dir/$dlname \$dldir/$dlname~
18160 chmod a+x \$dldir/$dlname'
18161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18162 dlpath=$dir/\$dldll~
18163 $rm \$dlpath'
18164 shlibpath_overrides_runpath=yes
18165
18166 case $host_os in
18167 cygwin*)
18168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18170 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18171 ;;
18172 mingw*)
18173 # MinGW DLLs use traditional 'lib' prefix
18174 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18175 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18176 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18177 # It is most probably a Windows format PATH printed by
18178 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18179 # path with ; separators, and with drive letters. We can handle the
18180 # drive letters (cygwin fileutils understands them), so leave them,
18181 # especially as we might pass files found there to a mingw objdump,
18182 # which wouldn't understand a cygwinified path. Ahh.
18183 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18184 else
18185 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18186 fi
18187 ;;
18188 pw32*)
18189 # pw32 DLLs use 'pw' prefix rather than 'lib'
18190 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18191 ;;
18192 esac
18193 ;;
18194
18195 *)
18196 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18197 ;;
18198 esac
18199 dynamic_linker='Win32 ld.exe'
18200 # FIXME: first we should search . and the directory the executable is in
18201 shlibpath_var=PATH
18202 ;;
18203
18204darwin* | rhapsody*)
18205 dynamic_linker="$host_os dyld"
18206 version_type=darwin
18207 need_lib_prefix=no
18208 need_version=no
18209 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18210 soname_spec='${libname}${release}${major}$shared_ext'
18211 shlibpath_overrides_runpath=yes
18212 shlibpath_var=DYLD_LIBRARY_PATH
18213 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 18214
d9898ee8 18215 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18216 ;;
18217
18218dgux*)
18219 version_type=linux
18220 need_lib_prefix=no
18221 need_version=no
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18223 soname_spec='${libname}${release}${shared_ext}$major'
18224 shlibpath_var=LD_LIBRARY_PATH
18225 ;;
18226
18227freebsd1*)
18228 dynamic_linker=no
18229 ;;
18230
d9898ee8 18231freebsd* | dragonfly*)
18232 # DragonFly does not have aout. When/if they implement a new
18233 # versioning mechanism, adjust this.
18234 if test -x /usr/bin/objformat; then
18235 objformat=`/usr/bin/objformat`
18236 else
18237 case $host_os in
18238 freebsd[123]*) objformat=aout ;;
18239 *) objformat=elf ;;
18240 esac
18241 fi
18242 version_type=freebsd-$objformat
18243 case $version_type in
18244 freebsd-elf*)
18245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18246 need_version=no
18247 need_lib_prefix=no
18248 ;;
18249 freebsd-*)
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18251 need_version=yes
18252 ;;
18253 esac
18254 shlibpath_var=LD_LIBRARY_PATH
18255 case $host_os in
18256 freebsd2*)
18257 shlibpath_overrides_runpath=yes
18258 ;;
18259 freebsd3.[01]* | freebsdelf3.[01]*)
18260 shlibpath_overrides_runpath=yes
18261 hardcode_into_libs=yes
18262 ;;
18263 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18264 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18265 shlibpath_overrides_runpath=no
18266 hardcode_into_libs=yes
18267 ;;
ac40fd9e 18268 *) # from 4.6 on, and DragonFly
d9898ee8 18269 shlibpath_overrides_runpath=yes
18270 hardcode_into_libs=yes
18271 ;;
18272 esac
18273 ;;
18274
18275gnu*)
18276 version_type=linux
18277 need_lib_prefix=no
18278 need_version=no
18279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18280 soname_spec='${libname}${release}${shared_ext}$major'
18281 shlibpath_var=LD_LIBRARY_PATH
18282 hardcode_into_libs=yes
18283 ;;
18284
18285hpux9* | hpux10* | hpux11*)
18286 # Give a soname corresponding to the major version so that dld.sl refuses to
18287 # link against other versions.
18288 version_type=sunos
18289 need_lib_prefix=no
18290 need_version=no
18291 case $host_cpu in
18292 ia64*)
18293 shrext_cmds='.so'
18294 hardcode_into_libs=yes
18295 dynamic_linker="$host_os dld.so"
18296 shlibpath_var=LD_LIBRARY_PATH
18297 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299 soname_spec='${libname}${release}${shared_ext}$major'
18300 if test "X$HPUX_IA64_MODE" = X32; then
18301 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18302 else
18303 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18304 fi
18305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18306 ;;
18307 hppa*64*)
18308 shrext_cmds='.sl'
18309 hardcode_into_libs=yes
18310 dynamic_linker="$host_os dld.sl"
18311 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18317 ;;
18318 *)
18319 shrext_cmds='.sl'
18320 dynamic_linker="$host_os dld.sl"
18321 shlibpath_var=SHLIB_PATH
18322 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324 soname_spec='${libname}${release}${shared_ext}$major'
18325 ;;
18326 esac
18327 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18328 postinstall_cmds='chmod 555 $lib'
18329 ;;
18330
ac40fd9e 18331interix[3-9]*)
d9898ee8 18332 version_type=linux
18333 need_lib_prefix=no
18334 need_version=no
18335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18336 soname_spec='${libname}${release}${shared_ext}$major'
18337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18338 shlibpath_var=LD_LIBRARY_PATH
18339 shlibpath_overrides_runpath=no
18340 hardcode_into_libs=yes
18341 ;;
18342
18343irix5* | irix6* | nonstopux*)
18344 case $host_os in
18345 nonstopux*) version_type=nonstopux ;;
18346 *)
18347 if test "$lt_cv_prog_gnu_ld" = yes; then
18348 version_type=linux
18349 else
18350 version_type=irix
18351 fi ;;
18352 esac
18353 need_lib_prefix=no
18354 need_version=no
18355 soname_spec='${libname}${release}${shared_ext}$major'
18356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18357 case $host_os in
18358 irix5* | nonstopux*)
18359 libsuff= shlibsuff=
18360 ;;
18361 *)
18362 case $LD in # libtool.m4 will add one of these switches to LD
18363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18364 libsuff= shlibsuff= libmagic=32-bit;;
18365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18366 libsuff=32 shlibsuff=N32 libmagic=N32;;
18367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18369 *) libsuff= shlibsuff= libmagic=never-match;;
18370 esac
18371 ;;
18372 esac
18373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18374 shlibpath_overrides_runpath=no
18375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18377 hardcode_into_libs=yes
18378 ;;
18379
18380# No shared lib support for Linux oldld, aout, or coff.
18381linux*oldld* | linux*aout* | linux*coff*)
18382 dynamic_linker=no
18383 ;;
18384
18385# This must be Linux ELF.
ac40fd9e 18386linux* | k*bsd*-gnu)
d9898ee8 18387 version_type=linux
18388 need_lib_prefix=no
18389 need_version=no
18390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18391 soname_spec='${libname}${release}${shared_ext}$major'
18392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18393 shlibpath_var=LD_LIBRARY_PATH
18394 shlibpath_overrides_runpath=no
18395 # This implies no fast_install, which is unacceptable.
18396 # Some rework will be needed to allow for fast_install
18397 # before this can be enabled.
18398 hardcode_into_libs=yes
ac40fd9e 18399 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18400 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
d9898ee8 18401
18402 # Append ld.so.conf contents to the search path
18403 if test -f /etc/ld.so.conf; then
ac40fd9e 18404 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18405 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 18406 fi
18407
18408 # We used to test for /lib/ld.so.1 and disable shared libraries on
18409 # powerpc, because MkLinux only supported shared libraries with the
18410 # GNU dynamic linker. Since this was broken with cross compilers,
18411 # most powerpc-linux boxes support dynamic linking these days and
18412 # people can always --disable-shared, the test was removed, and we
18413 # assume the GNU/Linux dynamic linker is in use.
18414 dynamic_linker='GNU/Linux ld.so'
18415 ;;
18416
d9898ee8 18417netbsd*)
18418 version_type=sunos
18419 need_lib_prefix=no
18420 need_version=no
18421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18424 dynamic_linker='NetBSD (a.out) ld.so'
18425 else
18426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18427 soname_spec='${libname}${release}${shared_ext}$major'
18428 dynamic_linker='NetBSD ld.elf_so'
18429 fi
18430 shlibpath_var=LD_LIBRARY_PATH
18431 shlibpath_overrides_runpath=yes
18432 hardcode_into_libs=yes
18433 ;;
18434
18435newsos6)
18436 version_type=linux
18437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18438 shlibpath_var=LD_LIBRARY_PATH
18439 shlibpath_overrides_runpath=yes
18440 ;;
18441
18442nto-qnx*)
18443 version_type=linux
18444 need_lib_prefix=no
18445 need_version=no
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447 soname_spec='${libname}${release}${shared_ext}$major'
18448 shlibpath_var=LD_LIBRARY_PATH
18449 shlibpath_overrides_runpath=yes
18450 ;;
18451
18452openbsd*)
18453 version_type=sunos
18454 sys_lib_dlsearch_path_spec="/usr/lib"
18455 need_lib_prefix=no
18456 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18457 case $host_os in
18458 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18459 *) need_version=no ;;
18460 esac
18461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18462 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18463 shlibpath_var=LD_LIBRARY_PATH
18464 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18465 case $host_os in
18466 openbsd2.[89] | openbsd2.[89].*)
18467 shlibpath_overrides_runpath=no
18468 ;;
18469 *)
18470 shlibpath_overrides_runpath=yes
18471 ;;
18472 esac
18473 else
18474 shlibpath_overrides_runpath=yes
18475 fi
18476 ;;
18477
18478os2*)
18479 libname_spec='$name'
18480 shrext_cmds=".dll"
18481 need_lib_prefix=no
18482 library_names_spec='$libname${shared_ext} $libname.a'
18483 dynamic_linker='OS/2 ld.exe'
18484 shlibpath_var=LIBPATH
18485 ;;
18486
18487osf3* | osf4* | osf5*)
18488 version_type=osf
18489 need_lib_prefix=no
18490 need_version=no
18491 soname_spec='${libname}${release}${shared_ext}$major'
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18493 shlibpath_var=LD_LIBRARY_PATH
18494 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18495 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18496 ;;
18497
ac40fd9e 18498rdos*)
18499 dynamic_linker=no
18500 ;;
18501
d9898ee8 18502solaris*)
18503 version_type=linux
18504 need_lib_prefix=no
18505 need_version=no
18506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18507 soname_spec='${libname}${release}${shared_ext}$major'
18508 shlibpath_var=LD_LIBRARY_PATH
18509 shlibpath_overrides_runpath=yes
18510 hardcode_into_libs=yes
18511 # ldd complains unless libraries are executable
18512 postinstall_cmds='chmod +x $lib'
18513 ;;
18514
18515sunos4*)
18516 version_type=sunos
18517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18518 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18519 shlibpath_var=LD_LIBRARY_PATH
18520 shlibpath_overrides_runpath=yes
18521 if test "$with_gnu_ld" = yes; then
18522 need_lib_prefix=no
18523 fi
18524 need_version=yes
18525 ;;
18526
18527sysv4 | sysv4.3*)
18528 version_type=linux
18529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530 soname_spec='${libname}${release}${shared_ext}$major'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 case $host_vendor in
18533 sni)
18534 shlibpath_overrides_runpath=no
18535 need_lib_prefix=no
18536 export_dynamic_flag_spec='${wl}-Blargedynsym'
18537 runpath_var=LD_RUN_PATH
18538 ;;
18539 siemens)
18540 need_lib_prefix=no
18541 ;;
18542 motorola)
18543 need_lib_prefix=no
18544 need_version=no
18545 shlibpath_overrides_runpath=no
18546 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18547 ;;
18548 esac
18549 ;;
18550
18551sysv4*MP*)
18552 if test -d /usr/nec ;then
18553 version_type=linux
18554 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18555 soname_spec='$libname${shared_ext}.$major'
18556 shlibpath_var=LD_LIBRARY_PATH
18557 fi
18558 ;;
18559
18560sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18561 version_type=freebsd-elf
18562 need_lib_prefix=no
18563 need_version=no
18564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18565 soname_spec='${libname}${release}${shared_ext}$major'
18566 shlibpath_var=LD_LIBRARY_PATH
18567 hardcode_into_libs=yes
18568 if test "$with_gnu_ld" = yes; then
18569 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18570 shlibpath_overrides_runpath=no
18571 else
18572 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18573 shlibpath_overrides_runpath=yes
18574 case $host_os in
18575 sco3.2v5*)
18576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18577 ;;
18578 esac
18579 fi
18580 sys_lib_dlsearch_path_spec='/usr/lib'
18581 ;;
18582
18583uts4*)
18584 version_type=linux
18585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586 soname_spec='${libname}${release}${shared_ext}$major'
18587 shlibpath_var=LD_LIBRARY_PATH
18588 ;;
18589
18590*)
18591 dynamic_linker=no
18592 ;;
18593esac
dd184caf 18594{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18595echo "${ECHO_T}$dynamic_linker" >&6; }
d9898ee8 18596test "$dynamic_linker" = no && can_build_shared=no
18597
18598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18599if test "$GCC" = yes; then
18600 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18601fi
18602
dd184caf 18603{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18604echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
d9898ee8 18605hardcode_action_GCJ=
18606if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18607 test -n "$runpath_var_GCJ" || \
18608 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18609
18610 # We can hardcode non-existant directories.
18611 if test "$hardcode_direct_GCJ" != no &&
18612 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18613 # have to relink, otherwise we might link with an installed library
18614 # when we should be linking with a yet-to-be-installed one
18615 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18616 test "$hardcode_minus_L_GCJ" != no; then
18617 # Linking always hardcodes the temporary library directory.
18618 hardcode_action_GCJ=relink
18619 else
18620 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18621 hardcode_action_GCJ=immediate
18622 fi
18623else
18624 # We cannot hardcode anything, or else we can only hardcode existing
18625 # directories.
18626 hardcode_action_GCJ=unsupported
18627fi
dd184caf 18628{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18629echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
d9898ee8 18630
18631if test "$hardcode_action_GCJ" = relink; then
18632 # Fast installation is not supported
18633 enable_fast_install=no
18634elif test "$shlibpath_overrides_runpath" = yes ||
18635 test "$enable_shared" = no; then
18636 # Fast installation is not necessary
18637 enable_fast_install=needless
18638fi
18639
18640
18641# The else clause should only fire when bootstrapping the
18642# libtool distribution, otherwise you forgot to ship ltmain.sh
18643# with your package, and you will get complaints that there are
18644# no rules to generate ltmain.sh.
18645if test -f "$ltmain"; then
18646 # See if we are running on zsh, and set the options which allow our commands through
18647 # without removal of \ escapes.
18648 if test -n "${ZSH_VERSION+set}" ; then
18649 setopt NO_GLOB_SUBST
18650 fi
18651 # Now quote all the things that may contain metacharacters while being
18652 # careful not to overquote the AC_SUBSTed values. We take copies of the
18653 # variables and quote the copies for generation of the libtool script.
18654 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18655 SED SHELL STRIP \
18656 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18657 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18658 deplibs_check_method reload_flag reload_cmds need_locks \
18659 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18660 lt_cv_sys_global_symbol_to_c_name_address \
18661 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18662 old_postinstall_cmds old_postuninstall_cmds \
18663 compiler_GCJ \
18664 CC_GCJ \
18665 LD_GCJ \
18666 lt_prog_compiler_wl_GCJ \
18667 lt_prog_compiler_pic_GCJ \
18668 lt_prog_compiler_static_GCJ \
18669 lt_prog_compiler_no_builtin_flag_GCJ \
18670 export_dynamic_flag_spec_GCJ \
18671 thread_safe_flag_spec_GCJ \
18672 whole_archive_flag_spec_GCJ \
18673 enable_shared_with_static_runtimes_GCJ \
18674 old_archive_cmds_GCJ \
18675 old_archive_from_new_cmds_GCJ \
18676 predep_objects_GCJ \
18677 postdep_objects_GCJ \
18678 predeps_GCJ \
18679 postdeps_GCJ \
18680 compiler_lib_search_path_GCJ \
18681 archive_cmds_GCJ \
18682 archive_expsym_cmds_GCJ \
18683 postinstall_cmds_GCJ \
18684 postuninstall_cmds_GCJ \
18685 old_archive_from_expsyms_cmds_GCJ \
18686 allow_undefined_flag_GCJ \
18687 no_undefined_flag_GCJ \
18688 export_symbols_cmds_GCJ \
18689 hardcode_libdir_flag_spec_GCJ \
18690 hardcode_libdir_flag_spec_ld_GCJ \
18691 hardcode_libdir_separator_GCJ \
18692 hardcode_automatic_GCJ \
18693 module_cmds_GCJ \
18694 module_expsym_cmds_GCJ \
18695 lt_cv_prog_compiler_c_o_GCJ \
ac40fd9e 18696 fix_srcfile_path_GCJ \
d9898ee8 18697 exclude_expsyms_GCJ \
18698 include_expsyms_GCJ; do
18699
18700 case $var in
18701 old_archive_cmds_GCJ | \
18702 old_archive_from_new_cmds_GCJ | \
18703 archive_cmds_GCJ | \
18704 archive_expsym_cmds_GCJ | \
18705 module_cmds_GCJ | \
18706 module_expsym_cmds_GCJ | \
18707 old_archive_from_expsyms_cmds_GCJ | \
18708 export_symbols_cmds_GCJ | \
18709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18710 postinstall_cmds | postuninstall_cmds | \
18711 old_postinstall_cmds | old_postuninstall_cmds | \
18712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18713 # Double-quote double-evaled strings.
18714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18715 ;;
18716 *)
18717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18718 ;;
18719 esac
18720 done
18721
18722 case $lt_echo in
18723 *'\$0 --fallback-echo"')
18724 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18725 ;;
18726 esac
18727
18728cfgfile="$ofile"
18729
18730 cat <<__EOF__ >> "$cfgfile"
18731# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18732
18733# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18734
18735# Shell to use when invoking shell scripts.
18736SHELL=$lt_SHELL
18737
18738# Whether or not to build shared libraries.
18739build_libtool_libs=$enable_shared
18740
18741# Whether or not to build static libraries.
18742build_old_libs=$enable_static
18743
18744# Whether or not to add -lc for building shared libraries.
18745build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18746
18747# Whether or not to disallow shared libs when runtime libs are static
18748allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18749
18750# Whether or not to optimize for fast installation.
18751fast_install=$enable_fast_install
18752
18753# The host system.
18754host_alias=$host_alias
18755host=$host
18756host_os=$host_os
18757
18758# The build system.
18759build_alias=$build_alias
18760build=$build
18761build_os=$build_os
18762
18763# An echo program that does not interpret backslashes.
18764echo=$lt_echo
18765
18766# The archiver.
18767AR=$lt_AR
18768AR_FLAGS=$lt_AR_FLAGS
18769
18770# A C compiler.
18771LTCC=$lt_LTCC
18772
18773# LTCC compiler flags.
18774LTCFLAGS=$lt_LTCFLAGS
18775
18776# A language-specific compiler.
18777CC=$lt_compiler_GCJ
18778
18779# Is the compiler the GNU C compiler?
18780with_gcc=$GCC_GCJ
18781
d9898ee8 18782# An ERE matcher.
18783EGREP=$lt_EGREP
18784
18785# The linker used to build libraries.
18786LD=$lt_LD_GCJ
18787
18788# Whether we need hard or soft links.
18789LN_S=$lt_LN_S
18790
18791# A BSD-compatible nm program.
18792NM=$lt_NM
18793
18794# A symbol stripping program
18795STRIP=$lt_STRIP
18796
18797# Used to examine libraries when file_magic_cmd begins "file"
18798MAGIC_CMD=$MAGIC_CMD
18799
18800# Used on cygwin: DLL creation program.
18801DLLTOOL="$DLLTOOL"
18802
18803# Used on cygwin: object dumper.
18804OBJDUMP="$OBJDUMP"
18805
18806# Used on cygwin: assembler.
18807AS="$AS"
18808
18809# The name of the directory that contains temporary libtool files.
18810objdir=$objdir
18811
18812# How to create reloadable object files.
18813reload_flag=$lt_reload_flag
18814reload_cmds=$lt_reload_cmds
18815
18816# How to pass a linker flag through the compiler.
18817wl=$lt_lt_prog_compiler_wl_GCJ
18818
18819# Object file suffix (normally "o").
18820objext="$ac_objext"
18821
18822# Old archive suffix (normally "a").
18823libext="$libext"
18824
18825# Shared library suffix (normally ".so").
18826shrext_cmds='$shrext_cmds'
18827
18828# Executable file suffix (normally "").
18829exeext="$exeext"
18830
18831# Additional compiler flags for building library objects.
18832pic_flag=$lt_lt_prog_compiler_pic_GCJ
18833pic_mode=$pic_mode
18834
18835# What is the maximum length of a command?
18836max_cmd_len=$lt_cv_sys_max_cmd_len
18837
18838# Does compiler simultaneously support -c and -o options?
18839compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18840
18841# Must we lock files when doing compilation?
18842need_locks=$lt_need_locks
18843
18844# Do we need the lib prefix for modules?
18845need_lib_prefix=$need_lib_prefix
18846
18847# Do we need a version for libraries?
18848need_version=$need_version
18849
18850# Whether dlopen is supported.
18851dlopen_support=$enable_dlopen
18852
18853# Whether dlopen of programs is supported.
18854dlopen_self=$enable_dlopen_self
18855
18856# Whether dlopen of statically linked programs is supported.
18857dlopen_self_static=$enable_dlopen_self_static
18858
18859# Compiler flag to prevent dynamic linking.
18860link_static_flag=$lt_lt_prog_compiler_static_GCJ
18861
18862# Compiler flag to turn off builtin functions.
18863no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18864
18865# Compiler flag to allow reflexive dlopens.
18866export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18867
18868# Compiler flag to generate shared objects directly from archives.
18869whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18870
18871# Compiler flag to generate thread-safe objects.
18872thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18873
18874# Library versioning type.
18875version_type=$version_type
18876
18877# Format of library name prefix.
18878libname_spec=$lt_libname_spec
18879
18880# List of archive names. First name is the real one, the rest are links.
18881# The last name is the one that the linker finds with -lNAME.
18882library_names_spec=$lt_library_names_spec
18883
18884# The coded name of the library, if different from the real name.
18885soname_spec=$lt_soname_spec
18886
18887# Commands used to build and install an old-style archive.
18888RANLIB=$lt_RANLIB
18889old_archive_cmds=$lt_old_archive_cmds_GCJ
18890old_postinstall_cmds=$lt_old_postinstall_cmds
18891old_postuninstall_cmds=$lt_old_postuninstall_cmds
18892
18893# Create an old-style archive from a shared archive.
18894old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18895
18896# Create a temporary old-style archive to link instead of a shared archive.
18897old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18898
18899# Commands used to build and install a shared archive.
18900archive_cmds=$lt_archive_cmds_GCJ
18901archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18902postinstall_cmds=$lt_postinstall_cmds
18903postuninstall_cmds=$lt_postuninstall_cmds
18904
18905# Commands used to build a loadable module (assumed same as above if empty)
18906module_cmds=$lt_module_cmds_GCJ
18907module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18908
18909# Commands to strip libraries.
18910old_striplib=$lt_old_striplib
18911striplib=$lt_striplib
18912
18913# Dependencies to place before the objects being linked to create a
18914# shared library.
dd184caf 18915predep_objects=$lt_predep_objects_GCJ
d9898ee8 18916
18917# Dependencies to place after the objects being linked to create a
18918# shared library.
dd184caf 18919postdep_objects=$lt_postdep_objects_GCJ
d9898ee8 18920
18921# Dependencies to place before the objects being linked to create a
18922# shared library.
18923predeps=$lt_predeps_GCJ
18924
18925# Dependencies to place after the objects being linked to create a
18926# shared library.
18927postdeps=$lt_postdeps_GCJ
18928
18929# The library search path used internally by the compiler when linking
18930# a shared library.
dd184caf 18931compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
d9898ee8 18932
18933# Method to check whether dependent libraries are shared objects.
18934deplibs_check_method=$lt_deplibs_check_method
18935
18936# Command to use when deplibs_check_method == file_magic.
18937file_magic_cmd=$lt_file_magic_cmd
18938
18939# Flag that allows shared libraries with undefined symbols to be built.
18940allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18941
18942# Flag that forces no undefined symbols.
18943no_undefined_flag=$lt_no_undefined_flag_GCJ
18944
18945# Commands used to finish a libtool library installation in a directory.
18946finish_cmds=$lt_finish_cmds
18947
18948# Same as above, but a single script fragment to be evaled but not shown.
18949finish_eval=$lt_finish_eval
18950
18951# Take the output of nm and produce a listing of raw symbols and C names.
18952global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18953
18954# Transform the output of nm in a proper C declaration
18955global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18956
18957# Transform the output of nm in a C name address pair
18958global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18959
18960# This is the shared library runtime path variable.
18961runpath_var=$runpath_var
18962
18963# This is the shared library path variable.
18964shlibpath_var=$shlibpath_var
18965
18966# Is shlibpath searched before the hard-coded library search path?
18967shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18968
18969# How to hardcode a shared library path into an executable.
18970hardcode_action=$hardcode_action_GCJ
18971
18972# Whether we should hardcode library paths into libraries.
18973hardcode_into_libs=$hardcode_into_libs
18974
18975# Flag to hardcode \$libdir into a binary during linking.
18976# This must work even if \$libdir does not exist.
18977hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18978
18979# If ld is used when linking, flag to hardcode \$libdir into
18980# a binary during linking. This must work even if \$libdir does
18981# not exist.
18982hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18983
18984# Whether we need a single -rpath flag with a separated argument.
18985hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18986
18987# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18988# resulting binary.
18989hardcode_direct=$hardcode_direct_GCJ
18990
18991# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18992# resulting binary.
18993hardcode_minus_L=$hardcode_minus_L_GCJ
18994
18995# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18996# the resulting binary.
18997hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18998
18999# Set to yes if building a shared library automatically hardcodes DIR into the library
19000# and all subsequent libraries and executables linked against it.
19001hardcode_automatic=$hardcode_automatic_GCJ
19002
19003# Variables whose values should be saved in libtool wrapper scripts and
19004# restored at relink time.
19005variables_saved_for_relink="$variables_saved_for_relink"
19006
19007# Whether libtool must link a program against all its dependency libraries.
19008link_all_deplibs=$link_all_deplibs_GCJ
19009
19010# Compile-time system search path for libraries
dd184caf 19011sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19012
19013# Run-time system search path for libraries
19014sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19015
19016# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 19017fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19018
19019# Set to yes if exported symbols are required.
19020always_export_symbols=$always_export_symbols_GCJ
19021
19022# The commands to list exported symbols.
19023export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19024
19025# The commands to extract the exported symbol list from a shared archive.
19026extract_expsyms_cmds=$lt_extract_expsyms_cmds
19027
19028# Symbols that should not be listed in the preloaded symbols.
19029exclude_expsyms=$lt_exclude_expsyms_GCJ
19030
19031# Symbols that must always be exported.
19032include_expsyms=$lt_include_expsyms_GCJ
19033
19034# ### END LIBTOOL TAG CONFIG: $tagname
19035
19036__EOF__
19037
19038
19039else
19040 # If there is no Makefile yet, we rely on a make rule to execute
19041 # `config.status --recheck' to rerun these tests and create the
19042 # libtool script then.
19043 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19044 if test -f "$ltmain_in"; then
19045 test -f Makefile && make "$ltmain"
19046 fi
19047fi
19048
19049
19050ac_ext=c
19051ac_cpp='$CPP $CPPFLAGS'
19052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054ac_compiler_gnu=$ac_cv_c_compiler_gnu
19055
19056CC="$lt_save_CC"
19057
19058 else
19059 tagname=""
19060 fi
19061 ;;
19062
19063 RC)
19064
19065
d9898ee8 19066# Source file extension for RC test sources.
19067ac_ext=rc
19068
19069# Object file extension for compiled RC test sources.
19070objext=o
19071objext_RC=$objext
19072
19073# Code to be used in simple compile tests
ac40fd9e 19074lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
d9898ee8 19075
19076# Code to be used in simple link tests
19077lt_simple_link_test_code="$lt_simple_compile_test_code"
19078
19079# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19080
19081# If no C compiler was specified, use CC.
19082LTCC=${LTCC-"$CC"}
19083
19084# If no C compiler flags were specified, use CFLAGS.
19085LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19086
19087# Allow CC to be a program name with arguments.
19088compiler=$CC
19089
19090
19091# save warnings/boilerplate of simple test code
19092ac_outfile=conftest.$ac_objext
ac40fd9e 19093echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 19094eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19095_lt_compiler_boilerplate=`cat conftest.err`
19096$rm conftest*
19097
19098ac_outfile=conftest.$ac_objext
ac40fd9e 19099echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 19100eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19101_lt_linker_boilerplate=`cat conftest.err`
19102$rm conftest*
19103
19104
19105# Allow CC to be a program name with arguments.
19106lt_save_CC="$CC"
19107CC=${RC-"windres"}
19108compiler=$CC
19109compiler_RC=$CC
19110for cc_temp in $compiler""; do
19111 case $cc_temp in
19112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19114 \-*) ;;
19115 *) break;;
19116 esac
19117done
19118cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19119
19120lt_cv_prog_compiler_c_o_RC=yes
19121
19122# The else clause should only fire when bootstrapping the
19123# libtool distribution, otherwise you forgot to ship ltmain.sh
19124# with your package, and you will get complaints that there are
19125# no rules to generate ltmain.sh.
19126if test -f "$ltmain"; then
19127 # See if we are running on zsh, and set the options which allow our commands through
19128 # without removal of \ escapes.
19129 if test -n "${ZSH_VERSION+set}" ; then
19130 setopt NO_GLOB_SUBST
19131 fi
19132 # Now quote all the things that may contain metacharacters while being
19133 # careful not to overquote the AC_SUBSTed values. We take copies of the
19134 # variables and quote the copies for generation of the libtool script.
19135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19136 SED SHELL STRIP \
19137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19139 deplibs_check_method reload_flag reload_cmds need_locks \
19140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19141 lt_cv_sys_global_symbol_to_c_name_address \
19142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19143 old_postinstall_cmds old_postuninstall_cmds \
19144 compiler_RC \
19145 CC_RC \
19146 LD_RC \
19147 lt_prog_compiler_wl_RC \
19148 lt_prog_compiler_pic_RC \
19149 lt_prog_compiler_static_RC \
19150 lt_prog_compiler_no_builtin_flag_RC \
19151 export_dynamic_flag_spec_RC \
19152 thread_safe_flag_spec_RC \
19153 whole_archive_flag_spec_RC \
19154 enable_shared_with_static_runtimes_RC \
19155 old_archive_cmds_RC \
19156 old_archive_from_new_cmds_RC \
19157 predep_objects_RC \
19158 postdep_objects_RC \
19159 predeps_RC \
19160 postdeps_RC \
19161 compiler_lib_search_path_RC \
19162 archive_cmds_RC \
19163 archive_expsym_cmds_RC \
19164 postinstall_cmds_RC \
19165 postuninstall_cmds_RC \
19166 old_archive_from_expsyms_cmds_RC \
19167 allow_undefined_flag_RC \
19168 no_undefined_flag_RC \
19169 export_symbols_cmds_RC \
19170 hardcode_libdir_flag_spec_RC \
19171 hardcode_libdir_flag_spec_ld_RC \
19172 hardcode_libdir_separator_RC \
19173 hardcode_automatic_RC \
19174 module_cmds_RC \
19175 module_expsym_cmds_RC \
19176 lt_cv_prog_compiler_c_o_RC \
ac40fd9e 19177 fix_srcfile_path_RC \
d9898ee8 19178 exclude_expsyms_RC \
19179 include_expsyms_RC; do
19180
19181 case $var in
19182 old_archive_cmds_RC | \
19183 old_archive_from_new_cmds_RC | \
19184 archive_cmds_RC | \
19185 archive_expsym_cmds_RC | \
19186 module_cmds_RC | \
19187 module_expsym_cmds_RC | \
19188 old_archive_from_expsyms_cmds_RC | \
19189 export_symbols_cmds_RC | \
19190 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19191 postinstall_cmds | postuninstall_cmds | \
19192 old_postinstall_cmds | old_postuninstall_cmds | \
19193 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19194 # Double-quote double-evaled strings.
19195 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19196 ;;
19197 *)
19198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19199 ;;
19200 esac
19201 done
19202
19203 case $lt_echo in
19204 *'\$0 --fallback-echo"')
19205 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19206 ;;
19207 esac
19208
19209cfgfile="$ofile"
19210
19211 cat <<__EOF__ >> "$cfgfile"
19212# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19213
19214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19215
19216# Shell to use when invoking shell scripts.
19217SHELL=$lt_SHELL
19218
19219# Whether or not to build shared libraries.
19220build_libtool_libs=$enable_shared
19221
19222# Whether or not to build static libraries.
19223build_old_libs=$enable_static
19224
19225# Whether or not to add -lc for building shared libraries.
19226build_libtool_need_lc=$archive_cmds_need_lc_RC
19227
19228# Whether or not to disallow shared libs when runtime libs are static
19229allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19230
19231# Whether or not to optimize for fast installation.
19232fast_install=$enable_fast_install
19233
19234# The host system.
19235host_alias=$host_alias
19236host=$host
19237host_os=$host_os
19238
19239# The build system.
19240build_alias=$build_alias
19241build=$build
19242build_os=$build_os
19243
19244# An echo program that does not interpret backslashes.
19245echo=$lt_echo
19246
19247# The archiver.
19248AR=$lt_AR
19249AR_FLAGS=$lt_AR_FLAGS
19250
19251# A C compiler.
19252LTCC=$lt_LTCC
19253
19254# LTCC compiler flags.
19255LTCFLAGS=$lt_LTCFLAGS
19256
19257# A language-specific compiler.
19258CC=$lt_compiler_RC
19259
19260# Is the compiler the GNU C compiler?
19261with_gcc=$GCC_RC
19262
d9898ee8 19263# An ERE matcher.
19264EGREP=$lt_EGREP
19265
19266# The linker used to build libraries.
19267LD=$lt_LD_RC
19268
19269# Whether we need hard or soft links.
19270LN_S=$lt_LN_S
19271
19272# A BSD-compatible nm program.
19273NM=$lt_NM
19274
19275# A symbol stripping program
19276STRIP=$lt_STRIP
19277
19278# Used to examine libraries when file_magic_cmd begins "file"
19279MAGIC_CMD=$MAGIC_CMD
19280
19281# Used on cygwin: DLL creation program.
19282DLLTOOL="$DLLTOOL"
19283
19284# Used on cygwin: object dumper.
19285OBJDUMP="$OBJDUMP"
19286
19287# Used on cygwin: assembler.
19288AS="$AS"
19289
19290# The name of the directory that contains temporary libtool files.
19291objdir=$objdir
19292
19293# How to create reloadable object files.
19294reload_flag=$lt_reload_flag
19295reload_cmds=$lt_reload_cmds
19296
19297# How to pass a linker flag through the compiler.
19298wl=$lt_lt_prog_compiler_wl_RC
19299
19300# Object file suffix (normally "o").
19301objext="$ac_objext"
19302
19303# Old archive suffix (normally "a").
19304libext="$libext"
19305
19306# Shared library suffix (normally ".so").
19307shrext_cmds='$shrext_cmds'
19308
19309# Executable file suffix (normally "").
19310exeext="$exeext"
19311
19312# Additional compiler flags for building library objects.
19313pic_flag=$lt_lt_prog_compiler_pic_RC
19314pic_mode=$pic_mode
19315
19316# What is the maximum length of a command?
19317max_cmd_len=$lt_cv_sys_max_cmd_len
19318
19319# Does compiler simultaneously support -c and -o options?
19320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19321
19322# Must we lock files when doing compilation?
19323need_locks=$lt_need_locks
19324
19325# Do we need the lib prefix for modules?
19326need_lib_prefix=$need_lib_prefix
19327
19328# Do we need a version for libraries?
19329need_version=$need_version
19330
19331# Whether dlopen is supported.
19332dlopen_support=$enable_dlopen
19333
19334# Whether dlopen of programs is supported.
19335dlopen_self=$enable_dlopen_self
19336
19337# Whether dlopen of statically linked programs is supported.
19338dlopen_self_static=$enable_dlopen_self_static
19339
19340# Compiler flag to prevent dynamic linking.
19341link_static_flag=$lt_lt_prog_compiler_static_RC
19342
19343# Compiler flag to turn off builtin functions.
19344no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19345
19346# Compiler flag to allow reflexive dlopens.
19347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19348
19349# Compiler flag to generate shared objects directly from archives.
19350whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19351
19352# Compiler flag to generate thread-safe objects.
19353thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19354
19355# Library versioning type.
19356version_type=$version_type
19357
19358# Format of library name prefix.
19359libname_spec=$lt_libname_spec
19360
19361# List of archive names. First name is the real one, the rest are links.
19362# The last name is the one that the linker finds with -lNAME.
19363library_names_spec=$lt_library_names_spec
19364
19365# The coded name of the library, if different from the real name.
19366soname_spec=$lt_soname_spec
19367
19368# Commands used to build and install an old-style archive.
19369RANLIB=$lt_RANLIB
19370old_archive_cmds=$lt_old_archive_cmds_RC
19371old_postinstall_cmds=$lt_old_postinstall_cmds
19372old_postuninstall_cmds=$lt_old_postuninstall_cmds
19373
19374# Create an old-style archive from a shared archive.
19375old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19376
19377# Create a temporary old-style archive to link instead of a shared archive.
19378old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19379
19380# Commands used to build and install a shared archive.
19381archive_cmds=$lt_archive_cmds_RC
19382archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19383postinstall_cmds=$lt_postinstall_cmds
19384postuninstall_cmds=$lt_postuninstall_cmds
19385
19386# Commands used to build a loadable module (assumed same as above if empty)
19387module_cmds=$lt_module_cmds_RC
19388module_expsym_cmds=$lt_module_expsym_cmds_RC
19389
19390# Commands to strip libraries.
19391old_striplib=$lt_old_striplib
19392striplib=$lt_striplib
19393
19394# Dependencies to place before the objects being linked to create a
19395# shared library.
dd184caf 19396predep_objects=$lt_predep_objects_RC
d9898ee8 19397
19398# Dependencies to place after the objects being linked to create a
19399# shared library.
dd184caf 19400postdep_objects=$lt_postdep_objects_RC
d9898ee8 19401
19402# Dependencies to place before the objects being linked to create a
19403# shared library.
19404predeps=$lt_predeps_RC
19405
19406# Dependencies to place after the objects being linked to create a
19407# shared library.
19408postdeps=$lt_postdeps_RC
19409
19410# The library search path used internally by the compiler when linking
19411# a shared library.
dd184caf 19412compiler_lib_search_path=$lt_compiler_lib_search_path_RC
d9898ee8 19413
19414# Method to check whether dependent libraries are shared objects.
19415deplibs_check_method=$lt_deplibs_check_method
19416
19417# Command to use when deplibs_check_method == file_magic.
19418file_magic_cmd=$lt_file_magic_cmd
19419
19420# Flag that allows shared libraries with undefined symbols to be built.
19421allow_undefined_flag=$lt_allow_undefined_flag_RC
19422
19423# Flag that forces no undefined symbols.
19424no_undefined_flag=$lt_no_undefined_flag_RC
19425
19426# Commands used to finish a libtool library installation in a directory.
19427finish_cmds=$lt_finish_cmds
19428
19429# Same as above, but a single script fragment to be evaled but not shown.
19430finish_eval=$lt_finish_eval
19431
19432# Take the output of nm and produce a listing of raw symbols and C names.
19433global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19434
19435# Transform the output of nm in a proper C declaration
19436global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19437
19438# Transform the output of nm in a C name address pair
19439global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19440
19441# This is the shared library runtime path variable.
19442runpath_var=$runpath_var
19443
19444# This is the shared library path variable.
19445shlibpath_var=$shlibpath_var
19446
19447# Is shlibpath searched before the hard-coded library search path?
19448shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19449
19450# How to hardcode a shared library path into an executable.
19451hardcode_action=$hardcode_action_RC
19452
19453# Whether we should hardcode library paths into libraries.
19454hardcode_into_libs=$hardcode_into_libs
19455
19456# Flag to hardcode \$libdir into a binary during linking.
19457# This must work even if \$libdir does not exist.
19458hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19459
19460# If ld is used when linking, flag to hardcode \$libdir into
19461# a binary during linking. This must work even if \$libdir does
19462# not exist.
19463hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19464
19465# Whether we need a single -rpath flag with a separated argument.
19466hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19467
19468# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19469# resulting binary.
19470hardcode_direct=$hardcode_direct_RC
19471
19472# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19473# resulting binary.
19474hardcode_minus_L=$hardcode_minus_L_RC
19475
19476# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19477# the resulting binary.
19478hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19479
19480# Set to yes if building a shared library automatically hardcodes DIR into the library
19481# and all subsequent libraries and executables linked against it.
19482hardcode_automatic=$hardcode_automatic_RC
19483
19484# Variables whose values should be saved in libtool wrapper scripts and
19485# restored at relink time.
19486variables_saved_for_relink="$variables_saved_for_relink"
19487
19488# Whether libtool must link a program against all its dependency libraries.
19489link_all_deplibs=$link_all_deplibs_RC
19490
19491# Compile-time system search path for libraries
dd184caf 19492sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 19493
19494# Run-time system search path for libraries
19495sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19496
19497# Fix the shell variable \$srcfile for the compiler.
ac40fd9e 19498fix_srcfile_path=$lt_fix_srcfile_path
d9898ee8 19499
19500# Set to yes if exported symbols are required.
19501always_export_symbols=$always_export_symbols_RC
19502
19503# The commands to list exported symbols.
19504export_symbols_cmds=$lt_export_symbols_cmds_RC
19505
19506# The commands to extract the exported symbol list from a shared archive.
19507extract_expsyms_cmds=$lt_extract_expsyms_cmds
19508
19509# Symbols that should not be listed in the preloaded symbols.
19510exclude_expsyms=$lt_exclude_expsyms_RC
19511
19512# Symbols that must always be exported.
19513include_expsyms=$lt_include_expsyms_RC
19514
19515# ### END LIBTOOL TAG CONFIG: $tagname
19516
19517__EOF__
19518
19519
19520else
19521 # If there is no Makefile yet, we rely on a make rule to execute
19522 # `config.status --recheck' to rerun these tests and create the
19523 # libtool script then.
19524 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19525 if test -f "$ltmain_in"; then
19526 test -f Makefile && make "$ltmain"
19527 fi
19528fi
19529
19530
19531ac_ext=c
19532ac_cpp='$CPP $CPPFLAGS'
19533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535ac_compiler_gnu=$ac_cv_c_compiler_gnu
19536
19537CC="$lt_save_CC"
19538
19539 ;;
19540
19541 *)
19542 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19543echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19544 { (exit 1); exit 1; }; }
19545 ;;
19546 esac
19547
19548 # Append the new tag name to the list of available tags.
19549 if test -n "$tagname" ; then
19550 available_tags="$available_tags $tagname"
19551 fi
19552 fi
19553 done
19554 IFS="$lt_save_ifs"
19555
19556 # Now substitute the updated list of available tags.
19557 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19558 mv "${ofile}T" "$ofile"
19559 chmod +x "$ofile"
19560 else
19561 rm -f "${ofile}T"
19562 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19563echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19564 { (exit 1); exit 1; }; }
19565 fi
19566fi
19567
19568
19569
19570# This can be used to rebuild libtool when needed
19571LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19572
19573# Always use our own libtool.
19574LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19575
19576# Prevent multiple expansion
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598if test "$GCC" = yes ; then
19599 CXXFLAGS="$CXXFLAGS -Wall"
19600 CFLAGS="$CFLAGS -Wall"
19601fi
19602
19603
dd184caf 19604{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19605echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
d9898ee8 19606if test "${ac_cv_header_stdc+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19608else
19609 cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615#include <stdlib.h>
19616#include <stdarg.h>
19617#include <string.h>
19618#include <float.h>
19619
19620int
19621main ()
19622{
19623
19624 ;
19625 return 0;
19626}
19627_ACEOF
19628rm -f conftest.$ac_objext
dd184caf 19629if { (ac_try="$ac_compile"
19630case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19636 ac_status=$?
19637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19641 (exit $ac_status); } && {
19642 test -z "$ac_c_werror_flag" ||
19643 test ! -s conftest.err
19644 } && test -s conftest.$ac_objext; then
d9898ee8 19645 ac_cv_header_stdc=yes
19646else
19647 echo "$as_me: failed program was:" >&5
19648sed 's/^/| /' conftest.$ac_ext >&5
19649
dd184caf 19650 ac_cv_header_stdc=no
d9898ee8 19651fi
dd184caf 19652
19653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 19654
19655if test $ac_cv_header_stdc = yes; then
19656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19657 cat >conftest.$ac_ext <<_ACEOF
19658/* confdefs.h. */
19659_ACEOF
19660cat confdefs.h >>conftest.$ac_ext
19661cat >>conftest.$ac_ext <<_ACEOF
19662/* end confdefs.h. */
19663#include <string.h>
19664
19665_ACEOF
19666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19667 $EGREP "memchr" >/dev/null 2>&1; then
19668 :
19669else
19670 ac_cv_header_stdc=no
19671fi
19672rm -f conftest*
19673
19674fi
19675
19676if test $ac_cv_header_stdc = yes; then
19677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19678 cat >conftest.$ac_ext <<_ACEOF
19679/* confdefs.h. */
19680_ACEOF
19681cat confdefs.h >>conftest.$ac_ext
19682cat >>conftest.$ac_ext <<_ACEOF
19683/* end confdefs.h. */
19684#include <stdlib.h>
19685
19686_ACEOF
19687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19688 $EGREP "free" >/dev/null 2>&1; then
19689 :
19690else
19691 ac_cv_header_stdc=no
19692fi
19693rm -f conftest*
19694
19695fi
19696
19697if test $ac_cv_header_stdc = yes; then
19698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19699 if test "$cross_compiling" = yes; then
19700 :
19701else
19702 cat >conftest.$ac_ext <<_ACEOF
19703/* confdefs.h. */
19704_ACEOF
19705cat confdefs.h >>conftest.$ac_ext
19706cat >>conftest.$ac_ext <<_ACEOF
19707/* end confdefs.h. */
19708#include <ctype.h>
dd184caf 19709#include <stdlib.h>
d9898ee8 19710#if ((' ' & 0x0FF) == 0x020)
19711# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19712# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19713#else
19714# define ISLOWER(c) \
19715 (('a' <= (c) && (c) <= 'i') \
19716 || ('j' <= (c) && (c) <= 'r') \
19717 || ('s' <= (c) && (c) <= 'z'))
19718# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19719#endif
19720
19721#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19722int
19723main ()
19724{
19725 int i;
19726 for (i = 0; i < 256; i++)
19727 if (XOR (islower (i), ISLOWER (i))
19728 || toupper (i) != TOUPPER (i))
dd184caf 19729 return 2;
19730 return 0;
d9898ee8 19731}
19732_ACEOF
19733rm -f conftest$ac_exeext
dd184caf 19734if { (ac_try="$ac_link"
19735case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738esac
19739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_link") 2>&5
d9898ee8 19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
dd184caf 19744 { (case "(($ac_try" in
19745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746 *) ac_try_echo=$ac_try;;
19747esac
19748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749 (eval "$ac_try") 2>&5
d9898ee8 19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
19753 :
19754else
19755 echo "$as_me: program exited with status $ac_status" >&5
19756echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759( exit $ac_status )
19760ac_cv_header_stdc=no
19761fi
dd184caf 19762rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 19763fi
dd184caf 19764
19765
d9898ee8 19766fi
19767fi
dd184caf 19768{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19769echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
d9898ee8 19770if test $ac_cv_header_stdc = yes; then
19771
19772cat >>confdefs.h <<\_ACEOF
19773#define STDC_HEADERS 1
19774_ACEOF
19775
19776fi
19777
19778
19779for ac_header in locale.h
19780do
19781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
dd184caf 19782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19786 echo $ECHO_N "(cached) $ECHO_C" >&6
19787fi
dd184caf 19788ac_res=`eval echo '${'$as_ac_Header'}'`
19789 { echo "$as_me:$LINENO: result: $ac_res" >&5
19790echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19791else
19792 # Is the header compilable?
dd184caf 19793{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
19794echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
d9898ee8 19795cat >conftest.$ac_ext <<_ACEOF
19796/* confdefs.h. */
19797_ACEOF
19798cat confdefs.h >>conftest.$ac_ext
19799cat >>conftest.$ac_ext <<_ACEOF
19800/* end confdefs.h. */
19801$ac_includes_default
19802#include <$ac_header>
19803_ACEOF
19804rm -f conftest.$ac_objext
dd184caf 19805if { (ac_try="$ac_compile"
19806case "(($ac_try" in
19807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19808 *) ac_try_echo=$ac_try;;
19809esac
19810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19811 (eval "$ac_compile") 2>conftest.er1
d9898ee8 19812 ac_status=$?
19813 grep -v '^ *+' conftest.er1 >conftest.err
19814 rm -f conftest.er1
19815 cat conftest.err >&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19817 (exit $ac_status); } && {
19818 test -z "$ac_c_werror_flag" ||
19819 test ! -s conftest.err
19820 } && test -s conftest.$ac_objext; then
d9898ee8 19821 ac_header_compiler=yes
19822else
19823 echo "$as_me: failed program was:" >&5
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
dd184caf 19826 ac_header_compiler=no
d9898ee8 19827fi
dd184caf 19828
19829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19830{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19831echo "${ECHO_T}$ac_header_compiler" >&6; }
d9898ee8 19832
19833# Is the header present?
dd184caf 19834{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
19835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
d9898ee8 19836cat >conftest.$ac_ext <<_ACEOF
19837/* confdefs.h. */
19838_ACEOF
19839cat confdefs.h >>conftest.$ac_ext
19840cat >>conftest.$ac_ext <<_ACEOF
19841/* end confdefs.h. */
19842#include <$ac_header>
19843_ACEOF
dd184caf 19844if { (ac_try="$ac_cpp conftest.$ac_ext"
19845case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848esac
19849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
d9898ee8 19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 19856 (exit $ac_status); } >/dev/null && {
19857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19858 test ! -s conftest.err
19859 }; then
d9898ee8 19860 ac_header_preproc=yes
19861else
19862 echo "$as_me: failed program was:" >&5
19863sed 's/^/| /' conftest.$ac_ext >&5
19864
19865 ac_header_preproc=no
19866fi
dd184caf 19867
d9898ee8 19868rm -f conftest.err conftest.$ac_ext
dd184caf 19869{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19870echo "${ECHO_T}$ac_header_preproc" >&6; }
d9898ee8 19871
19872# So? What about this header?
19873case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19874 yes:no: )
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19879 ac_header_preproc=yes
19880 ;;
19881 no:yes:* )
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
dd184caf 19894 ( cat <<\_ASBOX
d9898ee8 19895## -------------------------------------------------- ##
19896## Report this to courier-users@lists.sourceforge.net ##
19897## -------------------------------------------------- ##
19898_ASBOX
dd184caf 19899 ) | sed "s/^/$as_me: WARNING: /" >&2
d9898ee8 19900 ;;
19901esac
dd184caf 19902{ echo "$as_me:$LINENO: checking for $ac_header" >&5
19903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19906else
19907 eval "$as_ac_Header=\$ac_header_preproc"
19908fi
dd184caf 19909ac_res=`eval echo '${'$as_ac_Header'}'`
19910 { echo "$as_me:$LINENO: result: $ac_res" >&5
19911echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 19912
19913fi
19914if test `eval echo '${'$as_ac_Header'}'` = yes; then
19915 cat >>confdefs.h <<_ACEOF
19916#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19917_ACEOF
19918
19919fi
19920
19921done
19922
19923
dd184caf 19924{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19925echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
d9898ee8 19926if test "${ac_cv_c_const+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928else
19929 cat >conftest.$ac_ext <<_ACEOF
19930/* confdefs.h. */
19931_ACEOF
19932cat confdefs.h >>conftest.$ac_ext
19933cat >>conftest.$ac_ext <<_ACEOF
19934/* end confdefs.h. */
19935
19936int
19937main ()
19938{
19939/* FIXME: Include the comments suggested by Paul. */
19940#ifndef __cplusplus
19941 /* Ultrix mips cc rejects this. */
19942 typedef int charset[2];
dd184caf 19943 const charset cs;
d9898ee8 19944 /* SunOS 4.1.1 cc rejects this. */
dd184caf 19945 char const *const *pcpcc;
19946 char **ppc;
d9898ee8 19947 /* NEC SVR4.0.2 mips cc rejects this. */
19948 struct point {int x, y;};
19949 static struct point const zero = {0,0};
19950 /* AIX XL C 1.02.0.0 rejects this.
19951 It does not let you subtract one const X* pointer from another in
19952 an arm of an if-expression whose if-part is not a constant
19953 expression */
19954 const char *g = "string";
dd184caf 19955 pcpcc = &g + (g ? g-g : 0);
d9898ee8 19956 /* HPUX 7.0 cc rejects these. */
dd184caf 19957 ++pcpcc;
19958 ppc = (char**) pcpcc;
19959 pcpcc = (char const *const *) ppc;
d9898ee8 19960 { /* SCO 3.2v4 cc rejects this. */
19961 char *t;
19962 char const *s = 0 ? (char *) 0 : (char const *) 0;
19963
19964 *t++ = 0;
dd184caf 19965 if (s) return 0;
d9898ee8 19966 }
19967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19968 int x[] = {25, 17};
19969 const int *foo = &x[0];
19970 ++foo;
19971 }
19972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19973 typedef const int *iptr;
19974 iptr p = 0;
19975 ++p;
19976 }
19977 { /* AIX XL C 1.02.0.0 rejects this saying
19978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19979 struct s { int j; const int *ap[3]; };
19980 struct s *b; b->j = 5;
19981 }
19982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19983 const int foo = 10;
dd184caf 19984 if (!foo) return 0;
d9898ee8 19985 }
dd184caf 19986 return !cs[0] && !zero.x;
d9898ee8 19987#endif
19988
19989 ;
19990 return 0;
19991}
19992_ACEOF
19993rm -f conftest.$ac_objext
dd184caf 19994if { (ac_try="$ac_compile"
19995case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19998esac
19999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.$ac_objext; then
d9898ee8 20010 ac_cv_c_const=yes
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
dd184caf 20015 ac_cv_c_const=no
d9898ee8 20016fi
dd184caf 20017
20018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20019fi
dd184caf 20020{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20021echo "${ECHO_T}$ac_cv_c_const" >&6; }
d9898ee8 20022if test $ac_cv_c_const = no; then
20023
20024cat >>confdefs.h <<\_ACEOF
20025#define const
20026_ACEOF
20027
20028fi
20029
dd184caf 20030{ echo "$as_me:$LINENO: checking for size_t" >&5
20031echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
d9898ee8 20032if test "${ac_cv_type_size_t+set}" = set; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20034else
20035 cat >conftest.$ac_ext <<_ACEOF
20036/* confdefs.h. */
20037_ACEOF
20038cat confdefs.h >>conftest.$ac_ext
20039cat >>conftest.$ac_ext <<_ACEOF
20040/* end confdefs.h. */
20041$ac_includes_default
dd184caf 20042typedef size_t ac__type_new_;
d9898ee8 20043int
20044main ()
20045{
dd184caf 20046if ((ac__type_new_ *) 0)
d9898ee8 20047 return 0;
dd184caf 20048if (sizeof (ac__type_new_))
d9898ee8 20049 return 0;
20050 ;
20051 return 0;
20052}
20053_ACEOF
20054rm -f conftest.$ac_objext
dd184caf 20055if { (ac_try="$ac_compile"
20056case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059esac
20060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20062 ac_status=$?
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest.$ac_objext; then
d9898ee8 20071 ac_cv_type_size_t=yes
20072else
20073 echo "$as_me: failed program was:" >&5
20074sed 's/^/| /' conftest.$ac_ext >&5
20075
dd184caf 20076 ac_cv_type_size_t=no
d9898ee8 20077fi
dd184caf 20078
20079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20080fi
dd184caf 20081{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20082echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
d9898ee8 20083if test $ac_cv_type_size_t = yes; then
20084 :
20085else
20086
20087cat >>confdefs.h <<_ACEOF
dd184caf 20088#define size_t unsigned int
d9898ee8 20089_ACEOF
20090
20091fi
20092
dd184caf 20093{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20094echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
d9898ee8 20095if test "${ac_cv_struct_tm+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097else
20098 cat >conftest.$ac_ext <<_ACEOF
20099/* confdefs.h. */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h. */
20104#include <sys/types.h>
20105#include <time.h>
20106
20107int
20108main ()
20109{
dd184caf 20110struct tm tm;
20111 int *p = &tm.tm_sec;
20112 return !p;
d9898ee8 20113 ;
20114 return 0;
20115}
20116_ACEOF
20117rm -f conftest.$ac_objext
dd184caf 20118if { (ac_try="$ac_compile"
20119case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20130 (exit $ac_status); } && {
20131 test -z "$ac_c_werror_flag" ||
20132 test ! -s conftest.err
20133 } && test -s conftest.$ac_objext; then
d9898ee8 20134 ac_cv_struct_tm=time.h
20135else
20136 echo "$as_me: failed program was:" >&5
20137sed 's/^/| /' conftest.$ac_ext >&5
20138
dd184caf 20139 ac_cv_struct_tm=sys/time.h
d9898ee8 20140fi
dd184caf 20141
20142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20143fi
dd184caf 20144{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20145echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
d9898ee8 20146if test $ac_cv_struct_tm = sys/time.h; then
20147
20148cat >>confdefs.h <<\_ACEOF
20149#define TM_IN_SYS_TIME 1
20150_ACEOF
20151
20152fi
20153
20154
20155
20156
20157
20158
20159for ac_func in strcasecmp strncasecmp setlocale
20160do
20161as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
dd184caf 20162{ echo "$as_me:$LINENO: checking for $ac_func" >&5
20163echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20164if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
d9898ee8 20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167 cat >conftest.$ac_ext <<_ACEOF
20168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
20173/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20175#define $ac_func innocuous_$ac_func
20176
20177/* System header to define __stub macros and hopefully few prototypes,
20178 which can conflict with char $ac_func (); below.
20179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20180 <limits.h> exists even on freestanding compilers. */
20181
20182#ifdef __STDC__
20183# include <limits.h>
20184#else
20185# include <assert.h>
20186#endif
20187
20188#undef $ac_func
20189
dd184caf 20190/* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
d9898ee8 20193#ifdef __cplusplus
20194extern "C"
d9898ee8 20195#endif
d9898ee8 20196char $ac_func ();
20197/* The GNU C library defines this for functions which it implements
20198 to always fail with ENOSYS. Some functions are actually named
20199 something starting with __ and the normal name is an alias. */
dd184caf 20200#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 20201choke me
d9898ee8 20202#endif
20203
20204int
20205main ()
20206{
dd184caf 20207return $ac_func ();
d9898ee8 20208 ;
20209 return 0;
20210}
20211_ACEOF
20212rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 20213if { (ac_try="$ac_link"
20214case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20217esac
20218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_link") 2>conftest.er1
d9898ee8 20220 ac_status=$?
20221 grep -v '^ *+' conftest.er1 >conftest.err
20222 rm -f conftest.er1
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest$ac_exeext &&
20229 $as_test_x conftest$ac_exeext; then
d9898ee8 20230 eval "$as_ac_var=yes"
20231else
20232 echo "$as_me: failed program was:" >&5
20233sed 's/^/| /' conftest.$ac_ext >&5
20234
dd184caf 20235 eval "$as_ac_var=no"
d9898ee8 20236fi
dd184caf 20237
20238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 20239 conftest$ac_exeext conftest.$ac_ext
20240fi
dd184caf 20241ac_res=`eval echo '${'$as_ac_var'}'`
20242 { echo "$as_me:$LINENO: result: $ac_res" >&5
20243echo "${ECHO_T}$ac_res" >&6; }
d9898ee8 20244if test `eval echo '${'$as_ac_var'}'` = yes; then
20245 cat >>confdefs.h <<_ACEOF
20246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20247_ACEOF
20248
20249fi
20250done
20251
20252
dd184caf 20253{ echo "$as_me:$LINENO: checking how to calculate alternate timezone" >&5
20254echo $ECHO_N "checking how to calculate alternate timezone... $ECHO_C" >&6; }
d9898ee8 20255if test "${librfc822_cv_SYS_TIMEZONE+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258 cat >conftest.$ac_ext <<_ACEOF
20259/* confdefs.h. */
20260_ACEOF
20261cat confdefs.h >>conftest.$ac_ext
20262cat >>conftest.$ac_ext <<_ACEOF
20263/* end confdefs.h. */
20264
20265#include <time.h>
20266
20267int
20268main ()
20269{
20270
20271int main()
20272{
20273time_t t=altzone;
20274
20275 return (0);
20276}
20277
20278 ;
20279 return 0;
20280}
20281_ACEOF
20282rm -f conftest.$ac_objext
dd184caf 20283if { (ac_try="$ac_compile"
20284case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20287esac
20288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest.$ac_objext; then
d9898ee8 20299 librfc822_cv_SYS_TIMEZONE=altzone
20300else
20301 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
dd184caf 20304 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 20305/* confdefs.h. */
20306_ACEOF
20307cat confdefs.h >>conftest.$ac_ext
20308cat >>conftest.$ac_ext <<_ACEOF
20309/* end confdefs.h. */
20310
20311#include <time.h>
20312
20313int
20314main ()
20315{
20316
20317int main()
20318{
20319int n=daylight;
20320
20321 return (0);
20322}
20323
20324 ;
20325 return 0;
20326}
20327_ACEOF
20328rm -f conftest.$ac_objext
dd184caf 20329if { (ac_try="$ac_compile"
20330case "(($ac_try" in
20331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20332 *) ac_try_echo=$ac_try;;
20333esac
20334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20335 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20336 ac_status=$?
20337 grep -v '^ *+' conftest.er1 >conftest.err
20338 rm -f conftest.er1
20339 cat conftest.err >&5
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20341 (exit $ac_status); } && {
20342 test -z "$ac_c_werror_flag" ||
20343 test ! -s conftest.err
20344 } && test -s conftest.$ac_objext; then
d9898ee8 20345 librfc822_cv_SYS_TIMEZONE=daylight
20346else
20347 echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
dd184caf 20350 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 20351/* confdefs.h. */
20352_ACEOF
20353cat confdefs.h >>conftest.$ac_ext
20354cat >>conftest.$ac_ext <<_ACEOF
20355/* end confdefs.h. */
20356
20357#include <time.h>
20358
20359extern struct tm dummy;
20360
20361int
20362main ()
20363{
20364
20365int main()
20366{
20367long n=dummy.tm_gmtoff;
20368
20369 return (0);
20370}
20371
20372 ;
20373 return 0;
20374}
20375_ACEOF
20376rm -f conftest.$ac_objext
dd184caf 20377if { (ac_try="$ac_compile"
20378case "(($ac_try" in
20379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20380 *) ac_try_echo=$ac_try;;
20381esac
20382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20383 (eval "$ac_compile") 2>conftest.er1
d9898ee8 20384 ac_status=$?
20385 grep -v '^ *+' conftest.er1 >conftest.err
20386 rm -f conftest.er1
20387 cat conftest.err >&5
20388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 20389 (exit $ac_status); } && {
20390 test -z "$ac_c_werror_flag" ||
20391 test ! -s conftest.err
20392 } && test -s conftest.$ac_objext; then
d9898ee8 20393 librfc822_cv_SYS_TIMEZONE=tm_gmtoff
20394else
20395 echo "$as_me: failed program was:" >&5
20396sed 's/^/| /' conftest.$ac_ext >&5
20397
dd184caf 20398 librfc822_cv_SYS_TIMEZONE=unknown
d9898ee8 20399
20400fi
dd184caf 20401
20402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20403
20404fi
dd184caf 20405
20406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20407
20408fi
dd184caf 20409
20410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 20411
20412fi
dd184caf 20413{ echo "$as_me:$LINENO: result: $librfc822_cv_SYS_TIMEZONE" >&5
20414echo "${ECHO_T}$librfc822_cv_SYS_TIMEZONE" >&6; }
d9898ee8 20415
20416case $librfc822_cv_SYS_TIMEZONE in
20417tm_gmtoff)
20418
20419cat >>confdefs.h <<_ACEOF
20420#define USE_TIME_GMTOFF 1
20421_ACEOF
20422
20423 ;;
20424altzone)
20425
20426cat >>confdefs.h <<_ACEOF
20427#define USE_TIME_ALTZONE 1
20428_ACEOF
20429
20430 ;;
20431daylight)
20432
20433cat >>confdefs.h <<_ACEOF
20434#define USE_TIME_DAYLIGHT 1
20435_ACEOF
20436
20437 ;;
20438*)
20439 { echo "$as_me:$LINENO: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&5
20440echo "$as_me: WARNING: Cannot figure out how to calculate the alternate timezone, will use GMT" >&2;}
20441 ;;
20442esac
20443
20444if test -d ../unicode
20445then
20446
20447cat >>confdefs.h <<_ACEOF
20448#define HAVE_LIBUNICODE 1
20449_ACEOF
20450
20451fi
20452
dd184caf 20453 if test -d ${srcdir}/../docbook; then
d9898ee8 20454 HAVE_SGML_TRUE=
20455 HAVE_SGML_FALSE='#'
20456else
20457 HAVE_SGML_TRUE='#'
20458 HAVE_SGML_FALSE=
20459fi
20460
20461
dd184caf 20462ac_config_files="$ac_config_files Makefile"
20463
d9898ee8 20464cat >confcache <<\_ACEOF
20465# This file is a shell script that caches the results of configure
20466# tests run on this system so they can be shared between configure
20467# scripts and configure runs, see configure's option --config-cache.
20468# It is not useful on other systems. If it contains results you don't
20469# want to keep, you may remove or edit it.
20470#
20471# config.status only pays attention to the cache file if you give it
20472# the --recheck option to rerun configure.
20473#
20474# `ac_cv_env_foo' variables (set or unset) will be overridden when
20475# loading this file, other *unset* `ac_cv_foo' will be assigned the
20476# following values.
20477
20478_ACEOF
20479
20480# The following way of writing the cache mishandles newlines in values,
20481# but we know of no workaround that is simple, portable, and efficient.
dd184caf 20482# So, we kill variables containing newlines.
d9898ee8 20483# Ultrix sh set writes to stderr and can't be redirected directly,
20484# and sets the high bit in the cache file unless we assign to the vars.
dd184caf 20485(
20486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20487 eval ac_val=\$$ac_var
20488 case $ac_val in #(
20489 *${as_nl}*)
20490 case $ac_var in #(
20491 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20492echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20493 esac
20494 case $ac_var in #(
20495 _ | IFS | as_nl) ;; #(
20496 *) $as_unset $ac_var ;;
20497 esac ;;
20498 esac
20499 done
20500
d9898ee8 20501 (set) 2>&1 |
dd184caf 20502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20503 *${as_nl}ac_space=\ *)
d9898ee8 20504 # `set' does not quote correctly, so add quotes (double-quote
20505 # substitution turns \\\\ into \\, and sed turns \\ into \).
20506 sed -n \
20507 "s/'/'\\\\''/g;
20508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
dd184caf 20509 ;; #(
d9898ee8 20510 *)
20511 # `set' quotes correctly as required by POSIX, so do not add quotes.
dd184caf 20512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 20513 ;;
dd184caf 20514 esac |
20515 sort
20516) |
d9898ee8 20517 sed '
dd184caf 20518 /^ac_cv_env_/b end
d9898ee8 20519 t clear
dd184caf 20520 :clear
d9898ee8 20521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20522 t end
dd184caf 20523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20524 :end' >>confcache
20525if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20526 if test -w "$cache_file"; then
20527 test "x$cache_file" != "x/dev/null" &&
20528 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20529echo "$as_me: updating cache $cache_file" >&6;}
d9898ee8 20530 cat confcache >$cache_file
20531 else
dd184caf 20532 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20533echo "$as_me: not updating unwritable cache $cache_file" >&6;}
d9898ee8 20534 fi
20535fi
20536rm -f confcache
20537
20538test "x$prefix" = xNONE && prefix=$ac_default_prefix
20539# Let make expand exec_prefix.
20540test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20541
d9898ee8 20542DEFS=-DHAVE_CONFIG_H
20543
20544ac_libobjs=
20545ac_ltlibobjs=
20546for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20547 # 1. Remove the extension, and $U if already installed.
dd184caf 20548 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20549 ac_i=`echo "$ac_i" | sed "$ac_script"`
20550 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20551 # will be set to the directory where LIBOBJS objects are built.
20552 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20553 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
d9898ee8 20554done
20555LIBOBJS=$ac_libobjs
20556
20557LTLIBOBJS=$ac_ltlibobjs
20558
20559
20560if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20561 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20562Usually this means the macro was only invoked conditionally." >&5
20563echo "$as_me: error: conditional \"AMDEP\" was never defined.
20564Usually this means the macro was only invoked conditionally." >&2;}
20565 { (exit 1); exit 1; }; }
20566fi
20567if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20568 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20569Usually this means the macro was only invoked conditionally." >&5
20570echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20571Usually this means the macro was only invoked conditionally." >&2;}
20572 { (exit 1); exit 1; }; }
20573fi
20574if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20575 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20576Usually this means the macro was only invoked conditionally." >&5
20577echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20578Usually this means the macro was only invoked conditionally." >&2;}
20579 { (exit 1); exit 1; }; }
20580fi
20581if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
20582 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
20583Usually this means the macro was only invoked conditionally." >&5
20584echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
20585Usually this means the macro was only invoked conditionally." >&2;}
20586 { (exit 1); exit 1; }; }
20587fi
20588
20589: ${CONFIG_STATUS=./config.status}
20590ac_clean_files_save=$ac_clean_files
20591ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20592{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20593echo "$as_me: creating $CONFIG_STATUS" >&6;}
20594cat >$CONFIG_STATUS <<_ACEOF
20595#! $SHELL
20596# Generated by $as_me.
20597# Run this file to recreate the current configuration.
20598# Compiler output produced by configure, useful for debugging
20599# configure, is in config.log if it exists.
20600
20601debug=false
20602ac_cs_recheck=false
20603ac_cs_silent=false
20604SHELL=\${CONFIG_SHELL-$SHELL}
20605_ACEOF
20606
20607cat >>$CONFIG_STATUS <<\_ACEOF
20608## --------------------- ##
20609## M4sh Initialization. ##
20610## --------------------- ##
20611
dd184caf 20612# Be more Bourne compatible
20613DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 20614if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20615 emulate sh
20616 NULLCMD=:
20617 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20618 # is contrary to our usage. Disable this feature.
20619 alias -g '${1+"$@"}'='"$@"'
dd184caf 20620 setopt NO_GLOB_SUBST
20621else
20622 case `(set -o) 2>/dev/null` in
20623 *posix*) set -o posix ;;
20624esac
20625
20626fi
20627
20628
20629
20630
20631# PATH needs CR
20632# Avoid depending upon Character Ranges.
20633as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20634as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20635as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20636as_cr_digits='0123456789'
20637as_cr_alnum=$as_cr_Letters$as_cr_digits
20638
20639# The user is always right.
20640if test "${PATH_SEPARATOR+set}" != set; then
20641 echo "#! /bin/sh" >conf$$.sh
20642 echo "exit 0" >>conf$$.sh
20643 chmod +x conf$$.sh
20644 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20645 PATH_SEPARATOR=';'
20646 else
20647 PATH_SEPARATOR=:
20648 fi
20649 rm -f conf$$.sh
d9898ee8 20650fi
d9898ee8 20651
20652# Support unset when possible.
20653if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20654 as_unset=unset
20655else
20656 as_unset=false
20657fi
20658
20659
dd184caf 20660# IFS
20661# We need space, tab and new line, in precisely that order. Quoting is
20662# there to prevent editors from complaining about space-tab.
20663# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20664# splitting by setting IFS to empty value.)
20665as_nl='
20666'
20667IFS=" "" $as_nl"
d9898ee8 20668
dd184caf 20669# Find who we are. Look in the path if we contain no directory separator.
20670case $0 in
20671 *[\\/]* ) as_myself=$0 ;;
20672 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20673for as_dir in $PATH
20674do
20675 IFS=$as_save_IFS
20676 test -z "$as_dir" && as_dir=.
20677 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20678done
20679IFS=$as_save_IFS
20680
20681 ;;
20682esac
20683# We did not find ourselves, most probably we were run as `sh COMMAND'
20684# in which case we are not to be found in the path.
20685if test "x$as_myself" = x; then
20686 as_myself=$0
20687fi
20688if test ! -f "$as_myself"; then
20689 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20690 { (exit 1); exit 1; }
20691fi
20692
20693# Work around bugs in pre-3.0 UWIN ksh.
20694for as_var in ENV MAIL MAILPATH
20695do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20696done
20697PS1='$ '
20698PS2='> '
20699PS4='+ '
20700
20701# NLS nuisances.
20702for as_var in \
20703 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
d9898ee8 20704 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20705 LC_TELEPHONE LC_TIME
20706do
20707 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20708 eval $as_var=C; export $as_var
20709 else
dd184caf 20710 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
d9898ee8 20711 fi
20712done
20713
20714# Required to use basename.
dd184caf 20715if expr a : '\(a\)' >/dev/null 2>&1 &&
20716 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20717 as_expr=expr
20718else
20719 as_expr=false
20720fi
20721
dd184caf 20722if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 20723 as_basename=basename
20724else
20725 as_basename=false
20726fi
20727
20728
20729# Name of the executable.
dd184caf 20730as_me=`$as_basename -- "$0" ||
d9898ee8 20731$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20732 X"$0" : 'X\(//\)$' \| \
dd184caf 20733 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 20734echo X/"$0" |
dd184caf 20735 sed '/^.*\/\([^/][^/]*\)\/*$/{
20736 s//\1/
20737 q
20738 }
20739 /^X\/\(\/\/\)$/{
20740 s//\1/
20741 q
20742 }
20743 /^X\/\(\/\).*/{
20744 s//\1/
20745 q
20746 }
20747 s/.*/./; q'`
d9898ee8 20748
dd184caf 20749# CDPATH.
20750$as_unset CDPATH
d9898ee8 20751
d9898ee8 20752
20753
20754 as_lineno_1=$LINENO
20755 as_lineno_2=$LINENO
d9898ee8 20756 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 20757 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 20758
20759 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20760 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 20761 # line-number line after each line using $LINENO; the second 'sed'
20762 # does the real work. The second script uses 'N' to pair each
20763 # line-number line with the line containing $LINENO, and appends
20764 # trailing '-' during substitution so that $LINENO is not a special
20765 # case at line end.
d9898ee8 20766 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 20767 # scripts with optimization help from Paolo Bonzini. Blame Lee
20768 # E. McMahon (1931-1989) for sed's syntax. :-)
20769 sed -n '
20770 p
20771 /[$]LINENO/=
20772 ' <$as_myself |
d9898ee8 20773 sed '
dd184caf 20774 s/[$]LINENO.*/&-/
20775 t lineno
20776 b
20777 :lineno
d9898ee8 20778 N
dd184caf 20779 :loop
20780 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 20781 t loop
dd184caf 20782 s/-\n.*//
d9898ee8 20783 ' >$as_me.lineno &&
dd184caf 20784 chmod +x "$as_me.lineno" ||
20785 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 20786 { (exit 1); exit 1; }; }
20787
20788 # Don't try to exec as it changes $[0], causing all sort of problems
20789 # (the dirname of $[0] is not the place where we might find the
dd184caf 20790 # original and so on. Autoconf is especially sensitive to this).
20791 . "./$as_me.lineno"
d9898ee8 20792 # Exit status is that of the last command.
20793 exit
20794}
20795
20796
dd184caf 20797if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20798 as_dirname=dirname
20799else
20800 as_dirname=false
20801fi
20802
20803ECHO_C= ECHO_N= ECHO_T=
20804case `echo -n x` in
20805-n*)
20806 case `echo 'x\c'` in
20807 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20808 *) ECHO_C='\c';;
20809 esac;;
20810*)
20811 ECHO_N='-n';;
d9898ee8 20812esac
20813
dd184caf 20814if expr a : '\(a\)' >/dev/null 2>&1 &&
20815 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 20816 as_expr=expr
20817else
20818 as_expr=false
20819fi
20820
20821rm -f conf$$ conf$$.exe conf$$.file
dd184caf 20822if test -d conf$$.dir; then
20823 rm -f conf$$.dir/conf$$.file
20824else
20825 rm -f conf$$.dir
20826 mkdir conf$$.dir
20827fi
d9898ee8 20828echo >conf$$.file
20829if ln -s conf$$.file conf$$ 2>/dev/null; then
dd184caf 20830 as_ln_s='ln -s'
20831 # ... but there are two gotchas:
20832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20834 # In both cases, we have to default to `cp -p'.
20835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d9898ee8 20836 as_ln_s='cp -p'
d9898ee8 20837elif ln conf$$.file conf$$ 2>/dev/null; then
20838 as_ln_s=ln
20839else
20840 as_ln_s='cp -p'
20841fi
dd184caf 20842rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20843rmdir conf$$.dir 2>/dev/null
d9898ee8 20844
20845if mkdir -p . 2>/dev/null; then
20846 as_mkdir_p=:
20847else
20848 test -d ./-p && rmdir ./-p
20849 as_mkdir_p=false
20850fi
20851
dd184caf 20852if test -x / >/dev/null 2>&1; then
20853 as_test_x='test -x'
20854else
20855 if ls -dL / >/dev/null 2>&1; then
20856 as_ls_L_option=L
20857 else
20858 as_ls_L_option=
20859 fi
20860 as_test_x='
20861 eval sh -c '\''
20862 if test -d "$1"; then
20863 test -d "$1/.";
20864 else
20865 case $1 in
20866 -*)set "./$1";;
20867 esac;
20868 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20869 ???[sx]*):;;*)false;;esac;fi
20870 '\'' sh
20871 '
20872fi
20873as_executable_p=$as_test_x
d9898ee8 20874
20875# Sed expression to map a string onto a valid CPP name.
20876as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20877
20878# Sed expression to map a string onto a valid variable name.
20879as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20880
20881
d9898ee8 20882exec 6>&1
20883
dd184caf 20884# Save the log message, to keep $[0] and so on meaningful, and to
d9898ee8 20885# report actual input values of CONFIG_FILES etc. instead of their
dd184caf 20886# values after options handling.
20887ac_log="
d9898ee8 20888This file was extended by rfc822lib $as_me 0.12, which was
dd184caf 20889generated by GNU Autoconf 2.61. Invocation command line was
d9898ee8 20890
20891 CONFIG_FILES = $CONFIG_FILES
20892 CONFIG_HEADERS = $CONFIG_HEADERS
20893 CONFIG_LINKS = $CONFIG_LINKS
20894 CONFIG_COMMANDS = $CONFIG_COMMANDS
20895 $ $0 $@
20896
dd184caf 20897on `(hostname || uname -n) 2>/dev/null | sed 1q`
20898"
20899
d9898ee8 20900_ACEOF
20901
dd184caf 20902cat >>$CONFIG_STATUS <<_ACEOF
d9898ee8 20903# Files that config.status was made for.
dd184caf 20904config_files="$ac_config_files"
20905config_headers="$ac_config_headers"
20906config_commands="$ac_config_commands"
d9898ee8 20907
dd184caf 20908_ACEOF
d9898ee8 20909
20910cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 20911ac_cs_usage="\
20912\`$as_me' instantiates files from templates according to the
20913current configuration.
20914
20915Usage: $0 [OPTIONS] [FILE]...
20916
20917 -h, --help print this help, then exit
dd184caf 20918 -V, --version print version number and configuration settings, then exit
d9898ee8 20919 -q, --quiet do not print progress messages
20920 -d, --debug don't remove temporary files
20921 --recheck update $as_me by reconfiguring in the same conditions
20922 --file=FILE[:TEMPLATE]
20923 instantiate the configuration file FILE
20924 --header=FILE[:TEMPLATE]
20925 instantiate the configuration header FILE
20926
20927Configuration files:
20928$config_files
20929
20930Configuration headers:
20931$config_headers
20932
20933Configuration commands:
20934$config_commands
20935
20936Report bugs to <bug-autoconf@gnu.org>."
d9898ee8 20937
dd184caf 20938_ACEOF
d9898ee8 20939cat >>$CONFIG_STATUS <<_ACEOF
20940ac_cs_version="\\
20941rfc822lib config.status 0.12
dd184caf 20942configured by $0, generated by GNU Autoconf 2.61,
20943 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 20944
dd184caf 20945Copyright (C) 2006 Free Software Foundation, Inc.
d9898ee8 20946This config.status script is free software; the Free Software Foundation
20947gives unlimited permission to copy, distribute and modify it."
dd184caf 20948
20949ac_pwd='$ac_pwd'
20950srcdir='$srcdir'
20951INSTALL='$INSTALL'
20952MKDIR_P='$MKDIR_P'
d9898ee8 20953_ACEOF
20954
20955cat >>$CONFIG_STATUS <<\_ACEOF
20956# If no file are specified by the user, then we need to provide default
20957# value. By we need to know if files were specified by the user.
20958ac_need_defaults=:
20959while test $# != 0
20960do
20961 case $1 in
20962 --*=*)
dd184caf 20963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20964 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
d9898ee8 20965 ac_shift=:
20966 ;;
dd184caf 20967 *)
d9898ee8 20968 ac_option=$1
20969 ac_optarg=$2
20970 ac_shift=shift
20971 ;;
d9898ee8 20972 esac
20973
20974 case $ac_option in
20975 # Handling of the options.
d9898ee8 20976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20977 ac_cs_recheck=: ;;
dd184caf 20978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20979 echo "$ac_cs_version"; exit ;;
20980 --debug | --debu | --deb | --de | --d | -d )
d9898ee8 20981 debug=: ;;
20982 --file | --fil | --fi | --f )
20983 $ac_shift
20984 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20985 ac_need_defaults=false;;
20986 --header | --heade | --head | --hea )
20987 $ac_shift
20988 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20989 ac_need_defaults=false;;
dd184caf 20990 --he | --h)
20991 # Conflict between --help and --header
20992 { echo "$as_me: error: ambiguous option: $1
20993Try \`$0 --help' for more information." >&2
20994 { (exit 1); exit 1; }; };;
20995 --help | --hel | -h )
20996 echo "$ac_cs_usage"; exit ;;
d9898ee8 20997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20998 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20999 ac_cs_silent=: ;;
21000
21001 # This is an error.
dd184caf 21002 -*) { echo "$as_me: error: unrecognized option: $1
21003Try \`$0 --help' for more information." >&2
d9898ee8 21004 { (exit 1); exit 1; }; } ;;
21005
dd184caf 21006 *) ac_config_targets="$ac_config_targets $1"
21007 ac_need_defaults=false ;;
d9898ee8 21008
21009 esac
21010 shift
21011done
21012
21013ac_configure_extra_args=
21014
21015if $ac_cs_silent; then
21016 exec 6>/dev/null
21017 ac_configure_extra_args="$ac_configure_extra_args --silent"
21018fi
21019
21020_ACEOF
21021cat >>$CONFIG_STATUS <<_ACEOF
21022if \$ac_cs_recheck; then
dd184caf 21023 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21024 CONFIG_SHELL=$SHELL
21025 export CONFIG_SHELL
21026 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9898ee8 21027fi
21028
21029_ACEOF
dd184caf 21030cat >>$CONFIG_STATUS <<\_ACEOF
21031exec 5>>config.log
21032{
21033 echo
21034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21035## Running $as_me. ##
21036_ASBOX
21037 echo "$ac_log"
21038} >&5
d9898ee8 21039
dd184caf 21040_ACEOF
d9898ee8 21041cat >>$CONFIG_STATUS <<_ACEOF
21042#
dd184caf 21043# INIT-COMMANDS
d9898ee8 21044#
d9898ee8 21045AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21046
21047_ACEOF
21048
d9898ee8 21049cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21050
21051# Handling of arguments.
d9898ee8 21052for ac_config_target in $ac_config_targets
21053do
dd184caf 21054 case $ac_config_target in
21055 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21056 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21057 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21058
d9898ee8 21059 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21060echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21061 { (exit 1); exit 1; }; };;
21062 esac
21063done
21064
dd184caf 21065
d9898ee8 21066# If the user did not use the arguments to specify the items to instantiate,
21067# then the envvar interface is used. Set only those that are not.
21068# We use the long form for the default assignment because of an extremely
21069# bizarre bug on SunOS 4.1.3.
21070if $ac_need_defaults; then
21071 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21072 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21073 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21074fi
21075
21076# Have a temporary directory for convenience. Make it in the build tree
dd184caf 21077# simply because there is no reason against having it here, and in addition,
d9898ee8 21078# creating and moving files from /tmp can sometimes cause problems.
dd184caf 21079# Hook for its removal unless debugging.
21080# Note that there is a small window in which the directory will not be cleaned:
21081# after its creation but before its name has been assigned to `$tmp'.
d9898ee8 21082$debug ||
21083{
dd184caf 21084 tmp=
21085 trap 'exit_status=$?
21086 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21087' 0
d9898ee8 21088 trap '{ (exit 1); exit 1; }' 1 2 13 15
21089}
d9898ee8 21090# Create a (secure) tmp directory for tmp files.
21091
21092{
dd184caf 21093 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d9898ee8 21094 test -n "$tmp" && test -d "$tmp"
21095} ||
21096{
dd184caf 21097 tmp=./conf$$-$RANDOM
21098 (umask 077 && mkdir "$tmp")
d9898ee8 21099} ||
21100{
21101 echo "$me: cannot create a temporary directory in ." >&2
21102 { (exit 1); exit 1; }
21103}
21104
d9898ee8 21105#
dd184caf 21106# Set up the sed scripts for CONFIG_FILES section.
d9898ee8 21107#
21108
21109# No need to generate the scripts if there are no CONFIG_FILES.
21110# This happens for instance when ./config.status config.h
dd184caf 21111if test -n "$CONFIG_FILES"; then
d9898ee8 21112
21113_ACEOF
21114
dd184caf 21115
21116
21117ac_delim='%!_!# '
21118for ac_last_try in false false false false false :; do
21119 cat >conf$$subs.sed <<_ACEOF
21120SHELL!$SHELL$ac_delim
21121PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21122PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21123PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21124PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21125PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21126PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21127exec_prefix!$exec_prefix$ac_delim
21128prefix!$prefix$ac_delim
21129program_transform_name!$program_transform_name$ac_delim
21130bindir!$bindir$ac_delim
21131sbindir!$sbindir$ac_delim
21132libexecdir!$libexecdir$ac_delim
21133datarootdir!$datarootdir$ac_delim
21134datadir!$datadir$ac_delim
21135sysconfdir!$sysconfdir$ac_delim
21136sharedstatedir!$sharedstatedir$ac_delim
21137localstatedir!$localstatedir$ac_delim
21138includedir!$includedir$ac_delim
21139oldincludedir!$oldincludedir$ac_delim
21140docdir!$docdir$ac_delim
21141infodir!$infodir$ac_delim
21142htmldir!$htmldir$ac_delim
21143dvidir!$dvidir$ac_delim
21144pdfdir!$pdfdir$ac_delim
21145psdir!$psdir$ac_delim
21146libdir!$libdir$ac_delim
21147localedir!$localedir$ac_delim
21148mandir!$mandir$ac_delim
21149DEFS!$DEFS$ac_delim
21150ECHO_C!$ECHO_C$ac_delim
21151ECHO_N!$ECHO_N$ac_delim
21152ECHO_T!$ECHO_T$ac_delim
21153LIBS!$LIBS$ac_delim
21154build_alias!$build_alias$ac_delim
21155host_alias!$host_alias$ac_delim
21156target_alias!$target_alias$ac_delim
21157INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21158INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21159INSTALL_DATA!$INSTALL_DATA$ac_delim
21160am__isrc!$am__isrc$ac_delim
21161CYGPATH_W!$CYGPATH_W$ac_delim
21162PACKAGE!$PACKAGE$ac_delim
21163VERSION!$VERSION$ac_delim
21164ACLOCAL!$ACLOCAL$ac_delim
21165AUTOCONF!$AUTOCONF$ac_delim
21166AUTOMAKE!$AUTOMAKE$ac_delim
21167AUTOHEADER!$AUTOHEADER$ac_delim
21168MAKEINFO!$MAKEINFO$ac_delim
21169install_sh!$install_sh$ac_delim
21170STRIP!$STRIP$ac_delim
21171INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21172mkdir_p!$mkdir_p$ac_delim
21173AWK!$AWK$ac_delim
21174SET_MAKE!$SET_MAKE$ac_delim
21175am__leading_dot!$am__leading_dot$ac_delim
21176AMTAR!$AMTAR$ac_delim
21177am__tar!$am__tar$ac_delim
21178am__untar!$am__untar$ac_delim
21179CC!$CC$ac_delim
21180CFLAGS!$CFLAGS$ac_delim
21181LDFLAGS!$LDFLAGS$ac_delim
21182CPPFLAGS!$CPPFLAGS$ac_delim
21183ac_ct_CC!$ac_ct_CC$ac_delim
21184EXEEXT!$EXEEXT$ac_delim
21185OBJEXT!$OBJEXT$ac_delim
21186DEPDIR!$DEPDIR$ac_delim
21187am__include!$am__include$ac_delim
21188am__quote!$am__quote$ac_delim
21189AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21190AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21191AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21192CCDEPMODE!$CCDEPMODE$ac_delim
21193am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21194am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21195CPP!$CPP$ac_delim
21196GREP!$GREP$ac_delim
21197EGREP!$EGREP$ac_delim
21198build!$build$ac_delim
21199build_cpu!$build_cpu$ac_delim
21200build_vendor!$build_vendor$ac_delim
21201build_os!$build_os$ac_delim
21202host!$host$ac_delim
21203host_cpu!$host_cpu$ac_delim
21204host_vendor!$host_vendor$ac_delim
21205host_os!$host_os$ac_delim
21206SED!$SED$ac_delim
21207LN_S!$LN_S$ac_delim
21208ECHO!$ECHO$ac_delim
21209AR!$AR$ac_delim
21210RANLIB!$RANLIB$ac_delim
21211CXX!$CXX$ac_delim
21212CXXFLAGS!$CXXFLAGS$ac_delim
21213ac_ct_CXX!$ac_ct_CXX$ac_delim
21214CXXDEPMODE!$CXXDEPMODE$ac_delim
21215am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21216am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21217_ACEOF
21218
21219 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21220 break
21221 elif $ac_last_try; then
21222 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21223echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21224 { (exit 1); exit 1; }; }
21225 else
21226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
d9898ee8 21227 fi
dd184caf 21228done
21229
21230ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21231if test -n "$ac_eof"; then
21232 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21233 ac_eof=`expr $ac_eof + 1`
21234fi
21235
21236cat >>$CONFIG_STATUS <<_ACEOF
21237cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21238/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21239_ACEOF
21240sed '
21241s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21242s/^/s,@/; s/!/@,|#_!!_#|/
21243:n
21244t n
21245s/'"$ac_delim"'$/,g/; t
21246s/$/\\/; p
21247N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21248' >>$CONFIG_STATUS <conf$$subs.sed
21249rm -f conf$$subs.sed
21250cat >>$CONFIG_STATUS <<_ACEOF
21251CEOF$ac_eof
21252_ACEOF
d9898ee8 21253
dd184caf 21254
21255ac_delim='%!_!# '
21256for ac_last_try in false false false false false :; do
21257 cat >conf$$subs.sed <<_ACEOF
21258CXXCPP!$CXXCPP$ac_delim
21259F77!$F77$ac_delim
21260FFLAGS!$FFLAGS$ac_delim
21261ac_ct_F77!$ac_ct_F77$ac_delim
21262LIBTOOL!$LIBTOOL$ac_delim
21263HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
21264HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
21265LIBOBJS!$LIBOBJS$ac_delim
21266LTLIBOBJS!$LTLIBOBJS$ac_delim
d9898ee8 21267_ACEOF
dd184caf 21268
21269 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
21270 break
21271 elif $ac_last_try; then
21272 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21273echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21274 { (exit 1); exit 1; }; }
21275 else
21276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21277 fi
21278done
21279
21280ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21281if test -n "$ac_eof"; then
21282 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21283 ac_eof=`expr $ac_eof + 1`
21284fi
21285
21286cat >>$CONFIG_STATUS <<_ACEOF
21287cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21288/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21289_ACEOF
21290sed '
21291s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21292s/^/s,@/; s/!/@,|#_!!_#|/
21293:n
21294t n
21295s/'"$ac_delim"'$/,g/; t
21296s/$/\\/; p
21297N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21298' >>$CONFIG_STATUS <conf$$subs.sed
21299rm -f conf$$subs.sed
21300cat >>$CONFIG_STATUS <<_ACEOF
21301:end
21302s/|#_!!_#|//g
21303CEOF$ac_eof
21304_ACEOF
21305
21306
21307# VPATH may cause trouble with some makes, so we remove $(srcdir),
21308# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21309# trailing colons and then remove the whole line if VPATH becomes empty
21310# (actually we leave an empty line to preserve line numbers).
21311if test "x$srcdir" = x.; then
21312 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21313s/:*\$(srcdir):*/:/
21314s/:*\${srcdir}:*/:/
21315s/:*@srcdir@:*/:/
21316s/^\([^=]*=[ ]*\):*/\1/
21317s/:*$//
21318s/^[^=]*=[ ]*$//
21319}'
21320fi
21321
d9898ee8 21322cat >>$CONFIG_STATUS <<\_ACEOF
dd184caf 21323fi # test -n "$CONFIG_FILES"
21324
21325
21326for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21327do
21328 case $ac_tag in
21329 :[FHLC]) ac_mode=$ac_tag; continue;;
21330 esac
21331 case $ac_mode$ac_tag in
21332 :[FHL]*:*);;
21333 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21334echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21335 { (exit 1); exit 1; }; };;
21336 :[FH]-) ac_tag=-:-;;
21337 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21338 esac
21339 ac_save_IFS=$IFS
21340 IFS=:
21341 set x $ac_tag
21342 IFS=$ac_save_IFS
21343 shift
21344 ac_file=$1
21345 shift
21346
21347 case $ac_mode in
21348 :L) ac_source=$1;;
21349 :[FH])
21350 ac_file_inputs=
21351 for ac_f
21352 do
21353 case $ac_f in
21354 -) ac_f="$tmp/stdin";;
21355 *) # Look for the file first in the build tree, then in the source tree
21356 # (if the path is not absolute). The absolute path cannot be DOS-style,
21357 # because $ac_f cannot contain `:'.
21358 test -f "$ac_f" ||
21359 case $ac_f in
21360 [\\/$]*) false;;
21361 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21362 esac ||
21363 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21364echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21365 { (exit 1); exit 1; }; };;
21366 esac
21367 ac_file_inputs="$ac_file_inputs $ac_f"
21368 done
21369
21370 # Let's still pretend it is `configure' which instantiates (i.e., don't
21371 # use $as_me), people would be surprised to read:
21372 # /* config.h. Generated by config.status. */
21373 configure_input="Generated from "`IFS=:
21374 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21375 if test x"$ac_file" != x-; then
21376 configure_input="$ac_file. $configure_input"
21377 { echo "$as_me:$LINENO: creating $ac_file" >&5
21378echo "$as_me: creating $ac_file" >&6;}
21379 fi
21380
21381 case $ac_tag in
21382 *:-:* | *:-) cat >"$tmp/stdin";;
21383 esac
21384 ;;
d9898ee8 21385 esac
21386
dd184caf 21387 ac_dir=`$as_dirname -- "$ac_file" ||
d9898ee8 21388$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21389 X"$ac_file" : 'X\(//\)[^/]' \| \
21390 X"$ac_file" : 'X\(//\)$' \| \
dd184caf 21391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21392echo X"$ac_file" |
dd184caf 21393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21394 s//\1/
21395 q
21396 }
21397 /^X\(\/\/\)[^/].*/{
21398 s//\1/
21399 q
21400 }
21401 /^X\(\/\/\)$/{
21402 s//\1/
21403 q
21404 }
21405 /^X\(\/\).*/{
21406 s//\1/
21407 q
21408 }
21409 s/.*/./; q'`
21410 { as_dir="$ac_dir"
21411 case $as_dir in #(
21412 -*) as_dir=./$as_dir;;
21413 esac
21414 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21415 as_dirs=
dd184caf 21416 while :; do
21417 case $as_dir in #(
21418 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21419 *) as_qdir=$as_dir;;
21420 esac
21421 as_dirs="'$as_qdir' $as_dirs"
21422 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21423$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21424 X"$as_dir" : 'X\(//\)[^/]' \| \
21425 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21426 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21427echo X"$as_dir" |
dd184caf 21428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21429 s//\1/
21430 q
21431 }
21432 /^X\(\/\/\)[^/].*/{
21433 s//\1/
21434 q
21435 }
21436 /^X\(\/\/\)$/{
21437 s//\1/
21438 q
21439 }
21440 /^X\(\/\).*/{
21441 s//\1/
21442 q
21443 }
21444 s/.*/./; q'`
21445 test -d "$as_dir" && break
d9898ee8 21446 done
dd184caf 21447 test -z "$as_dirs" || eval "mkdir $as_dirs"
21448 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21449echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21450 { (exit 1); exit 1; }; }; }
d9898ee8 21451 ac_builddir=.
21452
dd184caf 21453case "$ac_dir" in
21454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21455*)
d9898ee8 21456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
dd184caf 21457 # A ".." for each directory in $ac_dir_suffix.
21458 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21459 case $ac_top_builddir_sub in
21460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21462 esac ;;
21463esac
21464ac_abs_top_builddir=$ac_pwd
21465ac_abs_builddir=$ac_pwd$ac_dir_suffix
21466# for backward compatibility:
21467ac_top_builddir=$ac_top_build_prefix
d9898ee8 21468
21469case $srcdir in
dd184caf 21470 .) # We are building in place.
d9898ee8 21471 ac_srcdir=.
dd184caf 21472 ac_top_srcdir=$ac_top_builddir_sub
21473 ac_abs_top_srcdir=$ac_pwd ;;
21474 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 21475 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 21476 ac_top_srcdir=$srcdir
21477 ac_abs_top_srcdir=$srcdir ;;
21478 *) # Relative name.
21479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21480 ac_top_srcdir=$ac_top_build_prefix$srcdir
21481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 21482esac
dd184caf 21483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
d9898ee8 21484
d9898ee8 21485
dd184caf 21486 case $ac_mode in
21487 :F)
21488 #
21489 # CONFIG_FILE
21490 #
d9898ee8 21491
21492 case $INSTALL in
21493 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
dd184caf 21494 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
d9898ee8 21495 esac
dd184caf 21496 ac_MKDIR_P=$MKDIR_P
21497 case $MKDIR_P in
21498 [\\/$]* | ?:[\\/]* ) ;;
21499 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21500 esac
21501_ACEOF
d9898ee8 21502
dd184caf 21503cat >>$CONFIG_STATUS <<\_ACEOF
21504# If the template does not know about datarootdir, expand it.
21505# FIXME: This hack should be removed a few years after 2.60.
21506ac_datarootdir_hack=; ac_datarootdir_seen=
21507
21508case `sed -n '/datarootdir/ {
21509 p
21510 q
21511}
21512/@datadir@/p
21513/@docdir@/p
21514/@infodir@/p
21515/@localedir@/p
21516/@mandir@/p
21517' $ac_file_inputs` in
21518*datarootdir*) ac_datarootdir_seen=yes;;
21519*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21520 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21521echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21522_ACEOF
21523cat >>$CONFIG_STATUS <<_ACEOF
21524 ac_datarootdir_hack='
21525 s&@datadir@&$datadir&g
21526 s&@docdir@&$docdir&g
21527 s&@infodir@&$infodir&g
21528 s&@localedir@&$localedir&g
21529 s&@mandir@&$mandir&g
21530 s&\\\${datarootdir}&$datarootdir&g' ;;
21531esac
d9898ee8 21532_ACEOF
dd184caf 21533
21534# Neutralize VPATH when `$srcdir' = `.'.
21535# Shell code in configure.ac might set extrasub.
21536# FIXME: do we really want to maintain this feature?
d9898ee8 21537cat >>$CONFIG_STATUS <<_ACEOF
21538 sed "$ac_vpsub
21539$extrasub
21540_ACEOF
21541cat >>$CONFIG_STATUS <<\_ACEOF
21542:t
21543/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
dd184caf 21544s&@configure_input@&$configure_input&;t t
21545s&@top_builddir@&$ac_top_builddir_sub&;t t
21546s&@srcdir@&$ac_srcdir&;t t
21547s&@abs_srcdir@&$ac_abs_srcdir&;t t
21548s&@top_srcdir@&$ac_top_srcdir&;t t
21549s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21550s&@builddir@&$ac_builddir&;t t
21551s&@abs_builddir@&$ac_abs_builddir&;t t
21552s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21553s&@INSTALL@&$ac_INSTALL&;t t
21554s&@MKDIR_P@&$ac_MKDIR_P&;t t
21555$ac_datarootdir_hack
21556" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21557
21558test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21559 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21561 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21562which seems to be undefined. Please make sure it is defined." >&5
21563echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21564which seems to be undefined. Please make sure it is defined." >&2;}
21565
21566 rm -f "$tmp/stdin"
d9898ee8 21567 case $ac_file in
dd184caf 21568 -) cat "$tmp/out"; rm -f "$tmp/out";;
21569 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
d9898ee8 21570 esac
dd184caf 21571 ;;
21572 :H)
21573 #
21574 # CONFIG_HEADER
21575 #
d9898ee8 21576_ACEOF
21577
dd184caf 21578# Transform confdefs.h into a sed script `conftest.defines', that
21579# substitutes the proper values into config.h.in to produce config.h.
21580rm -f conftest.defines conftest.tail
21581# First, append a space to every undef/define line, to ease matching.
21582echo 's/$/ /' >conftest.defines
21583# Then, protect against being on the right side of a sed subst, or in
21584# an unquoted here document, in config.status. If some macros were
21585# called several times there might be several #defines for the same
21586# symbol, which is useless. But do not sort them, since the last
21587# AC_DEFINE must be honored.
21588ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21589# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21590# NAME is the cpp macro being defined, VALUE is the value it is being given.
21591# PARAMS is the parameter list in the macro definition--in most cases, it's
21592# just an empty string.
21593ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21594ac_dB='\\)[ (].*,\\1define\\2'
21595ac_dC=' '
21596ac_dD=' ,'
21597
21598uniq confdefs.h |
21599 sed -n '
21600 t rset
21601 :rset
21602 s/^[ ]*#[ ]*define[ ][ ]*//
21603 t ok
21604 d
21605 :ok
21606 s/[\\&,]/\\&/g
21607 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21608 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21609 ' >>conftest.defines
21610
21611# Remove the space that was appended to ease matching.
21612# Then replace #undef with comments. This is necessary, for
d9898ee8 21613# example, in the case of _POSIX_SOURCE, which is predefined and required
21614# on some systems where configure will not decide to define it.
dd184caf 21615# (The regexp can be short, since the line contains either #define or #undef.)
21616echo 's/ $//
21617s,^[ #]*u.*,/* & */,' >>conftest.defines
21618
21619# Break up conftest.defines:
21620ac_max_sed_lines=50
21621
21622# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21623# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21624# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21625# et cetera.
21626ac_in='$ac_file_inputs'
21627ac_out='"$tmp/out1"'
21628ac_nxt='"$tmp/out2"'
21629
21630while :
d9898ee8 21631do
dd184caf 21632 # Write a here document:
21633 cat >>$CONFIG_STATUS <<_ACEOF
21634 # First, check the format of the line:
21635 cat >"\$tmp/defines.sed" <<\\CEOF
21636/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21637/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21638b
21639:def
21640_ACEOF
21641 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
d9898ee8 21642 echo 'CEOF
dd184caf 21643 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21644 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21645 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21646 grep . conftest.tail >/dev/null || break
d9898ee8 21647 rm -f conftest.defines
21648 mv conftest.tail conftest.defines
21649done
dd184caf 21650rm -f conftest.defines conftest.tail
d9898ee8 21651
dd184caf 21652echo "ac_result=$ac_in" >>$CONFIG_STATUS
d9898ee8 21653cat >>$CONFIG_STATUS <<\_ACEOF
d9898ee8 21654 if test x"$ac_file" != x-; then
dd184caf 21655 echo "/* $configure_input */" >"$tmp/config.h"
21656 cat "$ac_result" >>"$tmp/config.h"
21657 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
d9898ee8 21658 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21659echo "$as_me: $ac_file is unchanged" >&6;}
21660 else
d9898ee8 21661 rm -f $ac_file
dd184caf 21662 mv "$tmp/config.h" $ac_file
d9898ee8 21663 fi
21664 else
dd184caf 21665 echo "/* $configure_input */"
21666 cat "$ac_result"
d9898ee8 21667 fi
dd184caf 21668 rm -f "$tmp/out12"
d9898ee8 21669# Compute $ac_file's index in $config_headers.
ac40fd9e 21670_am_arg=$ac_file
d9898ee8 21671_am_stamp_count=1
21672for _am_header in $config_headers :; do
21673 case $_am_header in
ac40fd9e 21674 $_am_arg | $_am_arg:* )
d9898ee8 21675 break ;;
21676 * )
21677 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21678 esac
21679done
ac40fd9e 21680echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21681$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21682 X"$_am_arg" : 'X\(//\)[^/]' \| \
21683 X"$_am_arg" : 'X\(//\)$' \| \
21684 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21685echo X"$_am_arg" |
dd184caf 21686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21687 s//\1/
21688 q
21689 }
21690 /^X\(\/\/\)[^/].*/{
21691 s//\1/
21692 q
21693 }
21694 /^X\(\/\/\)$/{
21695 s//\1/
21696 q
21697 }
21698 /^X\(\/\).*/{
21699 s//\1/
21700 q
21701 }
21702 s/.*/./; q'`/stamp-h$_am_stamp_count
21703 ;;
d9898ee8 21704
dd184caf 21705 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21706echo "$as_me: executing $ac_file commands" >&6;}
21707 ;;
21708 esac
d9898ee8 21709
21710
dd184caf 21711 case $ac_file$ac_mode in
21712 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
d9898ee8 21713 # Strip MF so we end up with the name of the file.
21714 mf=`echo "$mf" | sed -e 's/:.*$//'`
21715 # Check whether this is an Automake generated Makefile or not.
21716 # We used to match only the files named `Makefile.in', but
21717 # some people rename them; so instead we look at the file content.
21718 # Grep'ing the first line is not enough: some people post-process
21719 # each Makefile.in and add a new line on top of each file to say so.
dd184caf 21720 # Grep'ing the whole file is not good either: AIX grep has a line
21721 # limit of 2048, but all sed's we know have understand at least 4000.
ac40fd9e 21722 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
dd184caf 21723 dirpart=`$as_dirname -- "$mf" ||
d9898ee8 21724$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21725 X"$mf" : 'X\(//\)[^/]' \| \
21726 X"$mf" : 'X\(//\)$' \| \
dd184caf 21727 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21728echo X"$mf" |
dd184caf 21729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21730 s//\1/
21731 q
21732 }
21733 /^X\(\/\/\)[^/].*/{
21734 s//\1/
21735 q
21736 }
21737 /^X\(\/\/\)$/{
21738 s//\1/
21739 q
21740 }
21741 /^X\(\/\).*/{
21742 s//\1/
21743 q
21744 }
21745 s/.*/./; q'`
d9898ee8 21746 else
21747 continue
21748 fi
21749 # Extract the definition of DEPDIR, am__include, and am__quote
21750 # from the Makefile without running `make'.
21751 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21752 test -z "$DEPDIR" && continue
21753 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21754 test -z "am__include" && continue
21755 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21756 # When using ansi2knr, U may be empty or an underscore; expand it
21757 U=`sed -n 's/^U = //p' < "$mf"`
21758 # Find all dependency output files, they are included files with
21759 # $(DEPDIR) in their names. We invoke sed twice because it is the
21760 # simplest approach to changing $(DEPDIR) to its actual value in the
21761 # expansion.
21762 for file in `sed -n "
21763 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21764 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21765 # Make sure the directory exists.
21766 test -f "$dirpart/$file" && continue
dd184caf 21767 fdir=`$as_dirname -- "$file" ||
d9898ee8 21768$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21769 X"$file" : 'X\(//\)[^/]' \| \
21770 X"$file" : 'X\(//\)$' \| \
dd184caf 21771 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21772echo X"$file" |
dd184caf 21773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21774 s//\1/
21775 q
21776 }
21777 /^X\(\/\/\)[^/].*/{
21778 s//\1/
21779 q
21780 }
21781 /^X\(\/\/\)$/{
21782 s//\1/
21783 q
21784 }
21785 /^X\(\/\).*/{
21786 s//\1/
21787 q
21788 }
21789 s/.*/./; q'`
21790 { as_dir=$dirpart/$fdir
21791 case $as_dir in #(
21792 -*) as_dir=./$as_dir;;
21793 esac
21794 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
d9898ee8 21795 as_dirs=
dd184caf 21796 while :; do
21797 case $as_dir in #(
21798 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21799 *) as_qdir=$as_dir;;
21800 esac
21801 as_dirs="'$as_qdir' $as_dirs"
21802 as_dir=`$as_dirname -- "$as_dir" ||
d9898ee8 21803$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21804 X"$as_dir" : 'X\(//\)[^/]' \| \
21805 X"$as_dir" : 'X\(//\)$' \| \
dd184caf 21806 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
d9898ee8 21807echo X"$as_dir" |
dd184caf 21808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21809 s//\1/
21810 q
21811 }
21812 /^X\(\/\/\)[^/].*/{
21813 s//\1/
21814 q
21815 }
21816 /^X\(\/\/\)$/{
21817 s//\1/
21818 q
21819 }
21820 /^X\(\/\).*/{
21821 s//\1/
21822 q
21823 }
21824 s/.*/./; q'`
21825 test -d "$as_dir" && break
d9898ee8 21826 done
dd184caf 21827 test -z "$as_dirs" || eval "mkdir $as_dirs"
21828 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21829echo "$as_me: error: cannot create directory $as_dir" >&2;}
d9898ee8 21830 { (exit 1); exit 1; }; }; }
d9898ee8 21831 # echo "creating $dirpart/$file"
21832 echo '# dummy' > "$dirpart/$file"
21833 done
21834done
21835 ;;
dd184caf 21836
d9898ee8 21837 esac
dd184caf 21838done # for ac_tag
d9898ee8 21839
d9898ee8 21840
21841{ (exit 0); exit 0; }
21842_ACEOF
21843chmod +x $CONFIG_STATUS
21844ac_clean_files=$ac_clean_files_save
21845
21846
21847# configure is writing to config.log, and then calls config.status.
21848# config.status does its own redirection, appending to config.log.
21849# Unfortunately, on DOS this fails, as config.log is still kept open
21850# by configure, so config.status won't be able to write to it; its
21851# output is simply discarded. So we exec the FD to /dev/null,
21852# effectively closing config.log, so it can be properly (re)opened and
21853# appended to by config.status. When coming back to configure, we
21854# need to make the FD available again.
21855if test "$no_create" != yes; then
21856 ac_cs_success=:
21857 ac_config_status_args=
21858 test "$silent" = yes &&
21859 ac_config_status_args="$ac_config_status_args --quiet"
21860 exec 5>/dev/null
21861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21862 exec 5>>config.log
21863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21864 # would make configure fail if this is the last instruction.
21865 $ac_cs_success || { (exit 1); exit 1; }
21866fi
21867