beta-0.89.2
[luatex.git] / source / m4 / kpse-options.m4
blob32e5a0eccd49df6dadc2f62bba5fcd7c6b5b53b0
1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2009-2014 Peter Breitenlohner <tex-live@tug.org>
4 # This file is free software; the copyright holder
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # KPSE_OPTIONS
9 # ------------
10 # Provide configure options used by the higher level TL directories
11 # as well as by packages maintained independently.
12 AC_DEFUN([KPSE_OPTIONS],
13 [AC_REQUIRE([AC_CANONICAL_HOST])[]dnl
14 AC_ARG_ENABLE([multiplatform],
15               AS_HELP_STRING([--enable-multiplatform],
16                              [put executables into bin/PLATFORM and libraries into lib/PLATFORM]))[]dnl
17 if test "x$enable_multiplatform" = xyes; then
18   if test "x$bindir" = 'x${exec_prefix}/bin'; then
19     bindir="$bindir/${host_alias-$host}"
20     ac_configure_args="$ac_configure_args '--bindir=$bindir'"
21   fi
22   if test "x$libdir" = 'x${exec_prefix}/lib'; then
23     libdir="$libdir/${host_alias-$host}"
24     ac_configure_args="$ac_configure_args '--libdir=$libdir'"
25   fi
27 ]) # KPSE_OPTIONS