[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH]: support for configure --program-prefix/suffix option

From: Dominik Westner <lists_at_logicunited.com>
Date: 2001-09-09 17:35:34 CEST

HI all,

here is a little patch to support configure's --program-prefix/suffix
options.

I tested it on a freshly checked out version of svn (v.72). The patch
was created with svn diff.
I hope someone can integrate it into the repository.

Greetings

Dominik

----- cut here ----
Index: ./Makefile.in
===================================================================
--- ./SVN/text-base/Makefile.in Sun Sep 9 15:40:44 2001
+++ ./Makefile.in Sun Sep 9 15:41:00 2001
@@ -26,6 +26,9 @@
  fs_bindir=@bindir@
  includedir = @includedir@

+program_prefix = @program_prefix@
+program_suffix = @program_suffix@
+
  ### should search for these...
  MAKEINFO = makeinfo
  TEXI2DVI = texi2dvi
Index: ./configure.in
===================================================================
--- ./SVN/text-base/configure.in Sun Sep 9 15:40:47 2001
+++ ./configure.in Sun Sep 9 16:26:26 2001
@@ -198,6 +198,10 @@

  dnl Process some configuration options ----------
+AC_SUBST(program_prefix)
+AC_SUBST(program_suffix)
+test "$program_prefix" = NONE && program_prefix=""
+test "$program_suffix" = NONE && program_suffix=""

  AC_ARG_ENABLE(debug,
  [ --enable-debug Turn on debugging and compile time
warnings],
Index: ./gen-make.py
===================================================================
--- ./SVN/text-base/gen-make.py Sun Sep 9 15:40:57 2001
+++ ./gen-make.py Sun Sep 9 15:41:00 2001
@@ -126,6 +126,7 @@
          libs.append(lib)

      targ_varname = string.replace(target, '-', '_')
+
      ldflags = parser.get(target, 'link-flags')
      add_deps = parser.get(target, 'add-deps')
      objnames = string.join(map(os.path.basename, objects))
@@ -292,7 +293,7 @@
      self.type = type

      if type == 'exe':
- tfile = name
+ tfile = '$(program_prefix)' + name + '$(program_suffix)'
        self.objext = '.o'
        if not install:
          install = 'bin'

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:40 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.