forked from enlightenment/efl
efl: Use actual destination dirs in warning about using non-standard prefix
Summary: Instead of relying on ${prefix}/share to be the default for ${datadir} or ${dbusservicedir} use the actual paths where the files will be placed. Somewhat tricky because of autoconfs desire to keep prefix changeable but continuously evaluating the variables until they don't change work. Reviewers: raster, englebass Reviewed By: raster CC: cedric, stefan_schmidt Differential Revision: https://phab.enlightenment.org/D581
This commit is contained in:
parent
e60e56aada
commit
0f1883df9a
20
configure.ac
20
configure.ac
|
@ -4425,6 +4425,20 @@ if test -n "$CFOPT_WARNING"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$prefix" != "x/usr"; then
|
if test "x$prefix" != "x/usr"; then
|
||||||
|
old=
|
||||||
|
path=$dbusservicedir
|
||||||
|
while test "x$old" != "x$path"; do
|
||||||
|
old=$path
|
||||||
|
eval path="\"$path\""
|
||||||
|
done
|
||||||
|
resolved_dbusservicedir=$path
|
||||||
|
old=
|
||||||
|
path=$datadir
|
||||||
|
while test "x$old" != "x$path"; do
|
||||||
|
old=$path
|
||||||
|
eval path="\"$path\""
|
||||||
|
done
|
||||||
|
resolved_datadir=$path
|
||||||
echo ""
|
echo ""
|
||||||
echo "#-------------------------------------------------------------------#"
|
echo "#-------------------------------------------------------------------#"
|
||||||
echo "##==-- ALERT --==##"
|
echo "##==-- ALERT --==##"
|
||||||
|
@ -4434,10 +4448,10 @@ if test "x$prefix" != "x/usr"; then
|
||||||
echo "to ensure some files are visible to dbus otherwise services cannot"
|
echo "to ensure some files are visible to dbus otherwise services cannot"
|
||||||
echo "be started when needed. You will need to do the following:"
|
echo "be started when needed. You will need to do the following:"
|
||||||
echo ""
|
echo ""
|
||||||
echo " ln -s $prefix/share/dbus-1/services/org.enlightenment.Ethumb.service /usr/share/dbus-1/services/org.enlightenment.Ethumb.service"
|
echo " ln -s ${resolved_dbusservicedir}/org.enlightenment.Ethumb.service /usr/share/dbus-1/services/org.enlightenment.Ethumb.service"
|
||||||
echo " ln -s $prefix/share/dbus-1/services/org.enlightenment.Efreet.service /usr/share/dbus-1/services/org.enlightenment.Efreet.service"
|
echo " ln -s ${resolved_dbusservicedir}/org.enlightenment.Efreet.service /usr/share/dbus-1/services/org.enlightenment.Efreet.service"
|
||||||
echo ""
|
echo ""
|
||||||
echo "or add \"$prefix/share\" to \$XDG_DATA_DIRS"
|
echo "or add \"${resolved_datadir}\" to \$XDG_DATA_DIRS"
|
||||||
echo ""
|
echo ""
|
||||||
echo "#-------------------------------------------------------------------#"
|
echo "#-------------------------------------------------------------------#"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue