freebsd-ports/emulators/qemu/files/patch-configure
Juergen Lock 7052bc7d68 - Fix libcurl probe for emulators/qemu and add proper dependencies and knobs.
- Bump PORTREVISIONs.

PR:		ports/145591
Submitted by:	gcooper
2010-04-11 11:42:38 +00:00

33 lines
1.1 KiB
Text

Index: qemu/configure
@@ -1154,8 +1154,9 @@
#include <curl/curl.h>
int main(void) { return curl_easy_init(); }
EOF
+ curl_cflags=`curl-config --cflags 2>/dev/null`
curl_libs=`curl-config --libs 2>/dev/null`
- if $cc $ARCH_CFLAGS $curl_libs -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
+ if $cc $ARCH_CFLAGS $curl_cflags $curl_libs -o $TMPE $TMPC > /dev/null 2> /dev/null ; then
curl=yes
fi
fi # test "$curl"
@@ -1395,9 +1395,9 @@
fi
# Check if tools are available to build documentation.
-if test "$build_docs" = "yes" -a \( ! -x "`which texi2html 2>/dev/null`" -o ! -x "`which pod2man 2>/dev/null`" \) ; then
- build_docs="no"
-fi
+#if test "$build_docs" = "yes" -a \( ! -x "`which texi2html 2>/dev/null`" -o ! -x "`which pod2man 2>/dev/null`" \) ; then
+# build_docs="no"
+#fi
##########################################
# Do we need librt
@@ -1760,6 +1761,7 @@
echo "CONFIG_CURL=y" >> $config_host_mak
echo "CURL_LIBS=$curl_libs" >> $config_host_mak
echo "#define CONFIG_CURL 1" >> $config_host_h
+ echo "CURL_CFLAGS=$curl_cflags" >> $config_host_mak
fi
if test "$brlapi" = "yes" ; then
echo "CONFIG_BRLAPI=y" >> $config_host_mak