* gprof.h: Added includes and defines for gettext.

* configure.in (ALL_LINGUAS): New macro.
	Call CY_GNU_GETTEXT.  Create po/Makefile.in and po/Makefile.
	* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
	HAVE_LC_MESSAGES): Define.
	* gprof.c (main): Call setlocale, bindtextdomain, textdomain.
	* Makefile.am (SUBDIRS): New macro.
	(INCLUDES): Look in intl dirs for headers.  Define LOCALEDIR.
	(gprof_DEPENDENCIES): Added INTLDEPS.
	(gprof_LDADD): Added INTLLLIBS.
	(POTFILES): New macro.
	(po/POTFILES.in): New target.
	* Many files: Wrap user-visible strings with gettext invocation.
This commit is contained in:
Tom Tromey
1998-04-22 07:33:42 +00:00
parent 1a9136e225
commit 16a02269fc
22 changed files with 3522 additions and 241 deletions

View File

@ -1,3 +1,19 @@
Wed Apr 22 00:00:22 1998 Tom Tromey <tromey@scribbles.cygnus.com>
* gprof.h: Added includes and defines for gettext.
* configure.in (ALL_LINGUAS): New macro.
Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile.
* acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
HAVE_LC_MESSAGES): Define.
* gprof.c (main): Call setlocale, bindtextdomain, textdomain.
* Makefile.am (SUBDIRS): New macro.
(INCLUDES): Look in intl dirs for headers. Define LOCALEDIR.
(gprof_DEPENDENCIES): Added INTLDEPS.
(gprof_LDADD): Added INTLLLIBS.
(POTFILES): New macro.
(po/POTFILES.in): New target.
* Many files: Wrap user-visible strings with gettext invocation.
Tue Apr 7 12:43:37 1998 Ian Lance Taylor <ian@cygnus.com> Tue Apr 7 12:43:37 1998 Ian Lance Taylor <ian@cygnus.com>
From hjl@lucon.org <H.J. Lu>: From hjl@lucon.org <H.J. Lu>:

View File

@ -4,17 +4,20 @@ AUTOMAKE_OPTIONS = cygnus
SUFFIXES = .m SUFFIXES = .m
INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd SUBDIRS = po
INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\""
bin_PROGRAMS = gprof bin_PROGRAMS = gprof
gprof_SOURCES = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ ## Convenience var listing pure sources.
sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \ cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \
search_list.c symtab.c sym_ids.c utils.c \ search_list.c symtab.c sym_ids.c utils.c \
flat_bl.c bsd_callg_bl.c fsf_callg_bl.c \
i386.c alpha.c vax.c tahoe.c sparc.c i386.c alpha.c vax.c tahoe.c sparc.c
gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a gprof_SOURCES = $(sources) flat_bl.c bsd_callg_blc. fsf_callg_bl.c
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS)
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS)
noinst_HEADERS = \ noinst_HEADERS = \
basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
@ -32,6 +35,11 @@ diststuff: $(BUILT_SOURCES) info
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
FILE=$*.m $(srcdir)/$*.m FILE=$*.m $(srcdir)/$*.m
POTFILES = $(sources) $(noinst_HEADERS)
po/POTFILES.in: @MAINT@ Makefile
for file in $(POTFILES); do echo $$file; done | sort > tmp \
&& mv tmp $(srcdir)/po/POTFILES.in
info_TEXINFOS = gprof.texi info_TEXINFOS = gprof.texi
man_MANS = gprof.1 man_MANS = gprof.1

View File

