3 #WARNING: configure script must be called by relative path, not absolute
4 # in other case, makefiles will receive absolute pathes in top_srcdir and
5 # srcdir variables and won't operate properly.
6 # This is a long-running bug between autoconf and some shells (at least bash)
7 # See http://sourceware.org/ml/automake/2000-03/msg00151.html for additional info.
12 .
$PWD/$CONFIG_FILE || EXIT
1
14 if [ x
"$WORK_MODE" = x
"get_bld_tree_cfg" ]; then
15 echo builds
/$CONFIG_ENVIRONMENT_NAME/.config builds
/$CONFIG_ENVIRONMENT_NAME/.config.h
19 if [ x
"$WORK_MODE" = x
"get_bld_dir" ]; then
20 echo builds
/$CONFIG_ENVIRONMENT_NAME
24 if [ x
"$WORK_MODE" = x
"get_bld_name" ]; then
25 echo $CONFIG_ENVIRONMENT_NAME
29 if [ x
"$WORK_MODE" = x
"complete_makefiles_am" ]; then
34 for file in `cat $SRC_ROOT_DIR/configure.ac | grep Makefile | sed -e "s/AC_CONFIG_FILES(\[//" -e "s/Makefile/Makefile.am/"`
36 mkdir
-p `dirname $DST_ROOT_DIR/$file` && touch $DST_ROOT_DIR/$file ||
exit $?
;
42 ( cd `readlink -f $PWD` && \
43 (test ! -d builds
/$CONFIG_ENVIRONMENT_NAME ||
chmod -R +w builds
/$CONFIG_ENVIRONMENT_NAME) && \
44 rm -rf builds
/$CONFIG_ENVIRONMENT_NAME && \
45 mkdir
-p builds
/$CONFIG_ENVIRONMENT_NAME && \
46 cd builds
/$CONFIG_ENVIRONMENT_NAME && \
47 cp -f ..
/..
/.config .
&& \
48 awk -f ..
/..
/support
/make_cfg_header.
awk < .config
> .config.h
&& \
49 ..
/..
/configure
--host $CONFIG_HOST_TYPE \
50 --build=`../../config.guess` \
51 --with-app-toolchain=$APP_TOOLCHAIN_DIR \
52 --with-kernel=$KERNEL_DIR \
53 --with-kernel-cross-compile=$KERNEL_CROSS_COMPILE \
54 --prefix=`readlink -f .`/binaries
&& \
55 exit 0 ) ||
( rm -f .config .config.h
&& exit 1 )