diff options
author | Christian Heimes <christian@python.org> | 2021-12-06 20:43:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 20:43:44 (GMT) |
commit | fc012d801202a9ea139df143b934778060d51a60 (patch) | |
tree | 4ff92358b94821079350b67dc52dab9e11f9b540 /configure | |
parent | f16f93e5279f957ca25dd8b91233a44833167a8a (diff) | |
download | cpython-fc012d801202a9ea139df143b934778060d51a60.zip cpython-fc012d801202a9ea139df143b934778060d51a60.tar.gz cpython-fc012d801202a9ea139df143b934778060d51a60.tar.bz2 |
bpo-45847: Fix uuid detection on macOS (GH-29946)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 33 |
1 files changed, 31 insertions, 2 deletions
@@ -10623,7 +10623,6 @@ fi LIBUUID_LIBS="-luuid" LIBUUID_CFLAGS= - have_uuid=no for ac_header in uuid/uuid.h do : ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" @@ -10754,7 +10753,6 @@ $as_echo "no" >&6; } LIBUUID_LIBS="-luuid" LIBUUID_CFLAGS= - have_uuid=no for ac_header in uuid/uuid.h do : ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" @@ -10895,6 +10893,37 @@ fi fi +if test "x$have_uuid" = xmissing; then : + + for ac_header in uuid/uuid.h +do : + ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" +if test "x$ac_cv_header_uuid_uuid_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_UUID_UUID_H 1 +_ACEOF + + ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time" +if test "x$ac_cv_func_uuid_generate_time" = xyes; then : + + have_uuid=yes + LIBUUID_CFLAGS= + LIBUUID_LIBS= + +fi + + +fi + +done + + +fi + +if test "x$have_uuid" = xmissing; then : + have_uuid=no +fi + # 'Real Time' functions on Solaris # posix4 on Solaris 2.6 # pthread (first!) on Linux |