[PATCH] Slight tweak to --with-headers/--with-libs

Jason R Thorpe thorpej@wasabisystems.com
Mon Sep 23 17:19:00 GMT 2002


This mirrors a change I recently checked in to the GCC repository, which
DJ kindly reminded me I needed to apply here, as well :-)

Checked in to trunk.

        * configure.in (with_headers): Skip copy if value is "yes".
        (with_libs): Likewise.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>
-------------- next part --------------
Index: configure.in
===================================================================
RCS file: /cvs/src/src/configure.in,v
retrieving revision 1.105
diff -c -r1.105 configure.in
*** configure.in	21 Sep 2002 16:35:47 -0000	1.105
--- configure.in	23 Sep 2002 23:30:45 -0000
***************
*** 876,911 ****
  
  copy_dirs=
  
! # Handle --with-headers=XXX.  The contents of the named directory are
! # copied to $(tooldir)/sys-include.
  if test x"${with_headers}" != x ; then
    if test x${is_cross_compiler} = xno ; then
      echo 1>&2 '***' --with-headers is only supported when cross compiling
      exit 1
    fi
!   case "${exec_prefixoption}" in
!   "") x=${prefix} ;;
!   *) x=${exec_prefix} ;;
!   esac
!   copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
  fi
  
! # Handle --with-libs=XXX.  Multiple directories are permitted.  The
! # contents are copied to $(tooldir)/lib.
  if test x"${with_libs}" != x ; then
    if test x${is_cross_compiler} = xno ; then
      echo 1>&2 '***' --with-libs is only supported when cross compiling
      exit 1
    fi
!   # Copy the libraries in reverse order, so that files in the first named
!   # library override files in subsequent libraries.
!   case "${exec_prefixoption}" in
!   "") x=${prefix} ;;
!   *) x=${exec_prefix} ;;
!   esac
!   for l in ${with_libs}; do
!     copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
!   done
  fi
  
  # Handle ${copy_dirs}
--- 876,916 ----
  
  copy_dirs=
  
! # Handle --with-headers=XXX.  If the value is not "yes", the contents of
! # the named directory are copied to $(tooldir)/sys-include.
  if test x"${with_headers}" != x ; then
    if test x${is_cross_compiler} = xno ; then
      echo 1>&2 '***' --with-headers is only supported when cross compiling
      exit 1
    fi
!   if test x"${with_headers}" != xyes ; then
!     case "${exec_prefixoption}" in
!     "") x=${prefix} ;;
!     *) x=${exec_prefix} ;;
!     esac
!     copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include"
!   fi
  fi
  
! # Handle --with-libs=XXX.  If the value is not "yes", the contents of
! # the name directories are copied to $(tooldir)/lib.  Multiple directories
! # are permitted.
  if test x"${with_libs}" != x ; then
    if test x${is_cross_compiler} = xno ; then
      echo 1>&2 '***' --with-libs is only supported when cross compiling
      exit 1
    fi
!   if test x"${with_libs}" != xyes ; then
!     # Copy the libraries in reverse order, so that files in the first named
!     # library override files in subsequent libraries.
!     case "${exec_prefixoption}" in
!     "") x=${prefix} ;;
!     *) x=${exec_prefix} ;;
!     esac
!     for l in ${with_libs}; do
!       copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}"
!     done
!   fi
  fi
  
  # Handle ${copy_dirs}


More information about the Binutils mailing list