198 |
|
|
199 |
def_dlopen="no" |
def_dlopen="no" |
200 |
def_statsysbfd="yes" |
def_statsysbfd="yes" |
201 |
|
def_custreloc="no" |
202 |
case $use in |
case $use in |
203 |
*linux) |
*linux) |
204 |
ln -snf linux.defs h/$use.defs; |
ln -snf linux.defs h/$use.defs; |
212 |
hppa*) |
hppa*) |
213 |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
def_dlopen="yes" ; def_statsysbfd="no" ;; |
214 |
esac;; |
esac;; |
215 |
|
*mingw*) |
216 |
|
def_statsysbfd="no" ; def_custreloc="yes" ;; |
217 |
esac |
esac |
218 |
|
|
219 |
AC_ARG_ENABLE(dlopen, |
AC_ARG_ENABLE(dlopen, |
228 |
AC_ARG_ENABLE(locbfd, |
AC_ARG_ENABLE(locbfd, |
229 |
[ --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files ] |
[ --enable-locbfd uses a static bfd library built from this source tree for loading and relocationing object files ] |
230 |
,,enable_locbfd="no") |
,,enable_locbfd="no") |
231 |
|
AC_ARG_ENABLE(custreloc, |
232 |
|
[ --enable-custreloc uses custom gcl code if available for loading and relocationing object files ] |
233 |
|
,,enable_custreloc="def_custreloc") |
234 |
AC_ARG_ENABLE(debug, |
AC_ARG_ENABLE(debug, |
235 |
[ --enable-debug builds gcl with -g in CFLAGS to enable running under gdb ] |
[ --enable-debug builds gcl with -g in CFLAGS to enable running under gdb ] |
236 |
,,enable_debug="no") |
,,enable_debug="no") |
248 |
if test "$enable_locbfd" = "yes" ; then |
if test "$enable_locbfd" = "yes" ; then |
249 |
load_opt=$(($load_opt+1)) |
load_opt=$(($load_opt+1)) |
250 |
fi |
fi |
251 |
|
if test "$enable_custreloc" = "yes" ; then |
252 |
|
load_opt=$(($load_opt+1)) |
253 |
|
fi |
254 |
|
|
255 |
if test "$load_opt" != "1" ; then |
if test "$load_opt" != "1" ; then |
256 |
echo "Exactly one loader option must be chosen: dlopen=$enable_dlopen statsysbfd=$enable_statsysbfd dynsysbfd=$enable_dynsysbfd locbfd=$enable_locbfd" |
echo "Exactly one loader option must be chosen: dlopen=$enable_dlopen statsysbfd=$enable_statsysbfd dynsysbfd=$enable_dynsysbfd locbfd=$enable_locbfd custreloc=$enable_custreloc" |
257 |
exit 1 |
exit 1 |
258 |
fi |
fi |
259 |
|
|
466 |
echo "# Subconfigure of BFD" |
echo "# Subconfigure of BFD" |
467 |
echo "#" |
echo "#" |
468 |
echo "#" |
echo "#" |
469 |
cd binutils/bfd && ./configure && cd ../.. |
cd binutils/bfd && chmod +x configure && ./configure && cd ../.. |
470 |
echo "#" |
echo "#" |
471 |
echo "#" |
echo "#" |
472 |
echo "#" |
echo "#" |
479 |
echo "# Subconfigure of LIBIBERTY" |
echo "# Subconfigure of LIBIBERTY" |
480 |
echo "#" |
echo "#" |
481 |
echo "#" |
echo "#" |
482 |
cd binutils/libiberty && ./configure && cd ../.. |
cd binutils/libiberty && chmod +x configure && ./configure && cd ../.. |
483 |
echo "#" |
echo "#" |
484 |
echo "#" |
echo "#" |
485 |
echo "#" |
echo "#" |