Sun, 05 Jan 2025 13:44:02 +0100
refine docs for string.h - issue #548
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 1 | #!/bin/sh | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 2 | |
| 960 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 3 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 4 | # some utility functions | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 5 | isplatform() | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 6 | { | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 7 | for p in $PLATFORM | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 8 | do | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 9 | if [ "$p" = "$1" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 10 | return 0 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 11 | fi | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 12 | done | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 13 | return 1 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 14 | } | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 15 | notisplatform() | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 16 | { | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 17 | for p in $PLATFORM | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 18 | do | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 19 | if [ "$p" = "$1" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 20 | return 1 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 21 | fi | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 22 | done | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 23 | return 0 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 24 | } | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 25 | istoolchain() | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 26 | { | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 27 | for t in $TOOLCHAIN | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 28 | do | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 29 | if [ "$t" = "$1" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 30 | return 0 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 31 | fi | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 32 | done | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 33 | return 1 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 34 | } | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 35 | notistoolchain() | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 36 | { | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 37 | for t in $TOOLCHAIN | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 38 | do | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 39 | if [ "$t" = "$1" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 40 | return 1 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 41 | fi | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 42 | done | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 43 | return 0 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 44 | } | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 45 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 46 | # clean abort | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 47 | abort_configure() | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 48 | { | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 49 | rm -Rf "$TEMP_DIR" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 50 | exit 1 | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 51 | } | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 52 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 53 | # Test for availability of pkg-config | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 54 | PKG_CONFIG=`command -v pkg-config` | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 55 | : ${PKG_CONFIG:="false"} | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 56 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 57 | # Simple uname based platform detection | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 58 | # $PLATFORM is used for platform dependent dependency selection | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 59 | OS=`uname -s` | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 60 | OS_VERSION=`uname -r` | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 61 | printf "detect platform... " | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 62 | if [ "$OS" = "SunOS" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 63 | PLATFORM="solaris sunos unix svr4" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 64 | elif [ "$OS" = "Linux" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 65 | PLATFORM="linux unix" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 66 | elif [ "$OS" = "FreeBSD" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 67 | PLATFORM="freebsd bsd unix" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 68 | elif [ "$OS" = "OpenBSD" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 69 | PLATFORM="openbsd bsd unix" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 70 | elif [ "$OS" = "NetBSD" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 71 | PLATFORM="netbsd bsd unix" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 72 | elif [ "$OS" = "Darwin" ]; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 73 | PLATFORM="macos osx bsd unix" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 74 | elif echo "$OS" | grep -i "MINGW" > /dev/null; then | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 75 | PLATFORM="windows mingw" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 76 | fi | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 77 | : ${PLATFORM:="unix"} | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 78 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 79 | PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -` | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 80 | echo "$PLATFORM_NAME" | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 81 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 82 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 83 | # help text | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 84 | printhelp() | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 85 | { | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 86 | echo "Usage: $0 [OPTIONS]..." | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 87 | cat << __EOF__ | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 88 | Installation directories: | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 89 | --prefix=PREFIX path prefix for architecture-independent files | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 90 | [$prefix] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 91 | --exec-prefix=EPREFIX path prefix for architecture-dependent files | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 92 | [PREFIX] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 93 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 94 | --bindir=DIR user executables [EPREFIX/bin] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 95 | --sbindir=DIR system admin executables [EPREFIX/sbin] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 96 | --libexecdir=DIR program executables [EPREFIX/libexec] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 97 | --sysconfdir=DIR system configuration files [PREFIX/etc] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 98 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 99 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 100 | --runstatedir=DIR run-time variable data [LOCALSTATEDIR/run] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 101 | --libdir=DIR object code libraries [EPREFIX/lib] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 102 | --includedir=DIR C header files [PREFIX/include] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 103 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 104 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 105 | --infodir=DIR info documentation [DATAROOTDIR/info] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 106 | --mandir=DIR man documentation [DATAROOTDIR/man] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 107 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 108 | |
| 1017 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 109 | Build Types: | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 110 | --debug add extra compile flags for debug builds | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 111 | --release add extra compile flags for release builds | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 112 | |
| 960 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 113 | Options: | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 114 | --with-docs=(all|html|api|none) | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 115 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 116 | Optional Features: | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 117 | --enable-coverage | 
| 988 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 118 | --disable-cxx-tests the check-cxx makefile target | 
| 987 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 119 | --disable-szmul-builtin use custom implementation, instead | 
| 960 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 120 | |
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 121 | __EOF__ | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 122 | } | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 123 | |
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 124 | # create temporary directory | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 125 | TEMP_DIR=".tmp-`uname -n`" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 126 | rm -Rf "$TEMP_DIR" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 127 | if mkdir -p "$TEMP_DIR"; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 128 | : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 129 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 130 | echo "Cannot create tmp dir $TEMP_DIR" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 131 | echo "Abort" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 132 | exit 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 133 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 134 | touch "$TEMP_DIR/options" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 135 | touch "$TEMP_DIR/features" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 136 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 137 | # define standard variables | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 138 | # also define standard prefix (this is where we will search for config.site) | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 139 | prefix=/usr | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 140 | exec_prefix= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 141 | bindir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 142 | sbindir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 143 | libdir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 144 | libexecdir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 145 | datarootdir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 146 | datadir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 147 | sysconfdir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 148 | sharedstatedir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 149 | localstatedir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 150 | runstatedir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 151 | includedir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 152 | infodir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 153 | localedir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 154 | mandir= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 155 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 156 | # custom variables | 
| 960 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 157 | if true \ | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 158 | ; then | 
| 1064 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 159 | root_dir=`pwd` | 
| 960 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 160 | DOXYGEN=`command -v doxygen` | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 161 | PANDOC=`command -v pandoc` | 
| 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 162 | fi | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 163 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 164 | # features | 
| 988 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 165 | FEATURE_CXX_TESTS=auto | 
| 987 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 166 | FEATURE_SZMUL_BUILTIN=auto | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 167 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 168 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 169 | # parse arguments | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 170 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 171 | BUILD_TYPE="default" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 172 | for ARG in "$@" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 173 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 174 | case "$ARG" in | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 175 | "--prefix="*) prefix=${ARG#--prefix=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 176 | "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 177 | "--bindir="*) bindir=${ARG#----bindir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 178 | "--sbindir="*) sbindir=${ARG#--sbindir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 179 | "--libdir="*) libdir=${ARG#--libdir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 180 | "--libexecdir="*) libexecdir=${ARG#--libexecdir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 181 | "--datarootdir="*) datarootdir=${ARG#--datarootdir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 182 | "--datadir="*) datadir=${ARG#--datadir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 183 | "--sysconfdir="*) sysconfdir=${ARG#--sysconfdir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 184 | "--sharedstatedir="*) sharedstatedir=${ARG#--sharedstatedir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 185 | "--localstatedir="*) localstatedir=${ARG#--localstatedir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 186 | "--includedir="*) includedir=${ARG#--includedir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 187 | "--infodir="*) infodir=${ARG#--infodir=} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 188 | "--mandir"*) mandir=${ARG#--mandir} ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 189 | "--localedir"*) localedir=${ARG#--localedir} ;; | 
| 1017 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 190 | "--help"*) printhelp; abort_configure ;; | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 191 | "--debug") BUILD_TYPE="debug" ;; | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 192 | "--release") BUILD_TYPE="release" ;; | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 193 | "--with-docs="*) OPT_WITH_DOCS=${ARG#--with-docs=} ;; | 
| 1017 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 194 | "--with-docs") echo "option '$ARG' needs a value:"; echo " $ARG=(all|html|api|none)"; abort_configure ;; | 
| 772 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 195 | "--enable-coverage") FEATURE_COVERAGE=on ;; | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 196 | "--disable-coverage") unset FEATURE_COVERAGE ;; | 
| 988 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 197 | "--enable-cxx-tests") FEATURE_CXX_TESTS=on ;; | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 198 | "--disable-cxx-tests") unset FEATURE_CXX_TESTS ;; | 
| 987 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 199 | "--enable-szmul-builtin") FEATURE_SZMUL_BUILTIN=on ;; | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 200 | "--disable-szmul-builtin") unset FEATURE_SZMUL_BUILTIN ;; | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 201 | "-"*) echo "unknown option: $ARG"; abort_configure ;; | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 202 | esac | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 203 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 204 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 205 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 206 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 207 | # set defaults for dir variables | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 208 | : ${exec_prefix:="$prefix"} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 209 | : ${bindir:='${exec_prefix}/bin'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 210 | : ${sbindir:='${exec_prefix}/sbin'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 211 | : ${libdir:='${exec_prefix}/lib'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 212 | : ${libexecdir:='${exec_prefix}/libexec'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 213 | : ${datarootdir:='${prefix}/share'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 214 | : ${datadir:='${datarootdir}'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 215 | : ${sysconfdir:='${prefix}/etc'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 216 | : ${sharedstatedir:='${prefix}/com'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 217 | : ${localstatedir:='${prefix}/var'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 218 | : ${runstatedir:='${localstatedir}/run'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 219 | : ${includedir:='${prefix}/include'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 220 | : ${infodir:='${datarootdir}/info'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 221 | : ${mandir:='${datarootdir}/man'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 222 | : ${localedir:='${datarootdir}/locale'} | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 223 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 224 | # check if a config.site exists and load it | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 225 | if [ -n "$CONFIG_SITE" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 226 | # CONFIG_SITE may contain space separated file names | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 227 | for cs in $CONFIG_SITE; do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 228 | printf "loading defaults from $cs... " | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 229 | . "$cs" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 230 | echo ok | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 231 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 232 | elif [ -f "$prefix/share/config.site" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 233 | printf "loading site defaults... " | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 234 | . "$prefix/share/config.site" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 235 | echo ok | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 236 | elif [ -f "$prefix/etc/config.site" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 237 | printf "loading site defaults... " | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 238 | . "$prefix/etc/config.site" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 239 | echo ok | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 240 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 241 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 242 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 243 | # generate vars.mk | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 244 | cat > "$TEMP_DIR/vars.mk" << __EOF__ | 
| 821 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 245 | prefix=$prefix | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 246 | exec_prefix=$exec_prefix | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 247 | bindir=$bindir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 248 | sbindir=$sbindir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 249 | libdir=$libdir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 250 | libexecdir=$libexecdir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 251 | datarootdir=$datarootdir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 252 | datadir=$datadir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 253 | sysconfdir=$sysconfdir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 254 | sharedstatedir=$sharedstatedir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 255 | localstatedir=$localstatedir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 256 | runstatedir=$runstatedir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 257 | includedir=$includedir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 258 | infodir=$infodir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 259 | mandir=$mandir | 
| 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 260 | localedir=$localedir | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 261 | __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 262 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 263 | # toolchain detection utilities | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 264 | . make/toolchain.sh | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 265 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 266 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 267 | # DEPENDENCIES | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 268 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 269 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 270 | # check languages | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 271 | lang_c= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 272 | lang_cpp= | 
| 988 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 273 | if detect_cpp_compiler ; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 274 | lang_cpp=1 | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 275 | fi | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 276 | if detect_c_compiler ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 277 | lang_c=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 278 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 279 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 280 | # create buffer for make variables required by dependencies | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 281 | echo > "$TEMP_DIR/make.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 282 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 283 | test_pkg_config() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 284 | { | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 285 | if "$PKG_CONFIG" --exists "$1" ; then : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 286 | else return 1 ; fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 287 | if [ -z "$2" ] || "$PKG_CONFIG" --atleast-version="$2" "$1" ; then : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 288 | else return 1 ; fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 289 | if [ -z "$3" ] || "$PKG_CONFIG" --exact-version="$3" "$1" ; then : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 290 | else return 1 ; fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 291 | if [ -z "$4" ] || "$PKG_CONFIG" --max-version="$4" "$1" ; then : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 292 | else return 1 ; fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 293 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 294 | } | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 295 | |
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 296 | print_check_msg() | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 297 | { | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 298 | if [ -z "$1" ]; then | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 299 | shift | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 300 | printf "$@" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 301 | fi | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 302 | } | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 303 | |
| 772 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 304 | dependency_error_coverage() | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 305 | { | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 306 | print_check_msg "$dep_checked_coverage" "checking for coverage... " | 
| 960 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 307 | # dependency coverage toolchain="gcc" | 
| 772 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 308 | while true | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 309 | do | 
| 960 
a8a5f3dd5c3d
test coverage does not really work with clang
 Mike Becker <universe@uap-core.de> parents: 
842diff
changeset | 310 | if notistoolchain "gcc"; then | 
| 815 
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
 Mike Becker <universe@uap-core.de> parents: 
796diff
changeset | 311 | break | 
| 
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
 Mike Becker <universe@uap-core.de> parents: 
796diff
changeset | 312 | fi | 
| 1064 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 313 | if command -v gcovr > /dev/null ; then | 
| 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 314 | : | 
| 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 315 | else | 
| 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 316 | break | 
| 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 317 | fi | 
| 788 
b34ff44e6433
move coverage flags to make/*.mk files - relates to #345
 Mike Becker <universe@uap-core.de> parents: 
772diff
changeset | 318 | TEMP_CFLAGS="$TEMP_CFLAGS \${COVERAGE_CFLAGS}" | 
| 
b34ff44e6433
move coverage flags to make/*.mk files - relates to #345
 Mike Becker <universe@uap-core.de> parents: 
772diff
changeset | 319 | TEMP_LDFLAGS="$TEMP_LDFLAGS \${COVERAGE_LDFLAGS}" | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 320 | print_check_msg "$dep_checked_coverage" "yes\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 321 | dep_checked_coverage=1 | 
| 772 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 322 | return 1 | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 323 | done | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 324 | |
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 325 | print_check_msg "$dep_checked_coverage" "no\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 326 | dep_checked_coverage=1 | 
| 772 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 327 | return 0 | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 328 | } | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 329 | dependency_error_pandoc() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 330 | { | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 331 | print_check_msg "$dep_checked_pandoc" "checking for pandoc... " | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 332 | # dependency pandoc | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 333 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 334 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 335 | if test -n "$PANDOC" > /dev/null ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 336 | : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 337 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 338 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 339 | fi | 
| 979 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 340 | cat >> $TEMP_DIR/make.mk << __EOF__ | 
| 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 341 | # Dependency: pandoc | 
| 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 342 | PANDOC=$PANDOC | 
| 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 343 | __EOF__ | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 344 | print_check_msg "$dep_checked_pandoc" "yes\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 345 | dep_checked_pandoc=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 346 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 347 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 348 | |
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 349 | print_check_msg "$dep_checked_pandoc" "no\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 350 | dep_checked_pandoc=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 351 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 352 | } | 
| 988 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 353 | dependency_error_cxx() | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 354 | { | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 355 | print_check_msg "$dep_checked_cxx" "checking for cxx... " | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 356 | # dependency cxx | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 357 | while true | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 358 | do | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 359 | if [ -z "$lang_cpp" ] ; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 360 | break | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 361 | fi | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 362 | print_check_msg "$dep_checked_cxx" "yes\n" | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 363 | dep_checked_cxx=1 | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 364 | return 1 | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 365 | done | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 366 | |
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 367 | print_check_msg "$dep_checked_cxx" "no\n" | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 368 | dep_checked_cxx=1 | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 369 | return 0 | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 370 | } | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 371 | dependency_error_c() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 372 | { | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 373 | print_check_msg "$dep_checked_c" "checking for c... " | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 374 | # dependency c platform="mingw" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 375 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 376 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 377 | if notisplatform "mingw"; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 378 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 379 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 380 | if [ -z "$lang_c" ] ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 381 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 382 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 383 | cat >> $TEMP_DIR/make.mk << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 384 | # Dependency: c | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 385 | AR=ar | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 386 | ARFLAGS=r | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 387 | STLIB_EXT=.lib | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 388 | SHLIB_EXT=.dll | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 389 | __EOF__ | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 390 | print_check_msg "$dep_checked_c" "yes\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 391 | dep_checked_c=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 392 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 393 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 394 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 395 | # dependency c platform="macos" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 396 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 397 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 398 | if notisplatform "macos"; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 399 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 400 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 401 | if [ -z "$lang_c" ] ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 402 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 403 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 404 | cat >> $TEMP_DIR/make.mk << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 405 | # Dependency: c | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 406 | AR=ar | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 407 | ARFLAGS=r | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 408 | STLIB_EXT=.a | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 409 | SHLIB_EXT=.dylib | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 410 | __EOF__ | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 411 | print_check_msg "$dep_checked_c" "yes\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 412 | dep_checked_c=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 413 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 414 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 415 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 416 | # dependency c platform="unix" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 417 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 418 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 419 | if notisplatform "unix"; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 420 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 421 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 422 | if [ -z "$lang_c" ] ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 423 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 424 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 425 | cat >> $TEMP_DIR/make.mk << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 426 | # Dependency: c | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 427 | AR=ar | 
| 982 
7a88b8a05ae1
add -c flag to ARFLAGS to suppress diagnostic message on stderr
 Mike Becker <universe@uap-core.de> parents: 
979diff
changeset | 428 | ARFLAGS=cr | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 429 | STLIB_EXT=.a | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 430 | SHLIB_EXT=.so | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 431 | __EOF__ | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 432 | print_check_msg "$dep_checked_c" "yes\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 433 | dep_checked_c=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 434 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 435 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 436 | |
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 437 | print_check_msg "$dep_checked_c" "no\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 438 | dep_checked_c=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 439 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 440 | } | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 441 | dependency_error_file_tools() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 442 | { | 
| 821 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 443 | print_check_msg "$dep_checked_file_tools" "checking for file_tools... " | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 444 | # dependency file-tools | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 445 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 446 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 447 | cat >> $TEMP_DIR/make.mk << __EOF__ | 
| 821 
5e6f15005efd
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
815diff
changeset | 448 | # Dependency: file_tools | 
| 754 
4bc7d966c9db
add an uwproj based install target
 Mike Becker <universe@uap-core.de> parents: 
753diff
changeset | 449 | MKDIR=/bin/mkdir -p | 
| 
4bc7d966c9db
add an uwproj based install target
 Mike Becker <universe@uap-core.de> parents: 
753diff
changeset | 450 | RMFILE=/bin/rm -f | 
| 
4bc7d966c9db
add an uwproj based install target
 Mike Becker <universe@uap-core.de> parents: 
753diff
changeset | 451 | RMDIR=/bin/rm -f -R | 
| 
4bc7d966c9db
add an uwproj based install target
 Mike Becker <universe@uap-core.de> parents: 
753diff
changeset | 452 | COPYFILE=/bin/cp -f | 
| 
4bc7d966c9db
add an uwproj based install target
 Mike Becker <universe@uap-core.de> parents: 
753diff
changeset | 453 | COPYALL=/bin/cp -f -R | 
| 
4bc7d966c9db
add an uwproj based install target
 Mike Becker <universe@uap-core.de> parents: 
753diff
changeset | 454 | SYMLINK=/bin/ln -s | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 455 | __EOF__ | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 456 | print_check_msg "$dep_checked_file_tools" "yes\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 457 | dep_checked_file_tools=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 458 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 459 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 460 | |
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 461 | print_check_msg "$dep_checked_file_tools" "no\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 462 | dep_checked_file_tools=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 463 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 464 | } | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 465 | dependency_error_doxygen() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 466 | { | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 467 | print_check_msg "$dep_checked_doxygen" "checking for doxygen... " | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 468 | # dependency doxygen | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 469 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 470 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 471 | if test -n "$DOXYGEN" > /dev/null ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 472 | : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 473 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 474 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 475 | fi | 
| 979 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 476 | cat >> $TEMP_DIR/make.mk << __EOF__ | 
| 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 477 | # Dependency: doxygen | 
| 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 478 | DOXYGEN=$DOXYGEN | 
| 
bbae1ebf309b
fix broken docs target after uwproj update
 Mike Becker <universe@uap-core.de> parents: 
960diff
changeset | 479 | __EOF__ | 
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 480 | print_check_msg "$dep_checked_doxygen" "yes\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 481 | dep_checked_doxygen=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 482 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 483 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 484 | |
| 796 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 485 | print_check_msg "$dep_checked_doxygen" "no\n" | 
| 
fec90b848f4b
update uwproj configure template
 Mike Becker <universe@uap-core.de> parents: 
788diff
changeset | 486 | dep_checked_doxygen=1 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 487 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 488 | } | 
| 990 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 489 | dependency_error_no_coverage() | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 490 | { | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 491 | print_check_msg "$dep_checked_no_coverage" "checking for no_coverage... " | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 492 | # dependency no_coverage | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 493 | while true | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 494 | do | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 495 | if test -z "$FEATURE_COVERAGE" > /dev/null ; then | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 496 | : | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 497 | else | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 498 | break | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 499 | fi | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 500 | print_check_msg "$dep_checked_no_coverage" "yes\n" | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 501 | dep_checked_no_coverage=1 | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 502 | return 1 | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 503 | done | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 504 | |
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 505 | print_check_msg "$dep_checked_no_coverage" "no\n" | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 506 | dep_checked_no_coverage=1 | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 507 | return 0 | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 508 | } | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 509 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 510 | # start collecting dependency information | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 511 | echo > "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 512 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 513 | DEPENDENCIES_FAILED= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 514 | ERROR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 515 | # unnamed dependencies | 
| 1017 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 516 | TEMP_CFLAGS="$CFLAGS" | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 517 | TEMP_CXXFLAGS="$CXXFLAGS" | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 518 | TEMP_LDFLAGS="$LDFLAGS" | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 519 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 520 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 521 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 522 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 523 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 524 | cat >> "$TEMP_DIR/make.mk" << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 525 | # library version | 
| 759 
475335643af4
increase version number to 3.1
 Mike Becker <universe@uap-core.de> parents: 
757diff
changeset | 526 | VERSION=3.1.0 | 
| 825 
3f324ea53152
be honest at least in the lib version
 Mike Becker <universe@uap-core.de> parents: 
821diff
changeset | 527 | LIBVERSION=5.0.0 | 
| 
3f324ea53152
be honest at least in the lib version
 Mike Becker <universe@uap-core.de> parents: 
821diff
changeset | 528 | LIBVERSION_MAJOR=5 | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 529 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 530 | # build directory structure !! do not change or override !! | 
| 1064 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 531 | root_dir=${root_dir} | 
| 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 532 | build_dir=${root_dir}/build | 
| 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 533 | docs_dir=${root_dir}/build/docs | 
| 
f3b04cd60776
change coverage tool from gcov to gcovr
 Mike Becker <universe@uap-core.de> parents: 
1017diff
changeset | 534 | dist_dir=${root_dir}/dist | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 535 | __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 536 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 537 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 538 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 539 | done | 
| 842 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 540 | while true | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 541 | do | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 542 | if notisplatform "solaris"; then | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 543 | break | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 544 | fi | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 545 | while true | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 546 | do | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 547 | |
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 548 | TEMP_LDFLAGS="$TEMP_LDFLAGS -lm" | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 549 | break | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 550 | done | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 551 | break | 
| 
b48cbfa109d4
add -lm to ldflags on Solaris
 Olaf Wintermann <olaf.wintermann@gmail.com> parents: 
825diff
changeset | 552 | done | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 553 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 554 | # add general dependency flags to flags.mk | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 555 | echo "# general flags" >> "$TEMP_DIR/flags.mk" | 
| 815 
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
 Mike Becker <universe@uap-core.de> parents: 
796diff
changeset | 556 | if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 557 | echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 558 | fi | 
| 815 
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
 Mike Becker <universe@uap-core.de> parents: 
796diff
changeset | 559 | if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 560 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 561 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 562 | if [ -n "${TEMP_LDFLAGS}" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 563 | echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 564 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 565 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 566 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 567 | # OPTION VALUES | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 568 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 569 | checkopt_with_docs_all() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 570 | { | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 571 | VERR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 572 | if dependency_error_pandoc ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 573 | VERR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 574 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 575 | if dependency_error_doxygen ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 576 | VERR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 577 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 578 | if [ $VERR -ne 0 ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 579 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 580 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 581 | cat >> "$TEMP_DIR/make.mk" << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 582 | # Documentation | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 583 | WITH_DOCS_API=yes | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 584 | WITH_DOCS_HTML=yes | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 585 | __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 586 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 587 | } | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 588 | checkopt_with_docs_html() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 589 | { | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 590 | VERR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 591 | if dependency_error_pandoc ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 592 | VERR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 593 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 594 | if [ $VERR -ne 0 ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 595 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 596 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 597 | cat >> "$TEMP_DIR/make.mk" << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 598 | # Documentation | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 599 | WITH_DOCS_HTML=yes | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 600 | __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 601 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 602 | } | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 603 | checkopt_with_docs_api() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 604 | { | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 605 | VERR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 606 | if dependency_error_doxygen ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 607 | VERR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 608 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 609 | if [ $VERR -ne 0 ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 610 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 611 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 612 | cat >> "$TEMP_DIR/make.mk" << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 613 | # Documentation | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 614 | WITH_DOCS_API=yes | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 615 | __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 616 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 617 | } | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 618 | checkopt_with_docs_none() | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 619 | { | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 620 | VERR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 621 | if [ $VERR -ne 0 ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 622 | return 1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 623 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 624 | return 0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 625 | } | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 626 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 627 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 628 | # TARGETS | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 629 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 630 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 631 | echo >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 632 | echo "configuring global target" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 633 | echo "# flags for unnamed target" >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 634 | TEMP_CFLAGS= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 635 | TEMP_CXXFLAGS= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 636 | TEMP_LDFLAGS= | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 637 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 638 | if dependency_error_c; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 639 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED c " | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 640 | ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 641 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 642 | if dependency_error_file_tools; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 643 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED file_tools " | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 644 | ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 645 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 646 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 647 | # Features | 
| 772 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 648 | if [ -n "$FEATURE_COVERAGE" ]; then | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 649 | # check dependency | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 650 | if dependency_error_coverage ; then | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 651 | # "auto" features can fail and are just disabled in this case | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 652 | if [ "$FEATURE_COVERAGE" = "auto" ]; then | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 653 | DISABLE_FEATURE_COVERAGE=1 | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 654 | else | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 655 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED coverage " | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 656 | ERROR=1 | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 657 | fi | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 658 | fi | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 659 | if [ -n "$DISABLE_FEATURE_COVERAGE" ]; then | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 660 | unset FEATURE_COVERAGE | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 661 | fi | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 662 | fi | 
| 987 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 663 | if [ -n "$FEATURE_COVERAGE" ]; then | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 664 | : | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 665 | else | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 666 | : | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 667 | fi | 
| 988 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 668 | if [ -n "$FEATURE_CXX_TESTS" ]; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 669 | # check dependency | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 670 | if dependency_error_cxx ; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 671 | # "auto" features can fail and are just disabled in this case | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 672 | if [ "$FEATURE_CXX_TESTS" = "auto" ]; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 673 | DISABLE_FEATURE_CXX_TESTS=1 | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 674 | else | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 675 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED cxx " | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 676 | ERROR=1 | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 677 | fi | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 678 | fi | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 679 | if [ -n "$DISABLE_FEATURE_CXX_TESTS" ]; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 680 | unset FEATURE_CXX_TESTS | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 681 | fi | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 682 | fi | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 683 | if [ -n "$FEATURE_CXX_TESTS" ]; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 684 | : | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 685 | cat >> "$TEMP_DIR/make.mk" << __EOF__ | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 686 | # Enable the check-cxx target | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 687 | WITH_CXX_TEST=yes | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 688 | __EOF__ | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 689 | else | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 690 | : | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 691 | fi | 
| 987 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 692 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then | 
| 990 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 693 | # check dependency | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 694 | if dependency_error_no_coverage ; then | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 695 | # "auto" features can fail and are just disabled in this case | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 696 | if [ "$FEATURE_SZMUL_BUILTIN" = "auto" ]; then | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 697 | DISABLE_FEATURE_SZMUL_BUILTIN=1 | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 698 | else | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 699 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED no_coverage " | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 700 | ERROR=1 | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 701 | fi | 
| 
f708863e7ec6
automatically disable szmul builtin when testing with coverage
 Mike Becker <universe@uap-core.de> parents: 
988diff
changeset | 702 | fi | 
| 987 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 703 | if [ -n "$DISABLE_FEATURE_SZMUL_BUILTIN" ]; then | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 704 | unset FEATURE_SZMUL_BUILTIN | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 705 | fi | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 706 | fi | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 707 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 708 | : | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 709 | else | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 710 | : | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 711 | TEMP_CFLAGS="$TEMP_CFLAGS -DCX_NO_SZMUL_BUILTIN" | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 712 | TEMP_CXXFLAGS="$TEMP_CXXFLAGS -DCX_NO_SZMUL_BUILTIN" | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 713 | fi | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 714 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 715 | # Option: --with-docs | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 716 | if [ -z "$OPT_WITH_DOCS" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 717 | echo "auto-detecting option 'with-docs'" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 718 | SAVED_ERROR="$ERROR" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 719 | SAVED_DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 720 | ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 721 | while true | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 722 | do | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 723 | if checkopt_with_docs_all ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 724 | echo " with-docs: all" >> "$TEMP_DIR/options" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 725 | ERROR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 726 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 727 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 728 | if checkopt_with_docs_html ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 729 | echo " with-docs: html" >> "$TEMP_DIR/options" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 730 | ERROR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 731 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 732 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 733 | if checkopt_with_docs_api ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 734 | echo " with-docs: api" >> "$TEMP_DIR/options" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 735 | ERROR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 736 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 737 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 738 | if checkopt_with_docs_none ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 739 | echo " with-docs: none" >> "$TEMP_DIR/options" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 740 | ERROR=0 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 741 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 742 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 743 | break | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 744 | done | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 745 | if [ $ERROR -ne 0 ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 746 | SAVED_ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 747 | SAVED_DEPENDENCIES_FAILED="option 'with-docs' $SAVED_DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 748 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 749 | ERROR="$SAVED_ERROR" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 750 | DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 751 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 752 | echo "checking option with-docs = $OPT_WITH_DOCS" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 753 | if false; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 754 | false | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 755 | elif [ "$OPT_WITH_DOCS" = "all" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 756 | echo " with-docs: $OPT_WITH_DOCS" >> $TEMP_DIR/options | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 757 | if checkopt_with_docs_all ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 758 | : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 759 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 760 | ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 761 | DEPENDENCIES_FAILED="option 'with-docs' $DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 762 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 763 | elif [ "$OPT_WITH_DOCS" = "html" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 764 | echo " with-docs: $OPT_WITH_DOCS" >> $TEMP_DIR/options | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 765 | if checkopt_with_docs_html ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 766 | : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 767 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 768 | ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 769 | DEPENDENCIES_FAILED="option 'with-docs' $DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 770 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 771 | elif [ "$OPT_WITH_DOCS" = "api" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 772 | echo " with-docs: $OPT_WITH_DOCS" >> $TEMP_DIR/options | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 773 | if checkopt_with_docs_api ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 774 | : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 775 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 776 | ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 777 | DEPENDENCIES_FAILED="option 'with-docs' $DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 778 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 779 | elif [ "$OPT_WITH_DOCS" = "none" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 780 | echo " with-docs: $OPT_WITH_DOCS" >> $TEMP_DIR/options | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 781 | if checkopt_with_docs_none ; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 782 | : | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 783 | else | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 784 | ERROR=1 | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 785 | DEPENDENCIES_FAILED="option 'with-docs' $DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 786 | fi | 
| 1017 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 787 | else | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 788 | echo | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 789 | echo "Invalid option value - usage:" | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 790 | echo " --with-docs=(all|html|api|none)" | 
| 
b0098854071f
add check for C23 compatibility
 Mike Becker <universe@uap-core.de> parents: 
990diff
changeset | 791 | abort_configure | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 792 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 793 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 794 | |
| 815 
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
 Mike Becker <universe@uap-core.de> parents: 
796diff
changeset | 795 | if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 796 | echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 797 | fi | 
| 815 
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
 Mike Becker <universe@uap-core.de> parents: 
796diff
changeset | 798 | if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 799 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 800 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 801 | if [ "$BUILD_TYPE" = "debug" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 802 | if [ -n "$lang_c" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 803 | echo 'CFLAGS += ${DEBUG_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 804 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 805 | if [ -n "$lang_cpp" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 806 | echo 'CXXFLAGS += ${DEBUG_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 807 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 808 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 809 | if [ "$BUILD_TYPE" = "release" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 810 | if [ -n "$lang_c" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 811 | echo 'CFLAGS += ${RELEASE_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 812 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 813 | if [ -n "$lang_cpp" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 814 | echo 'CXXFLAGS += ${RELEASE_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 815 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 816 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 817 | if [ -n "${TEMP_LDFLAGS}" ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 818 | echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 819 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 820 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 821 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 822 | # final result | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 823 | if [ $ERROR -ne 0 ]; then | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 824 | echo | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 825 | echo "Error: Unresolved dependencies" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 826 | echo "$DEPENDENCIES_FAILED" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 827 | abort_configure | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 828 | fi | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 829 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 830 | echo "configure finished" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 831 | echo | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 832 | echo "Build Config:" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 833 | echo " PREFIX: $prefix" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 834 | echo " TOOLCHAIN: $TOOLCHAIN_NAME" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 835 | echo "Options:" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 836 | cat "$TEMP_DIR/options" | 
| 772 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 837 | echo "Features:" | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 838 | if [ -n "$FEATURE_COVERAGE" ]; then | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 839 | echo " coverage: on" | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 840 | else | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 841 | echo " coverage: off" | 
| 
4586a84c0c0b
add coverage feature - relates to #342
 Mike Becker <universe@uap-core.de> parents: 
766diff
changeset | 842 | fi | 
| 988 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 843 | if [ -n "$FEATURE_CXX_TESTS" ]; then | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 844 | echo " cxx-tests: on" | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 845 | else | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 846 | echo " cxx-tests: off" | 
| 
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
 Mike Becker <universe@uap-core.de> parents: 
987diff
changeset | 847 | fi | 
| 987 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 848 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 849 | echo " szmul-builtin: on" | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 850 | else | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 851 | echo " szmul-builtin: off" | 
| 
53e22f112b11
add configure option for szmul
 Mike Becker <universe@uap-core.de> parents: 
982diff
changeset | 852 | fi | 
| 753 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 853 | echo | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 854 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 855 | # generate the config.mk file | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 856 | cat > "$TEMP_DIR/config.mk" << __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 857 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 858 | # config.mk generated by configure | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 859 | # | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 860 | |
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 861 | __EOF__ | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 862 | write_toolchain_defaults "$TEMP_DIR/toolchain.mk" | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 863 | cat "$TEMP_DIR/vars.mk" "$TEMP_DIR/toolchain.mk" "$TEMP_DIR/flags.mk" "$TEMP_DIR/make.mk" > config.mk | 
| 
24dc84788dee
replace most of the build system with uwproj
 Mike Becker <universe@uap-core.de> parents: diff
changeset | 864 | rm -Rf "$TEMP_DIR" |