| 1 #!/bin/sh |
1 #!/bin/sh |
| 2 |
2 |
| 3 # create temporary directory |
3 #set( $D = '$' ) |
| 4 TEMP_DIR=".tmp-`uname -n`" |
4 #[[ |
| 5 rm -Rf "$TEMP_DIR" |
5 # some utility functions |
| 6 if mkdir -p "$TEMP_DIR"; then |
6 isplatform() |
| 7 : |
7 { |
| 8 else |
8 for p in $PLATFORM |
| 9 echo "Cannot create tmp dir $TEMP_DIR" |
9 do |
| 10 echo "Abort" |
10 if [ "$p" = "$1" ]; then |
| 11 exit 1 |
11 return 0 |
| 12 fi |
12 fi |
| 13 touch "$TEMP_DIR/options" |
13 done |
| 14 touch "$TEMP_DIR/features" |
14 return 1 |
| 15 |
15 } |
| 16 # define standard variables |
16 notisplatform() |
| 17 # also define standard prefix (this is where we will search for config.site) |
17 { |
| 18 prefix=/usr |
18 for p in $PLATFORM |
| 19 exec_prefix= |
19 do |
| 20 bindir= |
20 if [ "$p" = "$1" ]; then |
| 21 sbindir= |
21 return 1 |
| 22 libdir= |
22 fi |
| 23 libexecdir= |
23 done |
| 24 datarootdir= |
24 return 0 |
| 25 datadir= |
25 } |
| 26 sysconfdir= |
26 istoolchain() |
| 27 sharedstatedir= |
27 { |
| 28 localstatedir= |
28 for t in $TOOLCHAIN |
| 29 runstatedir= |
29 do |
| 30 includedir= |
30 if [ "$t" = "$1" ]; then |
| 31 infodir= |
31 return 0 |
| 32 localedir= |
32 fi |
| 33 mandir= |
33 done |
| 34 |
34 return 1 |
| 35 # custom variables |
35 } |
| 36 #foreach( $var in $vars ) |
36 notistoolchain() |
| 37 #if( $var.exec ) |
37 { |
| 38 ${var.varName}=`${var.value}` |
38 for t in $TOOLCHAIN |
| 39 #else |
39 do |
| 40 ${var.varName}="${var.value}" |
40 if [ "$t" = "$1" ]; then |
| 41 #end |
41 return 1 |
| 42 #end |
42 fi |
| 43 |
43 done |
| 44 # features |
44 return 0 |
| 45 #foreach( $feature in $features ) |
45 } |
| 46 #if( ${feature.auto} ) |
|
| 47 ${feature.varName}=auto |
|
| 48 #end |
|
| 49 #end |
|
| 50 |
46 |
| 51 # clean abort |
47 # clean abort |
| 52 abort_configure() |
48 abort_configure() |
| 53 { |
49 { |
| 54 rm -Rf "$TEMP_DIR" |
50 rm -Rf "$TEMP_DIR" |
| 55 exit 1 |
51 exit 1 |
| 56 } |
52 } |
| 57 |
|
| 58 # help text |
|
| 59 printhelp() |
|
| 60 { |
|
| 61 echo "Usage: $0 [OPTIONS]..." |
|
| 62 cat << __EOF__ |
|
| 63 Installation directories: |
|
| 64 --prefix=PREFIX path prefix for architecture-independent files |
|
| 65 [/usr] |
|
| 66 --exec-prefix=EPREFIX path prefix for architecture-dependent files |
|
| 67 [PREFIX] |
|
| 68 |
|
| 69 --bindir=DIR user executables [EPREFIX/bin] |
|
| 70 --sbindir=DIR system admin executables [EPREFIX/sbin] |
|
| 71 --libexecdir=DIR program executables [EPREFIX/libexec] |
|
| 72 --sysconfdir=DIR system configuration files [PREFIX/etc] |
|
| 73 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
| 74 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
| 75 --runstatedir=DIR run-time variable data [LOCALSTATEDIR/run] |
|
| 76 --libdir=DIR object code libraries [EPREFIX/lib] |
|
| 77 --includedir=DIR C header files [PREFIX/include] |
|
| 78 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
| 79 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
| 80 --infodir=DIR info documentation [DATAROOTDIR/info] |
|
| 81 --mandir=DIR man documentation [DATAROOTDIR/man] |
|
| 82 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
| 83 |
|
| 84 #if( $options.size() > 0 ) |
|
| 85 Options: |
|
| 86 --debug add extra compile flags for debug builds |
|
| 87 --release add extra compile flags for release builds |
|
| 88 #foreach( $opt in $options ) |
|
| 89 --${opt.argument}=${opt.valuesString} |
|
| 90 #end |
|
| 91 |
|
| 92 #end |
|
| 93 #if( $features.size() > 0 ) |
|
| 94 Optional Features: |
|
| 95 #foreach( $feature in $features ) |
|
| 96 ${feature.helpText} |
|
| 97 #end |
|
| 98 |
|
| 99 #end |
|
| 100 __EOF__ |
|
| 101 } |
|
| 102 |
|
| 103 # |
|
| 104 # parse arguments |
|
| 105 # |
|
| 106 BUILD_TYPE="default" |
|
| 107 #set( $D = '$' ) |
|
| 108 for ARG in "$@" |
|
| 109 do |
|
| 110 case "$ARG" in |
|
| 111 "--prefix="*) prefix=${D}{ARG#--prefix=} ;; |
|
| 112 "--exec-prefix="*) exec_prefix=${D}{ARG#--exec-prefix=} ;; |
|
| 113 "--bindir="*) bindir=${D}{ARG#----bindir=} ;; |
|
| 114 "--sbindir="*) sbindir=${D}{ARG#--sbindir=} ;; |
|
| 115 "--libdir="*) libdir=${D}{ARG#--libdir=} ;; |
|
| 116 "--libexecdir="*) libexecdir=${D}{ARG#--libexecdir=} ;; |
|
| 117 "--datarootdir="*) datarootdir=${D}{ARG#--datarootdir=} ;; |
|
| 118 "--datadir="*) datadir=${D}{ARG#--datadir=} ;; |
|
| 119 "--sysconfdir="*) sysconfdir=${D}{ARG#--sysconfdir=} ;; |
|
| 120 "--sharedstatedir="*) sharedstatedir=${D}{ARG#--sharedstatedir=} ;; |
|
| 121 "--localstatedir="*) localstatedir=${D}{ARG#--localstatedir=} ;; |
|
| 122 "--includedir="*) includedir=${D}{ARG#--includedir=} ;; |
|
| 123 "--infodir="*) infodir=${D}{ARG#--infodir=} ;; |
|
| 124 "--mandir"*) mandir=${D}{ARG#--mandir} ;; |
|
| 125 "--localedir"*) localedir=${D}{ARG#--localedir} ;; |
|
| 126 "--help"*) printhelp; abort_configure ;; |
|
| 127 "--debug") BUILD_TYPE="debug" ;; |
|
| 128 "--release") BUILD_TYPE="release" ;; |
|
| 129 #foreach( $opt in $options ) |
|
| 130 "--${opt.argument}="*) ${opt.varName}=${D}{ARG#--${opt.argument}=} ;; |
|
| 131 #end |
|
| 132 #foreach( $feature in $features ) |
|
| 133 "--enable-${feature.arg}") ${feature.varName}=on ;; |
|
| 134 "--disable-${feature.arg}") unset ${feature.varName} ;; |
|
| 135 #end |
|
| 136 "-"*) echo "unknown option: $ARG"; abort_configure ;; |
|
| 137 esac |
|
| 138 done |
|
| 139 |
|
| 140 ## Begin unparsed content. ** |
|
| 141 #[[ |
|
| 142 |
|
| 143 # set defaults for dir variables |
|
| 144 : ${exec_prefix:="$prefix"} |
|
| 145 : ${bindir:='${exec_prefix}/bin'} |
|
| 146 : ${sbindir:='${exec_prefix}/sbin'} |
|
| 147 : ${libdir:='${exec_prefix}/lib'} |
|
| 148 : ${libexecdir:='${exec_prefix}/libexec'} |
|
| 149 : ${datarootdir:='${prefix}/share'} |
|
| 150 : ${datadir:='${datarootdir}'} |
|
| 151 : ${sysconfdir:='${prefix}/etc'} |
|
| 152 : ${sharedstatedir:='${prefix}/com'} |
|
| 153 : ${localstatedir:='${prefix}/var'} |
|
| 154 : ${runstatedir:='${localstatedir}/run'} |
|
| 155 : ${includedir:='${prefix}/include'} |
|
| 156 : ${infodir:='${datarootdir}/info'} |
|
| 157 : ${mandir:='${datarootdir}/man'} |
|
| 158 : ${localedir:='${datarootdir}/locale'} |
|
| 159 |
|
| 160 # check if a config.site exists and load it |
|
| 161 if [ -n "$CONFIG_SITE" ]; then |
|
| 162 # CONFIG_SITE may contain space separated file names |
|
| 163 for cs in $CONFIG_SITE; do |
|
| 164 printf "loading defaults from $cs... " |
|
| 165 . "$cs" |
|
| 166 echo ok |
|
| 167 done |
|
| 168 elif [ -f "$prefix/share/config.site" ]; then |
|
| 169 printf "loading site defaults... " |
|
| 170 . "$prefix/share/config.site" |
|
| 171 echo ok |
|
| 172 elif [ -f "$prefix/etc/config.site" ]; then |
|
| 173 printf "loading site defaults... " |
|
| 174 . "$prefix/etc/config.site" |
|
| 175 echo ok |
|
| 176 fi |
|
| 177 |
53 |
| 178 # Test for availability of pkg-config |
54 # Test for availability of pkg-config |
| 179 PKG_CONFIG=`command -v pkg-config` |
55 PKG_CONFIG=`command -v pkg-config` |
| 180 : ${PKG_CONFIG:="false"} |
56 : ${PKG_CONFIG:="false"} |
| 181 |
57 |
| 201 fi |
77 fi |
| 202 : ${PLATFORM:="unix"} |
78 : ${PLATFORM:="unix"} |
| 203 |
79 |
| 204 PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -` |
80 PLATFORM_NAME=`echo "$PLATFORM" | cut -f1 -d' ' -` |
| 205 echo "$PLATFORM_NAME" |
81 echo "$PLATFORM_NAME" |
| 206 |
82 ]]# |
| 207 isplatform() |
83 |
| 208 { |
84 # help text |
| 209 for p in $PLATFORM |
85 printhelp() |
| 210 do |
86 { |
| 211 if [ "$p" = "$1" ]; then |
87 echo "Usage: $0 [OPTIONS]..." |
| 212 return 0 |
88 cat << __EOF__ |
| 213 fi |
89 Installation directories: |
| |
90 --prefix=PREFIX path prefix for architecture-independent files |
| |
91 [${D}prefix] |
| |
92 --exec-prefix=EPREFIX path prefix for architecture-dependent files |
| |
93 [PREFIX] |
| |
94 |
| |
95 --bindir=DIR user executables [EPREFIX/bin] |
| |
96 --sbindir=DIR system admin executables [EPREFIX/sbin] |
| |
97 --libexecdir=DIR program executables [EPREFIX/libexec] |
| |
98 --sysconfdir=DIR system configuration files [PREFIX/etc] |
| |
99 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| |
100 --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| |
101 --runstatedir=DIR run-time variable data [LOCALSTATEDIR/run] |
| |
102 --libdir=DIR object code libraries [EPREFIX/lib] |
| |
103 --includedir=DIR C header files [PREFIX/include] |
| |
104 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| |
105 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| |
106 --infodir=DIR info documentation [DATAROOTDIR/info] |
| |
107 --mandir=DIR man documentation [DATAROOTDIR/man] |
| |
108 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| |
109 |
| |
110 Build Types: |
| |
111 --debug add extra compile flags for debug builds |
| |
112 --release add extra compile flags for release builds |
| |
113 #if( $options.size() > 0 ) |
| |
114 |
| |
115 Options: |
| |
116 #foreach( $opt in $options ) |
| |
117 --${opt.argument}=${opt.valuesString} |
| |
118 #end |
| |
119 #end |
| |
120 #if( $features.size() > 0 ) |
| |
121 |
| |
122 Optional Features: |
| |
123 #foreach( $feature in $features ) |
| |
124 ${feature.helpText} |
| |
125 #end |
| |
126 #end |
| |
127 |
| |
128 __EOF__ |
| |
129 } |
| |
130 |
| |
131 # create temporary directory |
| |
132 TEMP_DIR=".tmp-`uname -n`" |
| |
133 rm -Rf "$TEMP_DIR" |
| |
134 if mkdir -p "$TEMP_DIR"; then |
| |
135 : |
| |
136 else |
| |
137 echo "Cannot create tmp dir $TEMP_DIR" |
| |
138 echo "Abort" |
| |
139 exit 1 |
| |
140 fi |
| |
141 touch "$TEMP_DIR/options" |
| |
142 touch "$TEMP_DIR/features" |
| |
143 |
| |
144 # define standard variables |
| |
145 # also define standard prefix (this is where we will search for config.site) |
| |
146 prefix=/usr |
| |
147 exec_prefix= |
| |
148 bindir= |
| |
149 sbindir= |
| |
150 libdir= |
| |
151 libexecdir= |
| |
152 datarootdir= |
| |
153 datadir= |
| |
154 sysconfdir= |
| |
155 sharedstatedir= |
| |
156 localstatedir= |
| |
157 runstatedir= |
| |
158 includedir= |
| |
159 infodir= |
| |
160 localedir= |
| |
161 mandir= |
| |
162 |
| |
163 # custom variables |
| |
164 #foreach( $cfg in $config ) |
| |
165 if true \ |
| |
166 #if( $cfg.platform ) |
| |
167 && isplatform "${cfg.platform}" \ |
| |
168 #end |
| |
169 #foreach( $np in $cfg.notList ) |
| |
170 && notisplatform "${np}" \ |
| |
171 #end |
| |
172 ; then |
| |
173 #foreach( $var in $cfg.vars ) |
| |
174 #if( $var.exec ) |
| |
175 ${var.varName}=`${var.value}` |
| |
176 #else |
| |
177 ${var.varName}="${var.value}" |
| |
178 #end |
| |
179 #end |
| |
180 fi |
| |
181 #end |
| |
182 |
| |
183 # features |
| |
184 #foreach( $feature in $features ) |
| |
185 #if( ${feature.auto} ) |
| |
186 ${feature.varName}=auto |
| |
187 #end |
| |
188 #end |
| |
189 |
| |
190 # |
| |
191 # parse arguments |
| |
192 # |
| |
193 BUILD_TYPE="default" |
| |
194 for ARG in "$@" |
| |
195 do |
| |
196 case "$ARG" in |
| |
197 "--prefix="*) prefix=${D}{ARG#--prefix=} ;; |
| |
198 "--exec-prefix="*) exec_prefix=${D}{ARG#--exec-prefix=} ;; |
| |
199 "--bindir="*) bindir=${D}{ARG#----bindir=} ;; |
| |
200 "--sbindir="*) sbindir=${D}{ARG#--sbindir=} ;; |
| |
201 "--libdir="*) libdir=${D}{ARG#--libdir=} ;; |
| |
202 "--libexecdir="*) libexecdir=${D}{ARG#--libexecdir=} ;; |
| |
203 "--datarootdir="*) datarootdir=${D}{ARG#--datarootdir=} ;; |
| |
204 "--datadir="*) datadir=${D}{ARG#--datadir=} ;; |
| |
205 "--sysconfdir="*) sysconfdir=${D}{ARG#--sysconfdir=} ;; |
| |
206 "--sharedstatedir="*) sharedstatedir=${D}{ARG#--sharedstatedir=} ;; |
| |
207 "--localstatedir="*) localstatedir=${D}{ARG#--localstatedir=} ;; |
| |
208 "--includedir="*) includedir=${D}{ARG#--includedir=} ;; |
| |
209 "--infodir="*) infodir=${D}{ARG#--infodir=} ;; |
| |
210 "--mandir"*) mandir=${D}{ARG#--mandir} ;; |
| |
211 "--localedir"*) localedir=${D}{ARG#--localedir} ;; |
| |
212 "--help"*) printhelp; abort_configure ;; |
| |
213 "--debug") BUILD_TYPE="debug" ;; |
| |
214 "--release") BUILD_TYPE="release" ;; |
| |
215 #foreach( $opt in $options ) |
| |
216 "--${opt.argument}="*) ${opt.varName}=${D}{ARG#--${opt.argument}=} ;; |
| |
217 "--${opt.argument}") echo "option '$ARG' needs a value:"; echo " $ARG=${opt.valuesString}"; abort_configure ;; |
| |
218 #end |
| |
219 #foreach( $feature in $features ) |
| |
220 "--enable-${feature.arg}") ${feature.varName}=on ;; |
| |
221 "--disable-${feature.arg}") unset ${feature.varName} ;; |
| |
222 #end |
| |
223 "-"*) echo "unknown option: $ARG"; abort_configure ;; |
| |
224 esac |
| |
225 done |
| |
226 |
| |
227 ## Begin unparsed content. ** |
| |
228 #[[ |
| |
229 |
| |
230 # set defaults for dir variables |
| |
231 : ${exec_prefix:="$prefix"} |
| |
232 : ${bindir:='${exec_prefix}/bin'} |
| |
233 : ${sbindir:='${exec_prefix}/sbin'} |
| |
234 : ${libdir:='${exec_prefix}/lib'} |
| |
235 : ${libexecdir:='${exec_prefix}/libexec'} |
| |
236 : ${datarootdir:='${prefix}/share'} |
| |
237 : ${datadir:='${datarootdir}'} |
| |
238 : ${sysconfdir:='${prefix}/etc'} |
| |
239 : ${sharedstatedir:='${prefix}/com'} |
| |
240 : ${localstatedir:='${prefix}/var'} |
| |
241 : ${runstatedir:='${localstatedir}/run'} |
| |
242 : ${includedir:='${prefix}/include'} |
| |
243 : ${infodir:='${datarootdir}/info'} |
| |
244 : ${mandir:='${datarootdir}/man'} |
| |
245 : ${localedir:='${datarootdir}/locale'} |
| |
246 |
| |
247 # remember the above values and compare them later |
| |
248 orig_bindir="$bindir" |
| |
249 orig_sbindir="$sbindir" |
| |
250 orig_libdir="$libdir" |
| |
251 orig_libexecdir="$libexecdir" |
| |
252 orig_datarootdir="$datarootdir" |
| |
253 orig_datadir="$datadir" |
| |
254 orig_sysconfdir="$sysconfdir" |
| |
255 orig_sharedstatedir="$sharedstatedir" |
| |
256 orig_localstatedir="$localstatedir" |
| |
257 orig_runstatedir="$runstatedir" |
| |
258 orig_includedir="$includedir" |
| |
259 orig_infodir="$infodir" |
| |
260 orig_mandir="$mandir" |
| |
261 orig_localedir="$localedir" |
| |
262 |
| |
263 # check if a config.site exists and load it |
| |
264 if [ -n "$CONFIG_SITE" ]; then |
| |
265 # CONFIG_SITE may contain space separated file names |
| |
266 for cs in $CONFIG_SITE; do |
| |
267 printf "loading defaults from $cs... " |
| |
268 . "$cs" |
| |
269 echo ok |
| 214 done |
270 done |
| 215 return 1 |
271 elif [ -f "$prefix/share/config.site" ]; then |
| 216 } |
272 printf "loading site defaults... " |
| 217 notisplatform() |
273 . "$prefix/share/config.site" |
| 218 { |
274 echo ok |
| 219 for p in $PLATFORM |
275 elif [ -f "$prefix/etc/config.site" ]; then |
| 220 do |
276 printf "loading site defaults... " |
| 221 if [ "$p" = "$1" ]; then |
277 . "$prefix/etc/config.site" |
| 222 return 1 |
278 echo ok |
| 223 fi |
279 fi |
| 224 done |
|
| 225 return 0 |
|
| 226 } |
|
| 227 istoolchain() |
|
| 228 { |
|
| 229 for t in $TOOLCHAIN |
|
| 230 do |
|
| 231 if [ "$t" = "$1" ]; then |
|
| 232 return 0 |
|
| 233 fi |
|
| 234 done |
|
| 235 return 1 |
|
| 236 } |
|
| 237 notistoolchain() |
|
| 238 { |
|
| 239 for t in $TOOLCHAIN |
|
| 240 do |
|
| 241 if [ "$t" = "$1" ]; then |
|
| 242 return 1 |
|
| 243 fi |
|
| 244 done |
|
| 245 return 0 |
|
| 246 } |
|
| 247 ]]# |
280 ]]# |
| 248 ## End of unparsed content ** |
281 ## End of unparsed content ** |
| 249 |
282 |
| 250 # generate vars.mk |
283 # generate vars.mk |
| 251 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
284 cat > "$TEMP_DIR/vars.mk" << __EOF__ |
| 598 else |
670 else |
| 599 ERROR=1 |
671 ERROR=1 |
| 600 DEPENDENCIES_FAILED="option '${opt.argument}' $DEPENDENCIES_FAILED" |
672 DEPENDENCIES_FAILED="option '${opt.argument}' $DEPENDENCIES_FAILED" |
| 601 fi |
673 fi |
| 602 #end |
674 #end |
| |
675 else |
| |
676 echo |
| |
677 echo "Invalid option value - usage:" |
| |
678 echo " --${opt.argument}=${opt.valuesString}" |
| |
679 abort_configure |
| 603 fi |
680 fi |
| 604 fi |
681 fi |
| 605 #end |
682 #end |
| 606 |
683 |
| 607 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then |
684 if [ -n "${TEMP_CFLAGS}" ] && [ -n "$lang_c" ]; then |
| 608 echo "${target.cFlags} += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk" |
685 echo "${target.cFlags} += $TEMP_CFLAGS" >> "$TEMP_DIR/flags.mk" |
| 609 fi |
686 fi |
| 610 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
687 if [ -n "${TEMP_CXXFLAGS}" ] && [ -n "$lang_cpp" ]; then |
| 611 echo "${target.cxxFlags} += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
688 echo "${target.cxxFlags} += $TEMP_CXXFLAGS" >> "$TEMP_DIR/flags.mk" |
| 612 fi |
|
| 613 if [ "$BUILD_TYPE" = "debug" ]; then |
|
| 614 if [ -n "$lang_c" ]; then |
|
| 615 echo '${target.cFlags} += ${DEBUG_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" |
|
| 616 fi |
|
| 617 if [ -n "$lang_cpp" ]; then |
|
| 618 echo '${target.cxxFlags} += ${DEBUG_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" |
|
| 619 fi |
|
| 620 fi |
|
| 621 if [ "$BUILD_TYPE" = "release" ]; then |
|
| 622 if [ -n "$lang_c" ]; then |
|
| 623 echo '${target.cFlags} += ${RELEASE_CC_FLAGS}' >> "$TEMP_DIR/flags.mk" |
|
| 624 fi |
|
| 625 if [ -n "$lang_cpp" ]; then |
|
| 626 echo '${target.cxxFlags} += ${RELEASE_CXX_FLAGS}' >> "$TEMP_DIR/flags.mk" |
|
| 627 fi |
|
| 628 fi |
689 fi |
| 629 if [ -n "${TEMP_LDFLAGS}" ]; then |
690 if [ -n "${TEMP_LDFLAGS}" ]; then |
| 630 echo "${target.ldFlags} += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
691 echo "${target.ldFlags} += $TEMP_LDFLAGS" >> "$TEMP_DIR/flags.mk" |
| 631 fi |
692 fi |
| 632 |
693 |
| 640 abort_configure |
701 abort_configure |
| 641 fi |
702 fi |
| 642 |
703 |
| 643 echo "configure finished" |
704 echo "configure finished" |
| 644 echo |
705 echo |
| |
706 echo "Toolchain" |
| |
707 echo " name: $TOOLCHAIN_NAME" |
| |
708 if [ -n "$TOOLCHAIN_CC" ]; then |
| |
709 echo " cc: $TOOLCHAIN_CC" |
| |
710 fi |
| |
711 if [ -n "$TOOLCHAIN_CXX" ]; then |
| |
712 echo " cxx: $TOOLCHAIN_CXX" |
| |
713 fi |
| |
714 if [ -n "$TOOLCHAIN_WSIZE" ]; then |
| |
715 echo " word size: $TOOLCHAIN_WSIZE bit" |
| |
716 fi |
| |
717 if [ -n "$TOOLCHAIN_CSTD" ]; then |
| |
718 echo " default C std: $TOOLCHAIN_CSTD" |
| |
719 fi |
| |
720 echo |
| 645 echo "Build Config:" |
721 echo "Build Config:" |
| 646 echo " PREFIX: $prefix" |
722 echo " prefix: $prefix" |
| 647 echo " TOOLCHAIN: $TOOLCHAIN_NAME" |
723 echo " exec_prefix: $exec_prefix" |
| |
724 if [ "$orig_bindir" != "$bindir" ]; then |
| |
725 echo " bindir: $bindir" |
| |
726 fi |
| |
727 if [ "$orig_sbindir" != "$sbindir" ]; then |
| |
728 echo " sbindir: $sbindir" |
| |
729 fi |
| |
730 if [ "$orig_libdir" != "$libdir" ]; then |
| |
731 echo " libdir: $libdir" |
| |
732 fi |
| |
733 if [ "$orig_libexecdir" != "$libexecdir" ]; then |
| |
734 echo " libexecdir: $libexecdir" |
| |
735 fi |
| |
736 if [ "$orig_datarootdir" != "$datarootdir" ]; then |
| |
737 echo " datarootdir: $datarootdir" |
| |
738 fi |
| |
739 if [ "$orig_datadir" != "$datadir" ]; then |
| |
740 echo " datadir: $datadir" |
| |
741 fi |
| |
742 if [ "$orig_sysconfdir" != "$sysconfdir" ]; then |
| |
743 echo " sysconfdir: $sysconfdir" |
| |
744 fi |
| |
745 if [ "$orig_sharedstatedir" != "$sharedstatedir" ]; then |
| |
746 echo " sharedstatedir: $sharedstatedir" |
| |
747 fi |
| |
748 if [ "$orig_localstatedir" != "$localstatedir" ]; then |
| |
749 echo " localstatedir: $localstatedir" |
| |
750 fi |
| |
751 if [ "$orig_runstatedir" != "$runstatedir" ]; then |
| |
752 echo " runstatedir: $runstatedir" |
| |
753 fi |
| |
754 if [ "$orig_includedir" != "$includedir" ]; then |
| |
755 echo " includedir: $includedir" |
| |
756 fi |
| |
757 if [ "$orig_infodir" != "$infodir" ]; then |
| |
758 echo " infodir: $infodir" |
| |
759 fi |
| |
760 if [ "$orig_mandir" != "$mandir" ]; then |
| |
761 echo " mandir: $mandir" |
| |
762 fi |
| |
763 if [ "$orig_localedir" != "$localedir" ]; then |
| |
764 echo " localedir: $localedir" |
| |
765 fi |
| 648 #if ( $options.size() > 0 ) |
766 #if ( $options.size() > 0 ) |
| |
767 echo |
| 649 echo "Options:" |
768 echo "Options:" |
| 650 cat "$TEMP_DIR/options" |
769 cat "$TEMP_DIR/options" |
| 651 #end |
770 #end |
| 652 #if ( $features.size() > 0 ) |
771 #if ( $features.size() > 0 ) |
| |
772 echo |
| 653 echo "Features:" |
773 echo "Features:" |
| 654 #foreach( $feature in $features ) |
774 #foreach( $feature in $features ) |
| 655 if [ -n "${D}${feature.varName}" ]; then |
775 if [ -n "${D}${feature.varName}" ]; then |
| 656 echo " $feature.name: on" |
776 echo " $feature.name: on" |
| 657 else |
777 else |