ref: 35fda4d7b03a28d28239564f355a5b61dd12afe6
parent: 4b70af03f9038b74b51471e489c2b9cf0a0f1d0b
author: Ralph Giles <giles@mozilla.com>
date: Wed Oct 24 07:00:39 EDT 2012
Disable HTTP support if sys/socket.h isn't present. This avoids trying to build in http support when cross-compiling for windows. Also cleans up some adjacent formatting.
--- a/configure.ac
+++ b/configure.ac
@@ -40,13 +40,15 @@
AS_HELP_STRING([--disable-http], [Disable HTTP support]),,
enable_http=yes)
-AS_IF([test "x$enable_http" != "xno"],
- [openssl="openssl"
+AC_CHECK_HEADER([sys/socket.h],,[enable_http=no])
+
+AS_IF([test "x$enable_http" != "xno"], [
+ openssl="openssl"
AC_DEFINE([OP_ENABLE_HTTP], [1], [Enable HTTP support])
])
AC_SUBST(openssl)
-PKG_CHECK_MODULES([DEPS], [ogg >= 1.3 opus >= 1.0.1 ]${openssl})
+PKG_CHECK_MODULES([DEPS], [ogg >= 1.3 opus >= 1.0.1 ${openssl}])
AC_ARG_ENABLE([fixed-point],
AS_HELP_STRING([--enable-fixed-point], [Enable fixed-point calculation]),,