projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4f0fe3
)
add version reporting for MHD to report.sh
author
Christian Grothoff
<christian@grothoff.org>
Wed, 21 Dec 2011 09:56:42 +0000
(09:56 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Wed, 21 Dec 2011 09:56:42 +0000
(09:56 +0000)
contrib/report.sh
patch
|
blob
|
history
diff --git
a/contrib/report.sh
b/contrib/report.sh
index cde7aa80507f8c24f4e97bbddea71efb38d5c717..37a1c41ad0931454cf69e263c264db4d6d4f18e5 100755
(executable)
--- 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 "--------------------------------------------------------------"