diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2012-03-19 23:42:14 +0100 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2012-03-19 23:42:14 +0100 |
commit | 81a11e5870313a2abdcf479f8aea0dcfa78c81fb (patch) | |
tree | c8847d0c8d26d78d27ed48e00139678a6e8ef08a /mig.in | |
parent | f392d170938263d6fa4823fd2fb57b77747e787c (diff) | |
download | mig-81a11e5870313a2abdcf479f8aea0dcfa78c81fb.tar.gz mig-81a11e5870313a2abdcf479f8aea0dcfa78c81fb.tar.bz2 mig-81a11e5870313a2abdcf479f8aea0dcfa78c81fb.zip |
Make the installation tree relocatable.
* mig.in: Compute a relative path from the mig to migcom.
Diffstat (limited to 'mig.in')
-rw-r--r-- | mig.in | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -27,7 +27,13 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ -migcom=${MIGDIR-@libexecdir@}/${MIGCOM-@MIGCOM@} +bindir=@bindir@ +libexecdir=@libexecdir@ +libexecdir_rel=$(perl -MFile::Spec -e 'print File::Spec->abs2rel("'"$libexecdir"'","'"$bindir"'")') +bindir_real=$(dirname "$0") +bindir_real=$(cd "$bindir_real"/ && pwd) +libexecdir=$bindir_real/$libexecdir_rel +migcom=${MIGDIR-$libexecdir}/${MIGCOM-@MIGCOM@} # The expansion of TARGET_CC might refer to ${CC}, so make sure it is defined. default_cc="@CC@" |