Improve the xxhash system library detection ##build

The pkgconfig module is named libxxhash on Debian/Fedora/RedHat/SuSE/Arch so I added libxxhash on first place.
Keeping the xxhash checked second.
This commit is contained in:
Michal Ambroz 2021-05-12 23:07:34 +02:00 committed by GitHub
parent 385925a37e
commit bc3fe4a302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,8 +234,11 @@ if sys_magic.found() and get_option('use_sys_magic')
endif
# handle xxhash library
sys_xxhash = dependency('xxhash', required: false)
sys_xxhash = dependency('libxxhash', required: false)
use_sys_xxhash = false
if not sys_xxhash.found()
sys_xxhash = dependency('xxhash', required: false)
endif
if not sys_xxhash.found()
sys_xxhash = cc.find_library('xxhash', required: false)
endif