[ ac_bfd_include_dir=NONE ]
)
+AC_ARG_WITH(binutils-include-dir,
+ [ --with-binutils-include-dir=<dir> include path for binutils headers ],
+ [ ac_binutils_include_dir=$withval ],
+ [ ac_binutils_include_dir=NONE ]
+)
+
+AC_ARG_WITH(binutils-ldscript-dir,
+ [ --with-binutils-ldscript-dir=<dir> path to install elf2flt.ld ],
+ [ ac_binutils_ldscript_dir=$withval ],
+ [ ac_binutils_ldscript_dir=NONE ]
+)
+
+AC_ARG_ENABLE(got-check,
+ [ --disable-got-check - disable check for GOT (needed on H8) ],
+ [ got_check=$enableval ],
+ [ got_check=yes ]
+)
+
AC_CANONICAL_HOST
AC_CANONICAL_TARGET
bfd_include_dir="-I$ac_bfd_include_dir"
fi
+binutils_include_dir=
+if test "$ac_binutils_include_dir" != "NONE"; then
+ binutils_include_dir="-I$ac_binutils_include_dir"
+fi
+
+binutils_ldscript_dir=
+if test "$ac_binutils_ldscript_dir" = "NONE"; then
+ ac_binutils_ldscript_dir="\${TOOLDIR}/../${target_alias}/lib"
+fi
+binutils_ldscript_dir="$ac_binutils_ldscript_dir"
+
if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
echo
echo "You need to specify the location of the libfd.a and libiberty.a"
dnl Checks for library functions.
AC_FUNC_VPRINTF
+AC_CHECK_FUNCS(dcgettext)
+
dnl Subsitute values
AC_SUBST(target)
AC_SUBST(target_alias)
AC_SUBST(target_os)
AC_SUBST(target_vendor)
AC_SUBST(bfd_include_dir)
+AC_SUBST(binutils_include_dir)
+AC_SUBST(binutils_ldscript_dir)
+AC_SUBST(got_check)
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile ld-elf2flt)