Re: How do I configure Makefile.am to run a program?

2008-03-25 Thread Jim Lynch
On Tue, Mar 25, 2008 at 10:30 AM, Bernd Jendrissek [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 7:27 AM, John Calcote [EMAIL PROTECTED] wrote: Thanks, but the problem with this solution is that I would have to rerun the .configure step each time. Forgetting to do that is as as

Re: How do I configure Makefile.am to run a program?

2008-03-22 Thread Jim Lynch
On Fri, Mar 21, 2008 at 3:28 PM, John Calcote [EMAIL PROTECTED] wrote: Jim, Don't use make to do this - just use autoconf, and let your configure script deal with it: configure.ac AC_INIT(...) ... svnrev=`svnversion .` AC_SUBST(svnrev) ... AC_CONFIG_FILES([Makefile ...

Re: How do I configure Makefile.am to run a program?

2008-03-22 Thread Jim Lynch
On Fri, Mar 21, 2008 at 3:57 PM, Harlan Stenn [EMAIL PROTECTED] wrote: I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been manually changing it but since I forget to sometimes, I'd like for make to

How do I configure Makefile.am to run a program?

2008-03-21 Thread Jim Lynch
I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been manually changing it but since I forget to sometimes, I'd like for make to generate the spec file for me. I wrote a small perl program that reads a template

How do I write a configure.ac file to default sysconfdir to /etc?

2007-01-24 Thread Jim Lynch
I have an application where most of what I need installed goes to /usr/local/*, except I really want to put stuff in /etc. By default sysconfdir gets set to /usr/local/etc but if I do a ./configure --sysconfdir=/etc I get what I want. However as I advance in age, I forget more than I used to so

Re: How do I write a configure.ac file to default sysconfdir to /etc?

2007-01-24 Thread Jim Lynch
, This is actually an Autoconf question. I don't think that's easy to infer, though. * Jim Lynch wrote on Wed, Jan 24, 2007 at 07:13:41PM CET: [...] if I do a ./configure --sysconfdir=/etc I get what I want. However as I advance in age, I forget more than I used to so remembering to add that parameter

Re: How do I get configuration files installed?

2006-12-21 Thread Jim Lynch
Ralf Wildenhues wrote: Hello Jim, * Jim Lynch wrote on Fri, Oct 27, 2006 at 02:46:04PM CEST: I'm trying to figure out how to add a file to be installed in $prefix/bin/lib. Why in the world would you want that? (Honest question!) Wouldn't it be enough if you used $(libdir

How do I get configuration files installed?

2006-10-27 Thread Jim Lynch
I'm trying to figure out how to add a file to be installed in $prefix/bin/lib. I'm able to add files to bin by putting bin_SCRIPTS=bin/float.pl bin/work.pl in my Makefile.AM But when I put bin_SCRIPTS=bin/float.pl bin/work.pl bin/lib/cipher.txt in there, it simply puts ciper.txt in bin also.

Re: Buliding a shared library and need to specify an existing library, how?

2006-06-29 Thread Jim Lynch
Ralf Wildenhues wrote: Hello Jim, * Jim wrote on Wed, Jun 28, 2006 at 09:50:53PM CEST: Note you list -lsqlite3 both before and after -limageserver-0.1. Try listing it after only (or do they depend on each other mutually? Then you may need --preserve-dup-deps in AM_LIBTOOLFLAGS). But...