Sun, 30 Nov 2025 13:29:07 +0100
update uwproj and fix pkgconfigdir location on BSD
|
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` |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
61 | ARCH=`uname -m` |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
62 | printf "detect platform... " |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
63 | if [ "$OS" = "SunOS" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
64 | PLATFORM="solaris sunos unix svr4" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
65 | elif [ "$OS" = "Linux" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
66 | PLATFORM="linux unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
67 | elif [ "$OS" = "FreeBSD" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
68 | PLATFORM="freebsd bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
69 | elif [ "$OS" = "OpenBSD" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
70 | PLATFORM="openbsd bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
71 | elif [ "$OS" = "NetBSD" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
72 | PLATFORM="netbsd bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
73 | elif [ "$OS" = "Darwin" ]; then |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
74 | PLATFORM="macos osx bsd unix" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
75 | 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
|
76 | PLATFORM="windows mingw" |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
77 | fi |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
78 | : ${PLATFORM:="unix"} |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
79 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
80 | 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
|
81 | echo "$PLATFORM_NAME" |
|
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 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
84 | # help text |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
85 | printhelp() |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
86 | { |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
87 | echo "Usage: $0 [OPTIONS]..." |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
88 | echo 'Configuration:' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
89 | if true \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
90 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
91 | : |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
92 | if test -z "$prefix__described__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
93 | prefix__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
94 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
95 | --prefix path prefix for architecture-independent files [/usr] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
96 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
97 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
98 | if test -z "$exec_prefix__described__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
99 | exec_prefix__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
100 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
101 | --exec-prefix path prefix for architecture-dependent files [PREFIX] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
102 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
103 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
104 | if test -z "$libdir__described__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
105 | libdir__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
106 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
107 | --libdir object code libraries [EPREFIX/lib] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
108 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
109 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
110 | if test -z "$includedir__described__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
111 | includedir__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
112 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
113 | --includedir C header files [PREFIX/include] |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
114 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
115 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
116 | if test -z "$DOXYGEN__described__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
117 | DOXYGEN__described__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
118 | cat << '__EOF__' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
119 | --doxygen path of the Doxygen executable |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
120 | __EOF__ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
121 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
122 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
123 | if true \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
124 | && isplatform "bsd" \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
125 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
126 | : |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
127 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
128 | if true \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
129 | && notisplatform "bsd" \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
130 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
131 | : |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
132 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
133 | cat << '__EOF__' |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
134 | |
|
1017
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
135 | Build Types: |
| 1310 | 136 | --debug add extra compile flags for debug builds |
| 137 | --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
|
138 | |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
139 | Optional Features: |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
140 | --enable-api-docs run Doxygen during build |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
141 | --enable-coverage test coverage with gcov |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
142 | --enable-asan address sanitizer |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
143 | --disable-memrchr |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
144 | --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
|
145 | --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
|
146 | |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
147 | __EOF__ |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
148 | abort_configure |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
149 | } |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
150 | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
151 | # create temporary directory |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
152 | TEMP_DIR=".tmp-`uname -n`" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
153 | rm -Rf "$TEMP_DIR" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
154 | if mkdir -p "$TEMP_DIR"; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
155 | : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
156 | else |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
157 | 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
|
158 | echo "Abort" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
159 | exit 1 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
160 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
161 | touch "$TEMP_DIR/options" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
162 | touch "$TEMP_DIR/features" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
163 | |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
164 | # config variables |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
165 | if true \ |
|
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
166 | ; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
167 | : |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
168 | if test -z "$prefix__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
169 | prefix__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
170 | prefix="/usr" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
171 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
172 | if test -z "$exec_prefix__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
173 | exec_prefix__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
174 | exec_prefix="" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
175 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
176 | if test -z "$libdir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
177 | libdir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
178 | libdir="" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
179 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
180 | if test -z "$includedir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
181 | includedir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
182 | includedir="" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
183 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
184 | if test -z "$VERSION__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
185 | VERSION__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
186 | VERSION="3.2.0" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
187 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
188 | if test -z "$LIBVERSION__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
189 | LIBVERSION__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
190 | LIBVERSION="6.0.0" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
191 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
192 | if test -z "$LIBVERSION_MAJOR__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
193 | LIBVERSION_MAJOR__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
194 | LIBVERSION_MAJOR="6" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
195 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
196 | if test -z "$root_dir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
197 | root_dir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
198 | root_dir=`pwd` |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
199 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
200 | if test -z "$build_dir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
201 | build_dir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
202 | build_dir="\${root_dir}/build" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
203 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
204 | if test -z "$docs_dir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
205 | docs_dir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
206 | docs_dir="\${root_dir}/build/docs" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
207 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
208 | if test -z "$dist_dir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
209 | dist_dir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
210 | dist_dir="\${root_dir}/dist" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
211 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
212 | if test -z "$DOXYGEN__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
213 | DOXYGEN__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
214 | DOXYGEN=`command -v doxygen` |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
215 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
216 | if test -z "$MKDIR__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
217 | MKDIR__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
218 | MKDIR="/bin/mkdir -p" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
219 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
220 | if test -z "$RMFILE__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
221 | RMFILE__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
222 | RMFILE="/bin/rm -f" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
223 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
224 | if test -z "$RMDIR__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
225 | RMDIR__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
226 | RMDIR="/bin/rm -f -R" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
227 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
228 | if test -z "$COPYFILE__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
229 | COPYFILE__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
230 | COPYFILE="/bin/cp -f" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
231 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
232 | if test -z "$COPYALL__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
233 | COPYALL__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
234 | COPYALL="/bin/cp -f -R" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
235 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
236 | if test -z "$SYMLINK__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
237 | SYMLINK__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
238 | SYMLINK="/bin/ln -s" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
239 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
240 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
241 | if true \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
242 | && isplatform "bsd" \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
243 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
244 | : |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
245 | if test -z "$pkgconfigdir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
246 | pkgconfigdir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
247 | pkgconfigdir="\${exec_prefix}/libdata/pkgconfig" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
248 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
249 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
250 | if true \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
251 | && notisplatform "bsd" \ |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
252 | ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
253 | : |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
254 | if test -z "$pkgconfigdir__initialized__"; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
255 | pkgconfigdir__initialized__=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
256 | pkgconfigdir="\${libdir}/pkgconfig" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
257 | fi |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
258 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
259 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
260 | # features |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
261 | FEATURE_MEMRCHR=auto |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
262 | FEATURE_CXX_TESTS=auto |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
263 | FEATURE_SZMUL_BUILTIN=auto |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
264 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
265 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
266 | # parse arguments |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
267 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
268 | BUILD_TYPE="default" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
269 | for ARG in "$@" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
270 | do |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
271 | case "$ARG" in |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
272 | "--prefix="*) prefix=${ARG#--prefix=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
273 | "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
274 | "--libdir="*) libdir=${ARG#--libdir=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
275 | "--includedir="*) includedir=${ARG#--includedir=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
276 | "--doxygen="*) DOXYGEN=${ARG#--doxygen=} ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
277 | "--help"*) printhelp ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
278 | "--debug") BUILD_TYPE="debug" ;; |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
279 | "--release") BUILD_TYPE="release" ;; |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
280 | "--enable-api-docs") FEATURE_API_DOCS=on ;; |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
281 | "--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
|
282 | "--enable-coverage") FEATURE_COVERAGE=on ;; |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
283 | "--disable-coverage") unset FEATURE_COVERAGE ;; |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
284 | "--enable-asan") FEATURE_ASAN=on ;; |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
285 | "--disable-asan") unset FEATURE_ASAN ;; |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
286 | "--enable-memrchr") FEATURE_MEMRCHR=on ;; |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
287 | "--disable-memrchr") unset FEATURE_MEMRCHR ;; |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
288 | "--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
|
289 | "--disable-cxx-tests") unset FEATURE_CXX_TESTS ;; |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
290 | "--enable-szmul-builtin") FEATURE_SZMUL_BUILTIN=on ;; |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
291 | "--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
|
292 | "-"*) echo "unknown option: $ARG"; abort_configure ;; |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
293 | esac |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
294 | done |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
295 | |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
296 | # toolchain detection utilities |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
297 | . make/toolchain.sh |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
298 | |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
299 | # check languages |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
300 | lang_c= |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
301 | lang_cpp= |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
302 | if detect_cpp_compiler ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
303 | lang_cpp=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
304 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
305 | if detect_c_compiler ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
306 | lang_c=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
307 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
308 | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
309 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
310 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
311 | # set defaults for dir variables |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
312 | : ${exec_prefix:="$prefix"} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
313 | : ${bindir:='${exec_prefix}/bin'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
314 | : ${sbindir:='${exec_prefix}/sbin'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
315 | : ${libdir:='${exec_prefix}/lib'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
316 | : ${libexecdir:='${exec_prefix}/libexec'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
317 | : ${datarootdir:='${prefix}/share'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
318 | : ${datadir:='${datarootdir}'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
319 | : ${sharedstatedir:='${prefix}/com'} |
| 1492 | 320 | if [ -z "$sysconfdir" ]; then |
| 321 | if [ "$prefix" = '/usr' ]; then | |
| 322 | sysconfdir='/etc' | |
| 323 | else | |
| 324 | sysconfdir='${prefix}/etc' | |
| 325 | fi | |
| 326 | fi | |
| 327 | if [ -z "$localstatedir" ]; then | |
| 328 | if [ "$prefix" = '/usr' ]; then | |
| 329 | localstatedir='/var' | |
| 330 | else | |
| 331 | localstatedir='${prefix}/var' | |
| 332 | fi | |
| 333 | fi | |
| 334 | if [ -z "$runstatedir" ]; then | |
| 335 | if [ "$prefix" = '/usr' ]; then | |
| 336 | runstatedir='/var/run' | |
| 337 | else | |
| 338 | runstatedir='${prefix}/var' | |
| 339 | fi | |
| 340 | fi | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
341 | : ${includedir:='${prefix}/include'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
342 | : ${infodir:='${datarootdir}/info'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
343 | : ${mandir:='${datarootdir}/man'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
344 | : ${localedir:='${datarootdir}/locale'} |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
345 | |
| 1310 | 346 | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
347 | # check if a config.site exists and load it |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
348 | CONFIG_SITE_OK=0 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
349 | if [ -n "$CONFIG_SITE" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
350 | # 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
|
351 | for cs in $CONFIG_SITE; do |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
352 | printf "loading defaults from $cs... " |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
353 | if [ -f "$cs" ]; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
354 | . "$cs" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
355 | echo ok |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
356 | CONFIG_SITE_OK=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
357 | break |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
358 | else |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
359 | echo "not found" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
360 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
361 | done |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
362 | 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
|
363 | printf "loading site defaults... " |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
364 | . "$prefix/share/config.site" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
365 | echo ok |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
366 | CONFIG_SITE_OK=1 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
367 | 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
|
368 | printf "loading site defaults... " |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
369 | . "$prefix/etc/config.site" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
370 | echo ok |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
371 | CONFIG_SITE_OK=1 |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
372 | fi |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
373 | |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
374 | if [ $CONFIG_SITE_OK -eq 0 ]; then |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
375 | # try to detect the correct libdir on our own, except it was changed by the user |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
376 | if [ "$libdir" = '${exec_prefix}/lib' ] ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
377 | if [ "$TOOLCHAIN_WSIZE" = "64" ] ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
378 | if [ "$OS" = "SunOS" ]; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
379 | [ -d "${exec_prefix}/lib/64" ] && libdir='${exec_prefix}/lib/64' |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
380 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
381 | [ -d "${exec_prefix}/lib64" ] && libdir='${exec_prefix}/lib64' |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
382 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
383 | elif [ "$TOOLCHAIN_WSIZE" = "32" ] ; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
384 | if [ "$OS" = "SunOS" ]; then |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
385 | [ -d "${exec_prefix}/lib/32" ] && libdir='${exec_prefix}/lib/32' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
386 | else |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
387 | [ -d "${exec_prefix}/lib32" ] && libdir='${exec_prefix}/lib32' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
388 | fi |
|
1335
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
389 | fi |
|
158eb29f0b27
update uwproj - adds libdir detection w/o config.site
Mike Becker <universe@uap-core.de>
parents:
1330
diff
changeset
|
390 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
391 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
392 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
393 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
394 | # generate vars.mk |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
395 | cat > "$TEMP_DIR/vars.mk" << __EOF__ |
|
821
5e6f15005efd
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
815
diff
changeset
|
396 | prefix=$prefix |
|
5e6f15005efd
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
815
diff
changeset
|
397 | exec_prefix=$exec_prefix |
|
5e6f15005efd
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
815
diff
changeset
|
398 | libdir=$libdir |
|
5e6f15005efd
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
815
diff
changeset
|
399 | includedir=$includedir |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
400 | VERSION=$VERSION |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
401 | LIBVERSION=$LIBVERSION |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
402 | LIBVERSION_MAJOR=$LIBVERSION_MAJOR |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
403 | root_dir=$root_dir |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
404 | build_dir=$build_dir |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
405 | docs_dir=$docs_dir |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
406 | dist_dir=$dist_dir |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
407 | DOXYGEN=$DOXYGEN |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
408 | MKDIR=$MKDIR |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
409 | RMFILE=$RMFILE |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
410 | RMDIR=$RMDIR |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
411 | COPYFILE=$COPYFILE |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
412 | COPYALL=$COPYALL |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
413 | SYMLINK=$SYMLINK |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
414 | pkgconfigdir=$pkgconfigdir |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
415 | __EOF__ |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
416 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
417 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
418 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
419 | # DEPENDENCIES |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
420 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
421 | |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
422 | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
423 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
424 | # 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
|
425 | echo > "$TEMP_DIR/make.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
426 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
427 | test_pkg_config() |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
428 | { |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
429 | if "$PKG_CONFIG" --exists "$1" ; then : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
430 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
431 | 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
|
432 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
433 | 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
|
434 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
435 | 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
|
436 | else return 1 ; fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
437 | return 0 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
438 | } |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
439 | |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
440 | print_check_msg() |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
441 | { |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
442 | if [ -z "$1" ]; then |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
443 | shift |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
444 | printf "$@" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
445 | fi |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
446 | } |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
447 | |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
448 | dependency_error_coverage() |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
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_coverage" "checking for coverage... " |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
451 | # dependency coverage toolchain="gcc" |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
452 | while true |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
453 | do |
|
960
a8a5f3dd5c3d
test coverage does not really work with clang
Mike Becker <universe@uap-core.de>
parents:
842
diff
changeset
|
454 | 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
|
455 | break |
|
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
456 | fi |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
457 | if command -v gcovr > /dev/null 2>&1 ; then |
|
1064
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
458 | : |
|
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
459 | else |
|
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
460 | break |
|
f3b04cd60776
change coverage tool from gcov to gcovr
Mike Becker <universe@uap-core.de>
parents:
1017
diff
changeset
|
461 | fi |
|
788
b34ff44e6433
move coverage flags to make/*.mk files - relates to #345
Mike Becker <universe@uap-core.de>
parents:
772
diff
changeset
|
462 | 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
|
463 | TEMP_LDFLAGS="$TEMP_LDFLAGS \${COVERAGE_LDFLAGS}" |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
464 | print_check_msg "$dep_checked_coverage" "yes\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
465 | dep_checked_coverage=1 |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
466 | return 1 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
467 | done |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
468 | |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
469 | print_check_msg "$dep_checked_coverage" "no\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
470 | dep_checked_coverage=1 |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
471 | return 0 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
472 | } |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
473 | dependency_error_asan() |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
474 | { |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
475 | print_check_msg "$dep_checked_asan" "checking for asan... " |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
476 | # dependency asan toolchain="gnuc" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
477 | while true |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
478 | do |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
479 | if notistoolchain "gnuc"; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
480 | break |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
481 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
482 | TEMP_CFLAGS="$TEMP_CFLAGS -fsanitize=address" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
483 | TEMP_LDFLAGS="$TEMP_LDFLAGS -fsanitize=address" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
484 | print_check_msg "$dep_checked_asan" "yes\n" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
485 | dep_checked_asan=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
486 | return 1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
487 | done |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
488 | |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
489 | print_check_msg "$dep_checked_asan" "no\n" |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
490 | dep_checked_asan=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
491 | return 0 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
492 | } |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
493 | 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
|
494 | { |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
495 | 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
|
496 | # 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
|
497 | 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
|
498 | do |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
499 | 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
|
500 | break |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
501 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
502 | 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
|
503 | 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
|
504 | 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
|
505 | done |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
506 | |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
507 | 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
|
508 | 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
|
509 | 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
|
510 | } |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
511 | dependency_error_memrchr() |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
512 | { |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
513 | print_check_msg "$dep_checked_memrchr" "checking for memrchr... " |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
514 | # dependency memrchr |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
515 | while true |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
516 | do |
|
1414
597cf869e8bc
missing custom CFLAGS when testing for memrchr availability
Mike Becker <universe@uap-core.de>
parents:
1413
diff
changeset
|
517 | if $TOOLCHAIN_CC $CFLAGS -o /dev/null make/test_memrchr.c > /dev/null 2>&1 ; then |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
518 | : |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
519 | else |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
520 | break |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
521 | fi |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
522 | TEMP_CFLAGS="$TEMP_CFLAGS -DWITH_MEMRCHR" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
523 | print_check_msg "$dep_checked_memrchr" "yes\n" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
524 | dep_checked_memrchr=1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
525 | return 1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
526 | done |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
527 | |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
528 | # dependency memrchr |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
529 | while true |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
530 | do |
|
1414
597cf869e8bc
missing custom CFLAGS when testing for memrchr availability
Mike Becker <universe@uap-core.de>
parents:
1413
diff
changeset
|
531 | if $TOOLCHAIN_CC $CFLAGS -o /dev/null -D_GNU_SOURCE make/test_memrchr.c > /dev/null 2>&1 ; then |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
532 | : |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
533 | else |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
534 | break |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
535 | fi |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
536 | TEMP_CFLAGS="$TEMP_CFLAGS -DWITH_MEMRCHR -DMEMRCHR_NEED_GNU" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
537 | print_check_msg "$dep_checked_memrchr" "yes\n" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
538 | dep_checked_memrchr=1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
539 | return 1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
540 | done |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
541 | |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
542 | print_check_msg "$dep_checked_memrchr" "no\n" |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
543 | dep_checked_memrchr=1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
544 | return 0 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
545 | } |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
546 | dependency_error_doxygen() |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
547 | { |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
548 | 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
|
549 | # dependency doxygen |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
550 | while true |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
551 | do |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
552 | if test -n "$DOXYGEN" > /dev/null 2>&1 ; then |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
553 | : |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
554 | else |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
555 | break |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
556 | fi |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
557 | print_check_msg "$dep_checked_doxygen" "yes\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
558 | dep_checked_doxygen=1 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
559 | return 1 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
560 | done |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
561 | |
|
796
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
562 | print_check_msg "$dep_checked_doxygen" "no\n" |
|
fec90b848f4b
update uwproj configure template
Mike Becker <universe@uap-core.de>
parents:
788
diff
changeset
|
563 | dep_checked_doxygen=1 |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
564 | return 0 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
565 | } |
|
990
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
566 | dependency_error_no_coverage() |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
567 | { |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
568 | 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
|
569 | # dependency no_coverage |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
570 | while true |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
571 | do |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
572 | if test -z "$FEATURE_COVERAGE" > /dev/null 2>&1 ; then |
|
990
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
573 | : |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
574 | else |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
575 | break |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
576 | fi |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
577 | 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
|
578 | dep_checked_no_coverage=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
579 | return 1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
580 | done |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
581 | |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
582 | 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
|
583 | dep_checked_no_coverage=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
584 | return 0 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
585 | } |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
586 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
587 | # start collecting dependency information |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
588 | echo > "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
589 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
590 | DEPENDENCIES_FAILED= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
591 | ERROR=0 |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
592 | # unnamed dependencies |
|
1017
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
593 | TEMP_CFLAGS="$CFLAGS" |
|
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
594 | TEMP_CXXFLAGS="$CXXFLAGS" |
|
b0098854071f
add check for C23 compatibility
Mike Becker <universe@uap-core.de>
parents:
990
diff
changeset
|
595 | TEMP_LDFLAGS="$LDFLAGS" |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
596 | while true |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
597 | do |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
598 | if notisplatform "macos"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
599 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
600 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
601 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
602 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
603 | if [ -z "$lang_c" ] ; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
604 | ERROR=1 |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
605 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
606 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
607 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
608 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
609 | AR=ar |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
610 | ARFLAGS=r |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
611 | STLIB_EXT=.a |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
612 | SHLIB_EXT=.dylib |
|
1471
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
613 | |
|
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
614 | SHLIB_LDFLAGS=-dynamiclib -current_version \$(LIBVERSION) -compatibility_version \$(LIBVERSION) |
|
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
615 | INSTALL_LIB=\$(root_dir)/make/install-lib-macos.sh |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
616 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
617 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
618 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
619 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
620 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
621 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
622 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
623 | if notisplatform "unix"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
624 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
625 | fi |
|
1461
dfd79d615049
remove mingw support (we have MSVC support) + fix regression on macos platform
Mike Becker <universe@uap-core.de>
parents:
1460
diff
changeset
|
626 | if isplatform "macos" || istoolchain "macos"; then |
|
dfd79d615049
remove mingw support (we have MSVC support) + fix regression on macos platform
Mike Becker <universe@uap-core.de>
parents:
1460
diff
changeset
|
627 | break |
|
dfd79d615049
remove mingw support (we have MSVC support) + fix regression on macos platform
Mike Becker <universe@uap-core.de>
parents:
1460
diff
changeset
|
628 | fi |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
629 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
630 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
631 | if [ -z "$lang_c" ] ; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
632 | ERROR=1 |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
633 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
634 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
635 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
636 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
637 | AR=ar |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
638 | ARFLAGS=cr |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
639 | STLIB_EXT=.a |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
640 | SHLIB_EXT=.so |
|
1471
2309b553c604
install shared libs with a new install-lib script, with variants for normal unix and macos - fixes #752 broken macos dylib support
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
1461
diff
changeset
|
641 | INSTALL_LIB=\$(root_dir)/make/install-lib.sh |
|
1460
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
642 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
643 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
644 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
645 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
646 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
647 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
648 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
649 | if notistoolchain "gnuc"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
650 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
651 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
652 | if isplatform "macos" || istoolchain "macos"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
653 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
654 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
655 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
656 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
657 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
658 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
659 | SHLIB_LDFLAGS += -Wl,-soname,libucx\$(SHLIB_EXT).\$(LIBVERSION_MAJOR) |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
660 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
661 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
662 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
663 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
664 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
665 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
666 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
667 | if notistoolchain "suncc"; then |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
668 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
669 | fi |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
670 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
671 | do |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
672 | |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
673 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
674 | SHLIB_LDFLAGS += -h libucx\$(SHLIB_EXT).\$(LIBVERSION_MAJOR) |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
675 | __EOF__ |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
676 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
677 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
678 | break |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
679 | done |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
680 | while true |
|
464f896249c1
add support for multiple parallel versions of ucx
Mike Becker <universe@uap-core.de>
parents:
1456
diff
changeset
|
681 | do |
|
842
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
682 | if notisplatform "solaris"; then |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
683 | break |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
684 | fi |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
685 | while true |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
686 | do |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
687 | |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
688 | TEMP_LDFLAGS="$TEMP_LDFLAGS -lm" |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
689 | break |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
690 | done |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
691 | break |
|
b48cbfa109d4
add -lm to ldflags on Solaris
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
825
diff
changeset
|
692 | done |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
693 | |
| 1310 | 694 | # build type |
| 695 | if [ "$BUILD_TYPE" = "debug" ]; then | |
|
1330
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
696 | TEMP_CFLAGS="\${DEBUG_CFLAGS} $TEMP_CFLAGS" |
|
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
697 | TEMP_CXXFLAGS="\${DEBUG_CXXFLAGS} $TEMP_CXXFLAGS" |
| 1310 | 698 | fi |
| 699 | if [ "$BUILD_TYPE" = "release" ]; then | |
|
1330
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
700 | TEMP_CFLAGS="\${RELEASE_CFLAGS} $TEMP_CFLAGS" |
|
caa66055b025
apply latest uwproj fixes
Mike Becker <universe@uap-core.de>
parents:
1320
diff
changeset
|
701 | TEMP_CXXFLAGS="\${RELEASE_CXXFLAGS} $TEMP_CXXFLAGS" |
| 1310 | 702 | fi |
| 703 | ||
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
704 | # 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
|
705 | 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
|
706 | 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
|
707 | 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
|
708 | fi |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
709 | 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
|
710 | 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
|
711 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
712 | if [ -n "${TEMP_LDFLAGS}" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
713 | 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
|
714 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
715 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
716 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
717 | # OPTION VALUES |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
718 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
719 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
720 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
721 | # TARGETS |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
722 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
723 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
724 | echo >> "$TEMP_DIR/flags.mk" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
725 | echo "configuring global target" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
726 | 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
|
727 | TEMP_CFLAGS= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
728 | TEMP_CXXFLAGS= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
729 | TEMP_LDFLAGS= |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
730 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
731 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
732 | # Features |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
733 | if [ -n "$FEATURE_API_DOCS" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
734 | # check dependency |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
735 | if dependency_error_doxygen ; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
736 | # "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
|
737 | if [ "$FEATURE_API_DOCS" = "auto" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
738 | DISABLE_FEATURE_API_DOCS=1 |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
739 | else |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
740 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED doxygen " |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
741 | ERROR=1 |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
742 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
743 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
744 | if [ -n "$DISABLE_FEATURE_API_DOCS" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
745 | unset FEATURE_API_DOCS |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
746 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
747 | fi |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
748 | if [ -n "$FEATURE_API_DOCS" ]; then |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
749 | : |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
750 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
751 | # Documentation |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
752 | WITH_API_DOCS=yes |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
753 | __EOF__ |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
754 | else |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
755 | : |
|
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
756 | fi |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
757 | if [ -n "$FEATURE_COVERAGE" ]; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
758 | # check dependency |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
759 | if dependency_error_coverage ; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
760 | # "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
|
761 | if [ "$FEATURE_COVERAGE" = "auto" ]; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
762 | DISABLE_FEATURE_COVERAGE=1 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
763 | else |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
764 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED coverage " |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
765 | ERROR=1 |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
766 | fi |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
767 | fi |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
768 | if [ -n "$DISABLE_FEATURE_COVERAGE" ]; then |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
769 | unset FEATURE_COVERAGE |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
770 | fi |
|
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
771 | fi |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
772 | if [ -n "$FEATURE_COVERAGE" ]; then |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
773 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
774 | else |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
775 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
776 | fi |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
777 | if [ -n "$FEATURE_ASAN" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
778 | # check dependency |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
779 | if dependency_error_asan ; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
780 | # "auto" features can fail and are just disabled in this case |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
781 | if [ "$FEATURE_ASAN" = "auto" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
782 | DISABLE_FEATURE_ASAN=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
783 | else |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
784 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED asan " |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
785 | ERROR=1 |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
786 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
787 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
788 | if [ -n "$DISABLE_FEATURE_ASAN" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
789 | unset FEATURE_ASAN |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
790 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
791 | fi |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
792 | if [ -n "$FEATURE_ASAN" ]; then |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
793 | : |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
794 | else |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
795 | : |
|
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
796 | fi |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
797 | if [ -n "$FEATURE_MEMRCHR" ]; then |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
798 | # check dependency |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
799 | if dependency_error_memrchr ; then |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
800 | # "auto" features can fail and are just disabled in this case |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
801 | if [ "$FEATURE_MEMRCHR" = "auto" ]; then |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
802 | DISABLE_FEATURE_MEMRCHR=1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
803 | else |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
804 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED memrchr " |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
805 | ERROR=1 |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
806 | fi |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
807 | fi |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
808 | if [ -n "$DISABLE_FEATURE_MEMRCHR" ]; then |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
809 | unset FEATURE_MEMRCHR |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
810 | fi |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
811 | fi |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
812 | if [ -n "$FEATURE_MEMRCHR" ]; then |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
813 | : |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
814 | else |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
815 | : |
|
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
816 | 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
|
817 | 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
|
818 | # 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
|
819 | 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
|
820 | # "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
|
821 | 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
|
822 | 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
|
823 | else |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
824 | 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
|
825 | 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
|
826 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
827 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
828 | 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
|
829 | 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
|
830 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
831 | fi |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
832 | 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
|
833 | : |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
834 | 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
|
835 | # 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
|
836 | 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
|
837 | __EOF__ |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
838 | else |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
839 | : |
|
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
840 | fi |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
841 | 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
|
842 | # check dependency |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
843 | 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
|
844 | # "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
|
845 | 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
|
846 | DISABLE_FEATURE_SZMUL_BUILTIN=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
847 | else |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
848 | 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
|
849 | ERROR=1 |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
850 | fi |
|
f708863e7ec6
automatically disable szmul builtin when testing with coverage
Mike Becker <universe@uap-core.de>
parents:
988
diff
changeset
|
851 | fi |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
852 | if [ -n "$DISABLE_FEATURE_SZMUL_BUILTIN" ]; then |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
853 | unset FEATURE_SZMUL_BUILTIN |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
854 | fi |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
855 | fi |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
856 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
857 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
858 | else |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
859 | : |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
860 | TEMP_CFLAGS="$TEMP_CFLAGS -DCX_NO_SZMUL_BUILTIN" |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
861 | TEMP_CXXFLAGS="$TEMP_CXXFLAGS -DCX_NO_SZMUL_BUILTIN" |
|
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
862 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
863 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
864 | |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
865 | 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
|
866 | 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
|
867 | fi |
|
815
b0c4750cecd8
update uwproj and check toolchain dependency for coverage flags - fixes #345
Mike Becker <universe@uap-core.de>
parents:
796
diff
changeset
|
868 | 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
|
869 | 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
|
870 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
871 | if [ -n "${TEMP_LDFLAGS}" ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
872 | 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
|
873 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
874 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
875 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
876 | # final result |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
877 | if [ $ERROR -ne 0 ]; then |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
878 | echo |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
879 | echo "Error: Unresolved dependencies" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
880 | echo "$DEPENDENCIES_FAILED" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
881 | abort_configure |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
882 | fi |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
883 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
884 | echo "configure finished" |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
885 | echo |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
886 | echo "Toolchain:" |
| 1310 | 887 | echo " name: $TOOLCHAIN_NAME" |
| 888 | if [ -n "$TOOLCHAIN_CC" ]; then | |
| 889 | echo " cc: $TOOLCHAIN_CC" | |
| 890 | fi | |
| 891 | if [ -n "$TOOLCHAIN_CXX" ]; then | |
| 892 | echo " cxx: $TOOLCHAIN_CXX" | |
| 893 | fi | |
| 894 | if [ -n "$TOOLCHAIN_WSIZE" ]; then | |
| 895 | echo " word size: $TOOLCHAIN_WSIZE bit" | |
| 896 | fi | |
| 897 | if [ -n "$TOOLCHAIN_CSTD" ]; then | |
| 898 | echo " default C std: $TOOLCHAIN_CSTD" | |
| 899 | fi | |
| 900 | echo | |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
901 | echo "Config:" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
902 | printf ' %-16s' 'prefix:' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
903 | echo "$prefix" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
904 | printf ' %-16s' 'exec-prefix:' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
905 | echo "$exec_prefix" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
906 | printf ' %-16s' 'libdir:' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
907 | echo "$libdir" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
908 | printf ' %-16s' 'includedir:' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
909 | echo "$includedir" |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
910 | printf ' %-16s' 'doxygen:' |
|
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
911 | echo "$DOXYGEN" |
| 1310 | 912 | echo |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
913 | echo "Features:" |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
914 | printf ' %-16s' 'api-docs:' |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
915 | if [ -n "$FEATURE_API_DOCS" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
916 | echo 'on' |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
917 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
918 | echo 'off' |
|
1140
88a9ee79c102
start overhauling the entire web documentation
Mike Becker <universe@uap-core.de>
parents:
1064
diff
changeset
|
919 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
920 | printf ' %-16s' 'coverage:' |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
921 | if [ -n "$FEATURE_COVERAGE" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
922 | echo 'on' |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
923 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
924 | echo 'off' |
|
772
4586a84c0c0b
add coverage feature - relates to #342
Mike Becker <universe@uap-core.de>
parents:
766
diff
changeset
|
925 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
926 | printf ' %-16s' 'asan:' |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
927 | if [ -n "$FEATURE_ASAN" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
928 | echo 'on' |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
929 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
930 | echo 'off' |
|
1320
f76b70a72614
add an option to enable address sanitizer
Mike Becker <universe@uap-core.de>
parents:
1310
diff
changeset
|
931 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
932 | printf ' %-16s' 'memrchr:' |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
933 | if [ -n "$FEATURE_MEMRCHR" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
934 | echo 'on' |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
935 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
936 | echo 'off' |
|
1413
c5a225d7228c
improve feature test for memrchr() making it also available on BSD
Mike Becker <universe@uap-core.de>
parents:
1335
diff
changeset
|
937 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
938 | printf ' %-16s' 'cxx-tests:' |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
939 | if [ -n "$FEATURE_CXX_TESTS" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
940 | echo 'on' |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
941 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
942 | echo 'off' |
|
988
15b3ca7ee33f
make ucx C++ compatible again (and add tests for it) - fixes #486
Mike Becker <universe@uap-core.de>
parents:
987
diff
changeset
|
943 | fi |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
944 | printf ' %-16s' 'szmul-builtin:' |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
945 | if [ -n "$FEATURE_SZMUL_BUILTIN" ]; then |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
946 | echo 'on' |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
947 | else |
|
1523
b5c32391802f
update uwproj and fix pkgconfigdir location on BSD
Mike Becker <universe@uap-core.de>
parents:
1492
diff
changeset
|
948 | echo 'off' |
|
987
53e22f112b11
add configure option for szmul
Mike Becker <universe@uap-core.de>
parents:
982
diff
changeset
|
949 | fi |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
950 | echo |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
951 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
952 | # generate the config.mk file |
| 1310 | 953 | pwd=`pwd` |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
954 | cat > "$TEMP_DIR/config.mk" << __EOF__ |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
955 | # |
| 1310 | 956 | # config.mk generated by: |
| 957 | # pwd: $pwd | |
| 958 | # $0 $@ | |
|
753
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
959 | # |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
960 | |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
961 | __EOF__ |
|
24dc84788dee
replace most of the build system with uwproj
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
962 | write_toolchain_defaults "$TEMP_DIR/toolchain.mk" |
| 1310 | 963 | 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
|
964 | rm -Rf "$TEMP_DIR" |