| 204 #end |
204 #end |
| 205 "-"*) echo "unknown option: $ARG"; abort_configure ;; |
205 "-"*) echo "unknown option: $ARG"; abort_configure ;; |
| 206 esac |
206 esac |
| 207 done |
207 done |
| 208 |
208 |
| |
209 # toolchain detection utilities |
| |
210 . make/toolchain.sh |
| |
211 |
| |
212 # check languages |
| |
213 lang_c= |
| |
214 lang_cpp= |
| |
215 #foreach( $lang in $languages ) |
| |
216 if detect_${lang}_compiler ; then |
| |
217 lang_${lang}=1 |
| |
218 fi |
| |
219 #end |
| |
220 |
| 209 ## Begin unparsed content. ** |
221 ## Begin unparsed content. ** |
| 210 #[[ |
222 #[[ |
| 211 |
223 |
| 212 # set defaults for dir variables |
224 # set defaults for dir variables |
| 213 : ${exec_prefix:="$prefix"} |
225 : ${exec_prefix:="$prefix"} |
| 241 fi |
253 fi |
| 242 : ${includedir:='${prefix}/include'} |
254 : ${includedir:='${prefix}/include'} |
| 243 : ${infodir:='${datarootdir}/info'} |
255 : ${infodir:='${datarootdir}/info'} |
| 244 : ${mandir:='${datarootdir}/man'} |
256 : ${mandir:='${datarootdir}/man'} |
| 245 : ${localedir:='${datarootdir}/locale'} |
257 : ${localedir:='${datarootdir}/locale'} |
| |
258 |
| 246 |
259 |
| 247 # check if a config.site exists and load it |
260 # check if a config.site exists and load it |
| 248 if [ -n "$CONFIG_SITE" ]; then |
261 if [ -n "$CONFIG_SITE" ]; then |
| 249 # CONFIG_SITE may contain space separated file names |
262 # CONFIG_SITE may contain space separated file names |
| 250 for cs in $CONFIG_SITE; do |
263 for cs in $CONFIG_SITE; do |
| 262 echo ok |
275 echo ok |
| 263 else |
276 else |
| 264 # try to detect the correct libdir on our own, except it was changed by the user |
277 # try to detect the correct libdir on our own, except it was changed by the user |
| 265 if test "$libdir" = '${exec_prefix}/lib'; then |
278 if test "$libdir" = '${exec_prefix}/lib'; then |
| 266 if [ "$OS" = "SunOS" ]; then |
279 if [ "$OS" = "SunOS" ]; then |
| 267 test -d "${exec_prefix}/lib/64" && libdir='${exec_prefix}/lib/64' |
280 test -d "${exec_prefix}/lib/64" && test "$TOOLCHAIN_WSIZE" = "64" && libdir='${exec_prefix}/lib/64' |
| 268 else |
281 else |
| 269 # check if the standard libdir even exists |
282 # check if the standard libdir even exists |
| 270 if test -d "${exec_prefix}/lib" ; then |
283 if test -d "${exec_prefix}/lib" ; then |
| 271 : |
284 : |
| 272 else |
285 else |
| 273 # if it does not, maybe a lib32 exists |
286 # if it does not, maybe a lib32 exists |
| 274 test -d "${exec_prefix}/lib32" && libdir='${exec_prefix}/lib32' |
287 test -d "${exec_prefix}/lib32" && libdir='${exec_prefix}/lib32' |
| 275 fi |
288 fi |
| 276 # now check if there is a special 64bit libdir that we should use |
289 if [ "$TOOLCHAIN_WSIZE" = "64" ]; then |
| 277 for i in x86_64 ppc64 s390x aarch64 aarch64_be arm64 ; do |
290 # now check if there is a special 64bit libdir that we should use |
| 278 if [ $ARCH = $i ]; then |
291 for i in x86_64 ppc64 s390x aarch64 aarch64_be arm64 ; do |
| 279 test -d "${exec_prefix}/lib64" && libdir='${exec_prefix}/lib64' |
292 if [ $ARCH = $i ]; then |
| 280 break |
293 test -d "${exec_prefix}/lib64" && libdir='${exec_prefix}/lib64' |
| 281 fi |
294 break |
| 282 done |
295 fi |
| |
296 done |
| |
297 fi |
| 283 fi |
298 fi |
| 284 fi |
299 fi |
| 285 fi |
300 fi |
| 286 ]]# |
301 ]]# |
| 287 ## End of unparsed content ** |
302 ## End of unparsed content ** |
| 291 #foreach( $var in $vars ) |
306 #foreach( $var in $vars ) |
| 292 ${var.varName}=${D}${var.varName} |
307 ${var.varName}=${D}${var.varName} |
| 293 #end |
308 #end |
| 294 __EOF__ |
309 __EOF__ |
| 295 |
310 |
| 296 # toolchain detection utilities |
|
| 297 . make/toolchain.sh |
|
| 298 |
311 |
| 299 # |
312 # |
| 300 # DEPENDENCIES |
313 # DEPENDENCIES |
| 301 # |
314 # |
| 302 |
315 |
| 303 # check languages |
316 |
| 304 lang_c= |
|
| 305 lang_cpp= |
|
| 306 #foreach( $lang in $languages ) |
|
| 307 if detect_${lang}_compiler ; then |
|
| 308 lang_${lang}=1 |
|
| 309 fi |
|
| 310 #end |
|
| 311 |
317 |
| 312 # create buffer for make variables required by dependencies |
318 # create buffer for make variables required by dependencies |
| 313 echo > "$TEMP_DIR/make.mk" |
319 echo > "$TEMP_DIR/make.mk" |
| 314 |
320 |
| 315 test_pkg_config() |
321 test_pkg_config() |