Changeset 12040
- Timestamp:
- Feb 25, 2011, 1:44:32 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r11985 r12040 220 220 dnl utp 221 221 222 AC_MSG_CHECKING([µTP]) 223 build_utp="no" 224 if test "x$CXX" = "x" ; then 225 have_utp="no" 226 else 227 have_utp="yes" 228 fi 222 229 AC_ARG_ENABLE([utp], 223 230 AS_HELP_STRING([--enable-utp],[build µTP support]), 224 [build_utp=${enableval}], 225 [build_utp=no]) 226 if test "x$build_utp" = "xyes" ; then 227 LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/" 228 LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a -lrt" 229 AC_DEFINE([WITH_UTP],[1]) 230 fi 231 [want_utp=${enableval}], 232 [want_utp=${have_utp}]) 233 if test "x$want_utp" = "xyes" ; then 234 if test "x$have_utp" = "xyes"; then 235 LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/" 236 LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a -lrt" 237 AC_DEFINE([WITH_UTP],[1]) 238 build_utp="yes" 239 else 240 AC_MSG_ERROR("Unable to build uTP support -- C++ compiler not found") 241 fi 242 fi 231 243 AC_SUBST(LIBUTP_CFLAGS) 232 244 AC_SUBST(LIBUTP_LIBS) 233 245 AM_CONDITIONAL([BUILD_UTP],[test "x$build_utp" = "xyes"]) 246 AC_MSG_RESULT([$build_utp]) 234 247 235 248
Note: See TracChangeset
for help on using the changeset viewer.