You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
923 B
37 lines
923 B
#!/usr/bin/env bash |
|
|
|
./configure --prefix=/usr |
|
|
|
make |
|
|
|
[ -e /tmp/autoconf_make_check.log ] && rm /tmp/autoconf_make_check.log |
|
|
|
if ! make check | tee /tmp/autoconf_make_check.log |
|
then |
|
echo "return code ko" |
|
case $(uname -m) in |
|
i?86) |
|
grep FAILED /tmp/autoconf_make_check.log | cut -d' ' -f 2 | while IFS= read -r failure |
|
do |
|
echo "FAILED : ${failure}" |
|
case ${failure} in |
|
AC_SYS_LARGEFILE|AC_SYS_YEAR2038|AC_SYS_YEAR2038_RECOMMENDED) |
|
echo "It's a 32 bits system. don't pass 2038 date limit." |
|
continue |
|
;; |
|
*) |
|
echo "Critical error in tests : ${failure}" |
|
exit 1 |
|
;; |
|
esac |
|
done |
|
;; |
|
*) |
|
echo "Critical error in tests" |
|
exit 1 |
|
;; |
|
esac |
|
fi |
|
|
|
make install |
|
|
|
|