Sun, 10 Sep 2023 12:59:04 +0200
add simple SLF4J provider - fixes #292
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | #!/bin/sh |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
2 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
3 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
4 | PREFIX=/usr |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
5 | EPREFIX=$PREFIX |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
6 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
7 | BINDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
8 | SBINDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
9 | LIBDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
10 | LIBEXECDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
11 | DATADIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
12 | SYSCONFDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
13 | SHAREDSTATEDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
14 | LOCALSTATEDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
15 | INCLUDEDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
16 | INFODIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
17 | MANDIR= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
18 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
19 | OS=`uname -s` |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
20 | OS_VERSION=`uname -r` |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
21 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
22 | TEMP_DIR=".tmp-`uname -n`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
23 | mkdir -p "$TEMP_DIR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
24 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
25 | echo "Cannot create tmp dir" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
26 | echo "Abort" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
27 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
28 | touch "$TEMP_DIR/options" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
29 | touch "$TEMP_DIR/features" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
30 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
31 | # features |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
32 | FEATURE_DB=on |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
33 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
34 | # help text |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
35 | printhelp() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
36 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
37 | echo "Usage: $0 [OPTIONS]..." |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
38 | cat << __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
39 | Installation directories: |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | --prefix=PREFIX path prefix for architecture-independent files |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
41 | [/usr] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
42 | --exec-prefix=EPREFIX path prefix for architecture-dependent files |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
43 | [PREFIX] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
44 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
45 | --bindir=DIR user executables [EPREFIX/bin] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
46 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
47 | --libexecdir=DIR program executables [EPREFIX/libexec] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
48 | --sysconfdir=DIR system configuration files [PREFIX/etc] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
49 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
50 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
51 | --libdir=DIR object code libraries [EPREFIX/lib] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
52 | --includedir=DIR C header files [PREFIX/include] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
53 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
54 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
55 | --infodir=DIR info documentation [DATAROOTDIR/info] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
56 | --mandir=DIR man documentation [DATAROOTDIR/man] |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
57 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
58 | Options: |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
59 | --toolkit=(gtk3|cli|gtk2|wpf) |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
60 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
61 | Optional Features: |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
62 | --disable-db |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
63 | --enable-gui |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
64 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
65 | __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
66 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
67 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
68 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
69 | # parse arguments |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
70 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
71 | for ARG in "$@" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
72 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
73 | case "$ARG" in |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
74 | "--prefix="*) PREFIX=${ARG#--prefix=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
75 | "--exec-prefix="*) EPREFIX=${ARG#--exec-prefix=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
76 | "--bindir="*) BINDIR=${ARG#----bindir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
77 | "--sbindir="*) SBINDIR=${ARG#--sbindir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
78 | "--libdir="*) LIBDIR=${ARG#--libdir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
79 | "--libexecdir="*) LIBEXECDIR=${ARG#--libexecdir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
80 | "--datadir="*) DATADIR=${ARG#--datadir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
81 | "--sysconfdir="*) SYSCONFDIR=${ARG#--sysconfdir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
82 | "--sharedstatedir="*) SHAREDSTATEDIR=${ARG#--sharedstatedir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
83 | "--localstatedir="*) LOCALSTATEDIR=${ARG#--localstatedir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
84 | "--includedir="*) INCLUDEDIR=${ARG#--includedir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
85 | "--infodir="*) INFODIR=${ARG#--infodir=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
86 | "--mandir"*) MANDIR=${ARG#--mandir} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
87 | "--help"*) printhelp; rm -Rf "$TEMP_DIR"; exit 1 ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
88 | "--toolkit="*) OPT_TOOLKIT=${ARG#--toolkit=} ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
89 | "--enable-db") FEATURE_DB=on ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
90 | "--disable-db") unset FEATURE_DB ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
91 | "--enable-gui") FEATURE_GUI=on ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
92 | "--disable-gui") unset FEATURE_GUI ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
93 | "-"*) echo "unknown option: $ARG"; rm -Rf "$TEMP_DIR"; exit 1 ;; |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
94 | esac |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
95 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
96 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
97 | # set dir variables |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
98 | if [ -z "$BINDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
99 | BINDIR=$EPREFIX/bin |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
100 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
101 | if [ -z "$SBINDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
102 | SBINDIR=$EPREFIX/sbin |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
103 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
104 | if [ -z "$LIBDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
105 | LIBDIR=$EPREFIX/lib |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
106 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
107 | if [ -z "$LIBEXEC" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
108 | LIBEXECDIR=$EPREFIX/libexec |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
109 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
110 | if [ -z "$DATADIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
111 | DATADIR=$PREFIX/share |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
112 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
113 | if [ -z "$SYSCONFDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
114 | SYSCONFDIR=$PREFIX/etc |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
115 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
116 | if [ -z "$SHAREDSTATEDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
117 | SHAREDSTATEDIR=$PREFIX/com |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
118 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
119 | if [ -z "$LOCALSTATEDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
120 | LOCALSTATEDIR=$PREFIX/var |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
121 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
122 | if [ -z "$INCLUDEDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
123 | INCLUDEDIR=$PREFIX/include |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
124 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
125 | if [ -z "$INFODIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
126 | INFODIR=$PREFIX/info |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
127 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
128 | if [ -z "$MANDIR" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
129 | MANDIR=$PREFIX/man |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
130 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
131 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
132 | which pkg-config > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
133 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
134 | PKG_CONFIG=pkg-config |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
135 | else |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
136 | PKG_CONFIG=false |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
137 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
138 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
139 | # Simple uname based platform detection |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
140 | # $PLATFORM is used for platform dependent dependency selection |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
141 | printf "detect platform... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
142 | if [ "$OS" = "SunOS" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
143 | PLATFORM="solaris sunos unix svr4" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
144 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
145 | if [ "$OS" = "Linux" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
146 | PLATFORM="linux unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
147 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
148 | if [ "$OS" = "FreeBSD" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
149 | PLATFORM="freebsd bsd unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
150 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
151 | if [ "$OS" = "Darwin" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
152 | PLATFORM="macos osx bsd unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
153 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
154 | echo "$OS" | grep -i "MINGW" > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
155 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
156 | PLATFORM="windows mingw" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
157 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
158 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
159 | if [ -z "$PLATFORM" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
160 | PLATFORM="unix" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
161 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
162 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
163 | for p in $PLATFORM |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
164 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
165 | PLATFORM_NAME=$p |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
166 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
167 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
168 | echo $PLATFORM_NAME |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
169 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
170 | isplatform() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
171 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
172 | for p in $PLATFORM |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
173 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
174 | if [ "$p" = "$1" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
175 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
176 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
177 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
178 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
179 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
180 | isnotplatform() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
181 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
182 | for p in $PLATFORM |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
183 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
184 | if [ "$p" = "$1" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
185 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
186 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
187 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
188 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
189 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
190 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
191 | # generate config.mk and config.h |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
192 | cat > "$TEMP_DIR/config.mk" << __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
193 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
194 | # config.mk generated by configure |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
195 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
196 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
197 | # general vars |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
198 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
199 | PREFIX=$PREFIX |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
200 | EPREFIX=$EPREFIX |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
201 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
202 | BINDIR=$BINDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
203 | SBINDIR=$SBINDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
204 | LIBDIR=$LIBDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
205 | LIBEXECDIR=$LIBEXECDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
206 | DATADIR=$DATADIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
207 | SYSCONFDIR=$SYSCONFDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
208 | SHAREDSTATEDIR=$SHAREDSTATEDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
209 | LOCALSTATEDIR=$LOCALSTATEDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
210 | INCLUDEDIR=$INCLUDEDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
211 | INFODIR=$INFODIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
212 | MANDIR=$MANDIR |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
213 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
214 | __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
215 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
216 | echo > "$TEMP_DIR/make.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
217 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
218 | ENV_CFLAGS=$CFLAGS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
219 | ENV_LDFLAGS=$LDFLAGS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
220 | ENV_CXXFLAGS=$CXXFLAGS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
221 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
222 | # Toolchain detection |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
223 | # this will insert make vars to config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
224 | . make/toolchain.sh |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
225 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
226 | # add user specified flags to config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
227 | echo "# project specific flags" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
228 | if [ -n "${ENV_CFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
229 | echo "CFLAGS += $ENV_CFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
230 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
231 | if [ -n "${ENV_CXXFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
232 | echo "CXXFLAGS += $ENV_CXXFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
233 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
234 | if [ -n "${ENV_LDFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
235 | echo "LDFLAGS += $ENV_LDFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
236 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
237 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
238 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
239 | # DEPENDENCIES |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
240 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
241 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
242 | dependency_qt4() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
243 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
244 | printf "checking for qt4... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
245 | # dependency qt4 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
246 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
247 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
248 | which qmake-qt4 > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
249 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
250 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
251 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
252 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
253 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
254 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
255 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
256 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
257 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
258 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
259 | dependency_curl() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
260 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
261 | printf "checking for curl... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
262 | # dependency curl platform="windows" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
263 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
264 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
265 | if isnotplatform "windows"; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
266 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
267 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
268 | TEMP_CFLAGS="$TEMP_CFLAGS -I/mingw/include" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
269 | TEMP_LDFLAGS="$TEMP_LDFLAGS -lcurl" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
270 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
271 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
272 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
273 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
274 | # dependency curl platform="macos" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
275 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
276 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
277 | if isnotplatform "macos"; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
278 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
279 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
280 | curl-config --cflags > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
281 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
282 | TEMP_CFLAGS="$TEMP_CFLAGS `curl-config --cflags`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
283 | else |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
284 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
285 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
286 | curl-config --ldflags > /dev/null |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
287 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
288 | TEMP_LDFLAGS="$TEMP_LDFLAGS `curl-config --ldflags`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
289 | else |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
290 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
291 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
292 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
293 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
294 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
295 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
296 | # dependency curl |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
297 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
298 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
299 | if [ -z "$PKG_CONFIG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
300 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
301 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
302 | $PKG_CONFIG libcurl |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
303 | if [ $? -ne 0 ] ; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
304 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
305 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
306 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags libcurl`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
307 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs libcurl`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
308 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
309 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
310 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
311 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
312 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
313 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
314 | } |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
315 | dependency_gtk2() |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
316 | { |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
317 | printf "checking for gtk2... " |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
318 | # dependency gtk2 |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
319 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
320 | do |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
321 | if [ -z "$PKG_CONFIG" ]; then |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
322 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
323 | fi |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
324 | $PKG_CONFIG gtk+-2.0 |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
325 | if [ $? -ne 0 ] ; then |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
326 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
327 | fi |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
328 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags gtk+-2.0`" |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
329 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs gtk+-2.0`" |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
330 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
331 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
332 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
333 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
334 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
335 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
336 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
337 | dependency_sqlite() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
338 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
339 | printf "checking for sqlite... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
340 | # dependency sqlite |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
341 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
342 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
343 | if [ -z "$PKG_CONFIG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
344 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
345 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
346 | $PKG_CONFIG sqlite3 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
347 | if [ $? -ne 0 ] ; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
348 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
349 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
350 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags sqlite3`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
351 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs sqlite3`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
352 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
353 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
354 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
355 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
356 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
357 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
358 | } |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
359 | dependency_test() |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
360 | { |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
361 | printf "checking for test... " |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
362 | # dependency test platform="bsd" |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
363 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
364 | do |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
365 | if isnotplatform "bsd"; then |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
366 | break |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
367 | fi |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
368 | if isplatform "macos"; then |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
369 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
370 | fi |
40
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
371 | TEMP_CFLAGS="$TEMP_CFLAGS -DBSD" |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
372 | echo yes |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
373 | return 0 |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
374 | done |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
375 | |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
376 | # dependency test |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
377 | while true |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
378 | do |
b42bfc9e9983
first minor code improvements
Mike Becker <universe@uap-core.de>
parents:
39
diff
changeset
|
379 | TEMP_CFLAGS="$TEMP_CFLAGS -DTEST" |
39
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
380 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
381 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
382 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
383 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
384 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
385 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
386 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
387 | dependency_gtk3() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
388 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
389 | printf "checking for gtk3... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
390 | # dependency gtk3 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
391 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
392 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
393 | if [ -z "$PKG_CONFIG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
394 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
395 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
396 | $PKG_CONFIG gtk+-5.0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
397 | if [ $? -ne 0 ] ; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
398 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
399 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
400 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags gtk+-5.0`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
401 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs gtk+-5.0`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
402 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
403 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
404 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
405 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
406 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
407 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
408 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
409 | dependency_deptest() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
410 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
411 | printf "checking for deptest... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
412 | # dependency deptest |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
413 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
414 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
415 | TEMP_CFLAGS="$TEMP_CFLAGS -DDEPTEST" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
416 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
417 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
418 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
419 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
420 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
421 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
422 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
423 | dependency_libxml2() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
424 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
425 | printf "checking for libxml2... " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
426 | # dependency libxml2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
427 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
428 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
429 | if [ -z "$PKG_CONFIG" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
430 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
431 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
432 | $PKG_CONFIG libxml-2.0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
433 | if [ $? -ne 0 ] ; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
434 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
435 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
436 | TEMP_CFLAGS="$TEMP_CFLAGS `$PKG_CONFIG --cflags libxml-2.0`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
437 | TEMP_LDFLAGS="$TEMP_LDFLAGS `$PKG_CONFIG --libs libxml-2.0`" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
438 | cat >> $TEMP_DIR/make.mk << __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
439 | # Dependency: libxml2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
440 | xml = libxml2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
441 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
442 | __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
443 | echo yes |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
444 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
445 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
446 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
447 | echo no |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
448 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
449 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
450 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
451 | DEPENDENCIES_FAILED= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
452 | ERROR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
453 | # general dependencies |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
454 | TEMP_CFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
455 | TEMP_LDFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
456 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
457 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
458 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
459 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
460 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
461 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
462 | MVAR = 123 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
463 | MVAR += 123 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
464 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
465 | __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
466 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
467 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
468 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
469 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
470 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
471 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
472 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
473 | # add general dependency flags to config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
474 | echo >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
475 | if [ -n "${TEMP_CFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
476 | echo "CFLAGS += $TEMP_CFLAGS" >> $TEMP_DIR/config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
477 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
478 | if [ -n "${TEMP_CXXFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
479 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> $TEMP_DIR/config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
480 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
481 | if [ -n "${TEMP_LDFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
482 | echo "LDFLAGS += $TEMP_LDFLAGS" >> $TEMP_DIR/config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
483 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
484 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
485 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
486 | # OPTION VALUES |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
487 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
488 | checkopt_toolkit_gtk3() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
489 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
490 | VERR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
491 | dependency_gtk3 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
492 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
493 | VERR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
494 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
495 | if [ $VERR -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
496 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
497 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
498 | TEMP_CFLAGS="$TEMP_CFLAGS -Da=b" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
499 | cat >> "$TEMP_DIR/make.mk" << __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
500 | UIOBJ += graphics_cairo.o |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
501 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
502 | __EOF__ |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
503 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
504 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
505 | checkopt_toolkit_cli() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
506 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
507 | VERR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
508 | dependency_curl |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
509 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
510 | VERR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
511 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
512 | dependency_test |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
513 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
514 | VERR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
515 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
516 | if [ $VERR -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
517 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
518 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
519 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
520 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
521 | checkopt_toolkit_gtk2() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
522 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
523 | VERR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
524 | dependency_gtk2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
525 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
526 | VERR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
527 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
528 | if [ $VERR -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
529 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
530 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
531 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
532 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
533 | checkopt_toolkit_wpf() |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
534 | { |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
535 | VERR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
536 | dependency_test |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
537 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
538 | VERR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
539 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
540 | if [ $VERR -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
541 | return 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
542 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
543 | return 0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
544 | } |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
545 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
546 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
547 | # TARGETS |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
548 | # |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
549 | TEMP_CFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
550 | TEMP_CXXFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
551 | TEMP_LDFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
552 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
553 | # Target: dav |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
554 | TEMP_CFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
555 | TEMP_LDFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
556 | TEMP_CXXFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
557 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
558 | dependency_curl |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
559 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
560 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED curl " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
561 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
562 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
563 | dependency_libxml2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
564 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
565 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libxml2 " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
566 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
567 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
568 | dependency_test |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
569 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
570 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED test " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
571 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
572 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
573 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
574 | # Features |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
575 | if [ -n "$FEATURE_DB" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
576 | # check dependency |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
577 | dependency_sqlite |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
578 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
579 | # "auto" features can fail and are just disabled in this case |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
580 | if [ "$FEATURE_DB" != "auto" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
581 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED sqlite " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
582 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
583 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
584 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
585 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
586 | if [ -n "$FEATURE_GUI" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
587 | # check dependency |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
588 | dependency_gtk3 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
589 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
590 | # "auto" features can fail and are just disabled in this case |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
591 | if [ "$FEATURE_GUI" != "auto" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
592 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED gtk3 " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
593 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
594 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
595 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
596 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
597 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
598 | # Option: --toolkit |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
599 | if [ -z $OPT_TOOLKIT ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
600 | SAVED_ERROR="$ERROR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
601 | SAVED_DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
602 | ERROR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
603 | while true |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
604 | do |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
605 | if isplatform "windows"; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
606 | checkopt_toolkit_wpf |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
607 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
608 | echo " toolkit: wpf" >> "$TEMP_DIR/options" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
609 | ERROR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
610 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
611 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
612 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
613 | checkopt_toolkit_gtk3 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
614 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
615 | echo " toolkit: gtk3" >> "$TEMP_DIR/options" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
616 | ERROR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
617 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
618 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
619 | checkopt_toolkit_gtk2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
620 | if [ $? -eq 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
621 | echo " toolkit: gtk2" >> "$TEMP_DIR/options" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
622 | ERROR=0 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
623 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
624 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
625 | break |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
626 | done |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
627 | if [ $ERROR -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
628 | SAVED_ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
629 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
630 | ERROR="$SAVED_ERROR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
631 | DEPENDENCIES_FAILED="$SAVED_DEPENDENCIES_FAILED" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
632 | else |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
633 | if false; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
634 | false |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
635 | elif [ "$OPT_TOOLKIT" = "gtk3" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
636 | echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
637 | checkopt_toolkit_gtk3 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
638 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
639 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
640 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
641 | elif [ "$OPT_TOOLKIT" = "cli" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
642 | echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
643 | checkopt_toolkit_cli |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
644 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
645 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
646 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
647 | elif [ "$OPT_TOOLKIT" = "gtk2" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
648 | echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
649 | checkopt_toolkit_gtk2 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
650 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
651 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
652 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
653 | elif [ "$OPT_TOOLKIT" = "wpf" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
654 | echo " toolkit: $OPT_TOOLKIT" >> $TEMP_DIR/options |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
655 | checkopt_toolkit_wpf |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
656 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
657 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
658 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
659 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
660 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
661 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
662 | echo >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
663 | if [ -n "${TEMP_CFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
664 | echo "DAV_CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
665 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
666 | if [ -n "${TEMP_CXXFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
667 | echo "DAV_CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
668 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
669 | if [ -n "${TEMP_LDFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
670 | echo "DAV_LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
671 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
672 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
673 | # Target |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
674 | TEMP_CFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
675 | TEMP_LDFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
676 | TEMP_CXXFLAGS= |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
677 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
678 | dependency_deptest |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
679 | if [ $? -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
680 | DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED deptest " |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
681 | ERROR=1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
682 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
683 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
684 | # Features |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
685 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
686 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
687 | echo >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
688 | if [ -n "${TEMP_CFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
689 | echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
690 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
691 | if [ -n "${TEMP_CXXFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
692 | echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
693 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
694 | if [ -n "${TEMP_LDFLAGS}" ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
695 | echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/config.mk" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
696 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
697 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
698 | if [ $ERROR -ne 0 ]; then |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
699 | echo |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
700 | echo "Error: Unresolved dependencies" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
701 | echo "$DEPENDENCIES_FAILED" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
702 | rm -Rf "$TEMP_DIR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
703 | exit 1 |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
704 | fi |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
705 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
706 | echo "configure finished" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
707 | echo |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
708 | echo "Build Config:" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
709 | echo " PREFIX: $PREFIX" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
710 | echo " TOOLCHAIN: $TOOLCHAIN_NAME" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
711 | echo "Options:" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
712 | cat "$TEMP_DIR/options" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
713 | echo |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
714 | cat "$TEMP_DIR/config.mk" "$TEMP_DIR/make.mk" > config.mk |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
715 | rm -Rf "$TEMP_DIR" |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
716 | |
3ca85da78515
add RegressionTest - fixes #264
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
717 |