configure

Sat, 20 Apr 2024 13:01:58 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 20 Apr 2024 13:01:58 +0200
changeset 815
1f40ca07ae1b
parent 809
8e6d8f0327cf
permissions
-rwxr-xr-x

add more xattr malloc checks

742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
1 #!/bin/sh
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
2
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
3 # create temporary directory
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
4 TEMP_DIR=".tmp-`uname -n`"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
5 rm -Rf "$TEMP_DIR"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
6 if mkdir -p "$TEMP_DIR"; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
7 :
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
8 else
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
9 echo "Cannot create tmp dir $TEMP_DIR"
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
10 echo "Abort"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
11 exit 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
12 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
13 touch "$TEMP_DIR/options"
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
14 touch "$TEMP_DIR/features"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
15
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
16 # define standard variables
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
17 # also define standard prefix (this is where we will search for config.site)
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
18 prefix=/usr
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
19 exec_prefix=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
20 bindir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
21 sbindir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
22 libdir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
23 libexecdir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
24 datarootdir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
25 datadir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
26 sysconfdir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
27 sharedstatedir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
28 localstatedir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
29 runstatedir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
30 includedir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
31 infodir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
32 localedir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
33 mandir=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
34
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
35 # custom variables
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
36
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
37 # features
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
38
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
39 # clean abort
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
40 abort_configure()
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
41 {
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
42 rm -Rf "$TEMP_DIR"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
43 exit 1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
44 }
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
45
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
46 # help text
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
47 printhelp()
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
48 {
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
49 echo "Usage: $0 [OPTIONS]..."
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
50 cat << __EOF__
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
51 Installation directories:
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
52 --prefix=PREFIX path prefix for architecture-independent files
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
53 [/usr]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
54 --exec-prefix=EPREFIX path prefix for architecture-dependent files
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
55 [PREFIX]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
56
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
57 --bindir=DIR user executables [EPREFIX/bin]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
58 --sbindir=DIR system admin executables [EPREFIX/sbin]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
59 --libexecdir=DIR program executables [EPREFIX/libexec]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
60 --sysconfdir=DIR system configuration files [PREFIX/etc]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
61 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
62 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
63 --runstatedir=DIR run-time variable data [LOCALSTATEDIR/run]
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
64 --libdir=DIR object code libraries [EPREFIX/lib]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
65 --includedir=DIR C header files [PREFIX/include]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
66 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
67 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
68 --infodir=DIR info documentation [DATAROOTDIR/info]
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
69 --mandir=DIR man documentation [DATAROOTDIR/man]
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
70 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
71
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
72 __EOF__
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
73 }
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
74
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
75 #
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
76 # parse arguments
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
77 #
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
78 BUILD_TYPE="default"
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
79 for ARG in "$@"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
80 do
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
81 case "$ARG" in
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
82 "--prefix="*) prefix=${ARG#--prefix=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
83 "--exec-prefix="*) exec_prefix=${ARG#--exec-prefix=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
84 "--bindir="*) bindir=${ARG#----bindir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
85 "--sbindir="*) sbindir=${ARG#--sbindir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
86 "--libdir="*) libdir=${ARG#--libdir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
87 "--libexecdir="*) libexecdir=${ARG#--libexecdir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
88 "--datarootdir="*) datarootdir=${ARG#--datarootdir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
89 "--datadir="*) datadir=${ARG#--datadir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
90 "--sysconfdir="*) sysconfdir=${ARG#--sysconfdir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
91 "--sharedstatedir="*) sharedstatedir=${ARG#--sharedstatedir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
92 "--localstatedir="*) localstatedir=${ARG#--localstatedir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
93 "--includedir="*) includedir=${ARG#--includedir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
94 "--infodir="*) infodir=${ARG#--infodir=} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
95 "--mandir"*) mandir=${ARG#--mandir} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
96 "--localedir"*) localedir=${ARG#--localedir} ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
97 "--help"*) printhelp; abort_configure ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
98 "--debug") BUILD_TYPE="debug" ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
99 "--release") BUILD_TYPE="release" ;;
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
100 "-"*) echo "unknown option: $ARG"; abort_configure ;;
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
101 esac
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
102 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
103
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
104
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
105
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
106 # set defaults for dir variables
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
107 : ${exec_prefix:="$prefix"}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
108 : ${bindir:='${exec_prefix}/bin'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
109 : ${sbindir:='${exec_prefix}/sbin'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
110 : ${libdir:='${exec_prefix}/lib'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
111 : ${libexecdir:='${exec_prefix}/libexec'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
112 : ${datarootdir:='${prefix}/share'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
113 : ${datadir:='${datarootdir}'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
114 : ${sysconfdir:='${prefix}/etc'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
115 : ${sharedstatedir:='${prefix}/com'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
116 : ${localstatedir:='${prefix}/var'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
117 : ${runstatedir:='${localstatedir}/run'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
118 : ${includedir:='${prefix}/include'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
119 : ${infodir:='${datarootdir}/info'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
120 : ${mandir:='${datarootdir}/man'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
121 : ${localedir:='${datarootdir}/locale'}
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
122
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
123 # check if a config.site exists and load it
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
124 if [ -n "$CONFIG_SITE" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
125 # CONFIG_SITE may contain space separated file names
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
126 for cs in $CONFIG_SITE; do
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
127 printf "loading defaults from $cs... "
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
128 . "$cs"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
129 echo ok
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
130 done
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
131 elif [ -f "$prefix/share/config.site" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
132 printf "loading site defaults... "
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
133 . "$prefix/share/config.site"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
134 echo ok
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
135 elif [ -f "$prefix/etc/config.site" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
136 printf "loading site defaults... "
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
137 . "$prefix/etc/config.site"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
138 echo ok
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
139 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
140
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
141 # Test for availability of pkg-config
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
142 PKG_CONFIG=`command -v pkg-config`
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
143 : ${PKG_CONFIG:="false"}
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
144
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
145 # Simple uname based platform detection
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
146 # $PLATFORM is used for platform dependent dependency selection
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
147 OS=`uname -s`
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
148 OS_VERSION=`uname -r`
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
149 printf "detect platform... "
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
150 if [ "$OS" = "SunOS" ]; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
151 PLATFORM="solaris sunos unix svr4"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
152 elif [ "$OS" = "Linux" ]; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
153 PLATFORM="linux unix"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
154 elif [ "$OS" = "FreeBSD" ]; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
155 PLATFORM="freebsd bsd unix"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
156 elif [ "$OS" = "OpenBSD" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
157 PLATFORM="openbsd bsd unix"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
158 elif [ "$OS" = "NetBSD" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
159 PLATFORM="netbsd bsd unix"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
160 elif [ "$OS" = "Darwin" ]; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
161 PLATFORM="macos osx bsd unix"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
162 elif echo "$OS" | grep -i "MINGW" > /dev/null; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
163 PLATFORM="windows mingw"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
164 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
165 : ${PLATFORM:="unix"}
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
166
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
167 PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -`
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
168 echo "$PLATFORM_NAME"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
169
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
170 isplatform()
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
171 {
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
172 for p in $PLATFORM
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
173 do
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
174 if [ "$p" = "$1" ]; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
175 return 0
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
176 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
177 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
178 return 1
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
179 }
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
180 notisplatform()
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
181 {
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
182 for p in $PLATFORM
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
183 do
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
184 if [ "$p" = "$1" ]; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
185 return 1
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
186 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
187 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
188 return 0
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
189 }
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
190 istoolchain()
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
191 {
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
192 for t in $TOOLCHAIN
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
193 do
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
194 if [ "$t" = "$1" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
195 return 0
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
196 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
197 done
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
198 return 1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
199 }
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
200 notistoolchain()
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
201 {
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
202 for t in $TOOLCHAIN
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
203 do
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
204 if [ "$t" = "$1" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
205 return 1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
206 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
207 done
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
208 return 0
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
209 }
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
210
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
211
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
212 # generate vars.mk
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
213 cat > "$TEMP_DIR/vars.mk" << __EOF__
809
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
214 prefix=$prefix
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
215 exec_prefix=$exec_prefix
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
216 bindir=$bindir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
217 sbindir=$sbindir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
218 libdir=$libdir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
219 libexecdir=$libexecdir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
220 datarootdir=$datarootdir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
221 datadir=$datadir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
222 sysconfdir=$sysconfdir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
223 sharedstatedir=$sharedstatedir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
224 localstatedir=$localstatedir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
225 runstatedir=$runstatedir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
226 includedir=$includedir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
227 infodir=$infodir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
228 mandir=$mandir
8e6d8f0327cf update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 802
diff changeset
229 localedir=$localedir
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
230 __EOF__
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
231
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
232 # toolchain detection utilities
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
233 . make/toolchain.sh
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
234
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
235 #
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
236 # DEPENDENCIES
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
237 #
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
238
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
239 # check languages
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
240 lang_c=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
241 lang_cpp=
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
242 if detect_c_compiler ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
243 lang_c=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
244 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
245
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
246 # create buffer for make variables required by dependencies
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
247 echo > "$TEMP_DIR/make.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
248
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
249 test_pkg_config()
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
250 {
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
251 if "$PKG_CONFIG" --exists "$1" ; then :
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
252 else return 1 ; fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
253 if [ -z "$2" ] || "$PKG_CONFIG" --atleast-version="$2" "$1" ; then :
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
254 else return 1 ; fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
255 if [ -z "$3" ] || "$PKG_CONFIG" --exact-version="$3" "$1" ; then :
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
256 else return 1 ; fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
257 if [ -z "$4" ] || "$PKG_CONFIG" --max-version="$4" "$1" ; then :
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
258 else return 1 ; fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
259 return 0
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
260 }
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
261
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
262 print_check_msg()
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
263 {
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
264 if [ -z "$1" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
265 shift
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
266 printf "$@"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
267 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
268 }
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
269
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
270 dependency_error_curl()
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
271 {
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
272 print_check_msg "$dep_checked_curl" "checking for curl... "
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
273 # dependency curl platform="windows"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
274 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
275 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
276 if notisplatform "windows"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
277 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
278 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
279 TEMP_CFLAGS="$TEMP_CFLAGS -I/mingw/include"
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
280 TEMP_LDFLAGS="$TEMP_LDFLAGS -lcurl"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
281 print_check_msg "$dep_checked_curl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
282 dep_checked_curl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
283 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
284 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
285
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
286 # dependency curl platform="macos"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
287 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
288 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
289 if notisplatform "macos"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
290 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
291 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
292 if tmp_flags=`curl-config --cflags` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
293 TEMP_CFLAGS="$TEMP_CFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
294 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
295 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
296 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
297 if tmp_flags=`curl-config --ldflags` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
298 TEMP_LDFLAGS="$TEMP_LDFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
299 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
300 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
301 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
302 print_check_msg "$dep_checked_curl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
303 dep_checked_curl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
304 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
305 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
306
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
307 # dependency curl
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
308 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
309 do
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
310 if [ -z "$PKG_CONFIG" ]; then
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
311 break
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
312 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
313 if test_pkg_config "libcurl" "" "" "" ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
314 TEMP_CFLAGS="$TEMP_CFLAGS `"$PKG_CONFIG" --cflags libcurl`"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
315 TEMP_LDFLAGS="$TEMP_LDFLAGS `"$PKG_CONFIG" --libs libcurl`"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
316 else
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
317 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
318 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
319 print_check_msg "$dep_checked_curl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
320 dep_checked_curl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
321 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
322 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
323
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
324 # dependency curl
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
325 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
326 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
327 if tmp_flags=`curl-config --cflags` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
328 TEMP_CFLAGS="$TEMP_CFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
329 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
330 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
331 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
332 if tmp_flags=`curl-config --libs` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
333 TEMP_LDFLAGS="$TEMP_LDFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
334 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
335 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
336 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
337 print_check_msg "$dep_checked_curl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
338 dep_checked_curl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
339 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
340 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
341
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
342 print_check_msg "$dep_checked_curl" "no\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
343 dep_checked_curl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
344 return 0
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
345 }
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
346 dependency_error_openssl()
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
347 {
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
348 print_check_msg "$dep_checked_openssl" "checking for openssl... "
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
349 # dependency openssl platform="windows"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
350 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
351 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
352 if notisplatform "windows"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
353 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
354 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
355 TEMP_LDFLAGS="$TEMP_LDFLAGS -lssl -lcrypto"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
356 print_check_msg "$dep_checked_openssl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
357 dep_checked_openssl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
358 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
359 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
360
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
361 # dependency openssl platform="macos"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
362 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
363 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
364 if notisplatform "macos"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
365 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
366 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
367 TEMP_LDFLAGS="$TEMP_LDFLAGS -framework CoreFoundation"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
368 print_check_msg "$dep_checked_openssl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
369 dep_checked_openssl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
370 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
371 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
372
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
373 # dependency openssl platform="bsd"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
374 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
375 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
376 if notisplatform "bsd"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
377 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
378 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
379 if isplatform "macos" || istoolchain "macos"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
380 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
381 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
382 TEMP_LDFLAGS="$TEMP_LDFLAGS -lssl -lcrypto"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
383 print_check_msg "$dep_checked_openssl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
384 dep_checked_openssl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
385 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
386 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
387
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
388 # dependency openssl
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
389 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
390 do
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
391 if [ -z "$PKG_CONFIG" ]; then
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
392 break
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
393 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
394 if test_pkg_config "openssl" "" "" "" ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
395 TEMP_CFLAGS="$TEMP_CFLAGS `"$PKG_CONFIG" --cflags openssl`"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
396 TEMP_LDFLAGS="$TEMP_LDFLAGS `"$PKG_CONFIG" --libs openssl`"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
397 else
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
398 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
399 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
400 print_check_msg "$dep_checked_openssl" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
401 dep_checked_openssl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
402 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
403 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
404
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
405 print_check_msg "$dep_checked_openssl" "no\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
406 dep_checked_openssl=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
407 return 0
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
408 }
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
409 dependency_error_libxml2()
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
410 {
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
411 print_check_msg "$dep_checked_libxml2" "checking for libxml2... "
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
412 # dependency libxml2 platform="windows"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
413 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
414 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
415 if notisplatform "windows"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
416 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
417 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
418 if tmp_flags=`xml2-config --cflags` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
419 TEMP_CFLAGS="$TEMP_CFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
420 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
421 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
422 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
423 if tmp_flags=`xml2-config --libs` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
424 TEMP_LDFLAGS="$TEMP_LDFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
425 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
426 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
427 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
428 print_check_msg "$dep_checked_libxml2" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
429 dep_checked_libxml2=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
430 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
431 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
432
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
433 # dependency libxml2 platform="macos"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
434 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
435 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
436 if notisplatform "macos"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
437 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
438 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
439 if tmp_flags=`xml2-config --cflags` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
440 TEMP_CFLAGS="$TEMP_CFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
441 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
442 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
443 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
444 if tmp_flags=`xml2-config --libs` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
445 TEMP_LDFLAGS="$TEMP_LDFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
446 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
447 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
448 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
449 print_check_msg "$dep_checked_libxml2" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
450 dep_checked_libxml2=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
451 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
452 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
453
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
454 # dependency libxml2
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
455 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
456 do
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
457 if [ -z "$PKG_CONFIG" ]; then
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
458 break
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
459 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
460 if test_pkg_config "libxml-2.0" "" "" "" ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
461 TEMP_CFLAGS="$TEMP_CFLAGS `"$PKG_CONFIG" --cflags libxml-2.0`"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
462 TEMP_LDFLAGS="$TEMP_LDFLAGS `"$PKG_CONFIG" --libs libxml-2.0`"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
463 else
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
464 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
465 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
466 print_check_msg "$dep_checked_libxml2" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
467 dep_checked_libxml2=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
468 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
469 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
470
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
471 # dependency libxml2
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
472 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
473 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
474 if tmp_flags=`xml2-config --cflags` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
475 TEMP_CFLAGS="$TEMP_CFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
476 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
477 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
478 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
479 if tmp_flags=`xml2-config --libs` ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
480 TEMP_LDFLAGS="$TEMP_LDFLAGS $tmp_flags"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
481 else
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
482 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
483 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
484 print_check_msg "$dep_checked_libxml2" "yes\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
485 dep_checked_libxml2=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
486 return 1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
487 done
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
488
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
489 print_check_msg "$dep_checked_libxml2" "no\n"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
490 dep_checked_libxml2=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
491 return 0
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
492 }
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
493
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
494 # start collecting dependency information
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
495 echo > "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
496
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
497 DEPENDENCIES_FAILED=
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
498 ERROR=0
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
499 # unnamed dependencies
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
500 TEMP_CFLAGS=
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
501 TEMP_CXXFLAGS=
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
502 TEMP_LDFLAGS=
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
503 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
504 do
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
505 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
506 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
507 if [ -z "$lang_c" ] ; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
508 ERROR=1
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
509 break
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
510 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
511
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
512 TEMP_LDFLAGS="$TEMP_LDFLAGS -lm -lpthread"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
513 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
514 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
515 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
516 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
517 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
518 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
519 if notisplatform "bsd"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
520 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
521 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
522 if isplatform "macos" || istoolchain "macos"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
523 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
524 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
525 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
526 do
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
527
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
528 TEMP_CFLAGS="$TEMP_CFLAGS -I/usr/local/include"
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
529 TEMP_LDFLAGS="$TEMP_LDFLAGS -L/usr/local/lib"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
530 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
531 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
532 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
533 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
534 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
535 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
536 if notisplatform "macos"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
537 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
538 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
539 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
540 do
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
541
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
542 cat >> "$TEMP_DIR/make.mk" << __EOF__
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
543 OBJ_EXT = .o
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
544 LIB_EXT = .a
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
545 __EOF__
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
546 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
547 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
548 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
549 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
550 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
551 do
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
552 if notisplatform "unix"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
553 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
554 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
555 if isplatform "macos" || istoolchain "macos"; then
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
556 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
557 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
558 while true
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
559 do
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
560
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
561 cat >> "$TEMP_DIR/make.mk" << __EOF__
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
562 OBJ_EXT = .o
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
563 LIB_EXT = .a
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
564 __EOF__
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
565 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
566 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
567 break
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
568 done
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
569
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
570 # add general dependency flags to flags.mk
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
571 echo "# general flags" >> "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
572 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
573 echo "CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
574 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
575 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
576 echo "CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
577 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
578 if [ -n "${TEMP_LDFLAGS}" ]; then
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
579 echo "LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
580 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
581
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
582 #
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
583 # OPTION VALUES
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
584 #
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
585
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
586 #
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
587 # TARGETS
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
588 #
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
589
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
590 echo >> "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
591 echo "configuring target: dav"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
592 echo "# flags for target dav" >> "$TEMP_DIR/flags.mk"
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
593 TEMP_CFLAGS=
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
594 TEMP_CXXFLAGS=
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
595 TEMP_LDFLAGS=
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
596
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
597 if dependency_error_curl; then
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
598 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED curl "
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
599 ERROR=1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
600 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
601 if dependency_error_libxml2; then
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
602 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED libxml2 "
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
603 ERROR=1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
604 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
605 if dependency_error_openssl; then
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
606 DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED openssl "
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
607 ERROR=1
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
608 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
609
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
610 # Features
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
611
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
612
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
613 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
614 echo "DAV_CFLAGS += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
615 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
616 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
617 echo "DAV_CXXFLAGS += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
618 fi
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
619 if [ "$BUILD_TYPE" = "debug" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
620 if [ -n "$lang_c" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
621 echo 'DAV_CFLAGS += ${DEBUG_CC_FLAGS}' >> "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
622 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
623 if [ -n "$lang_cpp" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
624 echo 'DAV_CXXFLAGS += ${DEBUG_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
625 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
626 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
627 if [ "$BUILD_TYPE" = "release" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
628 if [ -n "$lang_c" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
629 echo 'DAV_CFLAGS += ${RELEASE_CC_FLAGS}' >> "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
630 fi
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
631 if [ -n "$lang_cpp" ]; then
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
632 echo 'DAV_CXXFLAGS += ${RELEASE_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
633 fi
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
634 fi
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
635 if [ -n "${TEMP_LDFLAGS}" ]; then
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
636 echo "DAV_LDFLAGS += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
637 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
638
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
639
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
640 # final result
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
641 if [ $ERROR -ne 0 ]; then
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
642 echo
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
643 echo "Error: Unresolved dependencies"
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
644 echo "$DEPENDENCIES_FAILED"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
645 abort_configure
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
646 fi
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
647
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
648 echo "configure finished"
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
649 echo
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
650 echo "Build Config:"
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
651 echo " PREFIX: $prefix"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
652 echo " TOOLCHAIN: $TOOLCHAIN_NAME"
742
7e67689241fd new build system
Olaf Wintermann <olaf.wintermann@gmail.com>
parents:
diff changeset
653 echo
802
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
654
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
655 # generate the config.mk file
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
656 cat > "$TEMP_DIR/config.mk" << __EOF__
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
657 #
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
658 # config.mk generated by configure
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
659 #
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
660
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
661 __EOF__
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
662 write_toolchain_defaults "$TEMP_DIR/toolchain.mk"
16e5b9d32754 update build files to latest uwproj
Mike Becker <universe@uap-core.de>
parents: 787
diff changeset
663 cat "$TEMP_DIR/vars.mk" "$TEMP_DIR/toolchain.mk" "$TEMP_DIR/flags.mk" "$TEMP_DIR/make.mk" > config.mk
787
bd96cbb0e205 update uwproj
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 758
diff changeset
664 rm -Rf "$TEMP_DIR"

mercurial