You are not logged in.

#1 2009-12-05 20:18:27

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

[SOLVED] Autoconf hell

I need to compile DevIL http://openil.sourceforge.net/ with explicitly specified paths to libpng and libjpeg. I'm trying to build a redistributable binaries, so I'm going to include all dependencies with the program.

It uses autoconf for configuration, and I can't find how can I tell it to use libpng not from system path but from my own build directory. Tried --with-png=/path/to/my/build/of/libpng, but that doesn't make it.

Can anybody help me?

P.S. I hate autoconf scripts - they are SLOW (when calling ./configure they are checking hundreds of useless things), and have braindamaged syntax. Autoconf is just a poor CMake.

Last edited by Mad Fish (2009-12-07 20:04:33)

Offline

#2 2009-12-05 21:13:29

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: [SOLVED] Autoconf hell

"LD_LIBRARY_PATH=/path/to/my/build/of/libpng ./configure" maybe?

Offline

#3 2009-12-05 21:25:40

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Autoconf hell

I'm sure this is not the way of doing it. LD_LIBRARY_PATH, as I know, is not used by configure at all.

Last edited by Mad Fish (2009-12-05 21:26:57)

Offline

#4 2009-12-06 01:58:02

tavianator
Member
From: Waterloo, ON, Canada
Registered: 2007-08-21
Posts: 859
Website

Re: [SOLVED] Autoconf hell

Sorry that was misguided.  Try "./configure LDFLAGS=-L/path/to/my/build/of/libpng"

Offline

#5 2009-12-06 11:55:08

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Autoconf hell

Again, this is not the right way to do that. Because this way you are effectively bypassing it's configuration system.
I mean, that ./configure scripts tries to find the correct location of libjpeg and libpng, and sets some internal variables to configure include and link directories properly. I just need a method to give it a hint, where to look.

Offline

#6 2009-12-07 20:04:02

Mad Fish
Member
Registered: 2009-09-22
Posts: 295

Re: [SOLVED] Autoconf hell

tavianator, sorry, I was stupid (maybe this is forever smile ). Your method works OK. Thanks!

Offline

Board footer

Powered by FluxBB