]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - configure.ac
Drop loc_load function
[people/ms/libloc.git] / configure.ac
index f8bc41e689c3717d0da588d2e089df476b350f6b..3bd88a2000c3df9237ee09099b48b227de8195dd 100644 (file)
@@ -39,7 +39,20 @@ AS_IF([test "x$enable_debug" = "xyes"], [
         AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
 ])
 
+AC_CHECK_HEADERS_ONCE([
+       arpa/inet.h \
+       endian.h \
+       netinet/in.h \
+       string.h \
+])
+
 AC_CHECK_FUNCS([ \
+        be16toh \
+        be32toh \
+        be64toh \
+        htobe16 \
+        htobe32 \
+        htobe64 \
         mmap \
         munmap \
        __secure_getenv \
@@ -62,6 +75,10 @@ my_CFLAGS="\
 "
 AC_SUBST([my_CFLAGS])
 
+# Python
+AM_PATH_PYTHON([3.4])
+PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
+
 AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
         Makefile
@@ -81,6 +98,5 @@ AC_MSG_RESULT([
         cflags:                 ${CFLAGS}
         ldflags:                ${LDFLAGS}
 
-        logging:                ${enable_logging}
         debug:                  ${enable_debug}
 ])