summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-09-06 10:50:39 -0400
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2018-09-06 10:50:39 -0400
commit2bb8ce5364a7e99674e712f2e4db4961f8acf080 (patch)
tree1365668411c1d5a948cce46f926615ed44f32abf
parentcba728f142fc7fa7219d1be49c8cb4aada4309f3 (diff)
downloadrandom-seed-2bb8ce5364a7e99674e712f2e4db4961f8acf080.tar.xz
random-seed-2bb8ce5364a7e99674e712f2e4db4961f8acf080.zip
Fix autoconf install variables
-rw-r--r--Makefile.in6
-rw-r--r--configure.ac6
2 files changed, 6 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 099a89a..124b32a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -13,8 +13,8 @@ sbindir = @sbindir@
sysconfdir = @sysconfdir@
localstatedir = @localstatedir@
mandir = @mandir@
-systemdsystemunitdir = @systemdsystemunitdir@
-default_seed_path_dir = @default_seed_path_dir@
+systemdsystemunitdir = @SYSTEMDSYSTEMUNITDIR@
+default_seed_dir = @DEFAULT_SEED_DIR@
CC = @CC@
CFLAGS = @CFLAGS@
@@ -69,7 +69,7 @@ endif
systemd/random-seed.service systemd/random-seed-save.service: Makefile
@mkdir -p $(@D)
sed -e 's|@sbindir[@]|$(sbindir)|g' \
- -e 's|@default_seed_path_dir[@]|$(default_seed_path_dir)|g' \
+ -e 's|@default_seed_dir[@]|$(default_seed_path_dir)|g' \
$< > $@
systemd/random-seed.service: systemd/random-seed.service.in
diff --git a/configure.ac b/configure.ac
index b802932..c4f753c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,10 +88,10 @@ AC_ARG_VAR([DEFAULT_RANDOM_SEED_PATH], [default seed path if no command line arg
AS_IF([test -z "$DEFAULT_RANDOM_SEED_PATH"], [
DEFAULT_RANDOM_SEED_PATH=/var/lib/random-seed
])
-AC_DEFINE_UNQUOTED(DEFAULT_SEED_PATH, "$DEFAULT_SEED_PATH", [default seed path])
+AC_DEFINE_UNQUOTED(DEFAULT_SEED_PATH, "$DEFAULT_RANDOM_SEED_PATH", [default seed path])
# everybody has POSIX shell now.
-DEFAULT_SEED_PATH_DIR=${DEFAULT_SEED_PATH%/*}
-AC_SUBST(DEFAULT_SEED_PATH_DIR)
+DEFAULT_SEED_DIR=${DEFAULT_RANDOM_SEED_PATH%/*}
+AC_SUBST(DEFAULT_SEED_DIR)
AX_APPEND_FLAG(-D_GNU_SOURCE, CPPFLAGS)
AX_APPEND_FLAG(-D_DEFAULT_SOURCE, CPPFLAGS)