Best practice for user decided unusual library paths ?

2011-01-10 Thread Johan Persson
I have a package which uses a specific library that most user have installed in the "usual" places so this works fine. However after having reports that some user have the library in not-so-common places (like /opt/local) i decided to add a "--with-package" switch so the user can add the root-di

Re: Best practice for user decided unusual library paths ?

2011-01-10 Thread Johan Persson
On Mon, 10 Jan 2011 22:08:51 +0100, Ralf Wildenhues wrote: > > Look at the gnulib "havelib" module. > > Cheers, > Ralf Thanks !! It really simplifies things (and it is amazing how much extra macro code was needed to achieve this simplicity from a maintainer point of view) I had completely f

Using AC_LIB_HAVE_LINKFLAGS with non standard named libraries generates "non-POSIX" automake error?

2013-11-22 Thread Johan Persson
I've stumbled on on an "stupid" issue I've never had to deal with before and I can't seem to get around it (could also be that I'm getting tired...) In my configure.ac I'm using a number of standard AC_LIB_HAVE_LINKFLAGS() calls to allow the end user to configure the library locations. This wo

Re: Using AC_LIB_HAVE_LINKFLAGS with non standard named libraries generates "non-POSIX" automake error?

2013-11-22 Thread Johan Persson
On 2013-11-22 23:55, Eric Blake wrote: > On 11/22/2013 03:40 PM, Johan Persson wrote: > >> However one of the libraries I need to configure is named "libusb-1.0.so" >> but if I use "usb-1.0" as the library name in the call to the macro this >>

Re: Using AC_LIB_HAVE_LINKFLAGS with non standard named libraries generates "non-POSIX" automake error?

2013-11-22 Thread Johan Persson
On 2013-11-23 00:39, Eric Blake wrote: > On 11/22/2013 04:29 PM, Johan Persson wrote: > >> Fortunately that is easy (for once). The following trivial combo shows the >> problem. > >> AC_LIB_HAVE_LINKFLAGS([[usb-1.0]],[],[],[],[libusb-1.0 Library needed.]) > &

Re: A Closer Look at GNU AutoTools

2014-09-05 Thread Johan Persson
On 2014-09-04 19:47, Shawn H Corey wrote: > I have just added an article to my blog on my programming language > about the GNU AutoTools. Please feel free to comment. > > http://kori-programming-language.blogspot.ca/2014/09/a-closer-look-at-gnu-autotools.html > [1] Well in my humble opinion