[ ac_binutils_ldscript_dir=NONE ]
)
+AC_ARG_WITH(binutils-build-dir,
+ [ --with-binutils-build-dir=<dir> path to compiled binutils tree ],
+ [ ac_binutils_build_dir=$withval ],
+ [ ac_binutils_build_dir=NONE ]
+)
+
AC_ARG_ENABLE(got-check,
[ --disable-got-check - disable check for GOT (needed on H8) ],
[ got_check=$enableval ],
AC_PROG_CC
AC_PROG_INSTALL
+if test "$ac_binutils_build_dir" != "NONE"; then
+ test "$ac_libbfd" = "NONE" && ac_libbfd="$ac_binutils_build_dir/bfd/libbfd.a"
+ test "$ac_libiberty" = "NONE" && ac_libiberty="$ac_binutils_build_dir/libiberty/libiberty.a"
+ test "$ac_bfd_include_dir" = "NONE" && ac_bfd_include_dir="$ac_binutils_build_dir/bfd"
+ test "$ac_binutils_include_dir" = "NONE" && ac_binutils_include_dir="$ac_binutils_build_dir/include"
+fi
+
dnl Checks for libraries.
if test "$ac_libiberty" = "NONE"; then
AC_CHECK_LIB(iberty, objalloc_create)