]> sourceware.org Git - glibc.git/blob - sysdeps/gnu/configure.in
Respect --localstatedir for /var/db parent directory.
[glibc.git] / sysdeps / gnu / configure.in
1 GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
2
3 # Local configure fragment for sysdeps/gnu.
4
5 # The Filesystem Hierarchy Standard prescribes where to place "essential"
6 # files. I.e., when the installation prefix is "/usr" we have to place
7 # shared library objects and the configuration files on the root partition
8 # in /lib and /etc.
9 case "$prefix" in
10 /usr | /usr/)
11 # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib.
12 # Allow earlier configure scripts to handle libc_cv_slibdir, libdir,
13 # and libc_cv_localedir.
14 test -n "$libc_cv_slibdir" || \
15 case $machine in
16 sparc/sparc64 | x86_64* | powerpc/powerpc64 | s390/s390-64)
17 libc_cv_slibdir=/lib64
18 if test "$libdir" = '${exec_prefix}/lib'; then
19 libdir='${exec_prefix}/lib64';
20 # Locale data can be shared between 32bit and 64bit libraries
21 libc_cv_localedir='${exec_prefix}/lib/locale'
22 fi
23 ;;
24 *)
25 libc_cv_slibdir=/lib
26 ;;
27 esac
28 # Allow the user to override the path with --sysconfdir.
29 if test "$sysconfdir" = '${prefix}/etc'; then
30 libc_cv_sysconfdir=/etc
31 else
32 libc_cv_sysconfdir=$sysconfdir
33 fi
34 # Allow the user to override the path with --localstatedir.
35 if test "$localstatedir" = '${prefix}/var'; then
36 libc_cv_localstatedir=/var
37 else
38 libc_cv_localstatedir=$localstatedir
39 fi
40 libc_cv_rootsbindir=/sbin
41 ;;
42 esac
This page took 0.037565 seconds and 5 git commands to generate.