]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/gnu/configure
Refactor handling of /lib64 etc. cases, move out of sysdeps/gnu/configure.ac.
[thirdparty/glibc.git] / sysdeps / gnu / configure
CommitLineData
cb8a6dbd 1# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
83a6b66a
AZ
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.
d95ffd4c
JM
9test -n "$libc_cv_slibdir" ||
10case "$prefix" in
11/usr | /usr/)
12 libc_cv_slibdir=/lib
13 libc_cv_rtlddir=/lib
14 if test "$libdir" = '${exec_prefix}/lib'; then
15 libdir='${exec_prefix}/lib';
16 # Locale data can be shared between 32-bit and 64-bit libraries.
17 libc_cv_localedir='${exec_prefix}/lib/locale'
18 fi
19 ;;
20esac
83a6b66a
AZ
21case "$prefix" in
22/usr | /usr/)
83a6b66a
AZ
23 # Allow the user to override the path with --sysconfdir.
24 if test "$sysconfdir" = '${prefix}/etc'; then
25 libc_cv_sysconfdir=/etc
26 else
27 libc_cv_sysconfdir=$sysconfdir
28 fi
29 # Allow the user to override the path with --localstatedir.
30 if test "$localstatedir" = '${prefix}/var'; then
31 libc_cv_localstatedir=/var
32 else
33 libc_cv_localstatedir=$localstatedir
34 fi
35 libc_cv_rootsbindir=/sbin
36 ;;
37esac