autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] AC_NO_EXECUTABLES: _AC_LANG_COMPILER_WORKS is now _AC_COMPILER_E


From: Raja R Harinath
Subject: [PATCH] AC_NO_EXECUTABLES: _AC_LANG_COMPILER_WORKS is now _AC_COMPILER_EXEEXT_WORKS
Date: 11 Jun 2001 16:37:21 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.103

Hi,

AC_NO_EXECUTABLES wasn't updated with
  
  2001-02-19  Akim Demaille  <address@hidden>

        * aclang.m4 (_AC_LANG_COMPILER_WORKS): Rename as...
        (_AC_COMPILER_EXEEXT_WORKS): this.  Use the `a.out' or `a.exe'
        left by _AC_COMPILER_EXEEXT_DEFAULT to check if the compiler works.
        (_AC_COMPILER_EXEEXT_CROSS): Extract from the above macro.
        (_AC_COMPILER_EXEEXT): Use them.
        Adjust all the compiler looking macros to check for EXEEXT
        *first*, then OBJEXT.
        Set ac_exeext yourself.
        (_AC_COMPILER_EXEEXT_O): Don't.

Here's a simple renaming patch to AC_NO_EXECUTABLES based on the
above.

from  Raja R Harinath  <address@hidden>

        * aclang.m4 (AC_NO_EXECUTABLES): Override
          _AC_COMPILER_EXEEXT_WORKS, not _AC_LANG_COMPILER_WORKS.

Attachment: autoconf.diff
Description: Text Data

Actually, I don't think even this is required.  We could just do

  AC_DEFUN_ONCE([AC_NO_EXECUTABLES],
  [m4_divert_push([KILL])

  AC_BEFORE([$0], [_AC_COMPILER_EXEEXT])

  m4_define([_AC_COMPILER_EXEEXT],
  [cross_compiling=maybe
  EXEEXT=
  ])

  m4_define([AC_LINK_IFELSE],
  [AC_FATAL([All the tests involving linking were disabled by $0])])

  m4_divert_pop()dnl
  ])# AC_NO_EXECUTABLES

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash

reply via email to

[Prev in Thread] Current Thread [Next in Thread]