[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
DOS file format and line continuations
From: |
William S Fulton |
Subject: |
DOS file format and line continuations |
Date: |
Wed, 22 Jan 2003 22:12:25 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 |
DOS file format and AC_CONFIG_FILES bug
AC_CONFIG_FILES doesn't behave when splitting lines and using a DOS
fileformat for the configure.in file. The problem occurs when running
under Linux Mandrake 9.0 as well as Cygwin. See example below. Note that
the problem doesn't occur after changing the file format to UNIX. On
Cygwin the problems are observed only when the drive containing the
files is mounted as a binary mount. If the drive is mounted as text then
the problem does not occur.
-------------------------------------------------------
The following produces the same results on Cygwin (autoconf 2.57)
and Linux (autoconf 2.54)
-------------------------------------------------------
$ m4 --version
GNU m4 1.4
$ cat configure.in
AC_INIT([test],[1.0])
AC_PREREQ(2.54)
AC_CONFIG_FILES([
Makefile \
])
AC_OUTPUT
$ autoconf
' is already registered with AC_CONFIG_FILES.
autoconf/status.m4:844: AC_CONFIG_FILES is expanded from...
configure.in:5: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
-------------------------------------------------------
File was then edited to add in an extra continuation character
This fixed it on the Linux box, but here it is failing on Cygwin
-------------------------------------------------------
$ cat configure.in
AC_INIT([test],[1.0])
AC_PREREQ(2.54)
AC_CONFIG_FILES([ \
Makefile \
])
AC_OUTPUT
$ autoconf
$ ./configure
configure: creating ./config.status
config.status: creating \
.infig.status: error: cannot find input file: \
-------------------------------------------------------
Everything alright on Cygwin and Linux with Unix file format and one
continuation character:
-------------------------------------------------------
$ cat configure.in
AC_INIT([test],[1.0])
AC_PREREQ(2.54)
AC_CONFIG_FILES([
Makefile \
])
AC_OUTPUT
$ dos2unix configure.in
configure.in: done.
$ autoconf
$ ./configure
configure: creating ./config.status
config.status: creating Makefile
$
Regards
William Fulton
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- DOS file format and line continuations,
William S Fulton <=