PATCH: ldd check in aclocal.m4 - print first line only

Marcus Meissner marcus at jet.franken.de
Wed Oct 26 08:02:43 CDT 2005


Hi,

Use sed "d" command to delete all lines but the first,
see http://bugs.winehq.org/show_bug.cgi?id=3662

Ciao, Marcus

Changelog:
	Print first line of LDD output only.

Index: aclocal.m4
===================================================================
RCS file: /home/wine/wine/aclocal.m4,v
retrieving revision 1.14
diff -u -r1.14 aclocal.m4
--- aclocal.m4	10 Feb 2005 19:19:36 -0000	1.14
+++ aclocal.m4	26 Oct 2005 13:00:26 -0000
@@ -38,7 +38,7 @@
 [ac_get_soname_save_LIBS=$LIBS
 LIBS="-l$1 $3 $LIBS"
   AC_LINK_IFELSE([AC_LANG_CALL([], [$2])],
-  [ac_cv_lib_soname_$1=`$ac_cv_path_LDD conftest$ac_exeext | grep lib$1\\.$LIBEXT | sed "s/^.*\(lib$1\.$LIBEXT[[^	 ]]*\).*$/\1/"`
+  [ac_cv_lib_soname_$1=`$ac_cv_path_LDD conftest$ac_exeext | grep lib$1\\.$LIBEXT | sed -e "s/^.*\(lib$1\.$LIBEXT[[^	 ]]*\).*$/\1/"';2,$d'`
   if test "x$ac_cv_lib_soname_$1" = "x"
   then
      ac_cv_lib_soname_$1="lib$1.$LIBEXT"



More information about the wine-patches mailing list