Changeset 64cc4bb5 in rtems for scripts/configure.ac


Ignore:
Timestamp:
Oct 15, 2001, 5:49:35 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
3bcc0d8
Parents:
76c6828d
Message:

2001-10-15 Ralf Corsepius <corsepiu@…>

  • mkbinutilsspec.in: Guard sed-pattern against autoconf.
  • mkgccnewlibspec.in: Guard sed-pattern against autoconf, remove Target_alias.
  • mkgdbspec.in: Guard sed-pattern against autoconf.
  • mkbspspec.in: Guard sed-pattern against autoconf.
  • configure.ac: Rework check for RPM_SPECSdir.
  • autotools/automake-rtems.spec: Update to automake-1.5.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/configure.ac

    r76c6828d r64cc4bb5  
    2222. ./setup.cache
    2323
    24 # Some linux distributions use /usr/src/packages
     24AC_MSG_CHECKING(for rpm SPECS directory)
     25# Allow users to override RPM_SPECSdir from the environment.
     26if test x"$RPM_SPECSdir" = x"$RPM_SPECSdir";
     27then
     28# SuSE uses /usr/src/packages
    2529# redhat uses /usr/src/redhat
     30# MDK is reported to use /usr/src/RPM
    2631# others might use /usr/src
    27 AC_MSG_CHECKING(for rpm SPECS directory)
    28 if test -d /usr/src/packages/SPECS;
    29 then
    30   RPM_SPECSdir=/usr/src/packages/SPECS;
    31 elif test -d /usr/src/redhat/SPECS;
    32 then
    33   RPM_SPECSdir=/usr/src/redhat/SPECS;
    34 elif test -d /usr/src/SPECS;
    35 then
    36   RPM_SPECSdir=/usr/src/SPECS;
    37 elif test -d /usr/local/src/redhat/SPECS;
    38 then
    39   RPM_SPECSdir=/usr/local/src/redhat/SPECS;
     32  rpmpath="/usr:/usr/local"
     33  rpmdirs="src/packages:src/redhat:src/RPM:src"
     34  save_IFS="$IFS"; IFS=":"
     35  for d in $rpmdirs; do
     36    for p in $rpmpath; do
     37      list="$p/$d:$list"
     38    done
     39  done
     40  for d in $list; do
     41    if test -d $d/SPECS; then
     42      RPM_SPECSdir="$d/SPECS";
     43      break;
     44    fi
     45  done
     46  IFS="$save_IFS"
    4047fi
     48
    4149if test x"$RPM_SPECSdir" = x"" ; then
    42 AC_MSG_ERROR(not found)
     50AC_MSG_ERROR([not found])
    4351fi
    4452AC_MSG_RESULT($RPM_SPECSdir)
Note: See TracChangeset for help on using the changeset viewer.