lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 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 | LIBC_SLIBDIR_RTLDDIR([lib], [lib]) |
| 10 | case "$prefix" in |
| 11 | /usr | /usr/) |
| 12 | # Allow the user to override the path with --sysconfdir. |
| 13 | if test "$sysconfdir" = '${prefix}/etc'; then |
| 14 | libc_cv_sysconfdir=/etc |
| 15 | else |
| 16 | libc_cv_sysconfdir=$sysconfdir |
| 17 | fi |
| 18 | # Allow the user to override the path with --localstatedir. |
| 19 | if test "$localstatedir" = '${prefix}/var'; then |
| 20 | libc_cv_localstatedir=/var |
| 21 | else |
| 22 | libc_cv_localstatedir=$localstatedir |
| 23 | fi |
| 24 | libc_cv_rootsbindir=/sbin |
| 25 | ;; |
| 26 | esac |