[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use AC_CHECK_LIB without LDFLAGS?
From: |
Harald Dunkel |
Subject: |
Re: how to use AC_CHECK_LIB without LDFLAGS? |
Date: |
Fri, 05 Nov 2004 19:39:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Braden McDaniel wrote:
| Harald Dunkel wrote:
|
|> -----BEGIN PGP SIGNED MESSAGE-----
|> Hash: SHA1
|>
|> Braden McDaniel wrote:
|> |
|> | I don't fully understand the problem you're describing; but perhaps you
|> | want to do something like this:
|> |
|> | save_LDFLAGS="$LDFLAGS"
|> | LDFLAGS="$LDFLAGS -Lwhatever"
|> | AC_CHECK_LIB(...)
|> | LDFLAGS="$save_LDFLAGS"
|> |
|>
|> No, what I want to do is something like
|>
|> AC_CHECK_LIB([my], [anysym], ["-static -L/mylibs -L/plibs"], [], [])
|>
|> but this doesn't seem to be in the interface.
|
|
| It looks to me like you could accomplish the same thing with the
| solution I gave you. What's wrong with it?
|
Sorry, but it is error-prone, and it is pretty painfull
to copy-n-paste all these lines for each library test. I
thought the goal of autoconf is to make maintaining a
build system easier?
No offense.
My suggestion would be to put your wrapper into an
additional macro AC_CHECK_LIB_XTD. Give me some time
to learn m4 and I could post it here, but I guess it
would be pretty easy.
Would this be possible?
Regards
Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFBi8jEUTlbRTxpHjcRAv0yAJwPj4eH7Li6cGiMDII5+Djbimo4sQCfYsMP
LBVmOhuM9xsYoG0z9lPUpGM=
=AmGd
-----END PGP SIGNATURE-----
Re: how to use AC_CHECK_LIB without LDFLAGS?, Ralf Wildenhues, 2004/11/05