lfs-scripts/scripts/chapter6/6.2-m4.sh

28 lines
313 B
Bash
Raw Normal View History

2023-01-09 05:17:03 +00:00
#!/bin/bash
cd $LFS/sources
tar xf m4-1.4.19.tar.xz
cd m4-1.4.19
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
if [ $? -ne 0 ]
then
exit 1
fi
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make DESTDIR=$LFS install
cd $LFS/sources
rm -rf m4-1.4.19