comparison configure.ac @ 5531:eae508c12529

Add build rule for build-octave (bug #49503). * src/build-octave.mk: Add new build rule for build-octave which can be used for cross-building binary packages that depend on Octave as a build tool. * dist-files.mk: Add new file to list. * index.html: Add new package to list. * src/of-communications.mk, src/of-image.mk, src/of-mapping.mk, src/of-optiminterp.mk, src/of-sparsersb.mk, src/of-statistics.mk, src/of-windows.mk: Add optional dependency on build-octave. * configure.ac: Add new configure switch "--disable-system-octave" that is needed to build the build-octave package. * Makefile.in: Add variable "USE_SYSTEM_OCTAVE". Exclude build-octave from the default build tools and build it only if a package explicitly depends on it. Display warning about missing native Octave version only if necessary.
author Markus Mützel <markus.muetzel@gmx.de>
date Tue, 08 Sep 2020 23:04:38 +0200
parents 1b16d40c6611
children 78a98ff1efd8
comparison
equal deleted inserted replaced
5530:1b16d40c6611 5531:eae508c12529
324 yes) ENABLE_BINARY_PACKAGES=yes ;; 324 yes) ENABLE_BINARY_PACKAGES=yes ;;
325 *) AC_MSG_ERROR([bad value "$enableval" for --enable-binary-packages]) ;; 325 *) AC_MSG_ERROR([bad value "$enableval" for --enable-binary-packages]) ;;
326 esac], [ENABLE_BINARY_PACKAGES=no]) 326 esac], [ENABLE_BINARY_PACKAGES=no])
327 AC_SUBST(ENABLE_BINARY_PACKAGES) 327 AC_SUBST(ENABLE_BINARY_PACKAGES)
328 328
329 AC_ARG_ENABLE([system-octave],
330 [AS_HELP_STRING([--disable-system-octave],
331 [Build a minimal Octave that runs on the build system. This only applies if binary packages are cross-built (default: enable, i.e. use an already installed Octave)])],
332 [case "$enableval" in
333 no) USE_SYSTEM_OCTAVE=no ;;
334 yes) USE_SYSTEM_OCTAVE=yes ;;
335 *) AC_MSG_ERROR([bad value "$enableval" for --disable-system-octave]) ;;
336 esac], [USE_SYSTEM_OCTAVE=yes])
337 AC_SUBST(USE_SYSTEM_OCTAVE)
338
329 AC_ARG_ENABLE([devel-tools], 339 AC_ARG_ENABLE([devel-tools],
330 [AS_HELP_STRING([--enable-devel-tools], 340 [AS_HELP_STRING([--enable-devel-tools],
331 [Enable building developer tools such as gdb (default: disable)])], 341 [Enable building developer tools such as gdb (default: disable)])],
332 [case "$enableval" in 342 [case "$enableval" in
333 no) ENABLE_DEVEL_TOOLS=no ;; 343 no) ENABLE_DEVEL_TOOLS=no ;;