]> err.no Git - util-linux/commitdiff
build-sys: add missing tests for libuuid and libblkid
authorKarel Zak <kzak@redhat.com>
Fri, 12 Feb 2010 11:43:07 +0000 (12:43 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Feb 2010 08:58:57 +0000 (09:58 +0100)
$ make checkconfig
misc-utils/blkid.c : HAVE_TERMIO_H
misc-utils/blkid.c : HAVE_TERMIOS_H
shlibs/blkid/src/getsize.c : HAVE_FSTAT64
shlibs/blkid/src/llseek.c : HAVE_LLSEEK_PROTOTYPE
shlibs/blkid/src/llseek.c : HAVE_LSEEK64_PROTOTYPE
shlibs/uuid/src/gen_uuid.c : HAVE_SA_LEN*/
shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SOCKET_H
shlibs/uuid/src/gen_uuid.c : HAVE_SYS_SYSCALL_H

Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
shlibs/uuid/src/gen_uuid.c

index 1fef94445deae5ffc8236e899ef7ca6d9ceed1ad..5e99a10a84adb7178e49124dfa3f4df9e2474d26 100644 (file)
@@ -126,6 +126,8 @@ AC_CHECK_HEADERS(
        sys/prctl.h \
        sys/queue.h \
        sys/sockio.h \
+       sys/socket.h \
+       sys/syscall.h \
        sys/file.h \
        sys/ioctl.h \
        sys/stat.h \
@@ -140,9 +142,24 @@ AC_CHECK_HEADERS([linux/raw.h],
 
 AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]])
 
+AC_CHECK_DECL([llseek],
+       [AC_DEFINE(HAVE_LLSEEK_PROTOTYPE, 1,
+                       [Define to 1 if have llseek prototype])],
+       [],
+       [#include <unistd.h>])
+
+AC_CHECK_DECL([lseek64],
+       [AC_DEFINE(HAVE_LSEEK64_PROTOTYPE, 1,
+                       [Define to 1 if have lseek64 prototype])],
+       [],
+       [#define _LARGEFILE_SOURCE
+        #define _LARGEFILE64_SOURCE
+        #include <unistd.h>])
+
 AC_CHECK_FUNCS(
        [inet_aton \
        futimens \
+       fstat64 \
        fsync \
        getdomainname \
        get_current_dir_name \
index 5434b523ea4088ae7c836fe096c0d0a485f74ee7..a90bd8ee01605fb441dac4c1e6e6ae74fd3e4111 100644 (file)
@@ -248,7 +248,7 @@ static int get_node_id(unsigned char *node_id)
      sizeof((i).ifr_name)+(i).ifr_addr.sa_len)
 #else
 #define ifreq_size(i) sizeof(struct ifreq)
-#endif /* HAVE_SA_LEN*/
+#endif /* HAVE_SA_LEN */
 
        sd = socket(AF_INET, SOCK_DGRAM, IPPROTO_IP);
        if (sd < 0) {