aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorgrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-12-21 09:56:42 +0000
committergrothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96>2011-12-21 09:56:42 +0000
commite9d52f699295681b5b770fd5f01fa653c77e95e9 (patch)
tree84b88a2907acba60370d8d5f35fc7ae70ce0ff44 /contrib
parenta60fa1f774468f2e9fab917949e3aca49e8e020f (diff)
add version reporting for MHD to report.sh
git-svn-id: https://gnunet.org/svn/gnunet@18732 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/report.sh17
1 files changed, 14 insertions, 3 deletions
diff --git a/contrib/report.sh b/contrib/report.sh
index cde7aa8050..37a1c41ad0 100755
--- a/contrib/report.sh
+++ b/contrib/report.sh
@@ -181,9 +181,20 @@ else
echo "Qt : Not found"
fi
-
-
-
+echo -n "MHD : "
+TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX`
+cat - >$TMPFILE.c <<EOF
+#include <microhttpd.h>
+#include <stdio.h>
+int main()
+{
+ fprintf (stdout, "%X\n", MHD_VERSION);
+ return 0;
+}
+EOF
+
+gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found"
+rm -f $TMPFILE $TMPFILE.bin
echo "--------------------------------------------------------------"