From 2710d4df0fb89a424fb688663c8e6be514a413de Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 6 Dec 2010 13:01:54 +0000 Subject: [PATCH] Improve hack_libtool utility to workaround problems on some Linux configurations --- configure.ac | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 61386b2a1..e2c9c42d2 100644 --- a/configure.ac +++ b/configure.ac @@ -383,15 +383,10 @@ echo # chmod +x ./bin/*; \ #]) +AC_HACK_LIBTOOL AC_CONFIG_COMMANDS([hack_libtool],[ sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\ - if test \"\$(echo \$[@] | grep -E '\\\-L/usr/lib(/../lib)?(64)? ')\" == \"\" \n\ - then\n\ - cmd=\"\1 \$[@]\"\n\ - else\n\ - cmd=\"\1 \"\`echo \$[@] | sed -r -e 's|(.*)-L/usr/lib(/../lib)?(64)? (.*)|\\\1\\\4 -L/usr/lib\\\3|g'\`\n\ - fi\n\ - \$cmd\n\ + $(pwd)/hack_libtool \1 \"\$[@]\" \n\ }\n\ CC=\"hack_libtool\"%g" libtool ],[]) -- 2.39.2