[lib] libdevmapper api check
authorMartin Petermann <martin@linux.vnet.ibm.com>
Wed, 15 Oct 2008 20:42:31 +0000 (22:42 +0200)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 15 Oct 2008 20:42:31 +0000 (22:42 +0200)
commit7e2ca56a75734018d725df46ad08a5ac1796e9cf
treead1910d4d087157c381e9e90ac067d48e59f59ce
parent507227ffc4731bd10ef9850048d12e454abd3bb0
[lib] libdevmapper api check

In libmultipath Makefile it is checked if the
symbol dm_task_no_flush is defined within the device mapper
library. On my system beside the library there exists a
symbolic link within the same directory pointing to this
library and containing libdevmapper.so in it's name:

lrwxrwxrwx 1 root root    20 Sep 22 22:15 /lib64/libdevmapper.so -> libdevmapper.so.1.02
-rwxr-xr-x 1 root root 89928 Feb 14  2008 /lib64/libdevmapper.so.1.02

In this case "grep -c" returns a 2 instead of 1 that is assumed
in the Makefile. I changed this check to not equal zero.
libmultipath/Makefile