autoconf
[Top][All Lists]
Advanced

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

Re: support for non-standard C compilers (without fopen, FILE*, ...)


From: Ralf Wildenhues
Subject: Re: support for non-standard C compilers (without fopen, FILE*, ...)
Date: Thu, 17 Sep 2009 19:53:54 +0200
User-agent: Mutt/1.5.20 (2009-08-09)

* Ralf Wildenhues wrote on Thu, Sep 17, 2009 at 07:50:10PM CEST:
> * Steffen Dettmer wrote on Thu, Sep 17, 2009 at 05:12:31PM CEST:
> > recent versions check if $CC supports fopen, FILE* and so on. This
> > breaks environments that don't have <stdio.h> / libc.a.
> 
> This is a 2.64 regression and has been fixed since in the git tree:
> <http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6839/focus=6750>

Sorry, hit the send button too soon.  You may work around it by putting
this in your configure.ac before any of the AC_PROG_{CC,CXX,...} macros.
Please note that with this workaround, you may again have to work around
this bug on systems like BG/L:
<http://thread.gmane.org/gmane.comp.sysutils.autoconf.patches/6656>

Cheers,
Ralf

dnl Fix 2.64 cross compile detection for AVR and RTEMS
dnl by not trying to compile fopen.
m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.64],
  [m4_foreach([_GCC_LANG], [C, C++, Fortran, Fortran 77],
     [m4_define([_AC_LANG_IO_PROGRAM(]_GCC_LANG[)], 
m4_defn([AC_LANG_PROGRAM(]_GCC_LANG[)]))])])





reply via email to

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