-stuff
[oweals/gnunet.git] / configure.ac
index e6e465435eecf1c39395743f4e10893e829df900..d2a6939b33b34d4bf40eb6176d1db0fe76dc9c8e 100644 (file)
@@ -369,37 +369,13 @@ fi
 LIBS=$SAVE_LIBS
 
 # test for libunistring
-unistring=0
-AC_MSG_CHECKING(for libunistring)
-AC_ARG_WITH(unistring,
-   [  --with-unistring=PFX    base of libunistring installation],
-   [AC_MSG_RESULT([$with_unistring])
-    case $with_unistring in
-      no)
-        ;;
-      yes)
-        AC_CHECK_HEADERS(unistr.h,
-          AC_CHECK_LIB([unistring], [u8_check],
-            unistring=1))
-        ;;
-      *)
-        LDFLAGS="-L$with_unistring/lib $LDFLAGS"
-        CPPFLAGS="-I$with_unistring/include $CPPFLAGS"
-        AC_CHECK_HEADERS(unistr.h,
-          AC_CHECK_LIB([unistring], [u8_check],
-            EXT_LIB_PATH="-L$with_unistring/lib $EXT_LIB_PATH"
-            unistring=1))
-        ;;
-    esac
-   ],
-   [AC_MSG_RESULT([--with-unistring not specified])
-    AC_CHECK_HEADERS(unistr.h,
-     AC_CHECK_LIB([unistring], [u8_check],
-      unistring=1))])
-if test "$unistring" != 1
-then
+gl_LIBUNISTRING
+if test $HAVE_LIBUNISTRING != yes; then
  AC_MSG_ERROR([GNUnet requires libunistring])
 fi
+if test $gl_libunistring_hexversion -le 2305; then
+ AC_MSG_ERROR([GNUnet requires libunistring >= 0.9.1.1])
+fi
 # restore LIBS
 LIBS=$SAVE_LIBS
 
@@ -844,6 +820,7 @@ src/core/Makefile
 src/datacache/Makefile
 src/datastore/Makefile
 src/dht/Makefile
+src/dns/Makefile
 src/dv/Makefile
 src/fragmentation/Makefile
 src/fs/Makefile