b7a9592566fef422b3bf5f9e5ea75ed06c8cbea8
[external/binutils.git] / sim / h8300 / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.3)dnl
3 AC_INIT(Makefile.in)
4
5 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
6 AC_CANONICAL_SYSTEM
7 AC_ARG_PROGRAM
8
9 . ${srcdir}/../../bfd/configure.host
10
11 # Set up to make a link between the host's include file and "sysdep.h".
12 files="../../bfd/hosts/${my_host}.h"
13 if test ! -f ${srcdir}/${files} ; then
14         files=../../bfd/hosts/std-host.h
15         AC_MSG_WARN(h8300sim has no specific support for host ${host} -- using std-host)
16 fi
17 AC_LINK_FILES($files, sysdep.h)
18
19 if test -f ${srcdir}/../../bfd/config/${my_host}.mh; then
20         host_makefile_frag=../../bfd/config/${my_host}.mh
21 else
22         host_makefile_frag=/dev/null
23 fi
24
25 frags=
26 if test $host_makefile_frag != /dev/null; then
27         frags="$frags $host_makefile_frag"
28 fi
29 AC_SUBST_FILE(host_makefile_frag)
30 AC_SUBST(frags)
31
32 AC_OUTPUT(Makefile)