* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,

INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
        (docdir): Removed.
        * configure.in (AC_PREREQ): autoconf 2.5 or higher.
        * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
        includedir): Use autoconf set values.
        (docdir): Removed.
This commit is contained in:
Jason Molenda 1996-06-25 12:40:48 +00:00
parent f3d564b2dd
commit 1c94de4d74
3 changed files with 102 additions and 56 deletions

View File

@ -1,5 +1,21 @@
Mon Jun 24 18:02:50 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
* Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir,
INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
(docdir): Removed.
* configure.in (AC_PREREQ): autoconf 2.5 or higher.
* doc/Makefile.in (bindir, libdir, datadir, mandir, infodir,
includedir): Use autoconf set values.
(docdir): Removed.
Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com> Mon Jun 24 11:58:14 1996 Ian Lance Taylor <ian@cygnus.com>
* listing.c (listing_eject): Don't do anything if listing is 0.
(listing_list): Likewise.
(listing_source_line): Likewise.
(listing_title): Don't save title if listing is 0.
(listing_source_file): Check listing rather than listing_tail.
* configure.in: On alpha*-*-osf*, link against libbfd.a if not * configure.in: On alpha*-*-osf*, link against libbfd.a if not
using shared libraries. using shared libraries.
* configure: Rebuild. * configure: Rebuild.

View File

