summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2011-03-24 20:54:36 +0000
committerNils Durner <durner@gnunet.org>2011-03-24 20:54:36 +0000
commite73ad04f2d8e0bbd99431d4c412f3a2358f3e299 (patch)
tree0712945735d63b017e6fdaea56213b312166b614 /configure.ac
parent77fefd17be94fe61bc95f37ffbd2bfd8d32d6c88 (diff)
cross-compiler changes
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b5b957212..3e45ddaa5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,7 +29,7 @@ AC_CONFIG_HEADERS([gnunet_config.h])
AH_TOP([#define _GNU_SOURCE 1])
# Checks for programs.
-AC_CANONICAL_HOST
+AC_CANONICAL_SYSTEM
AC_PROG_AWK
AC_PROG_CC
gl_EARLY
@@ -193,6 +193,8 @@ then
AC_MSG_ERROR([GNUnet needs libgcrypt])
fi
+if test $build = $target
+then
AC_MSG_CHECKING([for working HMAC])
AC_LANG_PUSH(C)
LIBS="$LIBS $LIBGCRYPT_LIBS"
@@ -247,6 +249,8 @@ LIBCURL_CHECK_CONFIG(,7.20.1,,AC_MSG_ERROR([GNUnet requires libcurl >= 7.20.1]))
# restore LIBS
LIBS=$SAVE_LIBS
+fi # $build = $target
+
# glpk
#AC_CHECK_HEADERS(glpk.h, glpk=true)
#AM_CONDITIONAL(HAVE_GLPK, test x$glpk = xtrue)