Do not hardcode paths in scripts

Try to reuse the configured paths as much as possible. Unfortunately, to
be able to fully expand some variable (e.g. `bindir`), these files must
be expanded by make, not by configure. This adds some complexity:

https://www.gnu.org/software/automake/manual/html_node/Scripts.html
This commit is contained in:
Nicola Fontana
2021-07-22 14:40:03 +02:00
parent 673e50e692
commit 4c8ffd9a57
4 changed files with 27 additions and 8 deletions
+2 -2
View File
@@ -38,11 +38,11 @@ MODPROBE=/sbin/modprobe
RMMOD=/sbin/rmmod
MODINFO=/sbin/modinfo
ETHERCAT=@prefix@/bin/ethercat
ETHERCAT=@bindir@/ethercat
#------------------------------------------------------------------------------
ETHERCAT_CONFIG=/etc/ethercat.conf
ETHERCAT_CONFIG=@sysconfdir@/ethercat.conf
if [ ! -r ${ETHERCAT_CONFIG} ]; then
echo ${ETHERCAT_CONFIG} not existing;