cmake: fix kerberos library lookup, support Heimdal
authorPeter Wu <peter@lekensteyn.nl>
Fri, 9 Oct 2015 14:26:24 +0000 (16:26 +0200)
committerPeter Wu <peter@lekensteyn.nl>
Tue, 13 Oct 2015 07:36:30 +0000 (07:36 +0000)
commit01f82ee84cc849aa7c2f344d2067f0d81715490d
tree0c6af89c687d56aef44f67f1bb515cff7c03a376
parente6a071db059b1b84a3570292b3f49844c8108627
cmake: fix kerberos library lookup, support Heimdal

A build with the gold linker broke with:

    run/libwireshark.so.0.0.0: error: undefined reference to 'krb5_c_decrypt'

Fix this my restructuring the FindKERBEROS module to use the libraries
found by pkg-config.

While at it, check for MIT and Heimdal instead of assuming MIT. Remove
HAVE_KEYTYPE_ARCFOUR_56 as this macro is not used.

Change-Id: Iab23d79bc3f25e9c0fd7203b6f050f875fb4a2b5
Reviewed-on: https://code.wireshark.org/review/10907
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Jörg Mayer <jmayer@loplof.de>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
CMakeLists.txt
cmake/modules/FindKERBEROS.cmake
cmakeconfig.h.in