diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:56:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-21 09:56:42 +0000 |
commit | 6381145c3f6714dcf6cda24751c73a397a9f3f51 (patch) | |
tree | 84b88a2907acba60370d8d5f35fc7ae70ce0ff44 /contrib/report.sh | |
parent | c4f0fe3ea5a5ca3ce1f7dfecef719da631e4c6ac (diff) | |
download | gnunet-6381145c3f6714dcf6cda24751c73a397a9f3f51.tar.gz gnunet-6381145c3f6714dcf6cda24751c73a397a9f3f51.zip |
add version reporting for MHD to report.sh
Diffstat (limited to 'contrib/report.sh')
-rwxr-xr-x | contrib/report.sh | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/contrib/report.sh b/contrib/report.sh index cde7aa805..37a1c41ad 100755 --- a/contrib/report.sh +++ b/contrib/report.sh | |||
@@ -181,9 +181,20 @@ else | |||
181 | echo "Qt : Not found" | 181 | echo "Qt : Not found" |
182 | fi | 182 | fi |
183 | 183 | ||
184 | 184 | echo -n "MHD : " | |
185 | 185 | TMPFILE=`mktemp /tmp/mhd-version-testXXXXXX` | |
186 | 186 | cat - >$TMPFILE.c <<EOF | |
187 | #include <microhttpd.h> | ||
188 | #include <stdio.h> | ||
189 | int main() | ||
190 | { | ||
191 | fprintf (stdout, "%X\n", MHD_VERSION); | ||
192 | return 0; | ||
193 | } | ||
194 | EOF | ||
195 | |||
196 | gcc -o $TMPFILE $TMPFILE.c 2> /dev/null && $TMPFILE || echo "Not found" | ||
197 | rm -f $TMPFILE $TMPFILE.bin | ||
187 | 198 | ||
188 | 199 | ||
189 | echo "--------------------------------------------------------------" | 200 | echo "--------------------------------------------------------------" |