aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300/configure.in
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1995-07-05 22:54:10 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1995-07-05 22:54:10 +0000
commit1ffd292be6d378b2c764e921dc89d94602baef39 (patch)
tree8840b8a6b998c97c8e8db0590e330946c42ef834 /sim/h8300/configure.in
parentfec60da3d6cd0c767620b6a87258b9df76d3fff8 (diff)
downloadgdb-1ffd292be6d378b2c764e921dc89d94602baef39.zip
gdb-1ffd292be6d378b2c764e921dc89d94602baef39.tar.gz
gdb-1ffd292be6d378b2c764e921dc89d94602baef39.tar.bz2
* Makefile.in, configure.in: converted to autoconf.
* configure: New file, generated with autconf 2.4.
Diffstat (limited to 'sim/h8300/configure.in')
-rw-r--r--sim/h8300/configure.in36
1 files changed, 20 insertions, 16 deletions
diff --git a/sim/h8300/configure.in b/sim/h8300/configure.in
index b43f90e..b7a9592 100644
--- a/sim/h8300/configure.in
+++ b/sim/h8300/configure.in
@@ -1,28 +1,32 @@
-# This file is a shell script that supplies the information necessary
-# to tailor a template configure script into the configure script
-# appropriate for this directory. For more information, check any
-# existing configure script.
+dnl Process this file with autoconf to produce a configure script.
+AC_PREREQ(2.3)dnl
+AC_INIT(Makefile.in)
-srctrigger=writecode.c
-srcname="h8300sim"
-
-# per-host:
+AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/../..)
+AC_CANONICAL_SYSTEM
+AC_ARG_PROGRAM
. ${srcdir}/../../bfd/configure.host
# Set up to make a link between the host's include file and "sysdep.h".
files="../../bfd/hosts/${my_host}.h"
-
-links="sysdep.h"
-
-if [ ! -f ${srcdir}/${files} ] ; then
+if test ! -f ${srcdir}/${files} ; then
files=../../bfd/hosts/std-host.h
- echo "[${srcname} has no specific support for host ${host} -- using std-host]"
+ AC_MSG_WARN(h8300sim has no specific support for host ${host} -- using std-host)
fi
+AC_LINK_FILES($files, sysdep.h)
-host_makefile_frag=
-if [ -f ${srcdir}/../../bfd/config/${my_host}.mh ] ; then
+if test -f ${srcdir}/../../bfd/config/${my_host}.mh; then
host_makefile_frag=../../bfd/config/${my_host}.mh
+else
+ host_makefile_frag=/dev/null
+fi
+
+frags=
+if test $host_makefile_frag != /dev/null; then
+ frags="$frags $host_makefile_frag"
fi
+AC_SUBST_FILE(host_makefile_frag)
+AC_SUBST(frags)
-# per-target:
+AC_OUTPUT(Makefile)