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:
Jan Engelhardt
2008-02-29 13:48:37 +01:00
parent 6177839a04
commit 7c09f5db2f

View File

@@ -2,8 +2,16 @@
top_srcdir := @top_srcdir@
srcdir := @srcdir@
abstop_srcdir := $(realpath ${top_srcdir})
abssrcdir := $(realpath ${srcdir})
abstop_srcdir := $(shell readlink -e ${top_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@
exec_prefix := @exec_prefix@
libdir := @libdir@