summaryrefslogtreecommitdiff
path: root/config.site
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-01 01:32:49 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-01 01:32:49 +0000
commitb63bc204fbfebf4f3514093777b4411bfb4cd15d (patch)
treeeb9cb88942f6aa972489bd5dc878599f1e5f7bd4 /config.site
parent587bdee8ba121d791619d14d529e8e2660992902 (diff)
automatic import of autoconfopeneuler24.03_LTS
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