Dear Sirs,

I met one thing connected with usage of GNU autoconf under Cygwin which
doesn't work properly. Couldn't you please help me?

I used the following configure.in file to automatically make configure
shell script by means of autoconf:

------
dnl /* configure.in */

dnl Process this file with autoconf to produce a configure script.

AC_INIT(marst.c)

AC_PROG_INSTALL
AC_PROG_CC

AC_OUTPUT(Makefile)

dnl /* eof */
------

As a result autoconf produced the file 'configure' (see enclosure).

When I run this shell script from command line the following error
occured:

------
c:\mao\marst\marst-2.0>sh configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
------

The corresponding 'config.log' said the following:

------
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:__oline__: checking for a BSD compatible install
configure:__oline__: checking for gcc
configure:__oline__: checking whether the C compiler (gcc  ) works
configure:__oline__: gcc -o conftest    conftest.c  1>&5
conftest.c:2: invalid format `#line' directive
configure: failed program was:

#line __oline__ "configure"
#include "confdefs.h"

main(){return(0);}
------

I have been informed by <[EMAIL PROTECTED]> that this
problem probably is connected with GNU autoconf or GNU awk (the error
occured due to __oline__ that was not substituted properly).

I downloaded some Cygwin packages from http://sources.redhat.com/cygwin/
In particular, I use cygwin-1.1.2, gcc-2.95.2-2, make-3.79-1. Since
autoconf and automake were missing in Cygwin distribution, I downloaded
them from ftp.gnu.org; they are autoconf-2.13 and automake-1.4 (actually
I don't use automake). When I installed Cygwin I followed the standard
installation procedure: firstly, I created the directory c:\cygwin and
unpacked bootstrap.zip into it; then I copied all necessary packages
into temporary directory and run setup.exe to install them. On that PC
where I use Cygwin I've got Windows 95 [Version 4.00.1111] installed.

Please, tell me, what may be wrong.

Thank you,

Andrew Makhorin,
GNU maintainer



configure

Reply via email to