This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

[PATCH] Better sys_errlist recognition for cygwin


DJ has approved this patch in private email.  It sets HAVE_SYSERRLIST
unconditionally on cygwin regardless of whether it is building in a
target directory, as my previous patch had done.

This is obviously necessary for the case when you're building a toolchain
which is hosted on cygwin.

Unfortunately, the current autoconf mechanism used in libiberty's
configure.in does not seem to have a mechanism for detecting variables
imported from a dll.  I don't know if this is available in autoconf 2.52
or not.  Anyway, this necessitates a special case for cygwin, at least
for the time being.

cgf

Tue Aug 21 12:35:04 2001  Christopher Faylor <cgf@cygnus.com>

	* configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
	hosting on cygwin.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/uberbaum/libiberty/configure.in,v
retrieving revision 1.34
diff -p -r1.34 configure.in
*** configure.in	2001/08/17 20:17:23	1.34
--- configure.in	2001/08/21 16:35:54
*************** if test -n "${with_target_subdir}"; then
*** 177,188 ****
      # Of the functions in $checkfuncs, newlib only has strerror.
      AC_DEFINE_NOAUTOHEADER(HAVE_STRERROR)
  
-     case "${host}" in
-       *-*-cygwin*)
- 	AC_DEFINE(HAVE_SYS_ERRLIST)
- 	;;
-     esac
- 
      setobjs=yes
  
    fi
--- 177,182 ----
*************** else
*** 195,200 ****
--- 189,201 ----
  fi
  
  AC_SUBST(CHECK)
+ 
+ case "${host}" in
+   *-*-cygwin*) 
+     AC_DEFINE(HAVE_SYS_ERRLIST)
+     AC_DEFINE(HAVE_SYS_NERR)
+     ;;
+ esac
  
  if test -z "${setobjs}"; then
    case "${host}" in


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