summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index d71c7c8267e..395416a6060 100644
--- a/meson.build
+++ b/meson.build
@@ -1607,7 +1607,10 @@ if uuidopt != 'none'
elif uuidopt == 'ossp'
# In upstream, the package and library is called just 'uuid', but many
# distros change it to 'ossp-uuid'.
- uuid = dependency('ossp-uuid', 'uuid', required: false)
+ uuid = dependency('ossp-uuid', required: false)
+ if not uuid.found()
+ uuid = dependency('uuid', required: false)
+ endif
uuidfunc = 'uuid_export'
uuidheader = 'uuid.h'