Skip to content

Commit

Permalink
Several examples of configure.ac and Makefile.am
Browse files Browse the repository at this point in the history
  • Loading branch information
eribertomota committed Nov 15, 2019
0 parents commit e1baac3
Show file tree
Hide file tree
Showing 5,913 changed files with 475,524 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
10 changes: 10 additions & 0 deletions 6tunnel-0.13/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

bin_PROGRAMS = 6tunnel

6tunnel_SOURCES = 6tunnel.c

dist_man_MANS = 6tunnel.1

TESTS = ./test.py

EXTRA_DIST = test.py
36 changes: 36 additions & 0 deletions 6tunnel-0.13/configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
AC_INIT([6tunnel],[0.13],[])
AM_INIT_AUTOMAKE([1.14 foreign silent-rules subdir-objects tar-pax])
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PATH_PROG(STRIP, strip, :)

test -d /usr/local/v6/lib && LIBS="$LIBS -L/usr/local/v6/lib"
test -d /usr/inet6/lib && LIBS="$LIBS -L/usr/inet6/lib"
test -d /usr/local/inet6/lib && LIBS="$LIBS -L/usr/local/inet6/lib"

AC_CHECK_LIB(nsl, t_accept, LIBS="$LIBS -lnsl")
AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
AC_CHECK_LIB(inet6, main, LIBS="$LIBS -linet6")

