mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-09 14:14:58 +02:00
Use system's readlink program to make things work with GNU make < 3.81
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
This commit is contained in:
@@ -2,8 +2,16 @@
|
|||||||
|
|
||||||
top_srcdir := @top_srcdir@
|
top_srcdir := @top_srcdir@
|
||||||
srcdir := @srcdir@
|
srcdir := @srcdir@
|
||||||
abstop_srcdir := $(realpath ${top_srcdir})
|
abstop_srcdir := $(shell readlink -e ${top_srcdir})
|
||||||
abssrcdir := $(realpath ${srcdir})
|
abssrcdir := $(shell readlink -e ${srcdir})
|
||||||
|
|
||||||
|
if (${abstop_srcdir},)
|
||||||
|
$(error Path resolution of ${top_srcdir} failed)
|
||||||
|
endif
|
||||||
|
if (${abssrcdir},)
|
||||||
|
$(error Path resolution of ${srcdir} failed)
|
||||||
|
endif
|
||||||
|
|
||||||
prefix := @prefix@
|
prefix := @prefix@
|
||||||
exec_prefix := @exec_prefix@
|
exec_prefix := @exec_prefix@
|
||||||
libdir := @libdir@
|
libdir := @libdir@
|
||||||
|
Reference in New Issue
Block a user