#!/bin/sh - # # $Id$ # # Look for trailing commas in declarations. Some compilers can't handle: # enum { # foo, # bar, # }; # mar 2010 added -D_GNU_SOURCE to compile on linux blade server d=../.. [ -f $d/LICENSE ] || { echo 'FAIL: cannot find source distribution directory.' exit 1 } s=$d/src if cc -g -Wall -D_GNU_SOURCE $0.c -o t; then : else echo "FAIL: unable to compile test program $0.c" exit 1 fi if ./t $s/*/*.[ch] $s/*/*.in; then : else echo "FAIL: test program failed" exit 1 fi rm -rf t exit 0