Changeset 907


Ignore:
Timestamp:
Nov 29, 2009, 4:33:19 PM (11 years ago)
Author:
Peter Johansson
Message:

Autoconf 2.63 is now required (closes #414).

refs #380. A first implementation of svndigest-copy-cache. It is is
written in M4sh. Autoconf compiles the source in
svndigest-copy-cache.as to svndigest-copy-cache.in, which in turn is
processed by config.status to replace some keywords such as PACKAGE
and friends. There is no docs and no test yet.

added *.as in config file

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/.svndigest/config

    r890 r907  
    5050*.am = "#":"\n"
    5151*.m4 = "#":"\n"  ;  "dnl":"\n"
     52*.as = "#":"\n"  ;  "dnl":"\n"
    5253*.c = "//":"\n"  ;  "/*":"*/"
    5354*.cc = "//":"\n"  ;  "/*":"*/"
  • trunk/README.developer

    r874 r907  
    2424
    2525To build from a subversion checkout, you will need Autotools. More
    26 specifically Automake 1.10 (or later) and Autoconf 2.61 (or later). To
     26specifically Automake 1.10 (or later) and Autoconf 2.63 (or later). To
    2727build man page you will need help2man.
    2828
  • trunk/bin/Makefile.am

    r898 r907  
    2828noinst_HEADERS = Parameter.h
    2929
     30bin_SCRIPTS = svndigest-copy-cache
     31EXTRA_DIST = svndigest-copy-cache.as
     32
    3033LDADD = $(top_builddir)/lib/libsvndigest.a \
    3134  $(top_builddir)/lib/yat/libyat.a $(SVN_LIBS) $(APR_LIBS) $(PLPLOT_LIBS)
     
    3639AM_CXXFLAGS = $(DEFAULT_CXXFLAGS)
    3740
     41.as.in:
     42  $(AUTOM4TE) -l M4sh -o $@ -m 0444 $<
     43
     44MAINTAINERCLEANFILES = svndigest-copy-cache.in
     45
    3846clean-local:
    3947  rm -rf *~
  • trunk/configure.ac

    r905 r907  
    2929# along with svndigest. If not, see <http://www.gnu.org/licenses/>.
    3030
    31 AC_PREREQ(2.61)
     31AC_PREREQ([2.63])
    3232
    3333m4_include([m4/version.m4])
     
    4343m4_ifndef([AC_PACKAGE_URL],
    4444          [AC_DEFINE([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"],
    45                      [Define to home page for this package])])
     45                     [Define to home page for this package])
     46           AC_SUBST([PACKAGE_URL], ["http://dev.thep.lu.se/svndigest"])])
    4647
    4748AC_SUBST([SVNDIGEST_MAJOR_VERSION], [MAJOR_VERSION])
     
    6061AC_CONFIG_HEADER([config.h])
    6162AM_INIT_AUTOMAKE([1.10 std-options])
     63
     64dnl create bin/svndigest-copy-cache.in at autoconf time and let
     65dnl config.status create bin/svndigest-copy-cache from
     66dnl bin/svndigest-copy-cache.in
     67m4_pushdef([FILE], [svndigest-copy-cache])
     68m4_pushdef([my_m4sh_options], [-m 0444])
     69dnl me cd down in bin to have same output as when created from Makefile
     70m4_syscmd([cd bin && autom4te -l M4sh -o ]FILE[.in ]my_m4sh_options FILE[.as])
     71AC_CONFIG_FILES([bin/]FILE[], [chmod +x bin/]FILE[ && chmod a-w bin/]FILE[])
     72dnl export options so we can use the same in Makefile
     73AC_SUBST([M4SH_OPTIONS], ['my_m4sh_options'])
     74m4_popdef([my_m4sh_options])
     75m4_popdef([FILE])
     76AM_MISSING_PROG([AUTOM4TE], [autom4te])
    6277
    6378# Set default programming language
Note: See TracChangeset for help on using the changeset viewer.