unit testing with autotools

2006-03-13 Thread Chris Pickett
utotest tutorials but the advice in the archives seems to be, "look at other projects and existing tutorials and cobble something together." Cheers, Chris -- Chris Pickett, Ph.D. student Sable Research Group Center for Advanced Studies McGill University, Montreal

Re: unit testing with autotools

2006-03-14 Thread Chris Pickett
Hi Ralf, Ralf Wildenhues wrote: Hi Chris, * Chris Pickett wrote on Mon, Mar 13, 2006 at 06:13:07PM CET: I'd like to do unit testing for test-driven development of C programs. I'd also like to use up-to-date autotools. I was wondering if anyone had any experience with unit testin

Re: unit testing with autotools

2006-03-14 Thread Chris Pickett
[[ Sorry, I originally sent this from an unsubscribed account ]] Original Message Subject: Re: unit testing with autotools Date: Tue, 14 Mar 2006 11:25:06 -0500 From: Chris Pickett <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Ralf Wildenhues <[EMAIL PROTE

Re: question about handling dependent libraries...

2006-03-16 Thread Chris Pickett
be the cleanest solution. http://www.sablevm.org Cheers, -- Chris Pickett http://www.sable.mcgill.ca/~cpicke/ ___ Autoconf mailing list Autoconf@gnu.org http://lists.gnu.org/mailman/listinfo/autoconf

Re: unit testing with autotools

2006-03-16 Thread Chris Pickett
Bob Proulx wrote: Chris Pickett wrote: [[ Sorry, I originally sent this from an unsubscribed account ]] That is okay. Postings are allowed from non-subscribers. No need to repost. Both of your messages made it to the mailing list. Yeah, I realize now---it's just that the list s

autoreconf and aclocal options (-I, --ac-dir)

2006-03-20 Thread Chris Pickett
Hi, I looked at autoreconf and it doesn't pass the dirs of the -I flag on to aclocal. The only way for aclocal to get the dirs for -I and --ac-dir (which, ok, is not for external usage) is by matching ACLOCAL_[A-Z_]*FLAGS\s*=\s*(.*) in a Makefile. Assuming this is intentional, perhaps the a

Re: autoreconf and aclocal options (-I, --ac-dir)

2006-03-27 Thread Chris Pickett
Vincent Torri wrote: put AC_CONFIG_MACRO_DIR(m4) in configure.(in/ac) after AC_INIT and before AM_INIT_AUTOMAKE (it does not work for me if I put it after AM_INIT_AUTOMAKE) and in the toplevel Makefile.am, put : ACLOCAL_AMFLAGS = -I m4 It works for me that way :) Well, in my case, I'm wr

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-02 Thread Chris Pickett
On Sun, April 2, 2006 7:35 am, Peter Volkov wrote: > I'm using autoconf / automake to build my program. I'd like to set some > default CFLAGS for my project with the following variable in my > src/Makefile.am: > > > AM_CFLAGS = $(GLIB_CFLAGS) -O3 -Wall -ffast-math I wouldn't worry about -O3 and -f

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-04 Thread Chris Pickett
On Tue, April 4, 2006 11:13 am, Ralf Corsepius wrote: > The problem is portability. > > > The "-g -O2" autoconf uses is nothing but a default, which is known to > be safe on the majority of platforms and therefore is likely to be safe as > a compromise between "optimization" and "non-optimization".

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-04 Thread Chris Pickett
On Tue, April 4, 2006 12:12 pm, Chris Pickett wrote: > Ok, two things. First, the Automake manual does describe in some detail > setting CFLAGS (and CPPFLAGS, and so on); see the FAQ entry at the end > about the ordering differences. Just to be clear, I mean this: "What we recomme

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-04 Thread Chris Pickett
Ralf Corsepius wrote: On Tue, 2006-04-04 at 12:12 -0400, Chris Pickett wrote: I'm failing to see what it is (in particular, because I want to avoid repetition). If there is no difference then it appears by your arguments that the documentation and even support for AM_CFLAGS, AM_CPPFLAGS

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-04 Thread Chris Pickett
Jacob Meuser wrote: On Tue, Apr 04, 2006 at 02:20:39PM -0400, Chris Pickett wrote: presumably, if you are adding stuff, you already know exactly why you are adding it, exactly what it does, and exactly what the consequences are. no different than anything else in computing. I guess this is

