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