summaryrefslogtreecommitdiff
path: root/config.site
diff options
context:
space:
mode:
Diffstat (limited to 'config.site')
-rw-r--r--config.site18
1 files changed, 18 insertions, 0 deletions
diff --git a/config.site b/config.site
new file mode 100644
index 0000000..976734c
--- /dev/null
+++ b/config.site
@@ -0,0 +1,18 @@
+# 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