@@ -10159,6 +10159,75 @@ $as_echo "no" >&6; }
1015910159fi
1016010160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1016110161
10162+ 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 :
10166+ $as_echo_n "(cached) " >&6
10167+ else
10168+ ac_func_search_save_LIBS=$LIBS
10169+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170+ /* end confdefs.h. */
10171+
10172+ /* Override any GCC internal prototype to avoid an error.
10173+ Use char because int might match the return type of a GCC
10174+ builtin and then its argument prototype would still apply. */
10175+ #ifdef __cplusplus
10176+ extern "C"
10177+ #endif
10178+ char uuid_generate_time_safe ();
10179+ int
10180+ main ()
10181+ {
10182+ return uuid_generate_time_safe ();
10183+ ;
10184+ return 0;
10185+ }
10186+ _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+
10205+ else
10206+ ac_cv_search_uuid_generate_time_safe=no
10207+ fi
10208+ rm conftest.$ac_ext
10209+ LIBS=$ac_func_search_save_LIBS
10210+ 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; }
10222+
10223+ else
10224+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225+ $as_echo "no" >&6; }
10226+
10227+ fi
10228+
10229+ LIBS=$save_LIBS
10230+
1016210231# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007)
1016310232# FreeBSD and OpenBSD provides support as well
1016410233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5
0 commit comments