summaryrefslogtreecommitdiff
path: root/Build/source/m4/kpse-options.m4
blob: 32e5a0eccd49df6dadc2f62bba5fcd7c6b5b53b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Public macros for the TeX Live (TL) tree.
# Copyright (C) 2009-2014 Peter Breitenlohner <tex-live@tug.org>
#
# This file is free software; the copyright holder
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# KPSE_OPTIONS
# ------------
# Provide configure options used by the higher level TL directories
# as well as by packages maintained independently.
AC_DEFUN([KPSE_OPTIONS],
[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
AC_ARG_ENABLE([multiplatform],
              AS_HELP_STRING([--enable-multiplatform],
                             [put executables into bin/PLATFORM and libraries into lib/PLATFORM]))[]dnl
if test "x$enable_multiplatform" = xyes; then
  if test "x$bindir" = 'x${exec_prefix}/bin'; then
    bindir="$bindir/${host_alias-$host}"
    ac_configure_args="$ac_configure_args '--bindir=$bindir'"
  fi
  if test "x$libdir" = 'x${exec_prefix}/lib'; then
    libdir="$libdir/${host_alias-$host}"
    ac_configure_args="$ac_configure_args '--libdir=$libdir'"
  fi
fi
]) # KPSE_OPTIONS