Re: configure sets CFLAGS or how to disable default CFLAGS='-g -O2' for gcc?

2006-04-05 Thread Chris Pickett
Ralf Wildenhues wrote: * Chris Pickett wrote on Wed, Apr 05, 2006 at 07:28:23AM CEST: For example, I didn't know AC_PROG_CC set "-g -O2", even though I had been using it for a while. Quoting info Autoconf "C Compiler": | If using the GNU C compiler, set shell varia

why not check $PATH for m4?

2007-02-04 Thread Chris Pickett
Hi, I'm not subscribed, please reply-all. I installed m4-1.4.8 locally. However, in order for auto(re)conf find it, I have to do `export M4=$HOME/$MY_PREFIX/bin/m4' Otherwise, with an empty $M4, I get this error from /usr/bin/m4: /usr/bin/m4: `changeword' from frozen file not found in built

Re: why not check $PATH for m4?

2007-02-04 Thread Chris Pickett
Chris Pickett wrote: Hi, I'm not subscribed, please reply-all. I installed m4-1.4.8 locally. However, in order for auto(re)conf find it, I have to do `export M4=$HOME/$MY_PREFIX/bin/m4' Otherwise, with an empty $M4, I get this error from /usr/bin/m4: /usr/bin/m4: `changeword&#x

Re: why not check $PATH for m4?

2007-02-04 Thread Chris Pickett
Eric Blake wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Chris Pickett on 2/2/2007 10:58 PM: Hi, I'm not subscribed, please reply-all. I installed m4-1.4.8 locally. However, in order for auto(re)conf find it, I have to do `export M4=$HOME/$MY_PREFIX/bin/m4'

autoconf hangs due to autom4te.cache and NFS problem on AIX

2008-02-22 Thread Chris Pickett
Hi, [[Please reply-all, I'm not subscribed.]] I just found a solution to a problem, and it took me a while to do so when Googling so I thought I would try and change for others that may encounter it by posting here. Autoconf 2.61 started hanging recently for me on AIX 5.2. I don't really k

Re: autoconf hangs due to autom4te.cache and NFS problem on AIX

2008-02-23 Thread Chris Pickett
Hi Ralf, Ralf Wildenhues wrote: Hi Chris, Thanks for the report. No problem... thanks for the software & support. By the way, about the silent/parallel mode for tests, I found the messages you were talking about but didn't look further into it... anyway, thanks for the tip.

Re: autoconf hangs due to autom4te.cache and NFS problem on AIX

2008-02-23 Thread Chris Pickett
Bob Proulx wrote: Chris Pickett wrote: [[Please reply-all, I'm not subscribed.]] I noticed that I couldn't delete my autom4te.cache directory: conftest $ ll autom4te.cache/ total 0 -rw-r--r-- 1 pickett xxx 0 Feb 23 00:27 .nfsCC131 because of that .nfs file. I don't really kno

Re: autoconf hangs due to autom4te.cache and NFS problem on AIX

2008-02-23 Thread Chris Pickett
Chris Pickett wrote: ~/test $ rm -rf autom4te.cache rm: cannot remove directory `autom4te.cache': File exists ~/test $ ll autom4te.cache/ total 12K -rw-r--r-- 1 pickett xxx 12K Feb 23 10:39 .nfsD1831 ~/test $ rm autom4te.cache/.nfsD1831 ~/test $ ll autom4te.cache/ total 12K -rw-r--r-- 1 pi

Re: autoconf hangs due to autom4te.cache and NFS problem on AIX

2008-02-23 Thread Chris Pickett
Bob Friesenhahn wrote: On Sat, 23 Feb 2008, Chris Pickett wrote: Note that I've had autoconf working on this system for about a year, this only started happening recently... something changed, somewhere. I think that it is reasonable to initially assume that something changed in aut

Re: autoconf hangs due to autom4te.cache and NFS problem on AIX

2008-02-24 Thread Chris Pickett
Trying to tie everything in to one response here... if there's something I missed, just let me know. Bob Proulx wrote: > Chris Pickett wrote: >> ~/test $ fuser autom4te.cache/.nfsE1831 >> autom4te.cache/.nfsE1831: >> ~/test $ fuser autom4te.cache/ >> autom4te.ca