AC_STDC_HEADERS
AC_HAVE_HEADERS(sys/socket.h netinet/in.h arpa/inet.h netdb.h, , AC_MSG_ERROR([Socket related headers missing.]))
AC_CHECK_FUNCS(getaddrinfo, , AC_MSG_ERROR([Your system doesn't support IPv6.]))

AC_MSG_CHECKING([for AF_INET6])
AC_TRY_COMPILE([#include <sys/socket.h>], [int x = AF_INET6;], [
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
AC_MSG_ERROR([Your system doesn't support IPv6.])
])

AC_SUBST(VERSION)
VERSION=`grep '6tunnel v' 6tunnel.c | sed 's/.*v//'`

AC_CONFIG_FILES([
Makefile
])

AC_OUTPUT

27 changes: 27 additions & 0 deletions a2ps-4.14/.pc/02_composite_fonts.diff/encoding/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
## -*- Makefile -*-
##
## Makefile for a2ps' encodings directory.
##
## Copyright (c) 1988-1993 Miguel Santana
## Copyright (c) 1995-1999 Akim Demaille, Miguel Santana
## $Id: Makefile.am,v 1.1.1.1.2.1 2007/04/02 20:46:57 mhatta Exp $
##

# As a new `feature' :), a2ps uses now even more directories
encodingsdir = $(pkgdatadir)/encoding

# I don't want to hurt anybody here, this is under the pressure
# of many users. Don't pay attention to the names.
major_encodings = ascii.edf iso1.edf
minor_encodings = \
ms-cp1250.edf hp.edf mac.edf ibm-cp437.edf ibm-cp850.edf iso2.edf \
iso3.edf iso4.edf iso5.edf iso7.edf iso9.edf iso10.edf iso13.edf \
iso15.edf koi8.edf ms-cp1251.edf

if EXTENSIONS
encodings_DATA = encoding.map $(major_encodings) $(minor_encodings)
else
encodings_DATA = encoding.map $(major_encodings)
endif

EXTRA_DIST = README encoding.map $(major_encodings) $(minor_encodings)
59 changes: 59 additions & 0 deletions a2ps-4.14/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
## Top level Makefile for a2ps.
## Copyright (C) 1995-2007 Akim Demaille, Miguel Santana and Masayuki Hatta
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = check-news 1.6.3 dist-bzip2 readme-alpha

## Make sure to drop doc at the end: it causes may problems, so
## let's do the maximum before it
SUBDIRS = auxdir m4 etc ps ogonkify \
lib src po tests sheets encoding afm fonts ppd contrib doc man

ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = TODO ANNOUNCE FAQ a2ps.prj arch

MAKE_AUTHORS = make-authors.pl

## I shouldn't need this, it looks like a bug in Automake
AMTAR = @AMTAR@
AMTARFLAGS = @AMTARFLAGS@
PERL = @PERL@
all-local: FAQ AUTHORS

prcs-diff:
thisver=`echo "Version-$(VERSION)" | sed 's/\./-/g'`; \
IFS="${IFS}:,;" ; \
for prev in $(PREV); \
do \
prevno=`echo "$$prev" | sed 's/^\./0./'`; \
prevver=Version-`echo $$prevno | sed 's/\./-/g'`; \
diff=$(PACKAGE)-$$prevno-$(VERSION).diff; \
prcs diff -r $$prevver -r $$thisver -N $(PACKAGE) -- -u > $$diff; \
gzip -c $$diff > $$diff.gz && \
bzip2 $$diff ;\
done

FAQ: $(top_srcdir)/doc/a2ps.texi
LC_ALL=C $(MAKEINFO) --no-header -I $(top_srcdir)/doc a2ps.texi | \
sed -n -f $(top_srcdir)/auxdir/make-faq.sed > FAQ-tmp
mv FAQ-tmp FAQ

AUTHORS: $(top_srcdir)/doc/translators.txt $(top_srcdir)/doc/$(MAKE_AUTHORS) $(top_srcdir)/sheets/sheets.map
cd doc \
&& $(PERL) $(MAKE_AUTHORS) > $@-t \
&& chmod 644 $@-t
mv doc/$@-t $@
76 changes: 76 additions & 0 deletions a2ps-4.14/afm/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# -*- Makefile -*-
# Makefile for a2ps' AFM library directory.
#
# Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
# Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
#
# $Id: Makefile.am,v 1.1.1.1.2.2 2007/12/29 01:58:10 mhatta Exp $
#

#
# This file is part of a2ps.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

A2PS = $(top_builddir)/src/a2ps
A2PS_CONFIG = $(top_builddir)/tests/a2ps-tst.cfg

# As a new `feature' :), a2ps uses now even more directories
afmdir = $(pkgdatadir)/afm

pcg_afms = pcfont.afm

level1_afms = \
pcrb.afm pcrbo.afm pcrr.afm pcrro.afm \
phvb.afm phvbo.afm phvr.afm phvro.afm \
ptmb.afm ptmbi.afm ptmi.afm ptmr.afm \
psyr.afm

level2_afms = \
pagb.afm pagbo.afm pagd.afm pagdo.afm \
pbkd.afm pbkdi.afm pbkl.afm pbkli.afm \
phvbon.afm phvbrn.afm phvron.afm phvrrn.afm \
pncb.afm pncbi.afm pncr.afm pncri.afm \
pplb.afm pplbi.afm pplr.afm pplri.afm \
pzcmi.afm pzdr.afm

all_afms = $(pcg_afms) $(level1_afms) $(level2_afms)

if EXTENSIONS
afm_DATA = fonts.map $(all_afms)
afm_SCRIPTS = make_fonts_map.sh
else
afm_DATA = fonts.map $(level1_afms)
endif

EXTRA_DIST = $(all_afms) make_fonts_map.sh fontsmap
DISTCLEANFILES = fonts.map

# FIXME: touch fonts.map
# It is needed because a2ps cannot run if it cannot find a fonts.map
# file, and since we need a2ps so that it tells us its path, we create
# an empty fonts.map just for the time of the configuration
fonts.map: $(srcdir)/make_fonts_map.sh $(A2PS_CONFIG)
. $(top_builddir)/tests/defs ;\
touch fonts.map ; \
if $(SHELL) $(srcdir)/make_fonts_map.sh > /dev/null; then \
mv fonts.map.new fonts.map ;\
else \
echo "Failed to build a fonts.map file."; \
echo "Reverting to default file."; \
cp $(srcdir)/fontsmap fonts.map; \
fi
23 changes: 23 additions & 0 deletions a2ps-4.14/auxdir/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## -*- Makefile -*-
# a2ps auxdir directory
## Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
## Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
## $Id: Makefile.am,v 1.1.1.1.2.1 2007/12/29 01:58:11 mhatta Exp $
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 3, or (at your option)
## any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

## Process this file with automake to produce Makefile.in

EXTRA_DIST = msdos.sh make-faq.sed update-ogonkify.sh
43 changes: 43 additions & 0 deletions a2ps-4.14/contrib/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Makefile for a2ps/contrib.
# Copyright (c) 1995-2000 Akim Demaille, Miguel Santana
#

#
# This file is part of a2ps.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

## Process this file with automake to produce Makefile.in

SUBDIRS = sample emacs

bin_SCRIPTS = card fixps pdiff psmandup psset texi2dvi4a2ps
bin_PROGRAMS = fixnt

fixnt_SOURCES = fixnt.l

EXTRA_DIST = \
card.in fixps.in pdiff.in psmandup.in psset.in texi2dvi4a2ps \
card.m4 fixps.m4 pdiff.m4 psmandup.m4 psset.m4 shell.m4

M4 = @M4@
SUFFIXES = .m4 .in

.m4.in: shell.m4
$(M4) $*.m4 | \
sed -e 's/@BKL@/[/g;s/@BKR@/]/g;s/@DLR@/$$/g;s/@PND@/#/g'>$@-tmp
mv $@-tmp $@
3 changes: 3 additions & 0 deletions a2ps-4.14/contrib/emacs/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Process this file with automake to produce Makefile.in

dist_lisp_LISP = a2ps.el a2ps-print.el
38 changes: 38 additions & 0 deletions a2ps-4.14/contrib/sample/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# -*- Makefile -*-
# Makefile for a2ps' sources.
# Copyright (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
# Copyright (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
#

#
# This file is part of a2ps.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#

## Process this file with automake to produce Makefile.in

## Since this package is written in ansi, be ready to un-ansify
AUTOMAKE_OPTIONS = $(top_builddir)/lib/ansi2knr
localedir = $(datadir)/locale

noinst_PROGRAMS = sample

sample_SOURCES = main.c

INCLUDES = -I. -I.. -I$(top_builddir) -I$(top_srcdir)/intl -I$(top_srcdir)/lib
sample_LDADD = $(top_builddir)/lib/liba2ps.la @LIBINTL@ -lm
DEFS = @DEFS@ -DLOCALEDIR=\"$(localedir)\"
Loading

0 comments on commit e1baac3

Please sign in to comment.