Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_find_scala_stdlib.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_FIND_SCALA_STDLIB
  8. #
  9. # DESCRIPTION
  10. #
  11. # AX_FIND_SCALA_STDLIB will look for the Scala Standard Library. When
  12. # found its path will be put in SCALA_STDLIB_CPF as a classpath fragment.
  13. #
  14. # To override the location define SCALA_STDLIB to the wanted path
  15. #
  16. # LICENSE
  17. #
  18. # Copyright (c) 2013 Sveinung Kvilhaugsvik <sveinung84@users.sourceforge.net>
  19. #
  20. # Copying and distribution of this file, with or without modification,are
  21. # permitted in any medium without royalty provided the copyright notice
  22. # and this notice are preserved. This file is offered as-is, without any
  23. # warranty.
  24. #serial 2
  25. AC_ARG_VAR(SCALA_STDLIB, [path to the Scala Standard Library])
  26. AC_DEFUN([AX_FIND_SCALA_STDLIB], [
  27. AC_CACHE_VAL(ax_cv_scala_libray, [
  28. AS_IF([test x"$SCALA_STDLIB" != x],
  29. [ax_cv_scala_stdlib_cpf="$SCALA_STDLIB$PATH_SEPARATOR"],
  30. [AX_XTRA_CLASSPATH(ax_cv_scala_stdlib_cpf,
  31. scala.collection.immutable.List, scala-library.jar)])])
  32. AS_IF([test x"$ax_cv_scala_stdlib_cpf" != x], [
  33. AC_MSG_NOTICE([Scala Standard Library found $ax_cv_scala_stdlib_cpf])
  34. AC_SUBST(SCALA_STDLIB_CPF, $ax_cv_scala_stdlib_cpf)
  35. ], AC_MSG_WARN([Scala Standard Library not found]))])