summaryrefslogtreecommitdiff
path: root/Build/source/multiplatform.ac
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/multiplatform.ac')
-rw-r--r--Build/source/multiplatform.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/Build/source/multiplatform.ac b/Build/source/multiplatform.ac
new file mode 100644
index 00000000000..263a9daa6da
--- /dev/null
+++ b/Build/source/multiplatform.ac
@@ -0,0 +1,11 @@
+dnl The --enable-multiplatform option, used by utils/dialog. The same code exists in
+dnl texk/kpathsea/withenable.ac.
+AC_CANONICAL_HOST
+AC_ARG_ENABLE(multiplatform,
+[ --enable-multiplatform put executables in bin/PLATFORM],
+if test "x$enable_multiplatform" = xyes &&
+ test "x$bindir" = 'x${exec_prefix}/bin'
+then
+ bindir="$bindir/$host"
+fi)
+test "x$enable_multiplatform" = xyes && export enable_multiplatform