mirror of
https://frontier.innolan.net/rainlance/amiga-ntimed.git
synced 2026-05-02 18:46:05 +00:00
Detect if make(1) is GNU make, to avoid confusing debian kFreeBSD.
This commit is contained in:
12
configure
vendored
12
configure
vendored
@@ -74,8 +74,18 @@ SRCS='
|
||||
udp.c
|
||||
'
|
||||
|
||||
if [ -f /usr/share/mk/bsd.prog.mk ] ; then
|
||||
if make -v 2>&1 | grep -q GNU ; then
|
||||
echo "make(1) is GNU make."
|
||||
BSD=false
|
||||
elif [ -f /usr/share/mk/bsd.prog.mk ] ; then
|
||||
echo "Found bsd.prog.mk, will use it."
|
||||
BSD=true
|
||||
else
|
||||
echo "Defaulting to plain makefile"
|
||||
BSD=false
|
||||
fi
|
||||
|
||||
if $BSD ; then
|
||||
(
|
||||
echo '# BSD-style Makefile generated by configure'
|
||||
echo 'PROG = ntimed-client'
|
||||
|
||||
Reference in New Issue
Block a user