2011-10-24 Ralf Corsépius <ralf.corsepius@rtems.org>

* configure.ac: Check for decls of utime and utimes.
This commit is contained in:
Ralf Corsepius
2011-10-24 13:08:05 +00:00
parent 68b1b174d3
commit 74bfa2e492
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -1,3 +1,7 @@
2011-10-24 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for decls of utime and utimes.
2011-10-24 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1942/cpukit:
+9
View File
@@ -298,6 +298,15 @@ AC_CHECK_DECLS([sbrk],,,[#include <unistd.h>])
## 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 <utime.h> should be sufficient.
AC_CHECK_DECLS([utime],,,[#include <sys/types.h>
#include <utime.h>])
## Check if libc provides decl of utimes
AC_CHECK_DECLS([utimes],,,[#include <sys/time.h>])
# ... 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")