You are getting an error message that says that AM_PROG_AR is required in configure.ac. You have AM_PROG_AR in configure.ac, but it has a "#' in front of it, which could be why you are still getting this error message. It's likely that that it is being interpreted as a comment and not recognized as occurring in the file as it is expected to. Try removing the "#" character in front of "AM_PROG_AR" to see if you still get this error message.
On Wed, Aug 20, 2014 at 1:36 AM, Arthur Schwarz <aschwarz1...@att.net> wrote: > Isn't '#' just a comment? > > -----Original Message----- > From: Gavin Smith [mailto:gavinsmith0...@gmail.com] > Sent: Tuesday, August 19, 2014 5:30 PM > To: Arthur Schwarz > Cc: Automake Mailing List > Subject: Re: Makefile error in simple library > > On Wed, Aug 20, 2014 at 12:47 AM, Arthur Schwarz <aschwarz1...@att.net> > wrote: >> I'm trying to build and distribute a static library and keep getting a " >> warning: 'libslip.a': linking libraries using a non-POSIX archiver > requires >> AM_PROG_AR' in 'configure.ac'" message. I don't know why. >> >> The configure.ac lines in question are: (I think) >> >> AC_CONFIG_FILES([ >> Makefile >> src/Makefile >> ]) >> >> # automake macro's - REQUIRED >> AM_INIT_AUTOMAKE([-Wall -Werror]) >> >> # linking libraries using a POSIX archiver >> #AM_PROG_AR >> > > I don't think that "#" should be there. > >> >> From Section Automake Manual Section 8.2 Building a Library it should > work. >> I've been hitting a wall on this, any ideas would be appreciated. >> >