| 1 |
# Public macros for the TeX Live (TL) tree. |
| 2 |
# Copyright (C) 2009-2014 Peter Breitenlohner <[email protected]> |
| 3 |
# |
| 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. |
| 7 |
|
| 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 |
| 26 |
fi |
| 27 |
]) # KPSE_OPTIONS |