* Makefile.am: New file, based on old Makefile.in.
* acinclude.m4: New file, from old aclocal.m4. * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove shared library handling; now handled by libtool. Replace AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC, AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and AM_EXEEXT. Replace AC_PROG_INSTALL with AM_PROG_INSTALL. Remove stamp-h handling in AC_OUTPUT. * acconfig.h: Mention PACKAGE and VERSION. * stamp-h.in: New file. * Makefile.in: Now built with automake. * aclocal.m4: Now built with aclocal. * config.in, configure: Rebuild.
This commit is contained in:
parent
1daed53f64
commit
d467c30d18
|
@ -24,10 +24,12 @@ Do-first:
|
||||||
Things-to-keep:
|
Things-to-keep:
|
||||||
|
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
Makefile.am
|
||||||
Makefile.in
|
Makefile.in
|
||||||
NEWS
|
NEWS
|
||||||
README
|
README
|
||||||
acconfig.h
|
acconfig.h
|
||||||
|
acinclude.m4
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
addr2line.1
|
addr2line.1
|
||||||
addr2line.c
|
addr2line.c
|
||||||
|
@ -94,6 +96,7 @@ size.1
|
||||||
size.c
|
size.c
|
||||||
srconv.c
|
srconv.c
|
||||||
stabs.c
|
stabs.c
|
||||||
|
stamp-h.in
|
||||||
strings.1
|
strings.1
|
||||||
strings.c
|
strings.c
|
||||||
strip.1
|
strip.1
|
||||||
|
|
|
@ -1,5 +1,19 @@
|
||||||
Thu Jul 31 11:51:35 1997 Ian Lance Taylor <ian@cygnus.com>
|
Thu Jul 31 11:51:35 1997 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* Makefile.am: New file, based on old Makefile.in.
|
||||||
|
* acinclude.m4: New file, from old aclocal.m4.
|
||||||
|
* configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL. Remove
|
||||||
|
shared library handling; now handled by libtool. Replace
|
||||||
|
AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AC_PROG_YACC,
|
||||||
|
AC_PROG_LEX, AC_DECL_YYTEST, AM_MAINTAINER_MODE, AM_CYGWIN32, and
|
||||||
|
AM_EXEEXT. Replace AC_PROG_INSTALL with AM_PROG_INSTALL. Remove
|
||||||
|
stamp-h handling in AC_OUTPUT.
|
||||||
|
* acconfig.h: Mention PACKAGE and VERSION.
|
||||||
|
* stamp-h.in: New file.
|
||||||
|
* Makefile.in: Now built with automake.
|
||||||
|
* aclocal.m4: Now built with aclocal.
|
||||||
|
* config.in, configure: Rebuild.
|
||||||
|
|
||||||
From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
|
From Ton van Overbeek <tvoverbe@wk.estec.esa.nl>:
|
||||||
* rcparse.y (dialog): Default menu and class to be named.
|
* rcparse.y (dialog): Default menu and class to be named.
|
||||||
(styles): If FONT is seen, set DS_SETFONT in dialog style.
|
(styles): If FONT is seen, set DS_SETFONT in dialog style.
|
||||||
|
|
|
@ -0,0 +1,433 @@
|
||||||
|
## Process this file with automake to generate Makefile.in
|
||||||
|
|
||||||
|
AUTOMAKE_OPTIONS = dejagnu
|
||||||
|
|
||||||
|
tooldir = $(exec_prefix)/$(target_alias)
|
||||||
|
|
||||||
|
CC_FOR_BUILD = @CC_FOR_BUILD@
|
||||||
|
|
||||||
|
YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo bison -y ; fi`
|
||||||
|
YFLAGS = -d
|
||||||
|
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
|
||||||
|
|
||||||
|
# these two are almost the same program
|
||||||
|
AR_PROG=ar
|
||||||
|
RANLIB_PROG=ranlib
|
||||||
|
|
||||||
|
# objcopy and strip should be the same program
|
||||||
|
OBJCOPY_PROG=objcopy
|
||||||
|
STRIP_PROG=strip.new
|
||||||
|
|
||||||
|
STRINGS_PROG=strings
|
||||||
|
|
||||||
|
# These should all be the same program too.
|
||||||
|
SIZE_PROG=size
|
||||||
|
NM_PROG=nm.new
|
||||||
|
OBJDUMP_PROG=objdump
|
||||||
|
|
||||||
|
# This is the demangler, as a standalone program.
|
||||||
|
# Note: This one is used as the installed name too, unlike the above.
|
||||||
|
DEMANGLER_PROG=c++filt
|
||||||
|
|
||||||
|
ADDR2LINE_PROG=addr2line
|
||||||
|
|
||||||
|
NLMCONV_PROG=nlmconv
|
||||||
|
DLLTOOL_PROG=dlltool
|
||||||
|
WINDRES_PROG=windres
|
||||||
|
|
||||||
|
SRCONV_PROG=srconv sysdump coffdump
|
||||||
|
|
||||||
|
man_MANS = ar.1 nm.1 objdump.1 ranlib.1 size.1 strings.1 strip.1 objcopy.1 \
|
||||||
|
addr2line.1 nlmconv.1 $(DEMANGLER_PROG).1
|
||||||
|
|
||||||
|
PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) $(ADDR2LINE_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@
|
||||||
|
|
||||||
|
bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) \
|
||||||
|
$(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) $(ADDR2LINE_PROG) \
|
||||||
|
@BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@
|
||||||
|
|
||||||
|
## We need a special rule to install the programs which are built with .new
|
||||||
|
noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG)
|
||||||
|
|
||||||
|
EXTRA_PROGRAMS = $(NLMCONV_PROG) $(SRCONV_PROG) $(DLLTOOL_PROG) $(WINDRES_PROG)
|
||||||
|
|
||||||
|
# Stuff that goes in tooldir/ if appropriate
|
||||||
|
TOOL_PROGS = nm.new strip.new ar ranlib $(DLLTOOL_PROG)
|
||||||
|
|
||||||
|
BASEDIR = $(srcdir)/..
|
||||||
|
BFDDIR = $(BASEDIR)/bfd
|
||||||
|
INCDIR = $(BASEDIR)/include
|
||||||
|
|
||||||
|
DEP = mkdep
|
||||||
|
|
||||||
|
INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@
|
||||||
|
|
||||||
|
HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \
|
||||||
|
windres.h
|
||||||
|
|
||||||
|
GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h
|
||||||
|
|
||||||
|
CFILES = addr2line.c ar.c arsup.c bucomm.c coffdump.c coffgrok.c debug.c \
|
||||||
|
dlltool.c filemode.c ieee.c is-ranlib.c is-strip.c maybe-ranlib.c \
|
||||||
|
maybe-strip.c nlmconv.c nm.c not-ranlib.c not-strip.c \
|
||||||
|
objcopy.c objdump.c prdbg.c rdcoff.c rddbg.c size.c srconv.c \
|
||||||
|
stabs.c strings.c sysdump.c version.c wrstabs.c \
|
||||||
|
windres.c resrc.c rescoff.c resbin.c
|
||||||
|
|
||||||
|
GENERATED_CFILES = \
|
||||||
|
underscore.c arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
|
||||||
|
defparse.c deflex.c nlmheader.c rcparse.c rclex.c
|
||||||
|
|
||||||
|
DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
|
||||||
|
WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
|
||||||
|
|
||||||
|
# Code shared by all the binutils.
|
||||||
|
BULIBS = bucomm.c version.c filemode.c
|
||||||
|
|
||||||
|
BFDLIB = ../bfd/libbfd.la
|
||||||
|
|
||||||
|
OPCODES = ../opcodes/libopcodes.la
|
||||||
|
|
||||||
|
LIBIBERTY = ../libiberty/libiberty.a
|
||||||
|
|
||||||
|
EXPECT = `if [ -f $$r/../expect/expect ] ; then \
|
||||||
|
echo $$r/../expect/expect ; \
|
||||||
|
else echo expect ; fi`
|
||||||
|
RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \
|
||||||
|
echo ${srcdir}/../dejagnu/runtest ; \
|
||||||
|
else echo runtest ; fi`
|
||||||
|
|
||||||
|
CC_FOR_TARGET = ` \
|
||||||
|
if [ -f $$r/../gcc/xgcc ] ; then \
|
||||||
|
if [ -f $$r/../newlib/Makefile ] ; then \
|
||||||
|
echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
|
||||||
|
else \
|
||||||
|
echo $$r/../gcc/xgcc -B$$r/../gcc/; \
|
||||||
|
fi; \
|
||||||
|
else \
|
||||||
|
if [ "@host@" = "@target@" ] ; then \
|
||||||
|
echo $(CC); \
|
||||||
|
else \
|
||||||
|
echo gcc | sed '$(program_transform_name)'; \
|
||||||
|
fi; \
|
||||||
|
fi`
|
||||||
|
|
||||||
|
check-DEJAGNU: site.exp
|
||||||
|
srcdir=`cd $(srcdir) && pwd`; export srcdir; \
|
||||||
|
EXPECT=$(EXPECT); export EXPECT; \
|
||||||
|
if [ -f $(top_builddir)/../expect/expect ]; then \
|
||||||
|
TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
|
||||||
|
export TCL_LIBRARY; \
|
||||||
|
fi; \
|
||||||
|
runtest=$(RUNTEST); \
|
||||||
|
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
|
||||||
|
$$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
|
||||||
|
CC_FOR_TARGET="$(CC_FOR_TARGET)" \
|
||||||
|
CFLAGS_FOR_TARGET="$(CFLAGS)" $(RUNTESTFLAGS); \
|
||||||
|
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
|
||||||
|
fi
|
||||||
|
|
||||||
|
installcheck:
|
||||||
|
/bin/sh $(srcdir)/sanity.sh $(bindir)
|
||||||
|
|
||||||
|
info_TEXINFOS = binutils.texi
|
||||||
|
|
||||||
|
LDADD = $(BFDLIB) $(LIBIBERTY)
|
||||||
|
|
||||||
|
size_SOURCES = size.c $(BULIBS)
|
||||||
|
|
||||||
|
objcopy_SOURCES = objcopy.c not-strip.c $(WRITE_DEBUG_SRCS) $(BULIBS)
|
||||||
|
|
||||||
|
strings_SOURCES = strings.c $(BULIBS)
|
||||||
|
|
||||||
|
strip_new_SOURCES = objcopy.c is-strip.c $(WRITE_DEBUG_SRCS) $(BULIBS)
|
||||||
|
|
||||||
|
nm_new_SOURCES = nm.c $(BULIBS)
|
||||||
|
|
||||||
|
objdump_SOURCES = objdump.c prdbg.c $(DEBUG_SRCS) $(BULIBS)
|
||||||
|
objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY)
|
||||||
|
|
||||||
|
underscore.c: stamp-under ; @true
|
||||||
|
|
||||||
|
stamp-under: Makefile
|
||||||
|
echo '/*WARNING: This file is automatically generated!*/' >underscore.t
|
||||||
|
echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t
|
||||||
|
$(SHELL) $(srcdir)/../move-if-change underscore.t underscore.c
|
||||||
|
touch stamp-under
|
||||||
|
|
||||||
|
version.o: version.c Makefile
|
||||||
|
$(COMPILE) -c -DVERSION='"$(VERSION)"' $(srcdir)/version.c
|
||||||
|
|
||||||
|
bucomm.o: bucomm.c Makefile
|
||||||
|
$(COMPILE) -c -DTARGET='"@target@"' $(srcdir)/bucomm.c
|
||||||
|
|
||||||
|
cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h
|
||||||
|
$(COMPILE) -c -DMAIN -DVERSION='"$(VERSION)"' $(BASEDIR)/libiberty/cplus-dem.c
|
||||||
|
|
||||||
|
c__filt_SOURCES =
|
||||||
|
c__filt_LDADD = cplus-dem.o underscore.o $(LIBIBERTY)
|
||||||
|
|
||||||
|
ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c $(BULIBS)
|
||||||
|
ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@
|
||||||
|
|
||||||
|
ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c $(BULIBS)
|
||||||
|
ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@
|
||||||
|
|
||||||
|
addr2line_SOURCES = addr2line.c $(BULIBS)
|
||||||
|
|
||||||
|
# The following is commented out for the convertion to automake.
|
||||||
|
# This rule creates a single binary that switches between ar and ranlib
|
||||||
|
# by looking at argv[0]. Use this kludge to save some disk space.
|
||||||
|
# However, you have to install things by hand.
|
||||||
|
# (That is after 'make install', replace the installed ranlib by a link to ar.)
|
||||||
|
# Alternatively, you can install ranlib.sh as ranlib.
|
||||||
|
# ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
|
||||||
|
# $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
|
||||||
|
# -rm -f $(RANLIB_PROG)
|
||||||
|
# -ln $(AR_PROG) $(RANLIB_PROG)
|
||||||
|
#
|
||||||
|
# objcopy and strip in one binary that uses argv[0] to decide its action.
|
||||||
|
#
|
||||||
|
#objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
|
||||||
|
# $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
|
||||||
|
# -rm -f $(STRIP_PROG)
|
||||||
|
# -ln $(OBJCOPY_PROG) $(STRIP_PROG)
|
||||||
|
|
||||||
|
sysroff.c: sysinfo sysroff.info
|
||||||
|
./sysinfo -c <$(srcdir)/sysroff.info >sysroff.c
|
||||||
|
./sysinfo -i <$(srcdir)/sysroff.info >>sysroff.c
|
||||||
|
./sysinfo -g <$(srcdir)/sysroff.info >>sysroff.c
|
||||||
|
|
||||||
|
sysroff.h: sysinfo sysroff.info
|
||||||
|
./sysinfo -d <$(srcdir)/sysroff.info >sysroff.h
|
||||||
|
|
||||||
|
sysinfo: sysinfo.o syslex.o
|
||||||
|
$(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o
|
||||||
|
|
||||||
|
syslex.o: syslex.c sysinfo.h
|
||||||
|
if [ -r syslex.c ]; then \
|
||||||
|
$(CC_FOR_BUILD) -c -I. $(CFLAGS) syslex.c ; \
|
||||||
|
else \
|
||||||
|
$(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\
|
||||||
|
fi
|
||||||
|
|
||||||
|
sysinfo.o: sysinfo.c
|
||||||
|
if [ -r sysinfo.c ]; then \
|
||||||
|
$(CC_FOR_BUILD) -c -I. $(CFLAGS) sysinfo.c ; \
|
||||||
|
else \
|
||||||
|
$(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
|
||||||
|
|
||||||
|
dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
|
||||||
|
dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@
|
||||||
|
|
||||||
|
dlltool.o:dlltool.c
|
||||||
|
$(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
|
||||||
|
|
||||||
|
coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
|
||||||
|
|
||||||
|
sysdump_SOURCES = sysdump.c $(BULIBS)
|
||||||
|
|
||||||
|
# coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
|
||||||
|
# scripts, since they are only included conditionally.
|
||||||
|
nlmconv.o: nlmconv.c $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
|
||||||
|
ldname=`echo ld | sed '$(program_transform_name)'`; \
|
||||||
|
$(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
|
||||||
|
|
||||||
|
nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
|
||||||
|
|
||||||
|
windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l
|
||||||
|
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@
|
||||||
|
|
||||||
|
# Targets to rebuild dependencies in this Makefile.
|
||||||
|
# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
|
||||||
|
.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
|
||||||
|
rm -f .dep1
|
||||||
|
$(MAKE) DEP=$(DEP) .dep1
|
||||||
|
sed -f dep.sed <.dep1 >.dep
|
||||||
|
|
||||||
|
# This rule really wants a mkdep that runs "gcc -MM".
|
||||||
|
.dep1: $(CFILES) $(GENERATED_CFILES)
|
||||||
|
rm -f .dep2
|
||||||
|
echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
|
||||||
|
$(DEP) -f .dep2 $(ALL_CFLAGS) $?
|
||||||
|
$(SHELL) $(srcdir)/../move-if-change .dep2 .dep1
|
||||||
|
|
||||||
|
dep.sed: dep-in.sed config.status
|
||||||
|
sed <$(srcdir)/dep-in.sed >dep.sed \
|
||||||
|
-e 's!@INCDIR@!$(INCDIR)!' \
|
||||||
|
-e 's!@BFDDIR@!$(BFDDIR)!' \
|
||||||
|
-e 's!@SRCDIR@!$(srcdir)!'
|
||||||
|
|
||||||
|
dep: .dep
|
||||||
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
|
||||||
|
cat .dep >> tmp-Makefile
|
||||||
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
|
||||||
|
|
||||||
|
dep-in: .dep
|
||||||
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
|
||||||
|
cat .dep >> tmp-Makefile.in
|
||||||
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
|
||||||
|
|
||||||
|
dep-am: .dep
|
||||||
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
|
||||||
|
cat .dep >> tmp-Makefile.am
|
||||||
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
|
||||||
|
|
||||||
|
.PHONY: dep dep-in dep-am
|
||||||
|
|
||||||
|
###
|
||||||
|
# DOCUMENTATION TARGETS
|
||||||
|
config.texi: Makefile
|
||||||
|
rm -f config.texi
|
||||||
|
echo '@set VERSION $(VERSION)' > config.texi
|
||||||
|
|
||||||
|
binutils.dvi: $(srcdir)/binutils.texi config.texi
|
||||||
|
|
||||||
|
binutils.info: $(srcdir)/binutils.texi config.texi
|
||||||
|
|
||||||
|
$(DEMANGLER_PROG).1: cxxfilt.man Makefile
|
||||||
|
sed -e 's/@PROGRAM@/$(DEMANGLER_PROG)/' < $(srcdir)/cxxfilt.man \
|
||||||
|
> $(DEMANGLER_PROG).1
|
||||||
|
|
||||||
|
CLEANFILES = dep.sed .dep .dep1
|
||||||
|
|
||||||
|
.PHONY: install-exec-local
|
||||||
|
|
||||||
|
install-exec-local: $(bin_PROGRAMS) $(noinst_PROGRAMS)
|
||||||
|
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
|
||||||
|
if test -f $$p; then \
|
||||||
|
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT)"; \
|
||||||
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT); \
|
||||||
|
else :; fi; \
|
||||||
|
done
|
||||||
|
for i in $(TOOL_PROGS); do \
|
||||||
|
if [ -f $$i ]; then \
|
||||||
|
j=`echo $$i | sed -e 's/.new//'`; \
|
||||||
|
rm -f $(tooldir)/bin/$$j; \
|
||||||
|
k=`echo $$j | sed '$(transform)'`; \
|
||||||
|
ln $(bindir)/$$k $(tooldir)/bin/$$j >/dev/null 2>/dev/null \
|
||||||
|
|| $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j; \
|
||||||
|
else true; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
|
||||||
|
# What appears below is generated by a hacked mkdep using gcc -MM.
|
||||||
|
|
||||||
|
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
||||||
|
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
||||||
|
|
||||||
|
addr2line.o: addr2line.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/getopt.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h
|
||||||
|
ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
||||||
|
$(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
$(INCDIR)/aout/ar.h $(BFDDIR)/libbfd.h arsup.h
|
||||||
|
arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
arsup.h $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h
|
||||||
|
bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h
|
||||||
|
coffdump.o: coffdump.c coffgrok.h bucomm.h config.h \
|
||||||
|
$(INCDIR)/fopen-same.h
|
||||||
|
coffgrok.o: coffgrok.c bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
$(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \
|
||||||
|
coffgrok.h
|
||||||
|
debug.o: debug.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
debug.h
|
||||||
|
dlltool.o: dlltool.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
$(INCDIR)/getopt.h $(INCDIR)/demangle.h dlltool.h
|
||||||
|
filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h
|
||||||
|
ieee.o: ieee.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/ieee.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
debug.h budbg.h
|
||||||
|
is-ranlib.o: is-ranlib.c
|
||||||
|
is-strip.o: is-strip.c
|
||||||
|
maybe-ranlib.o: maybe-ranlib.c
|
||||||
|
maybe-strip.o: maybe-strip.c
|
||||||
|
nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
$(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
|
||||||
|
$(INCDIR)/nlm/external.h nlmconv.h
|
||||||
|
nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/progress.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/getopt.h \
|
||||||
|
$(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ranlib.h \
|
||||||
|
$(INCDIR)/demangle.h $(INCDIR)/libiberty.h
|
||||||
|
not-ranlib.o: not-ranlib.c
|
||||||
|
not-strip.o: not-strip.c
|
||||||
|
objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
$(INCDIR)/getopt.h $(INCDIR)/libiberty.h budbg.h
|
||||||
|
objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/getopt.h $(INCDIR)/progress.h bucomm.h config.h \
|
||||||
|
$(INCDIR)/fopen-same.h $(INCDIR)/dis-asm.h $(INCDIR)/libiberty.h \
|
||||||
|
$(INCDIR)/demangle.h debug.h budbg.h $(INCDIR)/aout/aout64.h
|
||||||
|
prdbg.o: prdbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
debug.h budbg.h
|
||||||
|
rdcoff.o: rdcoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/coff/internal.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
$(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \
|
||||||
|
budbg.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
|
||||||
|
rddbg.o: rddbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
debug.h budbg.h
|
||||||
|
size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h
|
||||||
|
srconv.o: srconv.c bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
sysroff.h coffgrok.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
|
||||||
|
$(INCDIR)/bfdlink.h sysroff.c
|
||||||
|
stabs.o: stabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
$(INCDIR)/demangle.h debug.h budbg.h $(INCDIR)/aout/aout64.h \
|
||||||
|
$(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
|
||||||
|
strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h
|
||||||
|
sysdump.o: sysdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h sysroff.h \
|
||||||
|
sysroff.c
|
||||||
|
version.o: version.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h
|
||||||
|
wrstabs.o: wrstabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
debug.h budbg.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
|
||||||
|
$(INCDIR)/aout/stab.def
|
||||||
|
windres.o: windres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
$(INCDIR)/getopt.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
||||||
|
$(INCDIR)/libiberty.h $(INCDIR)/obstack.h windres.h
|
||||||
|
resrc.o: resrc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
windres.h
|
||||||
|
rescoff.o: rescoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
windres.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
|
||||||
|
$(INCDIR)/bfdlink.h
|
||||||
|
resbin.o: resbin.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
windres.h
|
||||||
|
underscore.o: underscore.c
|
||||||
|
arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h arsup.h
|
||||||
|
arlex.o: arlex.c $(INCDIR)/libiberty.h arparse.h
|
||||||
|
sysroff.o: sysroff.c
|
||||||
|
sysinfo.o: sysinfo.c
|
||||||
|
syslex.o: syslex.c sysinfo.h
|
||||||
|
defparse.o: defparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h dlltool.h
|
||||||
|
deflex.o: deflex.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
||||||
|
defparse.h dlltool.h
|
||||||
|
nlmheader.o: nlmheader.c ../bfd/bfd.h bucomm.h config.h \
|
||||||
|
$(INCDIR)/fopen-same.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
|
||||||
|
nlmconv.h
|
||||||
|
rcparse.o: rcparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
windres.h
|
||||||
|
rclex.o: rclex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
||||||
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
||||||
|
windres.h rcparse.h
|
||||||
|
|
||||||
|
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
1293
binutils/Makefile.in
1293
binutils/Makefile.in
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,10 @@
|
||||||
|
|
||||||
|
/* Name of package. */
|
||||||
|
#undef PACKAGE
|
||||||
|
|
||||||
|
/* Version of package. */
|
||||||
|
#undef VERSION
|
||||||
|
|
||||||
/* Whether strstr must be declared even if <string.h> is included. */
|
/* Whether strstr must be declared even if <string.h> is included. */
|
||||||
#undef NEED_DECLARATION_STRSTR
|
#undef NEED_DECLARATION_STRSTR
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
sinclude(../bfd/acmacros.m4)
|
|
@ -0,0 +1,295 @@
|
||||||
|
dnl aclocal.m4 generated automatically by aclocal 1.2
|
||||||
|
|
||||||
|
sinclude(../bfd/acmacros.m4)
|
||||||
|
|
||||||
|
# Do all the work for Automake. This macro actually does too much --
|
||||||
|
# some checks are only needed if your package does certain things.
|
||||||
|
# But this isn't really a big deal.
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
dnl Usage:
|
||||||
|
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
|
||||||
|
|
||||||
|
AC_DEFUN(AM_INIT_AUTOMAKE,
|
||||||
|
[AC_REQUIRE([AM_PROG_INSTALL])
|
||||||
|
PACKAGE=[$1]
|
||||||
|
AC_SUBST(PACKAGE)
|
||||||
|
VERSION=[$2]
|
||||||
|
AC_SUBST(VERSION)
|
||||||
|
dnl test to see if srcdir already configured
|
||||||
|
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
|
||||||
|
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||||
|
fi
|
||||||
|
ifelse([$3],,
|
||||||
|
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
|
||||||
|
AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
|
||||||
|
AM_SANITY_CHECK
|
||||||
|
AC_ARG_PROGRAM
|
||||||
|
dnl FIXME This is truly gross.
|
||||||
|
missing_dir=`cd $ac_aux_dir && pwd`
|
||||||
|
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
|
||||||
|
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
|
||||||
|
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
|
||||||
|
AC_PROG_MAKE_SET])
|
||||||
|
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_PROG_INSTALL,
|
||||||
|
[AC_REQUIRE([AC_PROG_INSTALL])
|
||||||
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
|
||||||
|
AC_SUBST(INSTALL_SCRIPT)dnl
|
||||||
|
])
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check to make sure that the build environment is sane.
|
||||||
|
#
|
||||||
|
|
||||||
|
AC_DEFUN(AM_SANITY_CHECK,
|
||||||
|
[AC_MSG_CHECKING([whether build environment is sane])
|
||||||
|
# Just in case
|
||||||
|
sleep 1
|
||||||
|
echo timestamp > conftestfile
|
||||||
|
# Do `set' in a subshell so we don't clobber the current shell's
|
||||||
|
# arguments. Must try -L first in case configure is actually a
|
||||||
|
# symlink; some systems play weird games with the mod time of symlinks
|
||||||
|
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||||
|
# directory).
|
||||||
|
if (
|
||||||
|
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
|
||||||
|
if test "$@" = "X"; then
|
||||||
|
# -L didn't work.
|
||||||
|
set X `ls -t $srcdir/configure conftestfile`
|
||||||
|
fi
|
||||||
|
test "[$]2" = conftestfile
|
||||||
|
)
|
||||||
|
then
|
||||||
|
# Ok.
|
||||||
|
:
|
||||||
|
else
|
||||||
|
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||||
|
Check your system clock])
|
||||||
|
fi
|
||||||
|
rm -f conftest*
|
||||||
|
AC_MSG_RESULT(yes)])
|
||||||
|
|
||||||
|
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
|
||||||
|
dnl The program must properly implement --version.
|
||||||
|
AC_DEFUN(AM_MISSING_PROG,
|
||||||
|
[AC_MSG_CHECKING(for working $2)
|
||||||
|
# Run test in a subshell; some versions of sh will print an error if
|
||||||
|
# an executable is not found, even if stderr is redirected.
|
||||||
|
# Redirect stdin to placate older versions of autoconf. Sigh.
|
||||||
|
if ($2 --version) < /dev/null > /dev/null 2>&1; then
|
||||||
|
$1=$2
|
||||||
|
AC_MSG_RESULT(found)
|
||||||
|
else
|
||||||
|
$1="$3/missing $2"
|
||||||
|
AC_MSG_RESULT(missing)
|
||||||
|
fi
|
||||||
|
AC_SUBST($1)])
|
||||||
|
|
||||||
|
|
||||||
|
# serial 9 AM_PROG_LIBTOOL
|
||||||
|
AC_DEFUN(AM_PROG_LIBTOOL,
|
||||||
|
[AC_REQUIRE([AC_CANONICAL_HOST])
|
||||||
|
AC_REQUIRE([AC_PROG_CC])
|
||||||
|
AC_REQUIRE([AC_PROG_RANLIB])
|
||||||
|
AC_REQUIRE([AM_PROG_LD])
|
||||||
|
AC_REQUIRE([AC_PROG_LN_S])
|
||||||
|
|
||||||
|
# Always use our own libtool.
|
||||||
|
LIBTOOL='$(top_builddir)/libtool'
|
||||||
|
AC_SUBST(LIBTOOL)
|
||||||
|
|
||||||
|
dnl Allow the --disable-shared flag to stop us from building shared libs.
|
||||||
|
AC_ARG_ENABLE(shared,
|
||||||
|
[ --enable-shared build shared libraries [default=yes]],
|
||||||
|
test "$enableval" = no && libtool_shared=" --disable-shared",
|
||||||
|
libtool_shared=)
|
||||||
|
|
||||||
|
dnl Allow the --disable-static flag to stop us from building static libs.
|
||||||
|
AC_ARG_ENABLE(static,
|
||||||
|
[ --enable-static build static libraries [default=yes]],
|
||||||
|
test "$enableval" = no && libtool_static=" --disable-static",
|
||||||
|
libtool_static=)
|
||||||
|
|
||||||
|
libtool_flags="$libtool_shared$libtool_static"
|
||||||
|
test "$silent" = yes && libtool_flags="$libtool_flags --silent"
|
||||||
|
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
|
||||||
|
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
|
||||||
|
|
||||||
|
# Some flags need to be propagated to the compiler or linker for good
|
||||||
|
# libtool support.
|
||||||
|
[case "$host" in
|
||||||
|
*-*-irix6*)
|
||||||
|
for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
|
||||||
|
if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
|
||||||
|
LD="${LD-ld} $f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
|
||||||
|
*-*-sco3.2v5*)
|
||||||
|
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
|
||||||
|
CFLAGS="$CFLAGS -belf"
|
||||||
|
;;
|
||||||
|
esac]
|
||||||
|
|
||||||
|
# Actually configure libtool. ac_aux_dir is where install-sh is found.
|
||||||
|
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
|
||||||
|
LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
|
||||||
|
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
|
||||||
|
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|
||||||
|
|| AC_MSG_ERROR([libtool configure failed])
|
||||||
|
])
|
||||||
|
|
||||||
|
# AM_PROG_LD - find the path to the GNU or non-GNU linker
|
||||||
|
AC_DEFUN(AM_PROG_LD,
|
||||||
|
[AC_ARG_WITH(gnu-ld,
|
||||||
|
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
|
||||||
|
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
|
||||||
|
if test "$with_gnu_ld" = yes; then
|
||||||
|
AC_MSG_CHECKING([for GNU ld])
|
||||||
|
else
|
||||||
|
AC_MSG_CHECKING([for non-GNU ld])
|
||||||
|
fi
|
||||||
|
AC_CACHE_VAL(ac_cv_path_LD,
|
||||||
|
[case "$LD" in
|
||||||
|
/*)
|
||||||
|
ac_cv_path_LD="$LD" # Let the user override the test with a path.
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
|
||||||
|
for ac_dir in $PATH; do
|
||||||
|
test -z "$ac_dir" && ac_dir=.
|
||||||
|
if test -f "$ac_dir/ld"; then
|
||||||
|
ac_cv_path_LD="$ac_dir/ld"
|
||||||
|
# Check to see if the program is GNU ld. I'd rather use --version,
|
||||||
|
# but apparently some GNU ld's only accept -v.
|
||||||
|
# Break only if it was the GNU/non-GNU ld that we prefer.
|
||||||
|
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
|
||||||
|
test "$with_gnu_ld" = yes && break
|
||||||
|
else
|
||||||
|
test "$with_gnu_ld" != yes && break
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
IFS="$ac_save_ifs"
|
||||||
|
;;
|
||||||
|
esac])
|
||||||
|
LD="$ac_cv_path_LD"
|
||||||
|
if test -n "$LD"; then
|
||||||
|
AC_MSG_RESULT($LD)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
||||||
|
AC_SUBST(LD)
|
||||||
|
AM_PROG_LD_GNU
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN(AM_PROG_LD_GNU,
|
||||||
|
[AC_CACHE_CHECK([whether we are using GNU ld], ac_cv_prog_gnu_ld,
|
||||||
|
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
|
||||||
|
if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
|
||||||
|
ac_cv_prog_gnu_ld=yes
|
||||||
|
else
|
||||||
|
ac_cv_prog_gnu_ld=no
|
||||||
|
fi])
|
||||||
|
])
|
||||||
|
|
||||||
|
# Like AC_CONFIG_HEADER, but automatically create stamp file.
|
||||||
|
|
||||||
|
AC_DEFUN(AM_CONFIG_HEADER,
|
||||||
|
[AC_PREREQ([2.12])
|
||||||
|
AC_CONFIG_HEADER([$1])
|
||||||
|
dnl When config.status generates a header, we must update the stamp-h file.
|
||||||
|
dnl This file resides in the same directory as the config header
|
||||||
|
dnl that is generated. We must strip everything past the first ":",
|
||||||
|
dnl and everything past the last "/".
|
||||||
|
AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
|
||||||
|
ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
|
||||||
|
<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
|
||||||
|
<<am_indx=1
|
||||||
|
for am_file in <<$1>>; do
|
||||||
|
case " <<$>>CONFIG_HEADERS " in
|
||||||
|
*" <<$>>am_file "*<<)>>
|
||||||
|
echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
am_indx=`expr "<<$>>am_indx" + 1`
|
||||||
|
done<<>>dnl>>)
|
||||||
|
changequote([,]))])
|
||||||
|
|
||||||
|
# Add --enable-maintainer-mode option to configure.
|
||||||
|
# From Jim Meyering
|
||||||
|
|
||||||
|
# serial 1
|
||||||
|
|
||||||
|
AC_DEFUN(AM_MAINTAINER_MODE,
|
||||||
|
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||||
|
dnl maintainer-mode is disabled by default
|
||||||
|
AC_ARG_ENABLE(maintainer-mode,
|
||||||
|
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||||
|
(and sometimes confusing) to the casual installer],
|
||||||
|
USE_MAINTAINER_MODE=$enableval,
|
||||||
|
USE_MAINTAINER_MODE=no)
|
||||||
|
AC_MSG_RESULT($USE_MAINTAINER_MODE)
|
||||||
|
if test $USE_MAINTAINER_MODE = yes; then
|
||||||
|
MAINT=
|
||||||
|
else
|
||||||
|
MAINT='#M#'
|
||||||
|
fi
|
||||||
|
AC_SUBST(MAINT)dnl
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
# Check to see if we're running under Cygwin32, without using
|
||||||
|
# AC_CANONICAL_*. If so, set output variable CYGWIN32 to "yes".
|
||||||
|
# Otherwise set it to "no".
|
||||||
|
|
||||||
|
dnl AM_CYGWIN32()
|
||||||
|
dnl You might think we can do this by checking for a cygwin32-specific
|
||||||
|
dnl cpp define.
|
||||||
|
AC_DEFUN(AM_CYGWIN32,
|
||||||
|
[AC_CACHE_CHECK(for Cygwin32 environment, am_cv_cygwin32,
|
||||||
|
[AC_TRY_COMPILE(,[int main () { return __CYGWIN32__; }],
|
||||||
|
am_cv_cygwin32=yes, am_cv_cygwin32=no)
|
||||||
|
rm -f conftest*])
|
||||||
|
CYGWIN32=
|
||||||
|
test "$am_cv_cygwin32" = yes && CYGWIN32=yes])
|
||||||
|
|
||||||
|
# Check to see if we're running under Win32, without using
|
||||||
|
# AC_CANONICAL_*. If so, set output variable EXEEXT to ".exe".
|
||||||
|
# Otherwise set it to "".
|
||||||
|
|
||||||
|
dnl AM_EXEEXT()
|
||||||
|
dnl This knows we add .exe if we're building in the Cygwin32
|
||||||
|
dnl environment. But if we're not, then it compiles a test program
|
||||||
|
dnl to see if there is a suffix for executables.
|
||||||
|
AC_DEFUN(AM_EXEEXT,
|
||||||
|
dnl AC_REQUIRE([AC_PROG_CC])AC_REQUIRE([AM_CYGWIN32])
|
||||||
|
AC_MSG_CHECKING([for executable suffix])
|
||||||
|
[AC_CACHE_VAL(am_cv_exeext,
|
||||||
|
[if test "$CYGWIN32" = yes; then
|
||||||
|
am_cv_exeext=.exe
|
||||||
|
else
|
||||||
|
cat > am_c_test.c << 'EOF'
|
||||||
|
int main() {
|
||||||
|
/* Nothing needed here */
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
|
||||||
|
am_cv_exeext=`ls am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
|
||||||
|
rm -f am_c_test*])
|
||||||
|
test x"${am_cv_exeext}" = x && am_cv_exeext=no
|
||||||
|
fi
|
||||||
|
EXEEXT=""
|
||||||
|
test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
|
||||||
|
AC_MSG_RESULT(${am_cv_exeext})
|
||||||
|
AC_SUBST(EXEEXT)])
|
||||||
|
|
|
@ -1,5 +1,63 @@
|
||||||
/* config.in. Generated automatically from configure.in by autoheader. */
|
/* config.in. Generated automatically from configure.in by autoheader. */
|
||||||
|
|
||||||
|
/* Name of package. */
|
||||||
|
#undef PACKAGE
|
||||||
|
|
||||||
|
/* Version of package. */
|
||||||
|
#undef VERSION
|
||||||
|
|
||||||
|
/* Whether strstr must be declared even if <string.h> is included. */
|
||||||
|
#undef NEED_DECLARATION_STRSTR
|
||||||
|
|
||||||
|
/* Whether fprintf must be declared even if <stdio.h> is included. */
|
||||||
|
#undef NEED_DECLARATION_FPRINTF
|
||||||
|
|
||||||
|
/* Whether sbrk must be declared even if <unistd.h> is included. */
|
||||||
|
#undef NEED_DECLARATION_SBRK
|
||||||
|
|
||||||
|
/* Whether getenv must be declared even if <stdlib.h> is included. */
|
||||||
|
#undef NEED_DECLARATION_GETENV
|
||||||
|
|
||||||
|
/* Define if using alloca.c. */
|
||||||
|
#undef C_ALLOCA
|
||||||
|
|
||||||
|
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
|
||||||
|
This function is required for alloca.c support on those systems. */
|
||||||
|
#undef CRAY_STACKSEG_END
|
||||||
|
|
||||||
|
/* Define if you have alloca, as a function or macro. */
|
||||||
|
#undef HAVE_ALLOCA
|
||||||
|
|
||||||
|
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
|
||||||
|
#undef HAVE_ALLOCA_H
|
||||||
|
|
||||||
|
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
|
||||||
|
#undef HAVE_SYS_WAIT_H
|
||||||
|
|
||||||
|
/* Define if you have <vfork.h>. */
|
||||||
|
#undef HAVE_VFORK_H
|
||||||
|
|
||||||
|
/* Define to `int' if <sys/types.h> doesn't define. */
|
||||||
|
#undef pid_t
|
||||||
|
|
||||||
|
/* If using the C implementation of alloca, define if you know the
|
||||||
|
direction of stack growth for your system; otherwise it will be
|
||||||
|
automatically deduced at run-time.
|
||||||
|
STACK_DIRECTION > 0 => grows toward higher addresses
|
||||||
|
STACK_DIRECTION < 0 => grows toward lower addresses
|
||||||
|
STACK_DIRECTION = 0 => direction of growth unknown
|
||||||
|
*/
|
||||||
|
#undef STACK_DIRECTION
|
||||||
|
|
||||||
|
/* Define if you have the ANSI C header files. */
|
||||||
|
#undef STDC_HEADERS
|
||||||
|
|
||||||
|
/* Define vfork as fork if vfork does not work. */
|
||||||
|
#undef vfork
|
||||||
|
|
||||||
|
/* Define if lex declares yytext as a char * by default, not a char[]. */
|
||||||
|
#undef YYTEXT_POINTER
|
||||||
|
|
||||||
/* Is the type time_t defined in <time.h>? */
|
/* Is the type time_t defined in <time.h>? */
|
||||||
#undef HAVE_TIME_T_IN_TIME_H
|
#undef HAVE_TIME_T_IN_TIME_H
|
||||||
|
|
||||||
|
@ -9,9 +67,6 @@
|
||||||
/* Does <utime.h> define struct utimbuf? */
|
/* Does <utime.h> define struct utimbuf? */
|
||||||
#undef HAVE_GOOD_UTIME_H
|
#undef HAVE_GOOD_UTIME_H
|
||||||
|
|
||||||
/* Whether fprintf must be declared even if <stdio.h> is included. */
|
|
||||||
#undef NEED_DECLARATION_FPRINTF
|
|
||||||
|
|
||||||
/* Do we need to use the b modifier when opening binary files? */
|
/* Do we need to use the b modifier when opening binary files? */
|
||||||
#undef USE_BINARY_FOPEN
|
#undef USE_BINARY_FOPEN
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,6 +3,12 @@ dnl
|
||||||
AC_PREREQ(2.5)
|
AC_PREREQ(2.5)
|
||||||
AC_INIT(ar.c)
|
AC_INIT(ar.c)
|
||||||
|
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(binutils, 2.8.2)
|
||||||
|
|
||||||
|
AM_PROG_LIBTOOL
|
||||||
|
|
||||||
AC_ARG_ENABLE(targets,
|
AC_ARG_ENABLE(targets,
|
||||||
[ --enable-targets alternative target configurations],
|
[ --enable-targets alternative target configurations],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
|
@ -11,17 +17,6 @@ AC_ARG_ENABLE(targets,
|
||||||
no) enable_targets= ;;
|
no) enable_targets= ;;
|
||||||
*) enable_targets=$enableval ;;
|
*) enable_targets=$enableval ;;
|
||||||
esac])dnl
|
esac])dnl
|
||||||
AC_ARG_ENABLE(shared,
|
|
||||||
[ --enable-shared build shared BFD library],
|
|
||||||
[case "${enableval}" in
|
|
||||||
yes) shared=true shared_bfd=true shared_opcodes=true ;;
|
|
||||||
no) shared=false ;;
|
|
||||||
*bfd*opcodes*) shared=true shared_bfd=true shared_opcodes=true ;;
|
|
||||||
*opcodes*bfd*) shared=true shared_bfd=true shared_opcodes=true ;;
|
|
||||||
*bfd*) shared=true shared_bfd=true ;;
|
|
||||||
*opcodes*) shared=true shared_opcodes=true ;;
|
|
||||||
*) shared=false ;;
|
|
||||||
esac])dnl
|
|
||||||
AC_ARG_ENABLE(commonbfdlib,
|
AC_ARG_ENABLE(commonbfdlib,
|
||||||
[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
|
[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
|
||||||
[case "${enableval}" in
|
[case "${enableval}" in
|
||||||
|
@ -30,10 +25,8 @@ AC_ARG_ENABLE(commonbfdlib,
|
||||||
*) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
|
*) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
|
||||||
esac])dnl
|
esac])dnl
|
||||||
|
|
||||||
AC_CONFIG_HEADER(config.h:config.in)
|
AM_CONFIG_HEADER(config.h:config.in)
|
||||||
|
|
||||||
AC_CONFIG_AUX_DIR(`cd $srcdir/..; pwd`)
|
|
||||||
AC_CANONICAL_SYSTEM
|
|
||||||
if test -z "$target" ; then
|
if test -z "$target" ; then
|
||||||
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
|
||||||
fi
|
fi
|
||||||
|
@ -42,73 +35,27 @@ if test -z "$host" ; then
|
||||||
fi
|
fi
|
||||||
AC_ARG_PROGRAM
|
AC_ARG_PROGRAM
|
||||||
|
|
||||||
|
AC_PROG_CC
|
||||||
|
|
||||||
|
AC_PROG_YACC
|
||||||
|
AC_PROG_LEX
|
||||||
|
AC_DECL_YYTEXT
|
||||||
|
|
||||||
|
AM_MAINTAINER_MODE
|
||||||
|
AM_CYGWIN32
|
||||||
|
AM_EXEEXT
|
||||||
|
|
||||||
# host-specific stuff:
|
# host-specific stuff:
|
||||||
|
|
||||||
HDEFINES=
|
HDEFINES=
|
||||||
HLDFLAGS=
|
|
||||||
HLDENV=
|
|
||||||
RPATH_ENVVAR=LD_LIBRARY_PATH
|
|
||||||
|
|
||||||
AC_PROG_CC
|
|
||||||
|
|
||||||
. ${srcdir}/../bfd/configure.host
|
. ${srcdir}/../bfd/configure.host
|
||||||
|
|
||||||
AC_SUBST(HDEFINES)
|
AC_SUBST(HDEFINES)
|
||||||
AC_SUBST(HLDFLAGS)
|
|
||||||
AC_SUBST(HLDENV)
|
|
||||||
AC_SUBST(RPATH_ENVVAR)
|
|
||||||
AR=${AR-ar}
|
AR=${AR-ar}
|
||||||
AC_SUBST(AR)
|
AC_SUBST(AR)
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
AC_PROG_INSTALL
|
AM_PROG_INSTALL
|
||||||
|
|
||||||
# For most hosts we can use a simple definition to pick up the BFD and
|
|
||||||
# opcodes libraries. However, if we are building shared libraries, we
|
|
||||||
# need to handle some hosts specially.
|
|
||||||
BFDLIB='-L../bfd -lbfd'
|
|
||||||
OPCODES='-L../opcodes -lopcodes'
|
|
||||||
|
|
||||||
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
|
|
||||||
BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
|
|
||||||
fi
|
|
||||||
if test "${shared_opcodes}" = "true"; then
|
|
||||||
OPCODES='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
|
|
||||||
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
|
|
||||||
if test "${shared_opcodes}" != "true"; then
|
|
||||||
OPCODES='../opcodes/libopcodes.a'
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if test "${commonbfdlib}" = "true"; then
|
|
||||||
# when a shared libbfd is built with --enable-commonbfdlib,
|
|
||||||
# all of libopcodes is available in libbfd.so. Unfortunately, on
|
|
||||||
# HP/UX, when using gcc -g, the linker does a static link, so we
|
|
||||||
# need to continue linking against opcodes on that platform.
|
|
||||||
case "${host}" in
|
|
||||||
*-*-hpux*) ;;
|
|
||||||
*) OPCODES= ;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
AC_SUBST(BFDLIB)
|
|
||||||
AC_SUBST(OPCODES)
|
|
||||||
|
|
||||||
BFD_CC_FOR_BUILD
|
BFD_CC_FOR_BUILD
|
||||||
|
|
||||||
|
@ -258,5 +205,4 @@ else
|
||||||
fi
|
fi
|
||||||
AC_SUBST(UNDERSCORE)
|
AC_SUBST(UNDERSCORE)
|
||||||
|
|
||||||
AC_OUTPUT(Makefile,
|
AC_OUTPUT(Makefile)
|
||||||
[case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac])
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
timestamp
|
Loading…
Reference in New Issue