From: vsr Date: Mon, 6 Dec 2010 13:02:08 +0000 (+0000) Subject: Improve hack_libtool utility to workaround problems on some Linux configurations X-Git-Tag: V6_2_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fd06db20b338e65d44bdfca330a8a4fbbc3b9895;p=plugins%2Fhybridplugin.git Improve hack_libtool utility to workaround problems on some Linux configurations --- diff --git a/configure.ac b/configure.ac index 49f45cc..b5161cf 100644 --- a/configure.ac +++ b/configure.ac @@ -395,15 +395,10 @@ AC_OUTPUT_COMMANDS([ \ 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 ],[])