]> git.proxmox.com Git - mirror_ovs.git/commit - acinclude.m4
acinclude: Use AC_SEARCH_LIBS for linking with dl.
authorIlya Maximets <i.maximets@samsung.com>
Thu, 11 Apr 2019 07:29:43 +0000 (10:29 +0300)
committerBen Pfaff <blp@ovn.org>
Fri, 12 Apr 2019 17:51:37 +0000 (10:51 -0700)
commite2f3751186f41a339f17da929cb461e7163ae54c
tree95ca32193c6ea1cebdf34529b5815d602fe3f4e2
parentf0d1ead8b140ddbd181459cc0418e4a3a917a553
acinclude: Use AC_SEARCH_LIBS for linking with dl.

DPDK uses dlopen to load plugins and we need to search for
library containing this function. But we should not do this
in a loop because 'AC_SEARCH_LIBS' could do this for us.
Also, 'AC_SEARCH_LIBS' prints user-visible messages that are
useful for debuging.
Also added the new 'checking' message and code normalized to
be more readable.

With this change we'll have following additional messages:

  checking for library containing dlopen... -ldl
  checking whether linking with dpdk works... yes

Acked-by: Flavio Leitner <fbl@sysclose.org>
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
acinclude.m4