1 dnl Process this file with autoconf to produce a configure script.
4 AC_MSG_CHECKING(--with-libbfd=?)
6 [ --with-libbfd=<file> path to libbfd.a library to use ],
7 [ ac_libbfd=$withval ],
10 AC_MSG_RESULT($ac_libbfd)
12 AC_MSG_CHECKING(--with-libiberty=?)
13 AC_ARG_WITH(libiberty,
14 [ --with-libiberty=<file> path to libiberty.a library to use ],
15 [ ac_libiberty=$withval ],
18 AC_MSG_RESULT($ac_libiberty)
23 dnl Checks for programs.
27 dnl Checks for libraries.
28 if test "$ac_libbfd" = "NONE" -o "$ac_libiberty" = "NONE" ; then
30 echo "You need to specify the location of the libfd.a and libiberty.a"
31 echo "host libraries from the binutils package."
33 echo "Run configure again specifying these options:"
35 echo " ./configure --target=<ARCH> --with-libbfd=<libbfd.a> --with-libiberty=<libiberty.a>"
39 LDFLAGS="$LDFLAGS $ac_libbfd $ac_libiberty"
41 dnl Checks for header files.
43 AC_CHECK_HEADERS(fcntl.h unistd.h)
45 dnl Checks for typedefs, structures, and compiler characteristics.
48 dnl Checks for library functions.
53 AC_SUBST(target_alias)
56 AC_SUBST(target_vendor)