From 4248b1b1cf8c641fb51d92c3d2cfac81b02a903e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 22 Jun 2012 10:11:07 -0700 Subject: Respect --localstatedir for /var/db parent directory. --- sysdeps/gnu/configure | 8 +++++++- sysdeps/gnu/configure.in | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'sysdeps/gnu') diff --git a/sysdeps/gnu/configure b/sysdeps/gnu/configure index 634e1d0..26327ca 100644 --- a/sysdeps/gnu/configure +++ b/sysdeps/gnu/configure @@ -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 diff --git a/sysdeps/gnu/configure.in b/sysdeps/gnu/configure.in index 3422007..b8fd74c 100644 --- a/sysdeps/gnu/configure.in +++ b/sysdeps/gnu/configure.in @@ -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 -- cgit v1.1