test/configure2

Sat, 27 Jan 2024 12:27:58 +0100

author
Mike Becker <universe@uap-core.de>
date
Sat, 27 Jan 2024 12:27:58 +0100
changeset 107
b7d6b31e381d
parent 105
4b3e655339cb
child 113
24f32dbd88cd
permissions
-rwxr-xr-x

project metadata cleanup

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

mercurial