#!/bin/sh
#set -v
# A dirty quick way to "autoconfigure" the package
# The problem is in __u32 being important for alpha compatibility.
# This type is missing from elder kernels (and include files).

cat > /tmp/_gpmchk.c << EOF

#include <sys/types.h>
__u32 this;
int main(void) {}

EOF

gcc /tmp/_gpmchk.c -o /tmp/_gpmchk 2> /dev/null || \
	echo '-D"__u32=unsigned int"'

rm -f /tmp/_gpmchk*
