#!/bin/sh
#
# $Header: /home/anoncvs/sdelete/configure,v 1.4 2018/09/10 17:53:53 bigby Exp $
#

FILES="/lib*/librt.* /usr/lib*/librt.*"

echo "Configuring..."

echo -n "needs librt..."

for FILE in $FILES
do
	if [ -f "$FILE" ]
	then
		LRT=1
	fi
done

if [ "$LRT" ]
then
	echo "yes"
	cat Makefile.in | sed "s/@@LRT@@/LDFLAGS += -lrt/" > Makefile
else
	echo "no"
	cat Makefile.in | sed s/@@LRT@@// > Makefile
fi

echo "Done configuring"
