On Fri, Mar 19, 2021 at 05:35:58PM -0300, Alvaro Herrera wrote:
> Hmm, if I use configure --with-lz4, I get this:
> 
>       checking whether to build with LZ4 support... yes
>       checking for liblz4... no
>       configure: error: Package requirements (liblz4) were not met:
> 
>       No package 'liblz4' found
...
>       See the pkg-config man page for more details.
>       running CONFIG_SHELL=/bin/bash /bin/bash /pgsql/source/master/configure 
> --enable-debug --enable-depend --enable-cassert --enable-nls 
> --cache-file=/home/alvherre/run/pgconfig.master.cache --enable-thread-safety 
> --with-python --with-perl --with-tcl --with-openssl --with-libxml 
> --enable-tap-tests --with-tclconfig=/usr/lib/tcl8.6 PYTHON=/usr/bin/python3 
> --with-llvm --prefix=/pgsql/install/master --with-pgport=55432 --no-create 
> --no-recursion
>       ...
> 
> I find this behavior confusing; I'd rather have configure error out if
> it can't find the package support I requested, than continuing with a
> set of configure options different from what I gave.

That's clearly wrong, but that's not the behavior I see:

|$ ./configure --with-lz4 ; echo $?
|...
|checking for liblz4... no
|configure: error: Package requirements (liblz4) were not met:
|
|No package 'liblz4' found
|
|Consider adjusting the PKG_CONFIG_PATH environment variable if you
|installed software in a non-standard prefix.
|
|Alternatively, you may set the environment variables LZ4_CFLAGS
|and LZ4_LIBS to avoid the need to call pkg-config.
|See the pkg-config man page for more details.
|1

I can't reproduce the behavior - is it because of your --cache-file or
something ?

-- 
Justin


Reply via email to