This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin -mno-cygwin AC_CHECK_SIZEOF


On Fri, 1 Dec 2006, Bob Rossi wrote:

> On Thu, Nov 30, 2006 at 11:57:41PM -0500, Igor Peshansky wrote:
> > On Thu, 30 Nov 2006, Eric Blake wrote:
> >
> > > According to Bob Rossi on 11/30/2006 7:32 PM:
> > >
> > > > 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
>
> > > Or experiment with the recent add-on to cygwin's bash, where exporting
> > > SHELLOPTS with the cygwin-specific shell option igncr set will tell
> > > subsequent /bin/sh invocations to strip \r from command substitution.
> >
> > Although this might work.
>
> This is interesting.
>
> bash --version
> GNU bash, version 3.2.5(7)-release (i686-pc-cygwin)
>
> $ export SHELLOPTS=$SHELLOPTS:igncr
> -bash: SHELLOPTS: readonly variable
>
> Is there anything special I need to do here? I'll google some more ...

bash -o igncr
$ export SHELLOPTS

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]