summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 74dcee1..e976ee6 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -90,6 +90,8 @@ cfgdefs_perform_common_tests()
cfgtest_header_presence 'sys/sysmacros.h'
cfgtest_header_presence 'sys/uio.h'
cfgtest_header_presence 'sys/xattr.h'
+ cfgtest_header_presence 'uuid.h'
+ cfgtest_header_presence 'uuid/uuid.h'
# interfaces
mb_cfgtest_headers='sys/epoll.h'
@@ -205,6 +207,14 @@ cfgdefs_perform_common_tests()
cfgtest_ldflags_append '-Wl,--as-needed -lintl -Wl,--no-as-needed'
fi
+ # libuuid
+ cfgtest_newline
+ cfgtest_comment 'libuuid'
+
+ if cfgtest_library_presence -luuid; then
+ cfgtest_ldflags_append '-Wl,--as-needed -luuid -Wl,--no-as-needed'
+ fi
+
# ncurses
cfgtest_newline
cfgtest_comment 'ncurses/ncursesw'
@@ -356,6 +366,7 @@ cfgdefs_perform_target_tests()
mb_cfgtest_makevar='LDFLAGS_PYEXT_STATIC'
cfgtest_makevar_append '-Wl,--as-needed -lssl -lcrypto -Wl,--no-as-needed'
+ cfgtest_makevar_append '-Wl,--as-needed -luuid -Wl,--no-as-needed'
cfgtest_makevar_append '-Wl,--as-needed -lbz2 -Wl,--no-as-needed'
cfgtest_makevar_append '-Wl,--as-needed -lffi -Wl,--no-as-needed'
cfgtest_makevar_append '-Wl,--as-needed -lgdbm -Wl,--no-as-needed'