Replacing a sed line with an awk one because /usr/ucb/sed doesnt have the
same regexp than /usr/bin/sed. Argh!
This commit is contained in:
parent
d658ca3f3e
commit
bcb1de4ad6
|
@ -25,7 +25,7 @@ dnl Almost ten years since I wrote this stuff, I just can't
|
|||
dnl believe it
|
||||
dnl Date : 01/02/2002
|
||||
dnl Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
||||
dnl $Id: configure.in,v 1.21 2002/04/26 13:07:48 ludo Exp $
|
||||
dnl $Id: configure.in,v 1.22 2002/04/30 12:40:32 xtof Exp $
|
||||
dnl
|
||||
dnl
|
||||
AC_INIT(./configure.in)
|
||||
|
@ -40,12 +40,14 @@ changequote(,)dnl
|
|||
# match is performed) that you what to compile prior to anything
|
||||
|
||||
|
||||
libraries="\<mbk\> mbkal mbkap mbkedif mbkhilo mbkmg mbkspice \<mbkvhdl\> mbkvrlog mbkvti mbkvhdlg aut \<rds elp abl bdd log btr vex ctl abe abt abv fsm fks fvh ftl rtn rtd scl vbh vbl vpn vpd vvh vtl pat ppt phl gcp druc beh bhl bvl"
|
||||
libraries="mbk mbkal mbkap mbkedif mbkhilo mbkmg mbkspice mbkvhdl mbkvrlog mbkvti mbkvhdlg aut \
|
||||
rds rdscif rdsgds elp abl bdd log btr vex ctl abe abt abv fsm fks fvh ftl rtn rtd scl vbh vbl vpn\
|
||||
vpd vvh vtl pat ppt phl gcp druc beh bhl bvl"
|
||||
dirs=`\ls -l $srcdir | grep '^d' | awk '{print $NF}'`
|
||||
for l in $libraries ; do
|
||||
for i in $dirs ; do
|
||||
if test -d $srcdir/$i ; then
|
||||
if test `expr match $i $l` -ne 0 ; then
|
||||
if test "$i" = "$l" ; then
|
||||
ldirs="$ldirs `basename $i`"
|
||||
fi
|
||||
fi
|
||||
|
@ -53,7 +55,8 @@ for l in $libraries ; do
|
|||
done
|
||||
tdirs=$dirs
|
||||
for i in $ldirs ; do
|
||||
tdirs=`echo $tdirs | sed -e "s/\<$i\>//"`
|
||||
s="\\\<$i\\\>"
|
||||
tdirs=`echo $tdirs | awk -v x=$s '{gsub(x, ""); print}'`
|
||||
done
|
||||
for i in $ldirs $tdirs ; do
|
||||
if test -f $srcdir/$i/configure.in ; then
|
||||
|
|
Loading…
Reference in New Issue