This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

[patch] toplevel configure.in: topsrcdir->srcdir


This replaces references to ${topsrcdir} with ${srcdir}.  This is correct,
since topsrcdir == srcdir when this is run; it is useful for autoconfiscation, 
because topsrcdir doesn't automatically exist in autoconf scripts, while
srcdir does.

Tested on i686-pc-linux-gnu.

2002-05-23  Nathanael Nerode  <neroden@twcny.rr.com>
	* configure.in: replace ${topsrcdir} with ${srcdir}

*** configure.in.old	Thu May 23 13:50:25 2002
--- configure.in	Thu May 23 13:51:07 2002
***************
*** 1451,1457 ****
    if test x${enable_version_specific_runtime_libs} = xyes; then
      gxx_include_dir='${libsubdir}/include/g++'
    else
!     . ${topsrcdir}/config.if
      gxx_include_dir='${prefix}/include/${libstdcxx_incdir}'
    fi
  else
--- 1451,1457 ----
    if test x${enable_version_specific_runtime_libs} = xyes; then
      gxx_include_dir='${libsubdir}/include/g++'
    else
!     . ${srcdir}/config.if
      gxx_include_dir='${prefix}/include/${libstdcxx_incdir}'
    fi
  else
***************
*** 1472,1478 ****
     esac
  
     # If we're not building GCC, don't discard standard headers.
!    if test -d ${topsrcdir}/gcc; then
       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  
       if test "${build}" != "${host}"; then
--- 1472,1478 ----
     esac
  
     # If we're not building GCC, don't discard standard headers.
!    if test -d ${srcdir}/gcc; then
       FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  
       if test "${build}" != "${host}"; then
***************
*** 1518,1524 ****
  # the previously-installed cross compiler, so don't bother to add
  # flags for directories within the install tree of the compiler
  # being built; programs in there won't even run.
! if test "${build}" = "${host}" && test -d ${topsrcdir}/gcc; then
    # Search for pre-installed headers if nothing else fits.
    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
  fi
--- 1518,1524 ----
  # the previously-installed cross compiler, so don't bother to add
  # flags for directories within the install tree of the compiler
  # being built; programs in there won't even run.
! if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
    # Search for pre-installed headers if nothing else fits.
    FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include'
  fi
***************
*** 1532,1538 ****
  
  if test "x${CC_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${topsrcdir}/gcc; then
    CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
  elif test "$host" = "$target"; then
    CC_FOR_TARGET='$(CC)'
--- 1532,1538 ----
  
  if test "x${CC_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${srcdir}/gcc; then
    CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/'
  elif test "$host" = "$target"; then
    CC_FOR_TARGET='$(CC)'
***************
*** 1548,1554 ****
  
  if test "x${GCJ_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${topsrcdir}/gcc; then
    GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
  elif test "$host" = "$target"; then
    GCJ_FOR_TARGET='gcj'
--- 1548,1554 ----
  
  if test "x${GCJ_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${srcdir}/gcc; then
    GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/'
  elif test "$host" = "$target"; then
    GCJ_FOR_TARGET='gcj'
***************
*** 1562,1568 ****
  
  if test "x${CXX_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${topsrcdir}/gcc; then
    # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
    # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
    # default whereas gcc does not.
--- 1562,1568 ----
  
  if test "x${CXX_FOR_TARGET+set}" = xset; then
    :
! elif test -d ${srcdir}/gcc; then
    # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead
    # of g++ for linking C++ or Java, because g++ has -shared-libgcc by
    # default whereas gcc does not.


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