This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: [RFA] tcl/cygwin build fix
- To: Christopher Faylor <cgf at redhat dot com>
- Subject: Re: [RFA] tcl/cygwin build fix
- From: Ian Roxborough <irox at redhat dot com>
- Date: Fri, 05 Oct 2001 13:44:51 -0700
- CC: insight at sources dot redhat dot com
- References: <20011005162815.A12382@redhat.com>
This looks good to me. Approved.
Thanks,
Ian.
Christopher Faylor wrote:
>
> This allows building of tcl without special options on Windows.
> It is similar to a test in the tcl/cygwin directory.
>
> Ok to apply?
>
> cgf
>
> Fri Oct 5 16:03:53 2001 Christopher Faylor <cgf@cygnus.com>
>
> * win/configure.in: Add detection for -mwin32 option requirement under
> cygwin.
> * win/configure: Regenerate
>
> Index: win/configure.in
> ===================================================================
> RCS file: /cvs/uberbaum/tcl/win/configure.in,v
> retrieving revision 1.5
> diff -p -r1.5 configure.in
> *** configure.in 2001/09/13 00:38:49 1.5
> --- configure.in 2001/10/05 20:20:52
> *************** AC_PROG_MAKE_SET
> *** 41,46 ****
> --- 41,59 ----
>
> AC_CYGWIN
>
> + case "${target}" in
> + *-*-cygwin*)
> + touch ac$$.c
> + if ${CC} -c -mwin32 ac$$.c >/dev/null 2>&1; then
> + case "$EXTRA_CFLAGS" in
> + *-mwin32*) ;;
> + *) EXTRA_CFLAGS="-mwin32 $EXTRA_CFLAGS" ;;
> + esac
> + fi
> + rm -f ac$$.o ac$$.c
> + ;;
> + esac
> +
> #--------------------------------------------------------------------
> # Determines the correct binary file extension (.o, .obj, .exe etc.)
> #--------------------------------------------------------------------