summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2018-06-29 14:43:03 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-06-29 14:43:03 +0900
commit9386e2dd77f7a1046e8aab56b5e8183c56f8c863 (patch)
tree641bacf9c420ea69fb591491a3c5967566096072 /configure.ac
parent5599f2f70ce18ce2fc042a6e95cf183f06d99d60 (diff)
configure: check if realpath program exists
Summary: If realpath program does not exist, then readlink program can be used. Test Plan: Execute configure and check the log "checking for realpath". If realpath program does not exist, then "checking for readlink" log is also printed. Reviewers: woohyun, lauromoura, devilhorns Reviewed By: lauromoura Subscribers: cedric, #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6470
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 48782e8..fa8a570 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1453,7 +1453,15 @@ AC_SUBST([CUSTOM_EXPORTS_MONO_DL_MONO])
1453# Eos file/library mapping 1453# Eos file/library mapping
1454 1454
1455# Unescaped sed pattern: sed -n 's/src\/lib\/\([a-z0-9_]*\)\/[a-z\/]*\/\([a-z0-9\._]*\)/\2,\1/pg' 1455# Unescaped sed pattern: sed -n 's/src\/lib\/\([a-z0-9_]*\)\/[a-z\/]*\/\([a-z0-9\._]*\)/\2,\1/pg'
1456_configure_path=`realpath $0` 1456AC_CHECK_PROG([have_realpath], [realpath], [yes], [no])
1457if test "x${have_realpath}" = "xyes" ; then
1458 _configure_path=`realpath $0`
1459else
1460 AC_CHECK_PROG([have_readlink], [readlink], [yes], [no])
1461 if test "x${have_readlink}" = "xyes" ; then
1462 _configure_path=`readlink -f $0`
1463 fi
1464fi
1457efl_mono_top_srcdir=`dirname ${_configure_path}` 1465efl_mono_top_srcdir=`dirname ${_configure_path}`
1458EFL_MONO_LIBRARY_MAP=`find ${efl_mono_top_srcdir}/src/lib/ -iname "*\.eo" | sed -n 's/.*\/src\/lib\/\(@<:@a-z0-9_@:>@*\)@<:@\/a-z@:>@*\/\(@<:@a-z0-9\._@:>@*\)/\2,\1/pg'` 1466EFL_MONO_LIBRARY_MAP=`find ${efl_mono_top_srcdir}/src/lib/ -iname "*\.eo" | sed -n 's/.*\/src\/lib\/\(@<:@a-z0-9_@:>@*\)@<:@\/a-z@:>@*\/\(@<:@a-z0-9\._@:>@*\)/\2,\1/pg'`
1459 1467