meson: Fix missing name arguments of cc.compiles() calls

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-12-29T14:13:09Z
Lists: pgsql-hackers

Attachments

I noticed a few cc.compiles() checks in meson.build don't show up in the 
"meson setup" output, because they don't have a "name" argument.  Also, 
the "typeof" test doesn't show the name of the symbol that is currently 
being tested.  All this makes remote debugging a bit harder.  This patch 
fixes it.

While analyzing the fixed output, I also noticed that the test for 
decltype as an alternative to typeof never actually worked and was just 
forgotten to be removed.  This is also fixed here.

Commits

  1. Remove useless configure check

  2. meson: Fix missing name arguments of cc.compiles() calls