svn commit: samba r19088 - in branches/SAMBA_3_0/source: .
metze at samba.org
metze at samba.org
Thu Oct 5 07:38:44 GMT 2006
Author: metze
Date: 2006-10-05 07:38:43 +0000 (Thu, 05 Oct 2006)
New Revision: 19088
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19088
Log:
filter out -Wl,-rpath combinations with /usr/lib too
metze
Modified:
branches/SAMBA_3_0/source/aclocal.m4
Changeset:
Modified: branches/SAMBA_3_0/source/aclocal.m4
===================================================================
--- branches/SAMBA_3_0/source/aclocal.m4 2006-10-05 07:24:04 UTC (rev 19087)
+++ branches/SAMBA_3_0/source/aclocal.m4 2006-10-05 07:38:43 UTC (rev 19088)
@@ -263,14 +263,33 @@
done
$1=[$]ac_new_flags
])
-
-dnl Removes -L/usr/lib/? from given variable
+
+dnl Removes '-L/usr/lib[/]', '-Wl,-rpath,/usr/lib[/]'
+dnl and '-Wl,-rpath -Wl,/usr/lib[/]' from given variable
AC_DEFUN(LIB_REMOVE_USR_LIB,[
ac_new_flags=""
+ l=""
for i in [$]$1; do
- case [$]i in
- -L/usr/lib|-L/usr/lib/) ;;
- *) ac_new_flags="[$]ac_new_flags [$]i" ;;
+ case [$]l[$]i in
+ -L/usr/lib) ;;
+ -L/usr/lib/) ;;
+ -Wl,-rpath,/usr/lib) ;;
+ -Wl,-rpath,/usr/lib/) ;;
+ -Wl,-rpath) l=[$]i;;
+ -Wl,-rpath-Wl,/usr/lib) l="";;
+ -Wl,-rpath-Wl,/usr/lib/) l="";;
+ *)
+ s=" "
+ if test x"[$]ac_new_flags" = x""; then
+ s="";
+ fi
+ if test x"[$]l" = x""; then
+ ac_new_flags="[$]ac_new_flags[$]s[$]i";
+ else
+ ac_new_flags="[$]ac_new_flags[$]s[$]l [$]i";
+ fi
+ l=""
+ ;;
esac
done
$1=[$]ac_new_flags
More information about the samba-cvs
mailing list