summaryrefslogtreecommitdiff
path: root/project/config
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-16 10:24:02 +0000
committermidipix <writeonce@midipix.org>2021-06-16 10:24:02 +0000
commitd21e53dd363c4a8373090e5cc0ffb1b742888502 (patch)
treeadb8ed89997a4d66383efba6c0057a3697e0bc74 /project/config
parent9841e8cbfe898941adb8cef2bfd11967e66fe222 (diff)
downloadsbpython3-d21e53dd363c4a8373090e5cc0ffb1b742888502.tar.bz2
sbpython3-d21e53dd363c4a8373090e5cc0ffb1b742888502.tar.xz
project: cfgdefs.sh: enhanced tests for uuid api's.
Diffstat (limited to 'project/config')
-rw-r--r--project/config/cfgdefs.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh
index 7fef196..4bf70bd 100644
--- a/project/config/cfgdefs.sh
+++ b/project/config/cfgdefs.sh
@@ -158,8 +158,6 @@ 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'
@@ -283,6 +281,26 @@ cfgdefs_perform_common_tests()
cfgtest_ldflags_append '-Wl,--as-needed -luuid -Wl,--no-as-needed'
fi
+ # uuid
+ cfgtest_newline
+ cfgtest_comment 'uuid'
+
+ if cfgtest_header_presence 'uuid.h'; then
+ mb_uuid_header='uuid.h'
+
+ elif cfgtest_header_presence 'uuid/uuid.h'; then
+ mb_uuid_header='uuid/uuid.h'
+ else
+ mb_uuid_header=
+ fi
+
+ mb_cfgtest_headers="$mb_uuid_header"
+
+ cfgtest_interface_presence 'uuid_create'
+ cfgtest_interface_presence 'uuid_enc_be'
+ cfgtest_interface_presence 'uuid_generate_time_safe'
+
+
# ncurses
cfgtest_newline
cfgtest_comment 'ncurses/ncursesw'