diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-03-16 15:53:05 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-03-16 15:53:05 +0000 |
commit | e97ef8dfa62909a029519adecf4bf8b35f4559be (patch) | |
tree | 2c2590af0fc1acdee07de798684e8d60334ce753 /Build/source/utils/biber/m4 | |
parent | 805e477c290637b9736e144f3dbd262757506090 (diff) |
integrate biber
git-svn-id: svn://tug.org/texlive/trunk@21733 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/biber/m4')
-rw-r--r-- | Build/source/utils/biber/m4/kpse-tl-platform.m4 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Build/source/utils/biber/m4/kpse-tl-platform.m4 b/Build/source/utils/biber/m4/kpse-tl-platform.m4 new file mode 100644 index 00000000000..f822807f7b4 --- /dev/null +++ b/Build/source/utils/biber/m4/kpse-tl-platform.m4 @@ -0,0 +1,34 @@ +# Public macros for the TeX Live (TL) tree. +# Copyright (C) 2011 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_TL_PLATFORM +# ---------------- +# Determine the TeX Live platform name. +AC_DEFUN([KPSE_TL_PLATFORM], +[AC_REQUIRE([AC_CANONICAL_HOST])[]dnl +AC_REQUIRE([KPSE_CHECK_WIN32])[]dnl +AC_REQUIRE([KPSE_CHECK_PERL])[]dnl +AC_ARG_VAR([TL_PLATFORM], [TeX Live platform name [autodetected]]) +AC_MSG_CHECKING([for TeX Live platform name]) +if test "X$TL_PLATFORM" = X; then + if test "x$kpse_cv_have_win32" = xno; then + # we need this variable in the Perl (current). + export ac_aux_dir + # we need this variable in the Perl (future). + export ac_cv_host + TL_PLATFORM=`$PERL -I"$srcdir" -MTeXLive::TLUtils -e ' + print TeXLive::TLUtils::platform();'` + if test -z "$TL_PLATFORM"; then + AC_MSG_ERROR([cannot determine TeX Live platform name]) + fi + else + TL_PLATFORM=win32 + fi +fi +AC_MSG_RESULT([$TL_PLATFORM]) +]) # KPSE_TL_PLATFORM + |