]> arthur.barton.de Git - bup.git/commitdiff
config/configure: ignore utimensat on GNU/kFreeBSD.
authorGonéri Le Bouder <goneri@rulezlan.org>
Thu, 8 Aug 2013 22:30:28 +0000 (18:30 -0400)
committerRob Browning <rlb@defaultvalue.org>
Sat, 10 Aug 2013 15:55:25 +0000 (10:55 -0500)
Even though we'll find it, it won't work.

See also:

  http://bugs.debian.org/651104
  http://lists.debian.org/debian-bsd/2011/03/msg00063.html

Signed-off-by: Gonéri Le Bouder <goneri@rulezlan.org>
[rlb@defaultvalue.org: adjust indentation, comments, and message.]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
config/configure

index 6f47f84fc5c06ba69da097c6f9ffde4497cec038..e3866ecec15d30d44da14a18ab4ea84ea2362fce 100755 (executable)
@@ -49,7 +49,10 @@ AC_CHECK_HEADERS unistd.h
 AC_CHECK_HEADERS linux/fs.h
 AC_CHECK_HEADERS sys/ioctl.h
 
-AC_CHECK_FUNCS utimensat 
+# On GNU/kFreeBSD utimensat is defined in GNU libc, but won't work.
+if [ -z "$OS_GNUKFREEBSD" ]; then
+    AC_CHECK_FUNCS utimensat
+fi
 AC_CHECK_FUNCS utimes
 AC_CHECK_FUNCS lutimes