From 74bfa2e4925d1c8d237b640c8a347baab5683e28 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 24 Oct 2011 13:08:05 +0000 Subject: [PATCH] =?UTF-8?q?2011-10-24=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * configure.ac: Check for decls of utime and utimes. --- cpukit/ChangeLog | 4 ++++ cpukit/configure.ac | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 923853ec45..4b0797a535 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2011-10-24 Ralf Corsépius + + * configure.ac: Check for decls of utime and utimes. + 2011-10-24 Ralf Corsépius PR 1942/cpukit: diff --git a/cpukit/configure.ac b/cpukit/configure.ac index da7e2b1384..d0dd326229 100644 --- a/cpukit/configure.ac +++ b/cpukit/configure.ac @@ -298,6 +298,15 @@ AC_CHECK_DECLS([sbrk],,,[#include ]) ## Check if libc provides BSD's strlcpy/strlcat AC_CHECK_FUNCS(strlcpy strlcat) +## Check if libc provides decl of utime +## FIXME: utime has been deprecated in SUSv4. +## and is likely to be removed in future versions. +## FIXME (BUG in newlib): SUSv4 saids including should be sufficient. +AC_CHECK_DECLS([utime],,,[#include +#include ]) +## Check if libc provides decl of utimes +AC_CHECK_DECLS([utimes],,,[#include ]) + # ... far too many conditionals ... AM_CONDITIONAL(LIBRPC,[test x"$rtems_cv_HAS_NETWORKING" = x"yes"]) AM_CONDITIONAL(NEWLIB,test x"$RTEMS_USE_NEWLIB" = x"yes")