patchGNU Autoconf Archive - Patches: patch #10452, AX_PROG_CC_FOR_BUILD patches that...

 
 

patch #10452: AX_PROG_CC_FOR_BUILD patches that fix BUILD_{EXE,OBJ}EXT (Autoconf 2.70)

Submitter:  None
Submitted:  Sat 04 May 2024 08:45:59 PM UTC
   
 
Priority:  5 - Normal Status:  None
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 08 May 2024 12:35:23 PM UTC, comment #3: 

(ax_prog_cc_for_build_patches_v2.tar.gz)

This patchset contains the same changes, but I squashed some commits so that they become easier to read. The number of commits reduced from 6 to 4. The maintainers are free to choose which version to merge.

Note: The Flex (lexer generator) project (https://github.com/westes/flex) depends on AX_PROG_CC_FOR_BUILD for cross-compile configuration. I plan to make it depend on the patches here (serial 22 or later) for BUILD_EXEEXT bug fixes.

(file #56024)

Anonymous
Sun 05 May 2024 05:07:26 PM UTC, comment #2: 

Hello.

Not sure if the maintainers are interested in new patches, but I made some more fixes.

0004-ax_prog_cc_for_build-Fix-ac_cv_prog_cc_c-99-11-regre.patch

This fixes regression where two macros are not restored after AX_PROG_CC_FOR_BUILD call. Also adjust some code formatting.

0005-ax_prog_cc_for_build-Support-ac_-cv_-build_prog_cc_s.patch

Improve compatibility with Autoconf 2.70 and later by supporting ac_build_prog_cc_stdc and ac_cv_build_prog_cc_c23.

0006-ax_prog_cc_for_build-Allow-user-override-of-cache-va.patch

This brings back support of user override of cache variables, specifically ac_cv_build_exeext, ac_cv_build_objext and ac_cv_build_c_compiler_gnu.

(file #56015, file #56016, file #56017)

Anonymous
Sun 05 May 2024 12:33:37 AM UTC, comment #1: 

I was coding too defensively in the first and second patches. A code simplification can be done by removing some check on whether the shell variables are set. (They are always set because of the AC_REQUIRE([AC_PROG_CC]) macro call)

(0003-ax_prog_cc_for_build-code-simplification.patch)

(file #56014)

Anonymous
Sat 04 May 2024 08:45:59 PM UTC, original submission:  

The BUILD_EXEEXT and BUILD_OBJEXT variables in AX_PROG_CC_FOR_BUILD are broken again in Autoconf 2.70 and later.

It seems to be caused by an internal change of AC_SUBST macro that prevented the "variable name" argument in AC_SUBST to be macro-expanded.

I took the time and found the right way to make variables work. (Patch 1)

There have been a variable rename workaround for "ac_cv_c_compiler_gnu" in this AX_PROG_CC_FOR_BUILD module, as the code is similar, I modified the "ac_cv_c_compiler_gnu" code as well (Patch 2), so that the code alignes with the BUILD_EXEEXT and BUILD_OBJEXT solutions.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-08 None Attached File- Added ax_prog_cc_for_build_patches_v2.tar.gz, #56024
    2024-05-05 None Attached File- Added 0004-ax_prog_cc_for_build-Fix-ac_cv_prog_cc_c-99-11-regre.patch, #56015
        Attached File- Added 0006-ax_prog_cc_for_build-Allow-user-override-of-cache-va.patch, #56016
        Attached File- Added 0005-ax_prog_cc_for_build-Support-ac_-cv_-build_prog_cc_s.patch, #56017
    2024-05-05 None Attached File- Added 0003-ax_prog_cc_for_build-code-simplification.patch, #56014
    2024-05-04 None Attached File- Added 0001-ax_prog_cc_for_build-Fix-BUILD_-EXE-OBJ-EXT-for-Auto.patch, #56009
        Attached File- Added 0002-ax_prog_cc_for_build-Tweak-ac_cv_c_compiler_gnu-code.patch, #56010

    Back to the top

    Powered by Savane 3.13-f762.
    Corresponding source code