Whamcloud - gitweb
If --sbindir, et. al are specified to configure set $root_sbindir, et al.
authorTheodore Ts'o <tytso@mit.edu>
Fri, 4 Jan 2008 21:55:37 +0000 (16:55 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 4 Jan 2008 21:55:37 +0000 (16:55 -0500)
If the user specifies as arguments to configure --bindir, --sbindir,
--libdir, or --sysconfdir, then set corresponding $root_FOO variable,
so that the request from the user to set a specific --sbindir is
honored.

Addresses-Sourceforge-Bug: 498381

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
configure
configure.in

index 074aae1..4ab9e94 100755 (executable)
--- a/configure
+++ b/configure
@@ -15191,6 +15191,22 @@ else
        root_libdir='${root_prefix}/lib'
        root_sysconfdir='${root_prefix}/etc'
 fi
+if test "$bindir" != '${exec_prefix}/bin'; then
+    root_bindir=$bindir
+    echo "Setting root_bindir to $root_bindir"
+fi
+if test "$sbindir" != '${exec_prefix}/sbin'; then
+    root_sbindir=$sbindir
+    echo "Setting root_sbindir to $root_sbindir"
+fi
+if test "$libdir" != '${exec_prefix}/lib'; then
+    root_libdir=$libdir
+    echo "Setting root_libdir to $root_libdir"
+fi
+if test "$sysconfdir" != '${prefix}/etc'; then
+    root_sysconfdir=$sysconfdir
+    echo "Setting root_sysconfdir to $root_sysconfdir"
+fi
 
 
 
index 19cea96..12baa6b 100644 (file)
@@ -853,6 +853,22 @@ else
        root_libdir='${root_prefix}/lib'
        root_sysconfdir='${root_prefix}/etc'
 fi
+if test "$bindir" != '${exec_prefix}/bin'; then
+    root_bindir=$bindir
+    echo "Setting root_bindir to $root_bindir"
+fi
+if test "$sbindir" != '${exec_prefix}/sbin'; then
+    root_sbindir=$sbindir
+    echo "Setting root_sbindir to $root_sbindir"
+fi
+if test "$libdir" != '${exec_prefix}/lib'; then
+    root_libdir=$libdir
+    echo "Setting root_libdir to $root_libdir"
+fi
+if test "$sysconfdir" != '${prefix}/etc'; then
+    root_sysconfdir=$sysconfdir
+    echo "Setting root_sysconfdir to $root_sysconfdir"
+fi
 AC_SUBST(root_prefix)
 AC_SUBST(root_bindir)
 AC_SUBST(root_sbindir)