bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libtool.m4 port to POSIX 1003.1-2001 hosts


From: Paul Eggert
Subject: libtool.m4 port to POSIX 1003.1-2001 hosts
Date: Tue, 17 Jun 2003 23:54:15 -0700 (PDT)

Two non-POSIX usages snuck into libtool.m4.  Here's a patch to make
it portable again, to POSIX 1003.1-2001 hosts.  Such hosts don't
support "test -a", or "egrep".

2003-06-17  Paul Eggert  <address@hidden>

        Port to POSIX 1003.1-2001 hosts.
        * libtool.m4 (_LT_AC_LANG_CXX_CONFIG): Don't use egrep.
        (AC_LIBTOOL_PROG_LD_SHLIBS): Don't use "test -a".

===================================================================
RCS file: libtool.m4,v
retrieving revision 1.5
retrieving revision 1.5.0.1
diff -pu -r1.5 -r1.5.0.1
--- libtool.m4  2003/04/14 21:58:23     1.5
+++ libtool.m4  2003/06/18 06:50:25     1.5.0.1
@@ -2959,7 +2959,7 @@ case $host_os in
       # explicitly linking system object files so we need to strip them
       # from the output so that they don't get included in the library
       # dependencies.
-      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 
2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in 
conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; 
done; echo $list'
+      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'
       ;;
     *)
       if test "$GXX" = yes; then
@@ -5409,7 +5409,7 @@ EOF
       ;;
 
     hpux10* | hpux11*)
-      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
        case "$host_cpu" in
        hppa*64*|ia64*)
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o 
$lib $libobjs $deplibs $compiler_flags'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]