@ -34,12 +34,12 @@ prefix = @prefix@
program_transform_name = @program_transform_name@ program_transform_name = @program_transform_name@
exec_prefix = @exec_prefix@ exec_prefix = @exec_prefix@
bindir = $(exec_prefix)/bin bindir = @bindir@
libdir = $(exec_prefix)/lib libdir = @libdir@
tooldir = $(exec_prefix)/$(target_alias) tooldir = $(exec_prefix)/$(target_alias)
datadir = $(prefix)/lib datadir = @datadir@
mandir = $(prefix)/man mandir = @mandir@
man1dir = $(mandir)/man1 man1dir = $(mandir)/man1
man2dir = $(mandir)/man2 man2dir = $(mandir)/man2
man3dir = $(mandir)/man3 man3dir = $(mandir)/man3
@ -49,17 +49,16 @@ man6dir = $(mandir)/man6
man7dir = $(mandir)/man7 man7dir = $(mandir)/man7
man8dir = $(mandir)/man8 man8dir = $(mandir)/man8
man9dir = $(mandir)/man9 man9dir = $(mandir)/man9
infodir = $(prefix)/info infodir = @infodir@
includedir = $(prefix)/include includedir = @includedir@
docdir = $(datadir)/doc
VERSION=cygnus-2.6 VERSION=cygnus-2.6
SHELL = /bin/sh SHELL = /bin/sh
INSTALL = $${srcroot}/install.sh -c INSTALL = $${srcroot}/install.sh -c
INSTALL_PROGRAM = $(INSTALL) INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = $(INSTALL) INSTALL_DATA = @INSTALL_DATA@
INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1 INSTALL_XFORM1= $(INSTALL_XFORM) -b=.1
@ -76,6 +75,7 @@ CC = @CC@
CFLAGS = -g CFLAGS = -g
LDFLAGS = LDFLAGS =
HLDFLAGS = @HLDFLAGS@ HLDFLAGS = @HLDFLAGS@
RPATH_ENVVAR = @RPATH_ENVVAR@
MAKEOVERRIDES= MAKEOVERRIDES=
@ -302,8 +302,8 @@ check: site.exp
cp site.exp testsuite/site.exp cp site.exp testsuite/site.exp
rootme=`pwd`; export rootme; \ rootme=`pwd`; export rootme; \
srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \ srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
LD_LIBRARY_PATH=$$rootme/../bfd:$$rootme/../opcodes:$$LD_LIBRARY_PATH; \ $(RPATH_ENVVAR)=$$rootme/../bfd:$$rootme/../opcodes:$$$(RPATH_ENVVAR); \
export LD_LIBRARY_PATH; \ export $(RPATH_ENVVAR); \
cd testsuite; \ cd testsuite; \
EXPECT=${EXPECT} ; export EXPECT ; \ EXPECT=${EXPECT} ; export EXPECT ; \
if [ -f $${rootme}/../expect/expect ] ; then \ if [ -f $${rootme}/../expect/expect ] ; then \
@ -334,32 +334,29 @@ config-stamp: Makefile conf
# Compiling object files from source files. # Compiling object files from source files.
TARG_CPU_DEP_a29k = TARG_CPU_DEP_a29k =
TARG_CPU_DEP_alpha = $(srcdir)/config/alpha-opcode.h TARG_CPU_DEP_alpha = $(srcdir)/../include/opcode/alpha.h subsegs.h
# start-sanitize-arc # start-sanitize-arc
TARG_CPU_DEP_arc = $(srcdir)/../include/opcode/arc.h TARG_CPU_DEP_arc = $(srcdir)/../include/opcode/arc.h subsegs.h
# end-sanitize-arc # end-sanitize-arc
TARG_CPU_DEP_arm = TARG_CPU_DEP_arm = subsegs.h
TARG_CPU_DEP_generic = TARG_CPU_DEP_generic =
TARG_CPU_DEP_h8300 = $(srcdir)/../include/opcode/h8300.h TARG_CPU_DEP_h8300 = $(srcdir)/../include/opcode/h8300.h
TARG_CPU_DEP_h8500 = $(srcdir)/../opcodes/h8500-opc.h TARG_CPU_DEP_h8500 = $(srcdir)/../opcodes/h8500-opc.h subsegs.h
TARG_CPU_DEP_hppa = TARG_CPU_DEP_hppa = subsegs.h
TARG_CPU_DEP_i386 = $(srcdir)/../include/opcode/i386.h TARG_CPU_DEP_i386 = $(srcdir)/../include/opcode/i386.h subsegs.h
TARG_CPU_DEP_i860 = TARG_CPU_DEP_i860 =
TARG_CPU_DEP_i960 = TARG_CPU_DEP_i960 =
TARG_CPU_DEP_m68k = $(srcdir)/../include/opcode/m68k.h \ TARG_CPU_DEP_m68k = $(srcdir)/../include/opcode/m68k.h \
$(srcdir)/config/m68k-parse.h subsegs.h $(srcdir)/config/m68k-parse.h subsegs.h
TARG_CPU_DEP_m88k = $(srcdir)/config/m88k-opcode.h TARG_CPU_DEP_m88k = $(srcdir)/config/m88k-opcode.h subsegs.h
TARG_CPU_DEP_mips = $(srcdir)/../include/opcode/mips.h TARG_CPU_DEP_mips = $(srcdir)/../include/opcode/mips.h subsegs.h
TARG_CPU_DEP_ns32k = TARG_CPU_DEP_ns32k =
TARG_CPU_DEP_ppc = TARG_CPU_DEP_ppc = subsegs.h
# start-sanitize-rce TARG_CPU_DEP_sh = $(srcdir)/../opcodes/sh-opc.h subsegs.h
TARG_CPU_DEP_rce = $(srcdir)/../opcodes/rce-opc.h TARG_CPU_DEP_sparc = subsegs.h
# end-sanitize-rce
TARG_CPU_DEP_sh = $(srcdir)/../opcodes/sh-opc.h
TARG_CPU_DEP_sparc =
TARG_CPU_DEP_tahoe = TARG_CPU_DEP_tahoe =
TARG_CPU_DEP_vax = TARG_CPU_DEP_vax =
TARG_CPU_DEP_w65 = $(srcdir)/../opcodes/w65-opc.h TARG_CPU_DEP_w65 = $(srcdir)/../opcodes/w65-opc.h subsegs.h
TARG_CPU_DEP_z8k = $(srcdir)/../opcodes/z8k-opc.h TARG_CPU_DEP_z8k = $(srcdir)/../opcodes/z8k-opc.h
gasp.o : gasp.c sb.h macro.h config.h gasp.o : gasp.c sb.h macro.h config.h
@ -455,13 +452,12 @@ install:
srcroot=`cd $(srcroot); pwd`; export srcroot; \ srcroot=`cd $(srcroot); pwd`; export srcroot; \
$(INSTALL_XFORM) as.new $(bindir)/as; \ $(INSTALL_XFORM) as.new $(bindir)/as; \
$(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \ $(INSTALL_XFORM1) $(srcdir)/doc/as.1 $(man1dir)/as.1; \
test -d $(tooldir) || mkdir $(tooldir); \
test -d $(tooldir)/bin || mkdir $(tooldir)/bin; \
n=`echo as | sed '$(program_transform_name)'`; \ n=`echo as | sed '$(program_transform_name)'`; \
if [ -d $(tooldir) ]; then \ rm -f $(tooldir)/bin/as; \
if [ -d $(tooldir)/bin ] ; then true ; else mkdir $(tooldir)/bin ; fi; \ ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
rm -f $(tooldir)/bin/as; \ || $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as
ln $(bindir)/$$n $(tooldir)/bin/as >/dev/null 2>/dev/null \
|| $(INSTALL_PROGRAM) as.new $(tooldir)/bin/as; \
else true; fi
srcroot=`cd $(srcroot); pwd`; export srcroot; \ srcroot=`cd $(srcroot); pwd`; export srcroot; \
$(INSTALL_XFORM) gasp.new $(bindir)/gasp $(INSTALL_XFORM) gasp.new $(bindir)/gasp

View File

@ -4,7 +4,7 @@ dnl And be careful when changing it! If you must add tests with square
dnl brackets, be sure changequote invocations surround it. dnl brackets, be sure changequote invocations surround it.
dnl dnl
dnl dnl
AC_PREREQ(2.3)dnl We only need 2.0, but pre-2.3 loses on some AIX version. AC_PREREQ(2.5)dnl v2.5 needed for --bindir et al
AC_INIT(as.h)dnl AC_INIT(as.h)dnl
dnl dnl
user_bfd_gas= user_bfd_gas=
@ -154,6 +154,7 @@ changequote([,])dnl
fmt=coff targ=i386coff ;; fmt=coff targ=i386coff ;;
i386-*-vsta) fmt=aout ;; i386-*-vsta) fmt=aout ;;
i386-*-go32) fmt=coff targ=i386coff ;; i386-*-go32) fmt=coff targ=i386coff ;;
i386-*-rtems*) fmt=coff targ=i386coff ;;
i386-*-gnu*) fmt=elf ;; i386-*-gnu*) fmt=elf ;;
i386-*-mach*) i386-*-mach*)
fmt=aout em=mach bfd_gas=yes ;; fmt=aout em=mach bfd_gas=yes ;;
@ -164,6 +165,7 @@ changequote([,])dnl
i386-*-*nt) fmt=coff targ=i386coff em=pe ;; i386-*-*nt) fmt=coff targ=i386coff em=pe ;;
i960-*-bout) fmt=bout ;; i960-*-bout) fmt=bout ;;
i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;; i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;;
i960-*-rtems*) fmt=coff em=ic960 targ=ic960coff ;;
i960-*-nindy*) fmt=bout ;; i960-*-nindy*) fmt=bout ;;
i960-*-vxworks4*) fmt=bout ;; i960-*-vxworks4*) fmt=bout ;;
i960-*-vxworks5.0) fmt=bout ;; i960-*-vxworks5.0) fmt=bout ;;
@ -177,7 +179,7 @@ changequote([,])dnl
m68k-apollo-*) fmt=coff targ=apollo em=apollo ;; m68k-apollo-*) fmt=coff targ=apollo em=apollo ;;
m68k-*-sysv4 | m68k-*-elf) # must be before -sysv* m68k-*-sysv4 | m68k-*-elf) # must be before -sysv*
fmt=elf ;; fmt=elf ;;
m68k-*-coff | m68k-*-sysv*) m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
fmt=coff targ=m68kcoff ;; fmt=coff targ=m68kcoff ;;
m68k-*-hpux*) fmt=hp300 em=hp300 ;; m68k-*-hpux*) fmt=hp300 em=hp300 ;;
m68k-*-linux*aout*) fmt=aout em=linux ;; m68k-*-linux*aout*) fmt=aout em=linux ;;
@ -247,6 +249,13 @@ changequote([,])dnl
*) targ=ppc-sol ;; *) targ=ppc-sol ;;
esac esac
;; ;;
ppc-*-rtems*)
fmt=elf
case "$endian" in
big) targ=ppc-big ;;
*) targ=ppc-lit ;;
esac
;;
ppc-*-macos* | ppc-*-mpw*) ppc-*-macos* | ppc-*-mpw*)
fmt=coff em=macos ;; fmt=coff em=macos ;;
ppc-*-netware*) fmt=elf em=ppcnw ;; ppc-*-netware*) fmt=elf em=ppcnw ;;
@ -256,6 +265,7 @@ changequote([,])dnl
ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;; ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;; ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
sparc-*-rtems*) fmt=aout ;;
sparc-*-sunos4*) fmt=aout em=sun3 ;; sparc-*-sunos4*) fmt=aout em=sun3 ;;
sparc-*-aout | sparc*-*-vxworks*) sparc-*-aout | sparc*-*-vxworks*)
fmt=aout ;; fmt=aout ;;
@ -528,42 +538,66 @@ esac
# do we need the opcodes library? # do we need the opcodes library?
case "${need_opcodes}" in case "${need_opcodes}" in
yes) yes)
OPCODES_DEP=../opcodes/libopcodes.a OPCODES_DEP=../opcodes/libopcodes.a
OPCODES_LIB='-L../opcodes -lopcodes' OPCODES_LIB='-L../opcodes -lopcodes'
# We need to handle some special cases if opcodes was built shared. # We need to handle some special cases for shared libraries.
case "${host}" in
*-*-sunos*)
# On SunOS, we must link against the name we are going to install,
# not -lbfd, since SunOS does not support SONAME.
if test "${shared_opcodes}" = "true"; then if test "${shared_opcodes}" = "true"; then
case "${host}" in
*-*-sunos*)
# On SunOS, we must link against the name we are going to install,
# not -lbfd, since SunOS does not support SONAME.
OPCODES_LIB='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`' OPCODES_LIB='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
;;
esac
fi fi
;; ;;
alpha*-*-osf*)
# On Alpha OSF/1, the native linker searches all the -L
# directories for any LIB.so files, and only then searches for any
# LIB.a files. That means that if there is an installed
# libbfd.so, but this build is not done with --enable-shared, the
# link will wind up being against the install libbfd.so rather
# than the newly built libbfd. To avoid this, we must explicitly
# link against libbfd.a when --enable-shared is not used.
if test "${shared_opcodes}" != "true"; then
OPCODES_LIB='../opcodes/libopcodes.a'
fi
;;
esac
;;
esac esac
AC_SUBST(OPCODES_DEP) AC_SUBST(OPCODES_DEP)
AC_SUBST(OPCODES_LIB) AC_SUBST(OPCODES_LIB)
case "${need_bfd}" in case "${need_bfd}" in
yes) yes)
BFDDEP=../bfd/libbfd.a BFDDEP=../bfd/libbfd.a
BFDLIB='-L../bfd -lbfd' BFDLIB='-L../bfd -lbfd'
ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h" ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
# We need to handle some special cases if BFD was built shared. # We need to handle some special cases for shared libraries
case "${host}" in
*-*-sunos*)
# On SunOS, we must link against the name we are going to install,
# not -lbfd, since SunOS does not support SONAME.
if test "${shared_bfd}" = "true"; then if test "${shared_bfd}" = "true"; then
case "${host}" in BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
*-*-sunos*)
# On SunOS, we must link against the name we are going to install,
# not -lbfd, since SunOS does not support SONAME.
BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
;;
esac
fi fi
;; ;;
alpha*-*-osf*)
# On Alpha OSF/1, the native linker searches all the -L
# directories for any LIB.so files, and only then searches for any
# LIB.a files. That means that if there is an installed
# libbfd.so, but this build is not done with --enable-shared, the
# link will wind up being against the install libbfd.so rather
# than the newly built libbfd. To avoid this, we must explicitly
# link against libbfd.a when --enable-shared is not used.
if test "${shared_bfd}" != "true"; then
BFDLIB='../bfd/libbfd.a'
fi
;;
esac
;;
esac esac
AC_SUBST(BFDDEP) AC_SUBST(BFDDEP)
AC_SUBST(BFDLIB) AC_SUBST(BFDLIB)