build: test byteswap.h and endian.h for bitops.h
authorCristian Rodríguez <crrodriguez@opensuse.org>
Mon, 3 Jun 2013 19:27:27 +0000 (15:27 -0400)
committerMilan Broz <gmazyland@gmail.com>
Mon, 3 Jun 2013 19:35:56 +0000 (21:35 +0200)
Otherwise the fallback code will be used.

configure.ac

index 7933710..02caa55 100644 (file)
@@ -32,7 +32,7 @@ PKG_PROG_PKG_CONFIG
 AC_HEADER_DIRENT
 AC_HEADER_STDC
 AC_CHECK_HEADERS(fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
-       ctype.h unistd.h locale.h)
+       ctype.h unistd.h locale.h byteswap.h endian.h)
 
 AC_CHECK_HEADERS(uuid/uuid.h,,[AC_MSG_ERROR([You need the uuid library.])])
 AC_CHECK_HEADER(libdevmapper.h,,[AC_MSG_ERROR([You need the device-mapper library.])])