From 4be575c7c387a17b19c53ae991a902baf10774fc Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sat, 4 Aug 2001 19:57:09 +0000 Subject: [PATCH] From Sedi Master Albert Chin : * libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Replace the awk invocation with an equivalent bit of sed wizardry. --- ChangeLog | 4 ++++ libtool.m4 | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b57d40cf3..9af72cfec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-08-04 Gary V. Vaughan + From Sedi Master Albert Chin : + * libtool.m4 (_LT_AC_SYS_LIBPATH_AIX): Replace the awk invocation + with an equivalent bit of sed wizardry. + From Edouard G. Parmelan * libtool.m4 [darwin, openbsd]: Fix quoting problems with unquoted [] expressions. diff --git a/libtool.m4 b/libtool.m4 index aee5c79a9..e31565653 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -231,9 +231,9 @@ compiler="[$]2" # to the aix ld manual. AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($[2] ~ /^\//) print $[2] }'` +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^[0-9][0-9]*[ ][ ]*\(.*\)$/\1/; p; }; }'` # Check for a 64-bit object if we didn't find anything. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($[2] ~ /^\//) print $[2] }'`; fi],[]) +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^[0-9][0-9]*[ ][ ]*\(.*\)$/\1/; p; }; }'`; fi],[]) if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi ])# _LT_AC_SYS_LIBPATH_AIX -- 2.47.3