[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cygwin -mno-cygwin AC_CHECK_SIZEOF
From: |
Bob Rossi |
Subject: |
cygwin -mno-cygwin AC_CHECK_SIZEOF |
Date: |
Thu, 30 Nov 2006 21:32:12 -0500 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Hi,
If I'm using cygwin, with the -mno-cygwin gcc/g++ compiler option, then
mingw is used. It seems that mingw uses a \r\n for a newline.
AC_CHECK_SIZEOF does these two things on cygwin with autoconf 2.60.
fprintf(f, "%d\n", sizeof($1));
which prints "4\r\n" if the size is 4 and then
AC_CV_NAME=`cat conftestval`, ...
now cygwin's cat doesn't understand \r\n, so
ac_cv_sizeof_int=`cat conftestval`
results in "4\r", which breaks the configure.in scripts that check with
if statements for "$ac_cv_sizeof_int" = "4".
What is the best way to resolve something like this?
Thanks,
Bob Rossi
- cygwin -mno-cygwin AC_CHECK_SIZEOF,
Bob Rossi <=