aboutsummaryrefslogblamecommitdiffstats
path: root/contrib/goflags.sh
blob: 8cc7ae8c96ca9739fdc1200043de2688aac97e81 (plain) (tree)
1
2
3
4
5
6
7





         
                                                           











                                                         
#!/bin/sh

set -e

tags=

if ${CC:-cc} -x c - -o/dev/null -lnotmuch 2>/dev/null; then
	tags="$tags,notmuch"
fi <<EOF
#include <notmuch.h>

void main(void) {
	notmuch_status_to_string(NOTMUCH_STATUS_SUCCESS);
}
EOF

if [ -n "$tags" ]; then
	printf -- '-tags=%s\n' "${tags#,}"
fi