1995-04-19 18:27:35 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1996-06-25 13:11:45 +00:00
|
|
|
AC_PREREQ(2.5)dnl
|
1995-04-19 18:27:35 +00:00
|
|
|
AC_INIT(gprof.c)
|
1991-07-23 19:09:22 +00:00
|
|
|
|
1997-04-15 18:35:39 +00:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
1997-08-09 20:30:19 +00:00
|
|
|
AM_INIT_AUTOMAKE(gprof, 2.8.2)
|
1997-04-15 18:35:39 +00:00
|
|
|
|
1997-08-09 20:30:19 +00:00
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
|
|
|
|
dnl For simplicity, we use the BFD configuration file for most
|
|
|
|
dnl things. However, we also need our own configuration file for
|
|
|
|
dnl the automake PACKAGE and VERSION macros. We don't name it
|
|
|
|
dnl config.h, to avoid any possible confusion with the bfd config.h.
|
|
|
|
AM_CONFIG_HEADER(gconfig.h:gconfig.in)
|
1996-02-07 19:08:04 +00:00
|
|
|
|
1995-04-19 18:27:35 +00:00
|
|
|
AC_PROG_CC
|
1997-08-09 20:30:19 +00:00
|
|
|
AM_PROG_INSTALL
|
1991-07-23 19:09:22 +00:00
|
|
|
|
1996-06-27 15:37:48 +00:00
|
|
|
AC_ISC_POSIX
|
|
|
|
|
1992-07-13 02:54:10 +00:00
|
|
|
case "${target}" in
|
1995-04-19 18:27:35 +00:00
|
|
|
alpha-*-*) MY_TARGET=alpha ;;
|
1995-06-16 19:30:48 +00:00
|
|
|
changequote(,)dnl
|
1996-08-29 21:28:01 +00:00
|
|
|
i[3456]86-*-*) MY_TARGET=i386 ;;
|
1995-06-16 19:30:48 +00:00
|
|
|
changequote([,])dnl
|
1995-04-19 18:27:35 +00:00
|
|
|
sparc-*-*) MY_TARGET=sparc ;;
|
|
|
|
tahoe-*-*) MY_TARGET=tahoe ;;
|
|
|
|
vax-*-*) MY_TARGET=vax ;;
|
1995-09-05 19:04:22 +00:00
|
|
|
ns32k-*-*) MY_TARGET=ns532;;
|
1995-04-19 18:27:35 +00:00
|
|
|
*-*-*) MY_TARGET=dummy ;;
|
1992-02-11 23:15:03 +00:00
|
|
|
esac
|
|
|
|
|
1995-04-19 18:27:35 +00:00
|
|
|
AC_SUBST(MY_TARGET)
|
1996-02-07 19:08:04 +00:00
|
|
|
|
1997-02-27 17:49:00 +00:00
|
|
|
dnl We need to set BSD44_FORMAT on a host which uses the additional
|
|
|
|
dnl header fields. This is an attempt to do that. I can't think of a
|
|
|
|
dnl good feature test for this.
|
|
|
|
case "${target}" in
|
|
|
|
*-*-bsd4.4* | *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
|
|
|
|
AC_DEFINE(BSD44_FORMAT)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1997-04-15 18:35:39 +00:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
AM_CYGWIN32
|
1997-08-09 20:30:19 +00:00
|
|
|
AM_EXEEXT
|
1997-04-15 18:35:39 +00:00
|
|
|
|
1995-04-19 18:27:35 +00:00
|
|
|
AC_OUTPUT(Makefile)
|