Menu

#876 C11 check in configure script

None
closed-fixed
None
5
2023-07-07
2023-05-28
No

We currently do not reliably check fort a C11 compiler. AFAIK, a correct way to do so would be to replace the current use of AC_PROG_C99 by AC_PROG_CC and a check if test "$ac_cv_prog_cc_c11" != "no". This works in autoconf version 2.71. As C11 is the highest C standard autoconf 2.71 can handle, and AC_PROG_CC will try to set the C compiler to the highest standard version supported by both the compiler and autoconf.

Related

Wiki: NGI0-Entrust-SDCC

Discussion

  • Maarten Brock

    Maarten Brock - 2023-05-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -We currently do not reliably check fort a C11 compiler. AFAIK, a correct wa to do so would be to replcace the current use of AC\_PROG\_C99  by AC\_PROG\_CC and a check if test "$ac_cv_prog_cc_c11" != "no" this works in autoconf version 2.71. As C11 is thehighest C stdfnard autoconf 2.71 can handle, and AC\_PROG\_CC will try to set the C compiler to the highest stadnard version supported by both the compiler and autoconf.
    +We currently do not reliably check fort a C11 compiler. AFAIK, a correct way to do so would be to replace the current use of AC\_PROG\_C99  by AC\_PROG\_CC and a check if test "$ac_cv_prog_cc_c11" != "no". This works in autoconf version 2.71. As C11 is the highest C standard autoconf 2.71 can handle, and AC\_PROG\_CC will try to set the C compiler to the highest standard version supported by both the compiler and autoconf.
    
    • Group: -->
     
  • Philipp Klaus Krause

    • assigned_to: Philipp Klaus Krause
     
  • Philipp Klaus Krause

    Implemented in the next branch in [r14095].

     

    Related

    Commit: [r14095]

  • Philipp Klaus Krause

    • summary: C11 check in configure scrpt --> C11 check in configure script
     
  • Philipp Klaus Krause

    • status: open --> closed-fixed
     
  • Philipp Klaus Krause

    Fixed in [r14211] by merging next to trunk.

     

    Related

    Commit: [r14211]


Log in to post a comment.

MongoDB Logo MongoDB