Hi Mark; thanks for the note. On Tue, 2024-09-10 at 10:52 +0200, Mark Wielaard wrote: > On Mon, Sep 09, 2024 at 06:21:16PM -0400, Paul Smith wrote: > > On Mon, 2024-09-09 at 15:29 -0400, Paul Smith wrote: > > > I'm trying to build the latest elfutils release 0.191. The > > > configure > > > help says: > > > > > > ZSTD_COMPRESS_CFLAGS > > > C compiler flags for ZSTD_COMPRESS, overriding pkg- > > > config > > > ZSTD_COMPRESS_LIBS > > > linker flags for ZSTD_COMPRESS, overriding pkg- > > > config > > > > Actually, these variables don't seem to work either. > > > > Looking at the generated configure script, I don't see how to get > > elfutils to use zstd from a non-standard location? > > Yeah, this is unfortunate. There are two checks in configure.ac. One > for zstd decompression support (as used in libdw) which uses the > eu_ZIPLIB macro (as defined in m4/zip.m4). This is the main check, it > also creates the --with-zstd=... configure argument to provide an > alternative location.
Hm. Are you saying that if I use --with-zstd=/my/prefix that should work? That was the first thing I tried, but it didn't seem to work and I don't think (from reading the configure script) where this value is used as part of the path search. But, the shell output of autoconf is not easy to read so maybe I missed it. I can give it another try. So far the only thing that's worked for me is to set CFLAGS and LDFLAGS directly on the configure script with the appropriate options to find zstd in is proper location. I have similar problems trying to add an alternate location for curl.