Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

check_decls.m4

  • Tom Lane's avatar
    dcd62001
    Fix configure's AC_CHECK_DECLS tests to work correctly with clang. · dcd62001
    Tom Lane authored
    The test case that Autoconf uses to discover whether a function has
    been declared doesn't work reliably with clang, because clang reports
    a warning not an error if the name is a known built-in function.
    On some platforms, this results in a lot of compile-time warnings about
    strlcpy and related functions not having been declared.
    
    There is a fix for this (by Noah Misch) in the upstream Autoconf sources,
    but since they've not made a release in years and show no indication of
    doing so anytime soon, let's just absorb their fix directly.  We can
    revert this when and if we update to a newer Autoconf release.
    
    Back-patch to all supported branches.
    
    Discussion: https://postgr.es/m/26819.1542515567@sss.pgh.pa.us
    dcd62001
    History
    Fix configure's AC_CHECK_DECLS tests to work correctly with clang.
    Tom Lane authored
    The test case that Autoconf uses to discover whether a function has
    been declared doesn't work reliably with clang, because clang reports
    a warning not an error if the name is a known built-in function.
    On some platforms, this results in a lot of compile-time warnings about
    strlcpy and related functions not having been declared.
    
    There is a fix for this (by Noah Misch) in the upstream Autoconf sources,
    but since they've not made a release in years and show no indication of
    doing so anytime soon, let's just absorb their fix directly.  We can
    revert this when and if we update to a newer Autoconf release.
    
    Back-patch to all supported branches.
    
    Discussion: https://postgr.es/m/26819.1542515567@sss.pgh.pa.us