-fix ftbfs if extractor.h present but libextractor.so missing
authorChristian Grothoff <christian@grothoff.org>
Sat, 2 Jul 2016 13:21:22 +0000 (13:21 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 2 Jul 2016 13:21:22 +0000 (13:21 +0000)
configure.ac
src/include/gnunet_container_lib.h

index e4d3fa6a18fd27f09d6f994aa0320143a54095fd..79cfa2ec2a76e75800892523a4450a96cbad9861 100644 (file)
@@ -727,6 +727,8 @@ fi
 if test $gl_libunistring_hexversion -le 2305; then
  AC_MSG_ERROR([GNUnet requires libunistring >= 0.9.1.1])
 fi
+AC_CHECK_HEADERS([unistr.h],,AC_MSG_ERROR([Compiling GNUnet requires unistr.h (from libunistring) to be installed]))
+
 # restore LIBS
 LIBS=$SAVE_LIBS
 
index 32eb2caa5b92d7e0d81355a310c2ca0513ad1622..03c47c2019b701d24858411c7ce4748759e8e7b0 100644 (file)
@@ -89,12 +89,10 @@ GNUNET_decompress (const char *input,
                    size_t output_size);
 
 
-#if HAVE_EXTRACTOR_H && HAVE_LIBEXTRACTOR
+#if HAVE_EXTRACTOR_H
 
 #include <extractor.h>
 
-
-
 #else
 
 /* definitions from extractor.h we need for the build */