From 189151cc03330f46e1c8d564ba2aef609e8780c0 Mon Sep 17 00:00:00 2001 From: Mike Gelfand Date: Sat, 27 Dec 2014 23:33:51 +0000 Subject: [PATCH] #5805: Use bundled libutp by default if no system libutp found --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0a87f353f..dfa6b8271 100644 --- a/configure.ac +++ b/configure.ac @@ -220,12 +220,18 @@ AC_LINK_IFELSE( [have_utp="yes"], [have_utp="no"] ) -LIBS=$ac_save_LIBS +LIBS="$ac_save_LIBS" + +if test "x$have_utp" = "xyes" -o "x$CXX" != "x"; then + want_utp_default="yes" +else + want_utp_default="no" +fi AC_ARG_ENABLE([utp], AS_HELP_STRING([--enable-utp],[build µTP support]), [want_utp=${enableval}], - [want_utp=${have_utp}]) + [want_utp=${want_utp_default}]) if test "x$want_utp" = "xyes"; then if test "x$have_utp" = "xyes"; then dnl Would be lovely if it had pkgconfig