Commit | Line | Data |
---|---|---|
1ffd292b C |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | AC_PREREQ(2.3)dnl | |
3 | AC_INIT(Makefile.in) | |
594266fc | 4 | |
1ffd292b C |
5 | AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..) |
6 | AC_CANONICAL_SYSTEM | |
7 | AC_ARG_PROGRAM | |
594266fc SC |
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" | |
1ffd292b | 13 | if test ! -f ${srcdir}/${files} ; then |
5887848e | 14 | files=../../bfd/hosts/std-host.h |
1ffd292b | 15 | AC_MSG_WARN(shsim has no specific support for host ${host} -- using std-host) |
594266fc | 16 | fi |
1ffd292b | 17 | AC_LINK_FILES($files, sysdep.h) |
594266fc | 18 | |
1ffd292b | 19 | if test -f ${srcdir}/../../bfd/config/${my_host}.mh; then |
594266fc | 20 | host_makefile_frag=../../bfd/config/${my_host}.mh |
1ffd292b C |
21 | else |
22 | host_makefile_frag=/dev/null | |
594266fc SC |
23 | fi |
24 | ||
1ffd292b C |
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) | |
d2fd61a8 | 31 | |
1ffd292b | 32 | AC_OUTPUT(Makefile) |