1995-04-19 20:27:35 +02:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1996-06-25 15:11:45 +02:00
|
|
|
AC_PREREQ(2.5)dnl
|
1995-04-19 20:27:35 +02:00
|
|
|
AC_INIT(gprof.c)
|
1991-07-23 21:09:22 +02:00
|
|
|
|
1997-04-15 20:35:39 +02:00
|
|
|
AC_CANONICAL_SYSTEM
|
|
|
|
|
1997-08-09 22:30:19 +02:00
|
|
|
AM_INIT_AUTOMAKE(gprof, 2.8.2)
|
1997-04-15 20:35:39 +02:00
|
|
|
|
1997-08-09 22:30:19 +02: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 20:08:04 +01:00
|
|
|
|
1995-04-19 20:27:35 +02:00
|
|
|
AC_PROG_CC
|
1997-08-09 22:30:19 +02:00
|
|
|
AM_PROG_INSTALL
|
1991-07-23 21:09:22 +02:00
|
|
|
|
1996-06-27 17:37:48 +02:00
|
|
|
AC_ISC_POSIX
|
|
|
|
|
1992-07-13 04:54:10 +02:00
|
|
|
case "${target}" in
|
1995-04-19 20:27:35 +02:00
|
|
|
alpha-*-*) MY_TARGET=alpha ;;
|
1995-06-16 21:30:48 +02:00
|
|
|
changequote(,)dnl
|
1996-08-29 23:28:01 +02:00
|
|
|
i[3456]86-*-*) MY_TARGET=i386 ;;
|
1995-06-16 21:30:48 +02:00
|
|
|
changequote([,])dnl
|
1995-04-19 20:27:35 +02:00
|
|
|
sparc-*-*) MY_TARGET=sparc ;;
|
|
|
|
tahoe-*-*) MY_TARGET=tahoe ;;
|
|
|
|
vax-*-*) MY_TARGET=vax ;;
|
1995-09-05 21:04:22 +02:00
|
|
|
ns32k-*-*) MY_TARGET=ns532;;
|
1995-04-19 20:27:35 +02:00
|
|
|
*-*-*) MY_TARGET=dummy ;;
|
1992-02-12 00:15:03 +01:00
|
|
|
esac
|
|
|
|
|
1995-04-19 20:27:35 +02:00
|
|
|
AC_SUBST(MY_TARGET)
|
1996-02-07 20:08:04 +01:00
|
|
|
|
1997-02-27 18:49:00 +01: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 20:35:39 +02:00
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
AM_CYGWIN32
|
1997-08-09 22:30:19 +02:00
|
|
|
AM_EXEEXT
|
1997-04-15 20:35:39 +02:00
|
|
|
|
1995-04-19 20:27:35 +02:00
|
|
|
AC_OUTPUT(Makefile)
|