autoconf/config.site
Pavel Raiskup c047b39ee3 Support the 'config.site' file in /usr/share
1. Generated configure scripts will now automatically set the correct
   library directory ($libdir) on both 32/64 bit systems when
   './configure --prefix=/usr' is run.

2. The same way as ^^, config.site causes the installation under /usr prefix
   to respect File System Hierarchy (FHS) defaults
2013-01-08 15:57:28 +01:00

23 lines
735 B
Plaintext

# This is the config.site file to satisfy FHS defaults when installing below
# /usr.
#
# You may override this file by your config.site using the CONFIG_SITE env
# variable.
#
# Note: This file includes also RHEL/Fedora fix for installing libraries into
# "/lib/lib64" on 64bit systems.
if test "$prefix" = /usr; then
test "$sysconfdir" = '${prefix}/etc' && sysconfdir=/etc
test "$sharedstatedir" = '${prefix}/com' && sharedstatedir=/var
test "$localstatedir" = '${prefix}/var' && localstatedir=/var
ARCH=`uname -m`
for i in x86_64 ppc64 s390x aarch64; do
if test $ARCH = $i; then
test "$libdir" = '${exec_prefix}/lib' && libdir='${exec_prefix}/lib64'
break
fi
done
fi