bug-autoconf
[Top][All Lists]
Advanced

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

MKS sh problem (follow-up)


From: Werner LEMBERG
Subject: MKS sh problem (follow-up)
Date: Sun, 23 Nov 2003 22:08:05 +0100 (CET)

A follow-up from Jeff to the last MKS report.  My comments are in
brackets.


MSVC Issue
----------
The suffix on C++ source files [in groff] has been changed to '.cpp',
but in testing whether the C++ compiler works, configure gives it a
'.cc' file, which MSVC does not recognize.  Changing all instances of
ac_ext=cc to ac_ext=cpp solves the problem.

[With other words, AC_LANG and AC_LANG_PUSH (or another appropriate
autoconf macro) need a second argument to specify the extension of
test programs.  BTW, there is a documentation error: In autoconf
version 2.59, extension `.cc' is used for C++ test programs, not `.C'
as mentioned in the AC_LANG description.]

Win32 Issue
-----------
Configure correctly discovers '.exe' as the executable suffix, but
doesn't use it when searching for C and C++ compilers, so it fails to
find cl in either case.  Changing every instance of 'cl' to 'cl.exe'
effects a quick fix, but making use of the executable suffix would be
more elegant as well as more portable.  Setting the variables 'CC' and
'CXX' is another interim fix.


    Werner




reply via email to

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