]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Respect --localstatedir for /var/db parent directory.
authorRoland McGrath <roland@hack.frob.com>
Fri, 22 Jun 2012 17:11:07 +0000 (10:11 -0700)
committerRoland McGrath <roland@hack.frob.com>
Fri, 22 Jun 2012 17:11:07 +0000 (10:11 -0700)
ChangeLog
Makeconfig
config.make.in
configure
configure.in
sysdeps/gnu/configure
sysdeps/gnu/configure.in

index 6f3676f78a75caf09f93a293c509abcd5d0dd913..de044b38c10eb9fb281da1733d1592a2e389bc1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2012-06-22  Roland McGrath  <roland@hack.frob.com>
+
+       * configure.in (libc_cv_localstatedir): New substituted variable.
+       * configure: Regenerated.
+       * config.make.in (localstatedir): New variable, substituted from
+       libc_cv_localstatedir.
+       * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
+       * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
+       ${prefix}/var to /var when we change ${prefix}/etc to /etc.
+       * sysdeps/gnu/configure: Regenerated.
+
 2012-06-21  Jeff Law  <law@redhat.com>
 
        [BZ #14277]
index cba5db7d23728dcf1773ef70858a33b97b97c154..417fa508a6458edfa98c2caf23fe124e436b42e8 100644 (file)
@@ -287,7 +287,7 @@ inst_sysconfdir = $(install_root)$(sysconfdir)
 
 # Directory for the database files and Makefile for nss_db.
 ifndef vardbdir
-vardbdir = /var/db
+vardbdir = $(localstatedir)/db
 endif
 inst_vardbdir = $(install_root)$(vardbdir)
 
index f0db19929b5d9f6d1c887c4ff281a1a29fdb19ce..65410abe1b95c4280e47df7e2ce3945da55b7eda 100644 (file)
@@ -18,6 +18,7 @@ rootsbindir = @libc_cv_rootsbindir@
 infodir = @infodir@
 includedir = @includedir@
 datarootdir = @datarootdir@
+localstatedir = @libc_cv_localstatedir@
 
 # Should we use and build ldconfig?
 use-ldconfig = @use_ldconfig@
index 4d5d9e49f9ea034cac4641eaaf13fc8cc314e8ea..aa7869ff1781c62364379f3be48d03084d229d84 100755 (executable)
--- a/configure
+++ b/configure
@@ -592,6 +592,7 @@ libc_cv_cc_sse4
 libc_cv_cpp_asm_debuginfo
 libc_cv_forced_unwind
 libc_cv_rootsbindir
+libc_cv_localstatedir
 libc_cv_sysconfdir
 libc_cv_localedir
 libc_cv_slibdir
@@ -7448,6 +7449,7 @@ fi
 use_ldconfig=no
 ldd_rewrite_script=no
 libc_cv_sysconfdir=$sysconfdir
+libc_cv_localstatedir=$localstatedir
 libc_cv_gcc_unwind_find_fde=no
 libc_cv_idn=no
 
@@ -7511,6 +7513,7 @@ fi
 
 
 
+
 
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
index 81b14c9de780d11d0baa7c46b358c30ba11cafb5..4fe09c488cb8db7b665ea5e057ae0a472d19457e 100644 (file)
@@ -2119,6 +2119,7 @@ AC_SUBST(libc_extra_cflags)
 use_ldconfig=no
 ldd_rewrite_script=no
 libc_cv_sysconfdir=$sysconfdir
+libc_cv_localstatedir=$localstatedir
 libc_cv_gcc_unwind_find_fde=no
 libc_cv_idn=no
 
@@ -2159,6 +2160,7 @@ AC_SUBST(old_glibc_headers)
 AC_SUBST(libc_cv_slibdir)
 AC_SUBST(libc_cv_localedir)
 AC_SUBST(libc_cv_sysconfdir)
+AC_SUBST(libc_cv_localstatedir)
 AC_SUBST(libc_cv_rootsbindir)
 AC_SUBST(libc_cv_forced_unwind)
 
index 634e1d0cc6510553aac6c23648b8ddc8681dc16a..26327ca3b4f3e505c9f797b8df1e7d856007e3e5 100644 (file)
@@ -25,12 +25,18 @@ case "$prefix" in
     libc_cv_slibdir=/lib
     ;;
   esac
-  # Allow the user to override the path with --sysconfdir
+  # Allow the user to override the path with --sysconfdir.
   if test "$sysconfdir" = '${prefix}/etc'; then
     libc_cv_sysconfdir=/etc
   else
     libc_cv_sysconfdir=$sysconfdir
    fi
+  # Allow the user to override the path with --localstatedir.
+  if test "$localstatedir" = '${prefix}/var'; then
+    libc_cv_localstatedir=/var
+  else
+    libc_cv_localstatedir=$localstatedir
+   fi
   libc_cv_rootsbindir=/sbin
   ;;
 esac
index 3422007ffe947cac6342b6d45830d31cb1554cfc..b8fd74cffc9d39b164305dc469c8be7ee3947bc6 100644 (file)
@@ -25,12 +25,18 @@ case "$prefix" in
     libc_cv_slibdir=/lib
     ;;
   esac
-  # Allow the user to override the path with --sysconfdir
+  # Allow the user to override the path with --sysconfdir.
   if test "$sysconfdir" = '${prefix}/etc'; then
     libc_cv_sysconfdir=/etc
   else
     libc_cv_sysconfdir=$sysconfdir
    fi
+  # Allow the user to override the path with --localstatedir.
+  if test "$localstatedir" = '${prefix}/var'; then
+    libc_cv_localstatedir=/var
+  else
+    libc_cv_localstatedir=$localstatedir
+   fi
   libc_cv_rootsbindir=/sbin
   ;;
 esac