@ -1,4 +1,4 @@
# Makefile.in generated automatically by automake 1.2e from Makefile.am # Makefile.in generated automatically by automake 1.3 from Makefile.am
# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation # This Makefile.in is free software; the Free Software Foundation
@ -32,6 +32,8 @@ mandir = @mandir@
includedir = @includedir@ includedir = @includedir@
oldincludedir = /usr/include oldincludedir = /usr/include
DISTDIR =
pkgdatadir = $(datadir)/@PACKAGE@ pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@
@ -61,33 +63,56 @@ host_alias = @host_alias@
host_triplet = @host@ host_triplet = @host@
target_alias = @target_alias@ target_alias = @target_alias@
target_triplet = @target@ target_triplet = @target@
AS = @AS@
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
CC = @CC@ CC = @CC@
DATADIRNAME = @DATADIRNAME@
DLLTOOL = @DLLTOOL@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
GMOFILES = @GMOFILES@
GMSGFMT = @GMSGFMT@
GT_NO = @GT_NO@
GT_YES = @GT_YES@
INCLUDE_LOCALE_H = @INCLUDE_LOCALE_H@
INSTOBJEXT = @INSTOBJEXT@
INTLDEPS = @INTLDEPS@
INTLLIBS = @INTLLIBS@
INTLOBJS = @INTLOBJS@
LD = @LD@ LD = @LD@
LIBTOOL = @LIBTOOL@ LIBTOOL = @LIBTOOL@
LN_S = @LN_S@ LN_S = @LN_S@
MAINT = @MAINT@ MAINT = @MAINT@
MAKEINFO = @MAKEINFO@ MAKEINFO = @MAKEINFO@
MKINSTALLDIRS = @MKINSTALLDIRS@
MSGFMT = @MSGFMT@
NM = @NM@ NM = @NM@
PACKAGE = @PACKAGE@ PACKAGE = @PACKAGE@
POFILES = @POFILES@
POSUB = @POSUB@
RANLIB = @RANLIB@ RANLIB = @RANLIB@
USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
USE_NLS = @USE_NLS@
VERSION = @VERSION@ VERSION = @VERSION@
l = @l@
AUTOMAKE_OPTIONS = cygnus AUTOMAKE_OPTIONS = cygnus
SUFFIXES = .m SUFFIXES = .m
INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd SUBDIRS = po
INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\""
bin_PROGRAMS = gprof bin_PROGRAMS = gprof
gprof_SOURCES = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \ cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \
search_list.c symtab.c sym_ids.c utils.c \ search_list.c symtab.c sym_ids.c utils.c \
flat_bl.c bsd_callg_bl.c fsf_callg_bl.c \
i386.c alpha.c vax.c tahoe.c sparc.c i386.c alpha.c vax.c tahoe.c sparc.c
gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a gprof_SOURCES = $(sources) flat_bl.c bsd_callg_blc. fsf_callg_bl.c
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS)
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS)
noinst_HEADERS = \ noinst_HEADERS = \
basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
@ -98,6 +123,8 @@ EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl
BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
POTFILES = $(sources) $(noinst_HEADERS)
info_TEXINFOS = gprof.texi info_TEXINFOS = gprof.texi
man_MANS = gprof.1 man_MANS = gprof.1
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@ -114,8 +141,8 @@ LDFLAGS = @LDFLAGS@
LIBS = @LIBS@ LIBS = @LIBS@
gprof_OBJECTS = basic_blocks.o call_graph.o cg_arcs.o cg_dfn.o \ gprof_OBJECTS = basic_blocks.o call_graph.o cg_arcs.o cg_dfn.o \
cg_print.o core.o gmon_io.o gprof.o hertz.o hist.o source.o \ cg_print.o core.o gmon_io.o gprof.o hertz.o hist.o source.o \
search_list.o symtab.o sym_ids.o utils.o flat_bl.o bsd_callg_bl.o \ search_list.o symtab.o sym_ids.o utils.o i386.o alpha.o vax.o tahoe.o \
fsf_callg_bl.o i386.o alpha.o vax.o tahoe.o sparc.o sparc.o flat_bl.o fsf_callg_bl.o
gprof_LDFLAGS = gprof_LDFLAGS =
CFLAGS = @CFLAGS@ CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
@ -126,7 +153,8 @@ TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
INFO_DEPS = gprof.info INFO_DEPS = gprof.info
DVIS = gprof.dvi DVIS = gprof.dvi
TEXINFOS = gprof.texi TEXINFOS = gprof.texi
MANS = gprof.1 man1dir = $(mandir)/man1
MANS = $(man_MANS)
NROFF = nroff NROFF = nroff
HEADERS = $(noinst_HEADERS) HEADERS = $(noinst_HEADERS)
@ -142,14 +170,14 @@ GZIP = --best
SOURCES = $(gprof_SOURCES) SOURCES = $(gprof_SOURCES)
OBJECTS = $(gprof_OBJECTS) OBJECTS = $(gprof_OBJECTS)
default: all all: all-recursive-am all-am
.SUFFIXES: .SUFFIXES:
.SUFFIXES: .S .c .dvi .info .lo .m .o .ps .s .texi .texinfo .SUFFIXES: .S .c .dvi .info .lo .m .o .ps .s .texi .texinfo .txi
$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) $(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile cd $(top_srcdir) && $(AUTOMAKE) --cygnus Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \ cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
@ -193,18 +221,18 @@ maintainer-clean-binPROGRAMS:
install-binPROGRAMS: $(bin_PROGRAMS) install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
$(mkinstalldirs) $(bindir) $(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \ @list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \ if test -f $$p; then \
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`"; \ echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
else :; fi; \ else :; fi; \
done done
uninstall-binPROGRAMS: uninstall-binPROGRAMS:
$(NORMAL_UNINSTALL) @$(NORMAL_UNINSTALL)
list='$(bin_PROGRAMS)'; for p in $$list; do \ list='$(bin_PROGRAMS)'; for p in $$list; do \
rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \ rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
done done
.c.o: .c.o:
@ -278,26 +306,38 @@ DVIPS = dvips
.texinfo.dvi: .texinfo.dvi:
TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \ TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
.txi.info:
@rm -f $@ $@-[0-9] $@-[0-9][0-9]
$(MAKEINFO) -I $(srcdir) $<
.txi.dvi:
TEXINPUTS=$(top_srcdir)/../texinfo:$$TEXINPUTS \
MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
.txi:
@rm -f $@ $@-[0-9] $@-[0-9][0-9]
$(MAKEINFO) -I $(srcdir) $<
.dvi.ps: .dvi.ps:
$(DVIPS) $< -o $@ $(DVIPS) $< -o $@
install-info-am: $(INFO_DEPS) install-info-am: $(INFO_DEPS)
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
$(mkinstalldirs) $(infodir) $(mkinstalldirs) $(DESTDIR)$(infodir)
@for file in $(INFO_DEPS); do \ @for file in $(INFO_DEPS); do \
if test -f $$file; then d=.; else d=$(srcdir); fi; \ if test -f $$file; then d=.; else d=$(srcdir); fi; \
for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \ for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
if test -f $$d/$$ifile; then \ if test -f $$d/$$ifile; then \
echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \ echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
$(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \ $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
else : ; fi; \ else : ; fi; \
done; \ done; \
done done
@$(POST_INSTALL) @$(POST_INSTALL)
@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
for file in $(INFO_DEPS); do \ for file in $(INFO_DEPS); do \
echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\ echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
install-info --info-dir=$(infodir) $(infodir)/$$file || :;\ install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
done; \ done; \
else : ; fi else : ; fi
@ -308,11 +348,11 @@ uninstall-info:
else ii=; fi; \ else ii=; fi; \
for file in $(INFO_DEPS); do \ for file in $(INFO_DEPS); do \
test -z "$ii" \ test -z "$ii" \
|| install-info --info-dir=$(infodir) --remove $$file; \ || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
done done
$(NORMAL_UNINSTALL) @$(NORMAL_UNINSTALL)
for file in $(INFO_DEPS); do \ for file in $(INFO_DEPS); do \
(cd $(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \ (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
done done
dist-info: $(INFO_DEPS) dist-info: $(INFO_DEPS)
@ -343,21 +383,82 @@ maintainer-clean-aminfo:
fi; \ fi; \
done done
clean-info: mostlyclean-aminfo clean-info: mostlyclean-aminfo
install-man1:
$(mkinstalldirs) $(DESTDIR)$(man1dir)
@list='$(man1_MANS)'; \
l2='$(man_MANS)'; for i in $$l2; do \
case "$$i" in \
*.1*) list="$$list $$i" ;; \
esac; \
done; \
for i in $$list; do \
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
else file=$$i; fi; \
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
$(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
done
uninstall-man1:
@list='$(man1_MANS)'; \
l2='$(man_MANS)'; for i in $$l2; do \
case "$$i" in \
*.1*) list="$$list $$i" ;; \
esac; \
done; \
for i in $$list; do \
ext=`echo $$i | sed -e 's/^.*\\.//'`; \
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
rm -f $(DESTDIR)$(man1dir)/$$inst; \
done
install-man: $(MANS) install-man: $(MANS)
$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
$(mkinstalldirs) $(mandir)/man1 $(MAKE) install-man1
@sect=1; \
inst=`echo "gprof" | sed '$(transform)'`.1; \
if test -f $(srcdir)/gprof.1; then file=$(srcdir)/gprof.1; \
else file=gprof.1; fi; \
echo " $(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst"; \
$(INSTALL_DATA) $$file $(mandir)/man$$sect/$$inst
uninstall-man: uninstall-man:
$(NORMAL_UNINSTALL) @$(NORMAL_UNINSTALL)
-inst=`echo "gprof" | sed '$(transform)'`.1; \ $(MAKE) uninstall-man1
rm -f $(mandir)/man1/$$inst
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
@SET_MAKE@
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive install-info-recursive \
check-recursive installcheck-recursive info-recursive dvi-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
list='$(SUBDIRS)'; for subdir in $$list; do \
target=`echo $@ | sed s/-recursive//`; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $$target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $(MAKEFLAGS); amf=$$2; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
done; \
for subdir in $$rev; do \
target=`echo $@ | sed s/-recursive//`; \
echo "Making $$target in $$subdir"; \
(cd $$subdir && $(MAKE) $$target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
(cd $$subdir && $(MAKE) tags); \
done
tags: TAGS tags: TAGS
@ -365,9 +466,12 @@ ID: $(HEADERS) $(SOURCES) $(LISP)
here=`pwd` && cd $(srcdir) \ here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP) && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
TAGS: $(HEADERS) $(SOURCES) gconfig.in $(TAGS_DEPENDENCIES) $(LISP) TAGS: tags-recursive $(HEADERS) $(SOURCES) gconfig.in $(TAGS_DEPENDENCIES) $(LISP)
tags=; \ tags=; \
here=`pwd`; \ here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
done; \
list='$(SOURCES) $(HEADERS)'; \ list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \ unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \ awk ' { files[$$0] = 1; } \
@ -426,30 +530,47 @@ distdir: $(DISTFILES)
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file; \ || cp -p $$d/$$file $(distdir)/$$file; \
done done
for subdir in $(SUBDIRS); do \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
chmod 777 $(distdir)/$$subdir; \
(cd $$subdir && $(MAKE) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
|| exit 1; \
done
$(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info $(MAKE) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-info
info: $(INFO_DEPS) info: $(INFO_DEPS) info-recursive
dvi: $(DVIS) dvi: $(DVIS) dvi-recursive
check: check:
$(MAKE) $(MAKE) check-recursive
installcheck: installcheck: installcheck-recursive
install-info: install-info-am install-info: install-info-am install-info-recursive
install-exec: install-binPROGRAMS all-recursive-am: gconfig.h
$(MAKE) all-recursive
all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS) gconfig.h
install-exec-am: install-binPROGRAMS
install-data-am: install-man
uninstall-am: uninstall-binPROGRAMS uninstall-man
install-exec: install-exec-recursive install-exec-am
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
install-data: install-man install-data: install-data-recursive install-data-am
@$(NORMAL_INSTALL) @$(NORMAL_INSTALL)
install: install-exec install-data all install: install-recursive install-exec-am install-data-am
@: @:
uninstall: uninstall-binPROGRAMS uninstall-man uninstall: uninstall-recursive uninstall-am
all: Makefile $(PROGRAMS) $(MANS) $(HEADERS) gconfig.h
install-strip: install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
installdirs: installdirs: installdirs-recursive
$(mkinstalldirs) $(bindir) $(mandir)/man1 $(mkinstalldirs) $(DATADIR)$(bindir) $(DESTDIR)$(mandir)/man1
mostlyclean-generic: mostlyclean-generic:
@ -466,39 +587,55 @@ distclean-generic:
maintainer-clean-generic: maintainer-clean-generic:
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean: mostlyclean-hdr mostlyclean-binPROGRAMS \ mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \
mostlyclean-compile mostlyclean-libtool \ mostlyclean-compile mostlyclean-libtool \
mostlyclean-aminfo mostlyclean-tags mostlyclean-generic mostlyclean-aminfo mostlyclean-tags mostlyclean-generic
clean: clean-hdr clean-binPROGRAMS clean-compile clean-libtool \ clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-libtool \
clean-aminfo clean-tags clean-generic mostlyclean clean-aminfo clean-tags clean-generic mostlyclean-am
distclean: distclean-hdr distclean-binPROGRAMS distclean-compile \ distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \
distclean-libtool distclean-aminfo distclean-tags \ distclean-libtool distclean-aminfo distclean-tags \
distclean-generic clean distclean-generic clean-am
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-aminfo maintainer-clean-tags \
maintainer-clean-generic distclean-am
mostlyclean: mostlyclean-recursive mostlyclean-am
clean: clean-recursive clean-am
distclean: distclean-recursive distclean-am
-rm -f config.status -rm -f config.status
-rm -f libtool -rm -f libtool
maintainer-clean: maintainer-clean-hdr maintainer-clean-binPROGRAMS \ maintainer-clean: maintainer-clean-recursive maintainer-clean-am
maintainer-clean-compile maintainer-clean-libtool \
maintainer-clean-aminfo maintainer-clean-tags \
maintainer-clean-generic distclean
@echo "This command is intended for maintainers to use;" @echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild." @echo "it deletes files that may require special tools to rebuild."
-rm -f config.status -rm -f config.status
.PHONY: default mostlyclean-hdr distclean-hdr clean-hdr \ .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
maintainer-clean-hdr mostlyclean-binPROGRAMS distclean-binPROGRAMS \ mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \ maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
install-binPROGRAMS mostlyclean-compile distclean-compile clean-compile \ mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile mostlyclean-libtool distclean-libtool \ maintainer-clean-compile mostlyclean-libtool distclean-libtool \
clean-libtool maintainer-clean-libtool install-info-am uninstall-info \ clean-libtool maintainer-clean-libtool install-info-am uninstall-info \
mostlyclean-aminfo distclean-aminfo clean-aminfo \ mostlyclean-aminfo distclean-aminfo clean-aminfo \
maintainer-clean-aminfo install-man uninstall-man tags mostlyclean-tags \ maintainer-clean-aminfo install-man1 uninstall-man1 install-man \
uninstall-man install-data-recursive uninstall-data-recursive \
install-exec-recursive uninstall-exec-recursive installdirs-recursive \
uninstalldirs-recursive all-recursive check-recursive \
installcheck-recursive info-recursive dvi-recursive \
mostlyclean-recursive distclean-recursive clean-recursive \
maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info dvi \ distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
installcheck install-info install-exec install-data install uninstall \ installcheck install-info all-recursive-am all-am install-exec-am \
all installdirs mostlyclean-generic distclean-generic clean-generic \ install-data-am uninstall-am install-exec install-data install \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean uninstall all installdirs mostlyclean-generic distclean-generic \
clean-generic maintainer-clean-generic clean mostlyclean distclean \
maintainer-clean
diststuff: $(BUILT_SOURCES) info diststuff: $(BUILT_SOURCES) info
@ -507,6 +644,9 @@ diststuff: $(BUILT_SOURCES) info
awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \ awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
FILE=$*.m $(srcdir)/$*.m FILE=$*.m $(srcdir)/$*.m
po/POTFILES.in: @MAINT@ Makefile
for file in $(POTFILES); do echo $$file; done | sort > tmp \
&& mv tmp $(srcdir)/po/POTFILES.in
# Dependencies. # Dependencies.
$(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \ $(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \

View File

@ -7,3 +7,18 @@
/* Whether this system uses the BSD 4.4 gmon.out format. */ /* Whether this system uses the BSD 4.4 gmon.out format. */
#undef BSD44_FORMAT #undef BSD44_FORMAT
/* Define to 1 if NLS is requested. */
#undef ENABLE_NLS
/* Define as 1 if you have catgets and don't want to use GNU gettext. */
#undef HAVE_CATGETS
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
#undef HAVE_GETTEXT
/* Define as 1 if you have the stpcpy function. */
#undef HAVE_STPCPY
/* Define if your locale.h file contains LC_MESSAGES. */
#undef HAVE_LC_MESSAGES

379
gprof/aclocal.m4 vendored
View File

@ -1,4 +1,4 @@
dnl aclocal.m4 generated automatically by aclocal 1.2e dnl aclocal.m4 generated automatically by aclocal 1.3
dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. dnl Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
dnl This Makefile.in is free software; the Free Software Foundation dnl This Makefile.in is free software; the Free Software Foundation
@ -161,11 +161,17 @@ case "$host" in
# On SCO OpenServer 5, we need -belf to get full-featured binaries. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
CFLAGS="$CFLAGS -belf" CFLAGS="$CFLAGS -belf"
;; ;;
*-*-cygwin32*)
AM_SYS_LIBTOOL_CYGWIN32
;;
esac esac
# Actually configure libtool. ac_aux_dir is where install-sh is found. # Actually configure libtool. ac_aux_dir is where install-sh is found.
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
DLLTOOL="$DLLTOOL" AS="$AS" \
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
|| AC_MSG_ERROR([libtool configure failed]) || AC_MSG_ERROR([libtool configure failed])
@ -320,13 +326,7 @@ fi])
AC_DEFUN(AM_PROG_NM, AC_DEFUN(AM_PROG_NM,
[AC_MSG_CHECKING([for BSD-compatible nm]) [AC_MSG_CHECKING([for BSD-compatible nm])
AC_CACHE_VAL(ac_cv_path_NM, AC_CACHE_VAL(ac_cv_path_NM,
[case "$NM" in [if test -z "$NM"; then
changequote(,)dnl
/* | [A-Za-z]:\\*)
changequote([,])dnl
ac_cv_path_NM="$NM" # Let the user override the test with a path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
test -z "$ac_dir" && ac_dir=. test -z "$ac_dir" && ac_dir=.
@ -346,13 +346,20 @@ changequote([,])dnl
done done
IFS="$ac_save_ifs" IFS="$ac_save_ifs"
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
;; else
esac]) ac_cv_path_NM="$NM" # Let the user override the test with a path.
fi])
NM="$ac_cv_path_NM" NM="$ac_cv_path_NM"
AC_MSG_RESULT([$NM]) AC_MSG_RESULT([$NM])
AC_SUBST(NM) AC_SUBST(NM)
]) ])
# AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN32,
[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
AC_CHECK_TOOL(AS, as, false)
])
# Like AC_CONFIG_HEADER, but automatically create stamp file. # Like AC_CONFIG_HEADER, but automatically create stamp file.
AC_DEFUN(AM_CONFIG_HEADER, AC_DEFUN(AM_CONFIG_HEADER,
@ -376,6 +383,349 @@ for am_file in <<$1>>; do
done<<>>dnl>>) done<<>>dnl>>)
changequote([,]))]) changequote([,]))])
# This file is derived from `gettext.m4'. The difference is that the
# included macros assume Cygnus-style source and build trees.
# Macro to add for using GNU gettext.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
#
# This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
# serial 3
AC_DEFUN(CY_WITH_NLS,
[AC_MSG_CHECKING([whether NLS is requested])
dnl Default is enabled NLS
AC_ARG_ENABLE(nls,
[ --disable-nls do not use Native Language Support],
USE_NLS=$enableval, USE_NLS=yes)
AC_MSG_RESULT($USE_NLS)
AC_SUBST(USE_NLS)
USE_INCLUDED_LIBINTL=no
dnl If we use NLS figure out what method
if test "$USE_NLS" = "yes"; then
AC_DEFINE(ENABLE_NLS)
AC_MSG_CHECKING([whether included gettext is requested])
AC_ARG_WITH(included-gettext,
[ --with-included-gettext use the GNU gettext library included here],
nls_cv_force_use_gnu_gettext=$withval,
nls_cv_force_use_gnu_gettext=no)
AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
dnl User does not insist on using GNU NLS library. Figure out what
dnl to use. If gettext or catgets are available (in this order) we
dnl use this. Else we have to fall back to GNU NLS library.
dnl catgets is only used if permitted by option --with-catgets.
nls_cv_header_intl=
nls_cv_header_libgt=
CATOBJEXT=NONE
AC_CHECK_HEADER(libintl.h,
[AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
[AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
if test "$gt_cv_func_gettext_libc" != "yes"; then
AC_CHECK_LIB(intl, bindtextdomain,
[AC_CACHE_CHECK([for gettext in libintl],
gt_cv_func_gettext_libintl,
[AC_TRY_LINK([], [return (int) gettext ("")],
gt_cv_func_gettext_libintl=yes,
gt_cv_func_gettext_libintl=no)])])
fi
if test "$gt_cv_func_gettext_libc" = "yes" \
|| test "$gt_cv_func_gettext_libintl" = "yes"; then
AC_DEFINE(HAVE_GETTEXT)
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
if test "$MSGFMT" != "no"; then
AC_CHECK_FUNCS(dcgettext)
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
return _nl_msg_cat_cntr],
[CATOBJEXT=.gmo
DATADIRNAME=share],
[CATOBJEXT=.mo
DATADIRNAME=lib])
INSTOBJEXT=.mo
fi
fi
])
dnl In the standard gettext, we would now check for catgets.
dnl However, we never want to use catgets for our releases.
if test "$CATOBJEXT" = "NONE"; then
dnl Neither gettext nor catgets in included in the C library.
dnl Fall back on GNU gettext library.
nls_cv_use_gnu_gettext=yes
fi
fi
if test "$nls_cv_use_gnu_gettext" = "yes"; then
dnl Mark actions used to generate GNU NLS library.
INTLOBJS="\$(GETTOBJS)"
AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
AC_SUBST(MSGFMT)
USE_INCLUDED_LIBINTL=yes
CATOBJEXT=.gmo
INSTOBJEXT=.mo
DATADIRNAME=share
INTLDEPS='$(top_builddir)/../intl/libintl.a'
INTLLIBS=$INTLDEPS
LIBS=`echo $LIBS | sed -e 's/-lintl//'`
nls_cv_header_intl=libintl.h
nls_cv_header_libgt=libgettext.h
fi
dnl Test whether we really found GNU xgettext.
if test "$XGETTEXT" != ":"; then
dnl If it is no GNU xgettext we define it as : so that the
dnl Makefiles still can work.
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
: ;
else
AC_MSG_RESULT(
[found xgettext programs is not GNU xgettext; ignore it])
XGETTEXT=":"
fi
fi
# We need to process the po/ directory.
POSUB=po
else
DATADIRNAME=share
nls_cv_header_intl=libintl.h
nls_cv_header_libgt=libgettext.h
fi
# If this is used in GNU gettext we have to set USE_NLS to `yes'
# because some of the sources are only built for this goal.
if test "$PACKAGE" = gettext; then
USE_NLS=yes
USE_INCLUDED_LIBINTL=yes
fi
dnl These rules are solely for the distribution goal. While doing this
dnl we only have to keep exactly one list of the available catalogs
dnl in configure.in.
for lang in $ALL_LINGUAS; do
GMOFILES="$GMOFILES $lang.gmo"
POFILES="$POFILES $lang.po"
done
dnl Make all variables we use known to autoconf.
AC_SUBST(USE_INCLUDED_LIBINTL)
AC_SUBST(CATALOGS)
AC_SUBST(CATOBJEXT)
AC_SUBST(DATADIRNAME)
AC_SUBST(GMOFILES)
AC_SUBST(INSTOBJEXT)
AC_SUBST(INTLDEPS)
AC_SUBST(INTLLIBS)
AC_SUBST(INTLOBJS)
AC_SUBST(POFILES)
AC_SUBST(POSUB)
])
AC_DEFUN(CY_GNU_GETTEXT,
[AC_REQUIRE([AC_PROG_MAKE_SET])dnl
AC_REQUIRE([AC_PROG_CC])dnl
AC_REQUIRE([AC_PROG_RANLIB])dnl
AC_REQUIRE([AC_ISC_POSIX])dnl
AC_REQUIRE([AC_HEADER_STDC])dnl
AC_REQUIRE([AC_C_CONST])dnl
AC_REQUIRE([AC_C_INLINE])dnl
AC_REQUIRE([AC_TYPE_OFF_T])dnl
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
AC_REQUIRE([AC_FUNC_ALLOCA])dnl
AC_REQUIRE([AC_FUNC_MMAP])dnl
AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
unistd.h values.h sys/param.h])
AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
__argz_count __argz_stringify __argz_next])
if test "${ac_cv_func_stpcpy+set}" != "set"; then
AC_CHECK_FUNCS(stpcpy)
fi
if test "${ac_cv_func_stpcpy}" = "yes"; then
AC_DEFINE(HAVE_STPCPY)
fi
AM_LC_MESSAGES
CY_WITH_NLS
if test "x$CATOBJEXT" != "x"; then
if test "x$ALL_LINGUAS" = "x"; then
LINGUAS=
else
AC_MSG_CHECKING(for catalogs to be installed)
NEW_LINGUAS=
for lang in ${LINGUAS=$ALL_LINGUAS}; do
case "$ALL_LINGUAS" in
*$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
esac
done
LINGUAS=$NEW_LINGUAS
AC_MSG_RESULT($LINGUAS)
fi
dnl Construct list of names of catalog files to be constructed.
if test -n "$LINGUAS"; then
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
fi
fi
dnl The reference to <locale.h> in the installed <libintl.h> file
dnl must be resolved because we cannot expect the users of this
dnl to define HAVE_LOCALE_H.
if test $ac_cv_header_locale_h = yes; then
INCLUDE_LOCALE_H="#include <locale.h>"
else
INCLUDE_LOCALE_H="\
/* The system does not provide the header <locale.h>. Take care yourself. */"
fi
AC_SUBST(INCLUDE_LOCALE_H)
dnl Determine which catalog format we have (if any is needed)
dnl For now we know about two different formats:
dnl Linux libc-5 and the normal X/Open format
if test -f $srcdir/po2tbl.sed.in; then
if test "$CATOBJEXT" = ".cat"; then
AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
dnl Transform the SED scripts while copying because some dumb SEDs
dnl cannot handle comments.
sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
fi
dnl po2tbl.sed is always needed.
sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
$srcdir/po2tbl.sed.in > po2tbl.sed
fi
dnl In the intl/Makefile.in we have a special dependency which makes
dnl only sense for gettext. We comment this out for non-gettext
dnl packages.
if test "$PACKAGE" = "gettext"; then
GT_NO="#NO#"
GT_YES=
else
GT_NO=
GT_YES="#YES#"
fi
AC_SUBST(GT_NO)
AC_SUBST(GT_YES)
MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
AC_SUBST(MKINSTALLDIRS)
dnl *** For now the libtool support in intl/Makefile is not for real.
l=
AC_SUBST(l)
dnl Generate list of files to be processed by xgettext which will
dnl be included in po/Makefile. But only do this if the po directory
dnl exists in srcdir.
if test -d $srcdir/po; then
test -d po || mkdir po
if test "x$srcdir" != "x."; then
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
posrcprefix="$srcdir/"
else
posrcprefix="../$srcdir/"
fi
else
posrcprefix="../"
fi
rm -f po/POTFILES
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
< $srcdir/po/POTFILES.in > po/POTFILES
fi
])
# Search path for a program which passes the given test.
# Ulrich Drepper <drepper@cygnus.com>, 1996.
#
# This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
# serial 1
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN(AM_PATH_PROG_WITH_TEST,
[# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
/*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
*)
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
for ac_dir in ifelse([$5], , $PATH, [$5]); do
test -z "$ac_dir" && ac_dir=.
if test -f $ac_dir/$ac_word; then
if [$3]; then
ac_cv_path_$1="$ac_dir/$ac_word"
break
fi
fi
done
IFS="$ac_save_ifs"
dnl If no 4th arg is given, leave the cache variable unset,
dnl so AC_PATH_PROGS will keep looking.
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
])dnl
;;
esac])dnl
$1="$ac_cv_path_$1"
if test -n "[$]$1"; then
AC_MSG_RESULT([$]$1)
else
AC_MSG_RESULT(no)
fi
AC_SUBST($1)dnl
])
# Check whether LC_MESSAGES is available in <locale.h>.
# Ulrich Drepper <drepper@cygnus.com>, 1995.
#
# This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
# serial 1
AC_DEFUN(AM_LC_MESSAGES,
[if test $ac_cv_header_locale_h = yes; then
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
if test $am_cv_val_LC_MESSAGES = yes; then
AC_DEFINE(HAVE_LC_MESSAGES)
fi
fi])
# Add --enable-maintainer-mode option to configure. # Add --enable-maintainer-mode option to configure.
# From Jim Meyering # From Jim Meyering
@ -434,7 +784,14 @@ int main() {
} }
EOF EOF
${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5 ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//` am_cv_exeext=
for file in am_c_test.*; do
case $file in
*.c) ;;
*.o) ;;
*) am_cv_exeext=`echo $file | sed -e s/am_c_test//` ;;
esac
done
rm -f am_c_test*]) rm -f am_c_test*])
test x"${am_cv_exeext}" = x && am_cv_exeext=no test x"${am_cv_exeext}" = x && am_cv_exeext=no
fi fi

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1983 Regents of the University of California. * Copyright (c) 1983, 1998 Regents of the University of California.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms are permitted * Redistribution and use in source and binary forms are permitted
@ -86,7 +86,7 @@ alpha_find_call (parent, p_lowpc, p_highpc)
delta = (bfd_vma) core_text_space - core_text_sect->vma; delta = (bfd_vma) core_text_space - core_text_sect->vma;
sym_init (&indirect_child); sym_init (&indirect_child);
indirect_child.name = "<indirect child>"; indirect_child.name = _("<indirect child>");
indirect_child.cg.prop.fract = 1.0; indirect_child.cg.prop.fract = 1.0;
indirect_child.cg.cyc.head = &indirect_child; indirect_child.cg.cyc.head = &indirect_child;
} }
@ -103,7 +103,7 @@ alpha_find_call (parent, p_lowpc, p_highpc)
{ {
p_highpc = s_highpc; p_highpc = s_highpc;
} }
DBG (CALLDEBUG, printf ("[find_call] %s: 0x%lx to 0x%lx\n", DBG (CALLDEBUG, printf (_("[find_call] %s: 0x%lx to 0x%lx\n"),
parent->name, p_lowpc, p_highpc)); parent->name, p_lowpc, p_highpc));
for (pc = (alpha_Instruction *) (p_lowpc + delta); for (pc = (alpha_Instruction *) (p_lowpc + delta);
pc < (alpha_Instruction *) (p_highpc + delta); pc < (alpha_Instruction *) (p_highpc + delta);
@ -124,7 +124,7 @@ alpha_find_call (parent, p_lowpc, p_highpc)
|| pc->j.func == Jxx_FUNC_JSR_COROUTINE) || pc->j.func == Jxx_FUNC_JSR_COROUTINE)
{ {
DBG (CALLDEBUG, DBG (CALLDEBUG,
printf ("[find_call] 0x%lx: jsr%s <indirect_child>\n", printf (_("[find_call] 0x%lx: jsr%s <indirect_child>\n"),
(bfd_vma) pc - delta, (bfd_vma) pc - delta,
pc->j.func == Jxx_FUNC_JSR ? "" : "_coroutine")); pc->j.func == Jxx_FUNC_JSR ? "" : "_coroutine"));
arc_add (parent, &indirect_child, 0); arc_add (parent, &indirect_child, 0);
@ -133,7 +133,7 @@ alpha_find_call (parent, p_lowpc, p_highpc)
case OP_BSR: case OP_BSR:
DBG (CALLDEBUG, DBG (CALLDEBUG,
printf ("[find_call] 0x%lx: bsr", (bfd_vma) pc - delta)); printf (_("[find_call] 0x%lx: bsr"), (bfd_vma) pc - delta));
/* /*
* Regular PC relative addressing. Check that this is the * Regular PC relative addressing. Check that this is the
* address of a function. The linker sometimes redirects * address of a function. The linker sometimes redirects

View File

@ -131,7 +131,7 @@ DEFUN (bb_read_rec, (ifp, filename), FILE * ifp AND const char *filename)
if (fread (&nblocks, sizeof (nblocks), 1, ifp) != 1) if (fread (&nblocks, sizeof (nblocks), 1, ifp) != 1)
{ {
fprintf (stderr, "%s: %s: unexpected end of file\n", whoami, filename); fprintf (stderr, _("%s: %s: unexpected end of file\n"), whoami, filename);
done (1); done (1);
} }
@ -211,7 +211,7 @@ DEFUN (bb_read_rec, (ifp, filename), FILE * ifp AND const char *filename)
{ {
user_warned = TRUE; user_warned = TRUE;
fprintf (stderr, fprintf (stderr,
"%s: warning: ignoring basic-block exec counts (use -l or --line)\n", _("%s: warning: ignoring basic-block exec counts (use -l or --line)\n"),
whoami); whoami);
} }
} }
@ -319,16 +319,16 @@ DEFUN_VOID (print_exec_counts)
{ {
if (sym->ncalls > 0 || ! ignore_zeros) if (sym->ncalls > 0 || ! ignore_zeros)
{ {
printf ("%s:%d: (%s:0x%lx) %d executions\n", printf (_("%s:%d: (%s:0x%lx) %d executions\n"),
sym->file ? sym->file->name : "<unknown>", sym->line_num, sym->file ? sym->file->name : _("<unknown>"), sym->line_num,
sym->name, sym->addr, sym->ncalls); sym->name, sym->addr, sym->ncalls);
} }
for (j = 0; j < NBBS && sym->bb_addr[j]; j ++) for (j = 0; j < NBBS && sym->bb_addr[j]; j ++)
{ {
if (sym->bb_calls[j] > 0 || ! ignore_zeros) if (sym->bb_calls[j] > 0 || ! ignore_zeros)
{ {
printf ("%s:%d: (%s:0x%lx) %d executions\n", printf (_("%s:%d: (%s:0x%lx) %d executions\n"),
sym->file ? sym->file->name : "<unknown>", sym->line_num, sym->file ? sym->file->name : _("<unknown>"), sym->line_num,
sym->name, sym->bb_addr[j], sym->bb_calls[j]); sym->name, sym->bb_addr[j], sym->bb_calls[j]);
} }
} }
@ -581,7 +581,7 @@ DEFUN_VOID (print_annotated_source)
if (bb_table_length > 0) if (bb_table_length > 0)
{ {
fprintf (ofp, "\n\nTop %d Lines:\n\n Line Count\n\n", fprintf (ofp, _("\n\nTop %d Lines:\n\n Line Count\n\n"),
bb_table_length); bb_table_length);
/* abuse line arrays---it's not needed anymore: */ /* abuse line arrays---it's not needed anymore: */
@ -605,16 +605,16 @@ DEFUN_VOID (print_annotated_source)
free (sf->line); free (sf->line);
sf->line = 0; sf->line = 0;
fprintf (ofp, "\nExecution Summary:\n\n"); fprintf (ofp, _("\nExecution Summary:\n\n"));
fprintf (ofp, "%9ld Executable lines in this file\n", fprintf (ofp, _("%9ld Executable lines in this file\n"),
num_executable_lines); num_executable_lines);
fprintf (ofp, "%9ld Lines executed\n", num_lines_executed); fprintf (ofp, _("%9ld Lines executed\n"), num_lines_executed);
fprintf (ofp, "%9.2f Percent of the file executed\n", fprintf (ofp, _("%9.2f Percent of the file executed\n"),
num_executable_lines num_executable_lines
? 100.0 * num_lines_executed / (double) num_executable_lines ? 100.0 * num_lines_executed / (double) num_executable_lines
: 100.0); : 100.0);
fprintf (ofp, "\n%9d Total number of line executions\n", sf->ncalls); fprintf (ofp, _("\n%9d Total number of line executions\n"), sf->ncalls);
fprintf (ofp, "%9.2f Average executions per line\n", fprintf (ofp, _("%9.2f Average executions per line\n"),
num_executable_lines num_executable_lines
? sf->ncalls / (double) num_executable_lines ? sf->ncalls / (double) num_executable_lines
: 0.0); : 0.0);

View File

@ -45,7 +45,7 @@ DEFUN (cg_tally, (from_pc, self_pc, count),
{ {
child->ncalls += count; child->ncalls += count;
DBG (TALLYDEBUG, DBG (TALLYDEBUG,
printf ("[cg_tally] arc from %s to %s traversed %d times\n", printf (_("[cg_tally] arc from %s to %s traversed %d times\n"),
parent->name, child->name, count)); parent->name, child->name, count));
arc_add (parent, child, count); arc_add (parent, child, count);
} }
@ -67,7 +67,7 @@ DEFUN (cg_read_rec, (ifp, filename), FILE * ifp AND CONST char *filename)
if (fread (&arc, sizeof (arc), 1, ifp) != 1) if (fread (&arc, sizeof (arc), 1, ifp) != 1)
{ {
fprintf (stderr, "%s: %s: unexpected end of file\n", fprintf (stderr, _("%s: %s: unexpected end of file\n"),
whoami, filename); whoami, filename);
done (1); done (1);
} }

View File

@ -36,23 +36,23 @@ DEFUN_VOID (print_header)
{ {
if (print_descriptions) if (print_descriptions)
{ {
printf ("\t\t Call graph (explanation follows)\n\n"); printf (_("\t\t Call graph (explanation follows)\n\n"));
} }
else else
{ {
printf ("\t\t\tCall graph\n\n"); printf (_("\t\t\tCall graph\n\n"));
} }
} }
printf ("\ngranularity: each sample hit covers %ld byte(s)", printf (_("\ngranularity: each sample hit covers %ld byte(s)"),
(long) hist_scale * sizeof (UNIT)); (long) hist_scale * sizeof (UNIT));
if (print_time > 0.0) if (print_time > 0.0)
{ {
printf (" for %.2f%% of %.2f seconds\n\n", printf (_(" for %.2f%% of %.2f seconds\n\n"),
100.0 / print_time, print_time / hz); 100.0 / print_time, print_time / hz);
} }
else else
{ {
printf (" no time propagated\n\n"); printf (_(" no time propagated\n\n"));
/* /*
* This doesn't hurt, since all the numerators will be 0.0: * This doesn't hurt, since all the numerators will be 0.0:
*/ */
@ -61,17 +61,17 @@ DEFUN_VOID (print_header)
if (bsd_style_output) if (bsd_style_output)
{ {
printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n", printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n",
"", "", "", "", "called", "total", "parents"); "", "", "", "", _("called"), _("total"), _("parents"));
printf ("%-6.6s %5.5s %7.7s %11.11s %7.7s+%-7.7s %-8.8s\t%5.5s\n", printf ("%-6.6s %5.5s %7.7s %11.11s %7.7s+%-7.7s %-8.8s\t%5.5s\n",
"index", "%time", "self", "descendents", _("index"), _("%time"), _("self"), _("descendents"),
"called", "self", "name", "index"); _("called"), _("self"), _("name"), _("index"));
printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n", printf ("%6.6s %5.5s %7.7s %11.11s %7.7s/%-7.7s %-8.8s\n",
"", "", "", "", "called", "total", "children"); "", "", "", "", _("called"), _("total"), _("children"));
printf ("\n"); printf ("\n");
} }
else else
{ {
printf ("index %% time self children called name\n"); printf (_("index %% time self children called name\n"));
} }
} }
@ -98,7 +98,7 @@ DEFUN (print_cycle, (cyc), Sym * cyc)
{ {
printf (" %7.7s", ""); printf (" %7.7s", "");
} }
printf (" <cycle %d as a whole> [%d]\n", cyc->cg.cyc.num, cyc->cg.index); printf (_(" <cycle %d as a whole> [%d]\n"), cyc->cg.cyc.num, cyc->cg.index);
} }
@ -350,8 +350,8 @@ DEFUN (print_parents, (child), Sym * child)
if (!child->cg.parents) if (!child->cg.parents)
{ {
printf (bsd_style_output printf (bsd_style_output
? "%6.6s %5.5s %7.7s %11.11s %7.7s %7.7s <spontaneous>\n" ? _("%6.6s %5.5s %7.7s %11.11s %7.7s %7.7s <spontaneous>\n")
: "%6.6s %5.5s %7.7s %7.7s %7.7s %7.7s <spontaneous>\n", : _("%6.6s %5.5s %7.7s %7.7s %7.7s %7.7s <spontaneous>\n"),
"", "", "", "", "", ""); "", "", "", "", "", "");
return; return;
} }
@ -583,7 +583,7 @@ DEFUN_VOID (cg_print_index)
{ {
name_sorted_syms[todo++] = &cycle_header[index]; name_sorted_syms[todo++] = &cycle_header[index];
} }
printf ("\f\nIndex by function name\n\n"); printf (_("\f\nIndex by function name\n\n"));
index = (todo + 2) / 3; index = (todo + 2) / 3;
for (i = 0; i < index; i++) for (i = 0; i < index; i++)
{ {
@ -640,7 +640,7 @@ DEFUN_VOID (cg_print_index)
if (bsd_style_output) if (bsd_style_output)
{ {
printf ("%6.6s ", buf); printf ("%6.6s ", buf);
sprintf (buf, "<cycle %d>", sym->cg.cyc.num); sprintf (buf, _("<cycle %d>"), sym->cg.cyc.num);
printf ("%-19.19s", buf); printf ("%-19.19s", buf);
} }
else else
@ -649,7 +649,7 @@ DEFUN_VOID (cg_print_index)
for (; col < starting_col + 5; ++col) for (; col < starting_col + 5; ++col)
putchar (' '); putchar (' ');
printf (" %s ", buf); printf (" %s ", buf);
sprintf (buf, "<cycle %d>", sym->cg.cyc.num); sprintf (buf, _("<cycle %d>"), sym->cg.cyc.num);
printf ("%s", buf); printf ("%s", buf);
col += strlen (buf); col += strlen (buf);
} }

1954
gprof/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,9 @@ AM_PROG_INSTALL
AC_ISC_POSIX AC_ISC_POSIX
ALL_LINGUAS=
CY_GNU_GETTEXT
dnl We need to set BSD44_FORMAT on a host which uses the additional 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 header fields. This is an attempt to do that. I can't think of a
dnl good feature test for this. dnl good feature test for this.
@ -32,4 +35,5 @@ AM_MAINTAINER_MODE
AM_CYGWIN32 AM_CYGWIN32
AM_EXEEXT AM_EXEEXT
AC_OUTPUT(Makefile) AC_OUTPUT(Makefile po/Makefile.in:po/Make-in,
[sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])

View File

@ -36,7 +36,7 @@ DEFUN (read_function_mappings, (filename), const char *filename)
if (!file) if (!file)
{ {
fprintf (stderr, "%s: could not open %s.\n", whoami, filename); fprintf (stderr, _("%s: could not open %s.\n"), whoami, filename);
done (1); done (1);
} }
@ -50,7 +50,7 @@ DEFUN (read_function_mappings, (filename), const char *filename)
matches = fscanf (file, "%[^\n:]", dummy); matches = fscanf (file, "%[^\n:]", dummy);
if (!matches) if (!matches)
{ {
fprintf (stderr, "%s: unable to parse mapping file %s.\n", fprintf (stderr, _("%s: unable to parse mapping file %s.\n"),
whoami, filename); whoami, filename);
done (1); done (1);
} }
@ -84,7 +84,7 @@ DEFUN (read_function_mappings, (filename), const char *filename)
matches = fscanf (file, "%[^\n:]", dummy); matches = fscanf (file, "%[^\n:]", dummy);
if (!matches) if (!matches)
{ {
fprintf (stderr, "%s: unable to parse mapping file %s.\n", fprintf (stderr, _("%s: unable to parse mapping file %s.\n"),
whoami, filename); whoami, filename);
done (1); done (1);
} }
@ -125,7 +125,7 @@ DEFUN (core_init, (a_out_name), const char *a_out_name)
if (!bfd_check_format (core_bfd, bfd_object)) if (!bfd_check_format (core_bfd, bfd_object))
{ {
fprintf (stderr, "%s: %s: not in a.out format\n", whoami, a_out_name); fprintf (stderr, _("%s: %s: not in a.out format\n"), whoami, a_out_name);
done (1); done (1);
} }
@ -136,7 +136,7 @@ DEFUN (core_init, (a_out_name), const char *a_out_name)
core_text_sect = bfd_get_section_by_name (core_bfd, "$CODE$"); core_text_sect = bfd_get_section_by_name (core_bfd, "$CODE$");
if (!core_text_sect) if (!core_text_sect)
{ {
fprintf (stderr, "%s: can't find .text section in %s\n", fprintf (stderr, _("%s: can't find .text section in %s\n"),
whoami, a_out_name); whoami, a_out_name);
done (1); done (1);
} }
@ -195,7 +195,7 @@ DEFUN (core_get_text_space, (core_bfd), bfd * core_bfd)
if (!core_text_space) if (!core_text_space)
{ {
fprintf (stderr, "%s: ran out room for %ld bytes of text space\n", fprintf (stderr, _("%s: ran out room for %ld bytes of text space\n"),
whoami, core_text_sect->_raw_size); whoami, core_text_sect->_raw_size);
done (1); done (1);
} }
@ -208,7 +208,7 @@ DEFUN (core_get_text_space, (core_bfd), bfd * core_bfd)
} }
if (!core_text_space) if (!core_text_space)
{ {
fprintf (stderr, "%s: can't do -c\n", whoami); fprintf (stderr, _("%s: can't do -c\n"), whoami);
} }
} }
@ -240,7 +240,7 @@ DEFUN (find_call, (parent, p_lowpc, p_highpc),
break; break;
default: default:
fprintf (stderr, "%s: -c not supported on architecture %s\n", fprintf (stderr, _("%s: -c not supported on architecture %s\n"),
whoami, bfd_printable_name(core_bfd)); whoami, bfd_printable_name(core_bfd));
/* Don't give the error more than once. */ /* Don't give the error more than once. */
@ -429,7 +429,7 @@ DEFUN (core_create_function_syms, (core_bfd), bfd * core_bfd)
if (symtab.len == 0) if (symtab.len == 0)
{ {
fprintf (stderr, "%s: file `%s' has no symbols\n", whoami, a_out_name); fprintf (stderr, _("%s: file `%s' has no symbols\n"), whoami, a_out_name);
done (1); done (1);
} }
@ -723,7 +723,7 @@ DEFUN (core_create_line_syms, (core_bfd), bfd * core_bfd)
if ((unsigned int) (ltab.limit - ltab.base) != ltab.len) if ((unsigned int) (ltab.limit - ltab.base) != ltab.len)
{ {
fprintf (stderr, fprintf (stderr,
"%s: somebody miscounted: ltab.len=%d instead of %ld\n", _("%s: somebody miscounted: ltab.len=%d instead of %ld\n"),
whoami, ltab.len, (long) (ltab.limit - ltab.base)); whoami, ltab.len, (long) (ltab.limit - ltab.base));
done (1); done (1);
} }

View File

@ -1,8 +1,48 @@
/* gconfig.in. Generated automatically from configure.in by autoheader. */ /* gconfig.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
#undef C_ALLOCA
/* Define to empty if the keyword does not work. */
#undef const
/* 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 a working `mmap' system call. */
#undef HAVE_MMAP
/* Define as __inline if that's what the C compiler calls it. */
#undef inline
/* Define to `long' if <sys/types.h> doesn't define. */
#undef off_t
/* Define if you need to in order for stat and other things to work. */ /* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE #undef _POSIX_SOURCE
/* Define to `unsigned' if <sys/types.h> doesn't define. */
#undef size_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
/* Name of package. */ /* Name of package. */
#undef PACKAGE #undef PACKAGE
@ -11,3 +51,81 @@
/* Whether this system uses the BSD 4.4 gmon.out format. */ /* Whether this system uses the BSD 4.4 gmon.out format. */
#undef BSD44_FORMAT #undef BSD44_FORMAT
/* Define to 1 if NLS is requested. */
#undef ENABLE_NLS
/* Define as 1 if you have gettext and don't want to use GNU gettext. */
#undef HAVE_GETTEXT
/* Define as 1 if you have the stpcpy function. */
#undef HAVE_STPCPY
/* Define if your locale.h file contains LC_MESSAGES. */
#undef HAVE_LC_MESSAGES
/* Define if you have the __argz_count function. */
#undef HAVE___ARGZ_COUNT
/* Define if you have the __argz_next function. */
#undef HAVE___ARGZ_NEXT
/* Define if you have the __argz_stringify function. */
#undef HAVE___ARGZ_STRINGIFY
/* Define if you have the dcgettext function. */
#undef HAVE_DCGETTEXT
/* Define if you have the getcwd function. */
#undef HAVE_GETCWD
/* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE
/* Define if you have the munmap function. */
#undef HAVE_MUNMAP
/* Define if you have the putenv function. */
#undef HAVE_PUTENV
/* Define if you have the setenv function. */
#undef HAVE_SETENV
/* Define if you have the setlocale function. */
#undef HAVE_SETLOCALE
/* Define if you have the stpcpy function. */
#undef HAVE_STPCPY
/* Define if you have the strcasecmp function. */
#undef HAVE_STRCASECMP
/* Define if you have the strchr function. */
#undef HAVE_STRCHR
/* Define if you have the <argz.h> header file. */
#undef HAVE_ARGZ_H
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define if you have the <malloc.h> header file. */
#undef HAVE_MALLOC_H
/* Define if you have the <nl_types.h> header file. */
#undef HAVE_NL_TYPES_H
/* Define if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the <values.h> header file. */
#undef HAVE_VALUES_H

View File

@ -30,7 +30,7 @@ DEFUN (get_vma, (abfd, addr), bfd * abfd AND bfd_byte * addr)
case 8: case 8:
return bfd_get_64 (abfd, addr); return bfd_get_64 (abfd, addr);
default: default:
fprintf (stderr, "%s: bfd_vma has unexpected size of %ld bytes\n", fprintf (stderr, _("%s: bfd_vma has unexpected size of %ld bytes\n"),
whoami, (long) sizeof (char*)); whoami, (long) sizeof (char*));
done (1); done (1);
} }
@ -52,7 +52,7 @@ DEFUN (put_vma, (abfd, val, addr), bfd * abfd AND bfd_vma val AND bfd_byte * add
bfd_put_64 (abfd, val, addr); bfd_put_64 (abfd, val, addr);
break; break;
default: default:
fprintf (stderr, "%s: bfd_vma has unexpected size of %ld bytes\n", fprintf (stderr, _("%s: bfd_vma has unexpected size of %ld bytes\n"),
whoami, (long) sizeof (char*)); whoami, (long) sizeof (char*));
done (1); done (1);
} }
@ -84,7 +84,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
} }
if (fread (&ghdr, sizeof (struct gmon_hdr), 1, ifp) != 1) if (fread (&ghdr, sizeof (struct gmon_hdr), 1, ifp) != 1)
{ {
fprintf (stderr, "%s: file too short to be a gmon file\n", fprintf (stderr, _("%s: file too short to be a gmon file\n"),
filename); filename);
done (1); done (1);
} }
@ -94,7 +94,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
{ {
if (file_format == FF_MAGIC && strncmp (&ghdr.cookie[0], GMON_MAGIC, 4)) if (file_format == FF_MAGIC && strncmp (&ghdr.cookie[0], GMON_MAGIC, 4))
{ {
fprintf (stderr, "%s: file `%s' has bad magic cookie\n", fprintf (stderr, _("%s: file `%s' has bad magic cookie\n"),
whoami, filename); whoami, filename);
done (1); done (1);
} }
@ -105,7 +105,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
if (gmon_file_version != GMON_VERSION && gmon_file_version != 0) if (gmon_file_version != GMON_VERSION && gmon_file_version != 0)
{ {
fprintf (stderr, fprintf (stderr,
"%s: file `%s' has unsupported version %d\n", _("%s: file `%s' has unsupported version %d\n"),
whoami, filename, gmon_file_version); whoami, filename, gmon_file_version);
done (1); done (1);
} }
@ -135,7 +135,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
default: default:
fprintf (stderr, fprintf (stderr,
"%s: %s: found bad tag %d (file corrupted?)\n", _("%s: %s: found bad tag %d (file corrupted?)\n"),
whoami, filename, tag); whoami, filename, tag);
done (1); done (1);
} }
@ -176,7 +176,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
if (fread (&raw, 1, sizeof (struct raw_phdr), ifp) if (fread (&raw, 1, sizeof (struct raw_phdr), ifp)
!= sizeof (struct raw_phdr)) != sizeof (struct raw_phdr))
{ {
fprintf (stderr, "%s: file too short to be a gmon file\n", fprintf (stderr, _("%s: file too short to be a gmon file\n"),
filename); filename);
done (1); done (1);
} }
@ -194,7 +194,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
else if (hz != profrate) else if (hz != profrate)
{ {
fprintf (stderr, fprintf (stderr,
"%s: profiling rate incompatible with first gmon file\n", _("%s: profiling rate incompatible with first gmon file\n"),
filename); filename);
done (1); done (1);
} }
@ -204,7 +204,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
if (s_highpc && (tmp.low_pc != h.low_pc || if (s_highpc && (tmp.low_pc != h.low_pc ||
tmp.high_pc != h.high_pc || tmp.ncnt != h.ncnt)) tmp.high_pc != h.high_pc || tmp.ncnt != h.ncnt))
{ {
fprintf (stderr, "%s: incompatible with first gmon file\n", fprintf (stderr, _("%s: incompatible with first gmon file\n"),
filename); filename);
done (1); done (1);
} }
@ -242,7 +242,7 @@ DEFUN (gmon_out_read, (filename), const char *filename)
if (fread (raw_bin_count, sizeof (raw_bin_count), 1, ifp) != 1) if (fread (raw_bin_count, sizeof (raw_bin_count), 1, ifp) != 1)
{ {
fprintf (stderr, fprintf (stderr,
"%s: unexpected EOF after reading %d/%d bins\n", _("%s: unexpected EOF after reading %d/%d bins\n"),
whoami, --i, hist_num_bins); whoami, --i, hist_num_bins);
done (1); done (1);
} }
@ -277,26 +277,26 @@ DEFUN (gmon_out_read, (filename), const char *filename)
if (hz == HZ_WRONG) if (hz == HZ_WRONG)
{ {
hz = 1; hz = 1;
fprintf (stderr, "time is in ticks, not seconds\n"); fprintf (stderr, _("time is in ticks, not seconds\n"));
} }
} }
} }
else else
{ {
fprintf (stderr, "%s: don't know how to deal with file format %d\n", fprintf (stderr, _("%s: don't know how to deal with file format %d\n"),
whoami, file_format); whoami, file_format);
done (1); done (1);
} }
if (output_style & STYLE_GMON_INFO) if (output_style & STYLE_GMON_INFO)
{ {
printf ("File `%s' (version %d) contains:\n", printf (_("File `%s' (version %d) contains:\n"),
filename, gmon_file_version); filename, gmon_file_version);
printf ("\t%d histogram record%s\n", printf (_("\t%d histogram record%s\n"),
nhist, nhist == 1 ? "" : "s"); nhist, nhist == 1 ? "" : "s");
printf ("\t%d call-graph record%s\n", printf (_("\t%d call-graph record%s\n"),
narcs, narcs == 1 ? "" : "s"); narcs, narcs == 1 ? "" : "s");
printf ("\t%d basic-block count record%s\n", printf (_("\t%d basic-block count record%s\n"),
nbbs, nbbs == 1 ? "" : "s"); nbbs, nbbs == 1 ? "" : "s");
first_output = FALSE; first_output = FALSE;
} }
@ -407,7 +407,7 @@ DEFUN (gmon_out_write, (filename), const char *filename)
} }
else else
{ {
fprintf (stderr, "%s: don't know how to deal with file format %d\n", fprintf (stderr, _("%s: don't know how to deal with file format %d\n"),
whoami, file_format); whoami, file_format);
done (1); done (1);
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1983 Regents of the University of California. * Copyright (c) 1983, 1998 Regents of the University of California.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms are permitted * Redistribution and use in source and binary forms are permitted
@ -56,8 +56,8 @@ File_Format file_format = FF_AUTO;
bool first_output = TRUE; bool first_output = TRUE;
char copyright[] = char copyright[] =
"@(#) Copyright (c) 1983 Regents of the University of California.\n\ N_("@(#) Copyright (c) 1983 Regents of the University of California.\n\
All rights reserved.\n"; All rights reserved.\n");
static char *gmon_name = GMONNAME; /* profile filename */ static char *gmon_name = GMONNAME; /* profile filename */
@ -141,7 +141,7 @@ static struct option long_options[] =
static void static void
DEFUN (usage, (stream, status), FILE * stream AND int status) DEFUN (usage, (stream, status), FILE * stream AND int status)
{ {
fprintf (stream, "\ fprintf (stream, _("\
Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]\n\ Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]\n\
[-d[num]] [-k from/to] [-m min-count] [-t table-length]\n\ [-d[num]] [-k from/to] [-m min-count] [-t table-length]\n\
[--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]\n\ [--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]\n\
@ -154,10 +154,10 @@ Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]\n\
[--static-call-graph] [--sum] [--table-length=len] [--traditional]\n\ [--static-call-graph] [--sum] [--table-length=len] [--traditional]\n\
[--version] [--width=n] [--ignore-non-functions]\n\ [--version] [--width=n] [--ignore-non-functions]\n\
[--demangle] [--no-demangle]\n\ [--demangle] [--no-demangle]\n\
[image-file] [profile-file...]\n", [image-file] [profile-file...]\n"),
whoami); whoami);
if (status == 0) if (status == 0)
fprintf (stream, "Report bugs to bug-gnu-utils@gnu.org\n"); fprintf (stream, _("Report bugs to bug-gnu-utils@gnu.org\n"));
done (status); done (status);
} }
@ -169,6 +169,10 @@ DEFUN (main, (argc, argv), int argc AND char **argv)
Sym **cg = 0; Sym **cg = 0;
int ch, user_specified = 0; int ch, user_specified = 0;
setlocale (LC_MESSAGES, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
whoami = argv[0]; whoami = argv[0];
xmalloc_set_program_name (whoami); xmalloc_set_program_name (whoami);
@ -220,7 +224,7 @@ DEFUN (main, (argc, argv), int argc AND char **argv)
} }
DBG (ANYDEBUG, printf ("[main] debug-level=0x%x\n", debug_level)); DBG (ANYDEBUG, printf ("[main] debug-level=0x%x\n", debug_level));
#ifndef DEBUG #ifndef DEBUG
printf ("%s: debugging not supported; -d ignored\n", whoami); printf (_("%s: debugging not supported; -d ignored\n"), whoami);
#endif /* DEBUG */ #endif /* DEBUG */
break; break;
case 'D': case 'D':
@ -297,7 +301,7 @@ DEFUN (main, (argc, argv), int argc AND char **argv)
file_format = FF_PROF; file_format = FF_PROF;
break; break;
default: default:
fprintf (stderr, "%s: unknown file format %s\n", fprintf (stderr, _("%s: unknown file format %s\n"),
optarg, whoami); optarg, whoami);
done (1); done (1);
} }
@ -381,10 +385,10 @@ DEFUN (main, (argc, argv), int argc AND char **argv)
break; break;
case 'v': case 'v':
/* This output is intended to follow the GNU standards document. */ /* This output is intended to follow the GNU standards document. */
printf ("GNU gprof %s\n", VERSION); printf (_("GNU gprof %s\n"), VERSION);
printf ("Based on BSD gprof, copyright 1983 Regents of the University of California.\n"); printf (_("Based on BSD gprof, copyright 1983 Regents of the University of California.\n"));
printf ("\ printf (_("\
This program is free software. This program has absolutely no warranty.\n"); This program is free software. This program has absolutely no warranty.\n"));
done (0); done (0);
case 'w': case 'w':
output_width = atoi (optarg); output_width = atoi (optarg);
@ -429,8 +433,8 @@ This program is free software. This program has absolutely no warranty.\n");
if ((user_specified & STYLE_FUNCTION_ORDER) if ((user_specified & STYLE_FUNCTION_ORDER)
&& (user_specified & STYLE_FILE_ORDER)) && (user_specified & STYLE_FILE_ORDER))
{ {
fprintf (stderr,"\ fprintf (stderr,_("\
%s: Only one of --function-ordering and --file-ordering may be specified.\n", %s: Only one of --function-ordering and --file-ordering may be specified.\n"),
whoami); whoami);
done (1); done (1);
} }
@ -529,7 +533,7 @@ This program is free software. This program has absolutely no warranty.\n");
while (optind++ < argc); while (optind++ < argc);
#else #else
fprintf (stderr, fprintf (stderr,
"%s: sorry, file format `prof' is not yet supported\n", _("%s: sorry, file format `prof' is not yet supported\n"),
whoami); whoami);
done (1); done (1);
#endif #endif
@ -590,14 +594,14 @@ This program is free software. This program has absolutely no warranty.\n");
if ((output_style & STYLE_FLAT_PROFILE) if ((output_style & STYLE_FLAT_PROFILE)
&& !(gmon_input & INPUT_HISTOGRAM)) && !(gmon_input & INPUT_HISTOGRAM))
{ {
fprintf (stderr, "%s: gmon.out file is missing histogram\n", whoami); fprintf (stderr, _("%s: gmon.out file is missing histogram\n"), whoami);
done (1); done (1);
} }
if ((output_style & STYLE_CALL_GRAPH) && !(gmon_input & INPUT_CALL_GRAPH)) if ((output_style & STYLE_CALL_GRAPH) && !(gmon_input & INPUT_CALL_GRAPH))
{ {
fprintf (stderr, fprintf (stderr,
"%s: gmon.out file is missing call-graph data\n", whoami); _("%s: gmon.out file is missing call-graph data\n"), whoami);
done (1); done (1);
} }

