Skip to content

Commit 9b0f45c

Browse files
authored
bpo-43158: Regenerate configure again (GH-29433)
1 parent 60b5333 commit 9b0f45c

File tree

2 files changed

+23
-43
lines changed

2 files changed

+23
-43
lines changed

configure

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -10159,13 +10159,15 @@ $as_echo "no" >&6; }
1015910159
fi
1016010160
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1016110161

10162+
# check for libuuid from util-linux
1016210163
save_LIBS=$LIBS
10163-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate_time_safe" >&5
10164-
$as_echo_n "checking for library containing uuid_generate_time_safe... " >&6; }
10165-
if ${ac_cv_search_uuid_generate_time_safe+:} false; then :
10164+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
10165+
$as_echo_n "checking for uuid_generate_time in -luuid... " >&6; }
10166+
if ${ac_cv_lib_uuid_uuid_generate_time+:} false; then :
1016610167
$as_echo_n "(cached) " >&6
1016710168
else
10168-
ac_func_search_save_LIBS=$LIBS
10169+
ac_check_lib_save_LIBS=$LIBS
10170+
LIBS="-luuid $LIBS"
1016910171
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1017010172
/* end confdefs.h. */
1017110173

@@ -10175,61 +10177,39 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1017510177
#ifdef __cplusplus
1017610178
extern "C"
1017710179
#endif
10178-
char uuid_generate_time_safe ();
10180+
char uuid_generate_time ();
1017910181
int
1018010182
main ()
1018110183
{
10182-
return uuid_generate_time_safe ();
10184+
return uuid_generate_time ();
1018310185
;
1018410186
return 0;
1018510187
}
1018610188
_ACEOF
10187-
for ac_lib in '' uuid; do
10188-
if test -z "$ac_lib"; then
10189-
ac_res="none required"
10190-
else
10191-
ac_res=-l$ac_lib
10192-
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10193-
fi
10194-
if ac_fn_c_try_link "$LINENO"; then :
10195-
ac_cv_search_uuid_generate_time_safe=$ac_res
10196-
fi
10197-
rm -f core conftest.err conftest.$ac_objext \
10198-
conftest$ac_exeext
10199-
if ${ac_cv_search_uuid_generate_time_safe+:} false; then :
10200-
break
10201-
fi
10202-
done
10203-
if ${ac_cv_search_uuid_generate_time_safe+:} false; then :
10204-
10189+
if ac_fn_c_try_link "$LINENO"; then :
10190+
ac_cv_lib_uuid_uuid_generate_time=yes
1020510191
else
10206-
ac_cv_search_uuid_generate_time_safe=no
10192+
ac_cv_lib_uuid_uuid_generate_time=no
1020710193
fi
10208-
rm conftest.$ac_ext
10209-
LIBS=$ac_func_search_save_LIBS
10194+
rm -f core conftest.err conftest.$ac_objext \
10195+
conftest$ac_exeext conftest.$ac_ext
10196+
LIBS=$ac_check_lib_save_LIBS
1021010197
fi
10211-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate_time_safe" >&5
10212-
$as_echo "$ac_cv_search_uuid_generate_time_safe" >&6; }
10213-
ac_res=$ac_cv_search_uuid_generate_time_safe
10214-
if test "$ac_res" != no; then :
10215-
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10216-
10217-
10218-
$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
10219-
,
10220-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10221-
$as_echo "yes" >&6; }
10198+
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
10199+
$as_echo "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
10200+
if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes; then :
10201+
cat >>confdefs.h <<_ACEOF
10202+
#define HAVE_LIBUUID 1
10203+
_ACEOF
1022210204

10223-
else
10224-
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225-
$as_echo "no" >&6; }
10205+
LIBS="-luuid $LIBS"
1022610206

1022710207
fi
1022810208

1022910209
LIBS=$save_LIBS
1023010210

1023110211
# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
10232-
# FreeBSD and OpenBSD provides support as well
10212+
# FreeBSD and OpenBSD provides support in libc as well.
1023310213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
1023410214
$as_echo_n "checking for uuid_create... " >&6; }
1023510215
cat confdefs.h - <<_ACEOF >conftest.$ac_ext

pyconfig.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@
604604
/* Define to 1 if you have the <libutil.h> header file. */
605605
#undef HAVE_LIBUTIL_H
606606

607-
/* Define you have libuuid. */
607+
/* Define to 1 if you have the `uuid' library (-luuid). */
608608
#undef HAVE_LIBUUID
609609

610610
/* Define if you have the 'link' function. */

0 commit comments

Comments
 (0)