Commit 89820b43 by Alexandre Oliva Committed by Alexandre Oliva

ltconfig, ltmain.sh: Update from libtool multi-language branch.

* ltconfig, ltmain.sh: Update from libtool multi-language branch.
* ltcf-c.sh (need_lc): Fix test message.  Set wl for archive_cmds.
(ac_cv_prog_cc_pic): Don't print `cached' without `checking'.
* ltcf-cxx.sh (need_lc): Set based on postdeps.

From-SVN: r35405
parent 7905cfef
2000-08-01 Alexandre Oliva <aoliva@redhat.com> 2000-08-01 Alexandre Oliva <aoliva@redhat.com>
* ltconfig, ltmain.sh: Update from libtool multi-language branch.
* ltcf-c.sh (need_lc): Fix test message. Set wl for archive_cmds.
(ac_cv_prog_cc_pic): Don't print `cached' without `checking'.
* ltcf-cxx.sh (need_lc): Set based on postdeps.
* configure.in (qCXX_FOR_TARGET): Use echo instead of expr. * configure.in (qCXX_FOR_TARGET): Use echo instead of expr.
2000-07-31 Alexandre Oliva <aoliva@redhat.com> 2000-07-31 Alexandre Oliva <aoliva@redhat.com>
......
#### This script is meant to be sourced by ltconfig. #### This script is meant to be sourced by ltconfig.
# $Id: ltcf-c.sh,v 1.1.2.9 2000/07/24 05:28:14 oliva Exp $ # $Id: ltcf-c.sh,v 1.1 2000/07/28 18:04:21 bkoz Exp $
# ltcf-c.sh - Create a C compiler specific configuration # ltcf-c.sh - Create a C compiler specific configuration
# #
...@@ -520,7 +520,7 @@ fi ...@@ -520,7 +520,7 @@ fi
## Compiler Characteristics: PIC flags, static flags, etc ## Compiler Characteristics: PIC flags, static flags, etc
if test "X${ac_cv_prog_cc_pic+set}" = Xset; then if test "X${ac_cv_prog_cc_pic+set}" = Xset; then
echo $ac_n "(cached) $ac_c" 1>&6 :
else else
ac_cv_prog_cc_pic= ac_cv_prog_cc_pic=
ac_cv_prog_cc_shlib= ac_cv_prog_cc_shlib=
...@@ -653,27 +653,28 @@ if test "$enable_shared" = yes && test "$with_gcc" = yes; then ...@@ -653,27 +653,28 @@ if test "$enable_shared" = yes && test "$with_gcc" = yes; then
# Test whether the compiler implicitly links with -lc since on some # Test whether the compiler implicitly links with -lc since on some
# systems, -lgcc has to come before -lc. If gcc already passes -lc # systems, -lgcc has to come before -lc. If gcc already passes -lc
# to ld, don't add -lc before -lgcc. # to ld, don't add -lc before -lgcc.
echo $ac_n "checking whether -lc is implicitly linked in... $ac_c" 1>&6 echo $ac_n "checking whether -lc should be explicitly linked in... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_archive_cmds_needs_lc'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_archive_cmds_needs_lc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
need_lc=$ac_cv_archive_cmds_needs_lc need_lc=$ac_cv_archive_cmds_needs_lc
else else
$rm conftest* $rm conftest*
echo "static int dummy;" > conftest.$ac_ext echo "static int dummy;" > conftest.$ac_ext
if { (eval echo $progname:@LINENO@: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then if { (eval echo ltcf-c.sh:need_lc: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
# Append any warnings to the config.log. # Append any warnings to the config.log.
cat conftest.err 1>&5 cat conftest.err 1>&5
soname=conftest soname=conftest
lib=conftest lib=conftest
libobjs=conftest.o libobjs=conftest.o
deplibs= deplibs=
wl=$ac_cv_prog_cc_wl
compiler_flags=-v compiler_flags=-v
linker_flags=-v linker_flags=-v
verstring= verstring=
output_objdir=. output_objdir=.
libname=conftest libname=conftest
allow_undefined_flag= allow_undefined_flag=
if { (eval echo $progname:@LINENO@: \"$archive_cmds\") 1>&5; (eval $archive_cmds) 2>&1 | grep " -lc " 1>&5 ; }; then if { (eval echo ltcf-c.sh:need_lc: \"$archive_cmds\") 1>&5; (eval $archive_cmds) 2>&1 | grep " -lc " 1>&5 ; }; then
need_lc=no need_lc=no
fi fi
else else
......
#### This script is meant to be sourced by ltconfig. #### This script is meant to be sourced by ltconfig.
# $Id: ltcf-cxx.sh,v 1.1.2.18 2000/07/24 06:10:27 oliva Exp $ # $Id: ltcf-cxx.sh,v 1.1 2000/07/28 18:04:21 bkoz Exp $
# ltcf-cxx.sh - Create a C++ compiler specific configuration # ltcf-cxx.sh - Create a C++ compiler specific configuration
# #
...@@ -874,47 +874,7 @@ fi ...@@ -874,47 +874,7 @@ fi
$rm -f confest.$objext $rm -f confest.$objext
need_lc=yes case " $postdeps " in
if test "$enable_shared" = yes && test "$with_gcc" = yes; then *" -lc "*) need_lc=no ;;
case "$archive_cmds" in *) need_lc=yes ;;
*'~'*) esac
# FIXME: we may have to deal with multi-command sequences.
;;
'$CC '*)
# Test whether the compiler implicitly links with -lc since on some
# systems, -lgcc has to come before -lc. If gcc already passes -lc
# to ld, don't add -lc before -lgcc.
echo $ac_n "checking whether -lc is implicitly linked in... $ac_c" 1>&6
if eval "test \"`echo '$''{'ac_cv_cxx_archive_cmds_needs_lc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
need_lc=$ac_cv_cxx_archive_cmds_needs_lc
else
$rm conftest*
echo "static int dummy;" > conftest.$ac_ext
if { (eval echo $progname:@LINENO@: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
# Append any warnings to the config.log.
cat conftest.err 1>&5
soname=conftest
lib=conftest
libobjs=conftest.o
deplibs=
compiler_flags=-v
linker_flags=-v
verstring=
output_objdir=.
libname=conftest
allow_undefined_flag=
if { (eval echo $progname:@LINENO@: \"$archive_cmds\") 1>&5; (eval $archive_cmds) 2>&1 | grep " -lc " 1>&5 ; }; then
need_lc=no
fi
else
cat conftest.err 1>&5
fi
fi
$rm conftest*
echo "$ac_t$need_lc" 1>&6
;;
esac
fi
ac_cv_cxx_archive_cmds_needs_lc=$need_lc
...@@ -181,7 +181,7 @@ progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'` ...@@ -181,7 +181,7 @@ progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
PROGRAM=ltconfig PROGRAM=ltconfig
PACKAGE=libtool PACKAGE=libtool
VERSION=1.4a VERSION=1.4a
TIMESTAMP=" (1.641.2.74 2000/07/26 04:31:03)" TIMESTAMP=" (1.641.2.77 2000/08/01 04:25:15)"
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
rm="rm -f" rm="rm -f"
......
...@@ -55,7 +55,7 @@ modename="$progname" ...@@ -55,7 +55,7 @@ modename="$progname"
PROGRAM=ltmain.sh PROGRAM=ltmain.sh
PACKAGE=libtool PACKAGE=libtool
VERSION=1.4a VERSION=1.4a
TIMESTAMP=" (1.641.2.74 2000/07/26 04:31:03)" TIMESTAMP=" (1.641.2.77 2000/08/01 04:25:15)"
default_mode= default_mode=
help="Try \`$progname --help' for more information." help="Try \`$progname --help' for more information."
...@@ -4023,7 +4023,7 @@ relink_command=\"$relink_command\"" ...@@ -4023,7 +4023,7 @@ relink_command=\"$relink_command\""
# install_prog (especially on Windows NT). # install_prog (especially on Windows NT).
if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
# Allow the use of GNU shtool's install command. # Allow the use of GNU shtool's install command.
expr "X$nonopt" : "X.*shtool.*" > /dev/null; then $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
# Aesthetically quote it. # Aesthetically quote it.
arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
case "$arg" in case "$arg" in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment