# 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.

# return when cross compiling
[ -n $host ] && return 0;

if [ "$prefix" = /usr ] || [[ "$prefix" = NONE && "$ac_default_prefix" = /usr ]]
then
    [ "$sysconfdir" = '${prefix}/etc' ] && sysconfdir=/etc
    [ "$localstatedir" = '${prefix}/var' ] && localstatedir=/var
    [ "$sharedstatedir" = '${prefix}/com' ] && sharedstatedir=/var

# for x86_64 aarch64
    [ "$libdir" = '${exec_prefix}/lib' ] && libdir='${exec_prefix}/lib64'
fi