View File

@ -51,6 +51,29 @@
#define GMONNAME "gmon.out" /* default profile filename */ #define GMONNAME "gmon.out" /* default profile filename */
#define GMONSUM "gmon.sum" /* profile summary filename */ #define GMONSUM "gmon.sum" /* profile summary filename */
#ifdef ENABLE_NLS
#include <libintl.h>
#define _(String) gettext (String)
#ifdef gettext_noop
#define N_(String) gettext_noop (String)
#else
#define N_(String) (String)
#endif
#else
/* Stubs that do something close enough. */
#define textdomain(String) (String)
#define gettext(String) (String)
#define dgettext(Domain,Message) (Message)
#define dcgettext(Domain,Message,Type) (Message)
#define bindtextdomain(Domain,Directory) (Domain)
#define _(String) (String)
#define N_(String) (String)
/* In this case we don't care about the value. */
#ifndef LC_MESSAGES
#define LC_MESSAGES 0
#endif
#endif
/* /*
* These may already be defined on some systems. We could probably * These may already be defined on some systems. We could probably
* just use the BFD versions of these, since BFD has already dealt * just use the BFD versions of these, since BFD has already dealt

View File

@ -102,7 +102,7 @@ DEFUN (hist_read_rec, (ifp, filename), FILE * ifp AND const char *filename)
if (fread (&hdr, sizeof (hdr), 1, ifp) != 1) if (fread (&hdr, sizeof (hdr), 1, ifp) != 1)
{ {
fprintf (stderr, "%s: %s: unexpected end of file\n", fprintf (stderr, _("%s: %s: unexpected end of file\n"),
whoami, filename); whoami, filename);
done (1); done (1);
} }
@ -139,7 +139,7 @@ DEFUN (hist_read_rec, (ifp, filename), FILE * ifp AND const char *filename)
if (n_lowpc != s_lowpc || n_highpc != s_highpc if (n_lowpc != s_lowpc || n_highpc != s_highpc
|| ncnt != hist_num_bins || hz != profrate) || ncnt != hist_num_bins || hz != profrate)
{ {
fprintf (stderr, "%s: `%s' is incompatible with first gmon file\n", fprintf (stderr, _("%s: `%s' is incompatible with first gmon file\n"),
whoami, filename); whoami, filename);
done (1); done (1);
} }
@ -155,7 +155,7 @@ DEFUN (hist_read_rec, (ifp, filename), FILE * ifp AND const char *filename)
if (fread (&count[0], sizeof (count), 1, ifp) != 1) if (fread (&count[0], sizeof (count), 1, ifp) != 1)
{ {
fprintf (stderr, fprintf (stderr,
"%s: %s: unexpected EOF after reading %d of %d samples\n", _("%s: %s: unexpected EOF after reading %d of %d samples\n"),
whoami, filename, i, hist_num_bins); whoami, filename, i, hist_num_bins);
done (1); done (1);
} }
@ -374,35 +374,35 @@ DEFUN (print_header, (prefix), const char prefix)
{ {
char unit[64]; char unit[64];
sprintf (unit, "%c%c/call", prefix, hist_dimension_abbrev); sprintf (unit, _("%c%c/call"), prefix, hist_dimension_abbrev);
if (bsd_style_output) if (bsd_style_output)
{ {
printf ("\ngranularity: each sample hit covers %ld byte(s)", printf (_("\ngranularity: each sample hit covers %ld byte(s)"),
(long) hist_scale * sizeof (UNIT)); (long) hist_scale * sizeof (UNIT));
if (total_time > 0.0) if (total_time > 0.0)
{ {
printf (" for %.2f%% of %.2f %s\n\n", printf (_(" for %.2f%% of %.2f %s\n\n"),
100.0 / total_time, total_time / hz, hist_dimension); 100.0 / total_time, total_time / hz, hist_dimension);
} }
} }
else else
{ {
printf ("\nEach sample counts as %g %s.\n", 1.0 / hz, hist_dimension); printf (_("\nEach sample counts as %g %s.\n"), 1.0 / hz, hist_dimension);
} }
if (total_time <= 0.0) if (total_time <= 0.0)
{ {
printf (" no time accumulated\n\n"); printf (_(" no time accumulated\n\n"));
/* this doesn't hurt since all the numerators will be zero: */ /* this doesn't hurt since all the numerators will be zero: */
total_time = 1.0; total_time = 1.0;
} }
printf ("%5.5s %10.10s %8.8s %8.8s %8.8s %8.8s %-8.8s\n", printf ("%5.5s %10.10s %8.8s %8.8s %8.8s %8.8s %-8.8s\n",
"% ", "cumulative", "self ", "", "self ", "total ", ""); "% ", _("cumulative"), _("self "), "", _("self "), _("total "), "");
printf ("%5.5s %9.9s %8.8s %8.8s %8.8s %8.8s %-8.8s\n", printf ("%5.5s %9.9s %8.8s %8.8s %8.8s %8.8s %-8.8s\n",
"time", hist_dimension, hist_dimension, "calls", unit, unit, _("time"), hist_dimension, hist_dimension, _("calls"), unit, unit,
"name"); _("name"));
} }
@ -512,13 +512,13 @@ DEFUN_VOID (hist_print)
{ {
if (print_descriptions) if (print_descriptions)
{ {
printf ("\n\n\nflat profile:\n"); printf (_("\n\n\nflat profile:\n"));
flat_blurb (stdout); flat_blurb (stdout);
} }
} }
else else
{ {
printf ("Flat profile:\n"); printf (_("Flat profile:\n"));
} }
/* /*
* Sort the symbol table by time (call-count and name as secondary * Sort the symbol table by time (call-count and name as secondary

250
gprof/po/Make-in Normal file
View File

@ -0,0 +1,250 @@
# Makefile for program source directory in GNU NLS utilities package.
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
#
# This file file be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available.
PACKAGE = @PACKAGE@
VERSION = @VERSION@
SHELL = /bin/sh
@SET_MAKE@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
datadir = $(prefix)/@DATADIRNAME@
localedir = $(datadir)/locale
gnulocaledir = $(prefix)/share/locale
gettextsrcdir = $(prefix)/share/gettext/po
subdir = po
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
CC = @CC@
GENCAT = @GENCAT@
GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
MSGFMT = @MSGFMT@
XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
MSGMERGE = PATH=../src:$$PATH msgmerge
DEFS = @DEFS@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
INCLUDES = -I.. -I$(top_srcdir)/intl
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
SOURCES = cat-id-tbl.c
POFILES = @POFILES@
GMOFILES = @GMOFILES@
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
POTFILES = \
CATALOGS = @CATALOGS@
CATOBJEXT = @CATOBJEXT@
INSTOBJEXT = @INSTOBJEXT@
.SUFFIXES:
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
.c.o:
$(COMPILE) $<
.po.pox:
$(MAKE) $(PACKAGE).pot
$(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
.po.mo:
$(MSGFMT) -o $@ $<
.po.gmo:
file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
&& rm -f $$file && $(GMSGFMT) -o $$file $<
.po.cat:
sed -f ../intl/po2msg.sed < $< > $*.msg \
&& rm -f $@ && $(GENCAT) $@ $*.msg
all: all-@USE_NLS@
all-yes: $(CATALOGS)
all-no:
$(srcdir)/$(PACKAGE).pot: @MAINT@ $(POTFILES)
$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword=_ --keyword=N_ \
--files-from=$(srcdir)/POTFILES.in
rm -f $(srcdir)/$(PACKAGE).pot
mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot
$(srcdir)/cat-id-tbl.c: stamp-cat-id; @:
$(srcdir)/stamp-cat-id: $(PACKAGE).pot
rm -f cat-id-tbl.tmp
sed -f ../intl/po2tbl.sed $(srcdir)/$(PACKAGE).pot \
| sed -e "s/@PACKAGE NAME@/$(PACKAGE)/" > cat-id-tbl.tmp
if cmp -s cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; then \
rm cat-id-tbl.tmp; \
else \
echo cat-id-tbl.c changed; \
rm -f $(srcdir)/cat-id-tbl.c; \
mv cat-id-tbl.tmp $(srcdir)/cat-id-tbl.c; \
fi
cd $(srcdir) && rm -f stamp-cat-id && echo timestamp > stamp-cat-id
install: install-exec install-data
install-exec:
install-data: install-data-@USE_NLS@
install-data-no: all
install-data-yes: all
if test -r $(MKINSTALLDIRS); then \
$(MKINSTALLDIRS) $(datadir); \
else \
$(top_srcdir)/mkinstalldirs $(datadir); \
fi
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
case "$$cat" in \
*.gmo) destdir=$(gnulocaledir);; \
*) destdir=$(localedir);; \
esac; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
dir=$$destdir/$$lang/LC_MESSAGES; \
if test -r $(MKINSTALLDIRS); then \
$(MKINSTALLDIRS) $$dir; \
else \
$(top_srcdir)/mkinstalldirs $$dir; \
fi; \
if test -r $$cat; then \
$(INSTALL_DATA) $$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $$cat as $$dir/$(PACKAGE)$(INSTOBJEXT)"; \
else \
$(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(PACKAGE)$(INSTOBJEXT); \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT)"; \
fi; \
if test -r $$cat.m; then \
$(INSTALL_DATA) $$cat.m $$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $$cat.m as $$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
if test -r $(srcdir)/$$cat.m ; then \
$(INSTALL_DATA) $(srcdir)/$$cat.m \
$$dir/$(PACKAGE)$(INSTOBJEXT).m; \
echo "installing $(srcdir)/$$cat as" \
"$$dir/$(PACKAGE)$(INSTOBJEXT).m"; \
else \
true; \
fi; \
fi; \
done
if test "$(PACKAGE)" = "gettext"; then \
if test -r $(MKINSTALLDIRS); then \
$(MKINSTALLDIRS) $(gettextsrcdir); \
else \
$(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
fi; \
$(INSTALL_DATA) $(srcdir)/Makefile.in.in \
$(gettextsrcdir)/Makefile.in.in; \
else \
: ; \
fi
# Define this as empty until I found a useful application.
installcheck:
uninstall:
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
rm -f $(localedir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT); \
rm -f $(gnulocaledir)/$$lang/LC_MESSAGES/$(PACKAGE)$(INSTOBJEXT).m; \
done
rm -f $(gettextsrcdir)/po-Makefile.in.in
check: all
cat-id-tbl.o: ../intl/libgettext.h
dvi info tags TAGS ID:
mostlyclean:
rm -f core core.* *.pox $(PACKAGE).po *.old.po cat-id-tbl.tmp
rm -fr *.o
clean: mostlyclean
distclean: clean
rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
rm -f $(GMOFILES)
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir: update-po $(DISTFILES)
dists="$(DISTFILES)"; \
for file in $$dists; do \
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|| cp -p $(srcdir)/$$file $(distdir); \
done
update-po: Makefile
$(MAKE) $(PACKAGE).pot
PATH=`pwd`/../src:$$PATH; \
cd $(srcdir); \
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
mv $$lang.po $$lang.old.po; \
echo "$$lang:"; \
if $(MSGMERGE) $$lang.old.po $(PACKAGE).pot -o $$lang.po; then \
rm -f $$lang.old.po; \
else \
echo "msgmerge for $$cat failed!"; \
rm -f $$lang.po; \
mv $$lang.old.po $$lang.po; \
fi; \
done
POTFILES: POTFILES.in
( if test 'x$(srcdir)' != 'x.'; then \
posrcprefix='$(top_srcdir)/'; \
else \
posrcprefix="../"; \
fi; \
rm -f $@-t $@ \
&& (sed -e '/^#/d' -e '/^[ ]*$$/d' \
-e "s@.*@ $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
| sed -e '$$s/\\$$//') > $@-t \
&& chmod a-w $@-t \
&& mv $@-t $@ )
POTFILES.in: @MAINT@ ../Makefile
cd .. && $(MAKE) po/POTFILES.in
Makefile: Make-in ../config.status POTFILES
cd .. \
&& CONFIG_FILES=$(subdir)/Makefile.in:$(subdir)/Make-in \
CONFIG_HEADERS= $(SHELL) ./config.status
# Tell versions [3.59,3.63) of GNU make not to export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

37
gprof/po/POTFILES.in Normal file
View File

@ -0,0 +1,37 @@
alpha.c
basic_blocks.c
basic_blocks.h
call_graph.c
call_graph.h
cg_arcs.c
cg_arcs.h
cg_dfn.c
cg_dfn.h
cg_print.c
cg_print.h
core.c
core.h
gmon.h
gmon_io.c
gmon_io.h
gmon_out.h
gprof.c
gprof.h
hertz.c
hertz.h
hist.c
hist.h
i386.c
search_list.c
search_list.h
source.c
source.h
sparc.c
sym_ids.c
sym_ids.h
symtab.c
symtab.h
tahoe.c
utils.c
utils.h
vax.c

471
gprof/po/gprof.pot Normal file
View File

@ -0,0 +1,471 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Free Software Foundation, Inc.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 1998-04-22 00:30-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: ENCODING\n"
#: alpha.c:89
msgid "<indirect child>"
msgstr ""
#: alpha.c:106
#, c-format
msgid "[find_call] %s: 0x%lx to 0x%lx\n"
msgstr ""
#: alpha.c:127
#, c-format
msgid "[find_call] 0x%lx: jsr%s <indirect_child>\n"
msgstr ""
#: alpha.c:136
#, c-format
msgid "[find_call] 0x%lx: bsr"
msgstr ""
#: basic_blocks.c:134 call_graph.c:70 hist.c:105
#, c-format
msgid "%s: %s: unexpected end of file\n"
msgstr ""
#: basic_blocks.c:214
#, c-format
msgid "%s: warning: ignoring basic-block exec counts (use -l or --line)\n"
msgstr ""
#: basic_blocks.c:322 basic_blocks.c:330
#, c-format
msgid "%s:%d: (%s:0x%lx) %d executions\n"
msgstr ""
#: basic_blocks.c:323 basic_blocks.c:331
msgid "<unknown>"
msgstr ""
#: basic_blocks.c:584
#, c-format
msgid ""
"\n"
"\n"
"Top %d Lines:\n"
"\n"
" Line Count\n"
"\n"
msgstr ""
#: basic_blocks.c:608
msgid ""
"\n"
"Execution Summary:\n"
"\n"
msgstr ""
#: basic_blocks.c:609
#, c-format
msgid "%9ld Executable lines in this file\n"
msgstr ""
#: basic_blocks.c:611
#, c-format
msgid "%9ld Lines executed\n"
msgstr ""
#: basic_blocks.c:612
#, c-format
msgid "%9.2f Percent of the file executed\n"
msgstr ""
#: basic_blocks.c:616
#, c-format
msgid ""
"\n"
"%9d Total number of line executions\n"
msgstr ""
#: basic_blocks.c:617
#, c-format
msgid "%9.2f Average executions per line\n"
msgstr ""
#: call_graph.c:48
#, c-format
msgid "[cg_tally] arc from %s to %s traversed %d times\n"
msgstr ""
#: cg_print.c:39
msgid ""
"\t\t Call graph (explanation follows)\n"
"\n"
msgstr ""
#: cg_print.c:43
msgid ""
"\t\t\tCall graph\n"
"\n"
msgstr ""
#: cg_print.c:46 hist.c:381
#, c-format
msgid ""
"\n"
"granularity: each sample hit covers %ld byte(s)"
msgstr ""
#: cg_print.c:50
msgid ""
" for %.2f%% of %.2f seconds\n"
"\n"
msgstr ""
#: cg_print.c:55
msgid ""
" no time propagated\n"
"\n"
msgstr ""
#: cg_print.c:64 cg_print.c:67 cg_print.c:69
msgid "called"
msgstr ""
#: cg_print.c:64 cg_print.c:69
msgid "total"
msgstr ""
#: cg_print.c:64
msgid "parents"
msgstr ""
#: cg_print.c:66 cg_print.c:67
msgid "index"
msgstr ""
#: cg_print.c:66
msgid "%time"
msgstr ""
#: cg_print.c:66 cg_print.c:67
msgid "self"
msgstr ""
#: cg_print.c:66
msgid "descendents"
msgstr ""
#: cg_print.c:67 hist.c:405
msgid "name"
msgstr ""
#: cg_print.c:69
msgid "children"
msgstr ""
#: cg_print.c:74
msgid "index %% time self children called name\n"
msgstr ""
#: cg_print.c:101
#, c-format
msgid " <cycle %d as a whole> [%d]\n"
msgstr ""
#: cg_print.c:353
#, c-format
msgid "%6.6s %5.5s %7.7s %11.11s %7.7s %7.7s <spontaneous>\n"
msgstr ""
#: cg_print.c:354
#, c-format
msgid "%6.6s %5.5s %7.7s %7.7s %7.7s %7.7s <spontaneous>\n"
msgstr ""
#: cg_print.c:586
msgid ""
"\f\n"
"Index by function name\n"
"\n"
msgstr ""
#: cg_print.c:643 cg_print.c:652
#, c-format
msgid "<cycle %d>"
msgstr ""
#: core.c:39
#, c-format
msgid "%s: could not open %s.\n"
msgstr ""
#: core.c:53 core.c:87
#, c-format
msgid "%s: unable to parse mapping file %s.\n"
msgstr ""
#: core.c:128
#, c-format
msgid "%s: %s: not in a.out format\n"
msgstr ""
#: core.c:139
#, c-format
msgid "%s: can't find .text section in %s\n"
msgstr ""
#: core.c:198
#, c-format
msgid "%s: ran out room for %ld bytes of text space\n"
msgstr ""
#: core.c:211
#, c-format
msgid "%s: can't do -c\n"
msgstr ""
#: core.c:243
#, c-format
msgid "%s: -c not supported on architecture %s\n"
msgstr ""
#: core.c:432
#, c-format
msgid "%s: file `%s' has no symbols\n"
msgstr ""
#: core.c:726
#, c-format
msgid "%s: somebody miscounted: ltab.len=%d instead of %ld\n"
msgstr ""
#: gmon_io.c:33 gmon_io.c:55
#, c-format
msgid "%s: bfd_vma has unexpected size of %ld bytes\n"
msgstr ""
#: gmon_io.c:87 gmon_io.c:179
#, c-format
msgid "%s: file too short to be a gmon file\n"
msgstr ""
#: gmon_io.c:97
#, c-format
msgid "%s: file `%s' has bad magic cookie\n"
msgstr ""
#: gmon_io.c:108
#, c-format
msgid "%s: file `%s' has unsupported version %d\n"
msgstr ""
#: gmon_io.c:138
#, c-format
msgid "%s: %s: found bad tag %d (file corrupted?)\n"
msgstr ""
#: gmon_io.c:197
#, c-format
msgid "%s: profiling rate incompatible with first gmon file\n"
msgstr ""
#: gmon_io.c:207
#, c-format
msgid "%s: incompatible with first gmon file\n"
msgstr ""
#: gmon_io.c:245
#, c-format
msgid "%s: unexpected EOF after reading %d/%d bins\n"
msgstr ""
#: gmon_io.c:280
msgid "time is in ticks, not seconds\n"
msgstr ""
#: gmon_io.c:286 gmon_io.c:410
#, c-format
msgid "%s: don't know how to deal with file format %d\n"
msgstr ""
#: gmon_io.c:293
#, c-format
msgid "File `%s' (version %d) contains:\n"
msgstr ""
#: gmon_io.c:295
#, c-format
msgid "\t%d histogram record%s\n"
msgstr ""
#: gmon_io.c:297
#, c-format
msgid "\t%d call-graph record%s\n"
msgstr ""
#: gmon_io.c:299
#, c-format
msgid "\t%d basic-block count record%s\n"
msgstr ""
#: gprof.c:59
msgid ""
"@(#) Copyright (c) 1983 Regents of the University of California.\n"
" All rights reserved.\n"
msgstr ""
#: gprof.c:144
#, c-format
msgid ""
"Usage: %s [-[abcDhilLsTvwxyz]] [-[ACeEfFJnNOpPqQZ][name]] [-I dirs]\n"
"\t[-d[num]] [-k from/to] [-m min-count] [-t table-length]\n"
"\t[--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]\n"
"\t[--[no-]flat-profile[=name]] [--[no-]graph[=name]]\n"
"\t[--[no-]time=name] [--all-lines] [--brief] [--debug[=level]]\n"
"\t[--function-ordering] [--file-ordering]\n"
"\t[--directory-path=dirs] [--display-unused-functions]\n"
"\t[--file-format=name] [--file-info] [--help] [--line] [--min-count=n]\n"
"\t[--no-static] [--print-path] [--separate-files]\n"
"\t[--static-call-graph] [--sum] [--table-length=len] [--traditional]\n"
"\t[--version] [--width=n] [--ignore-non-functions]\n"
"\t[--demangle] [--no-demangle]\n"
"\t[image-file] [profile-file...]\n"
msgstr ""
#: gprof.c:160
msgid "Report bugs to bug-gnu-utils@gnu.org\n"
msgstr ""
#: gprof.c:227
#, c-format
msgid "%s: debugging not supported; -d ignored\n"
msgstr ""
#: gprof.c:304
#, c-format
msgid "%s: unknown file format %s\n"
msgstr ""
#. This output is intended to follow the GNU standards document.
#: gprof.c:388
#, c-format
msgid "GNU gprof %s\n"
msgstr ""
#: gprof.c:389
msgid ""
"Based on BSD gprof, copyright 1983 Regents of the University of California.\n"
msgstr ""
#: gprof.c:390
msgid ""
"This program is free software. This program has absolutely no warranty.\n"
msgstr ""
#: gprof.c:436
#, c-format
msgid ""
"%s: Only one of --function-ordering and --file-ordering may be specified.\n"
msgstr ""
#: gprof.c:536
#, c-format
msgid "%s: sorry, file format `prof' is not yet supported\n"
msgstr ""
#: gprof.c:597
#, c-format
msgid "%s: gmon.out file is missing histogram\n"
msgstr ""
#: gprof.c:604
#, c-format
msgid "%s: gmon.out file is missing call-graph data\n"
msgstr ""
#: hist.c:142
#, c-format
msgid "%s: `%s' is incompatible with first gmon file\n"
msgstr ""
#: hist.c:158
#, c-format
msgid "%s: %s: unexpected EOF after reading %d of %d samples\n"
msgstr ""
#: hist.c:377
#, c-format
msgid "%c%c/call"
msgstr ""
#: hist.c:385
msgid ""
" for %.2f%% of %.2f %s\n"
"\n"
msgstr ""
#: hist.c:391
#, c-format
msgid ""
"\n"
"Each sample counts as %g %s.\n"
msgstr ""
#: hist.c:396
msgid ""
" no time accumulated\n"
"\n"
msgstr ""
#: hist.c:402
msgid "cumulative"
msgstr ""
#: hist.c:402
msgid "self "
msgstr ""
#: hist.c:402
msgid "total "
msgstr ""
#: hist.c:404
msgid "time"
msgstr ""
#: hist.c:404
msgid "calls"
msgstr ""
#: hist.c:515
msgid ""
"\n"
"\n"
"\n"
"flat profile:\n"
msgstr ""
#: hist.c:521
msgid "Flat profile:\n"
msgstr ""
#: source.c:140
#, c-format
msgid "%s: could not locate `%s'\n"
msgstr ""
#: source.c:200
#, c-format
msgid "*** File %s:\n"
msgstr ""
#: utils.c:93
#, c-format
msgid " <cycle %d>"
msgstr ""

View File

@ -137,7 +137,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
{ {
if (errno == ENOENT) if (errno == ENOENT)
{ {
fprintf (stderr, "%s: could not locate `%s'\n", fprintf (stderr, _("%s: could not locate `%s'\n"),
whoami, sf->name); whoami, sf->name);
} }
else else
@ -197,7 +197,7 @@ DEFUN (annotate_source, (sf, max_width, annote, arg),
{ {
fprintf (ofp, "\f\n"); fprintf (ofp, "\f\n");
} }
fprintf (ofp, "*** File %s:\n", sf->name); fprintf (ofp, _("*** File %s:\n"), sf->name);
} }
annotation = xmalloc (max_width + 1); annotation = xmalloc (max_width + 1);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1983 Regents of the University of California. * Copyright (c) 1983, 1998 Regents of the University of California.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms are permitted * Redistribution and use in source and binary forms are permitted
@ -90,7 +90,7 @@ DEFUN (print_name, (self), Sym * self)
if (self->cg.cyc.num != 0) if (self->cg.cyc.num != 0)
{ {
printf (" <cycle %d>", self->cg.cyc.num); printf (_(" <cycle %d>"), self->cg.cyc.num);
} }
if (self->cg.index != 0) if (self->cg.index != 0)
{ {