add nanosleep to util.exp.in if needed

This commit is contained in:
Todd C. Miller
2017-01-13 20:40:26 -07:00
parent 08b662bf0b
commit e636f96c48
2 changed files with 13 additions and 2 deletions

10
configure vendored
View File

@@ -19741,12 +19741,20 @@ $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
REPLAY_LIBS="${REPLAY_LIBS} -lrt" REPLAY_LIBS="${REPLAY_LIBS} -lrt"
else else
case " $LIBOBJS " in
case " $LIBOBJS " in
*" nanosleep.$ac_objext "* ) ;; *" nanosleep.$ac_objext "* ) ;;
*) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
;; ;;
esac esac
for _sym in nanosleep; do
COMPAT_EXP="${COMPAT_EXP}${_sym}
"
done
fi fi

View File

@@ -2580,7 +2580,10 @@ AC_CHECK_FUNCS([memset_s], [], [
]) ])
AC_CHECK_FUNCS(nanosleep, [], [ AC_CHECK_FUNCS(nanosleep, [], [
# On Solaris, nanosleep is in librt # On Solaris, nanosleep is in librt
AC_CHECK_LIB(rt, nanosleep, [REPLAY_LIBS="${REPLAY_LIBS} -lrt"], [AC_LIBOBJ(nanosleep)]) AC_CHECK_LIB(rt, nanosleep, [REPLAY_LIBS="${REPLAY_LIBS} -lrt"], [
AC_LIBOBJ(nanosleep)
SUDO_APPEND_COMPAT_EXP(nanosleep)
])
]) ])
AC_CHECK_FUNCS([pw_dup], [], [ AC_CHECK_FUNCS([pw_dup], [], [
AC_LIBOBJ(pw_dup) AC_LIBOBJ(pw_dup)