1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
This commit is contained in:
stefanocasazza 2017-03-23 18:20:58 +01:00
parent 5d94398e65
commit 915f6a8781
3 changed files with 45 additions and 18 deletions

View File

@ -1,11 +1,33 @@
dist: trusty
language: cpp
compiler:
- gcc
# - clang
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- g++-5-multilib
- gcc-5-multilib
- compiler: clang
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- clang-3.7
#before_install:
# - sudo pip install cpp-coveralls
#install:
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
# - cd ${TRAVIS_BUILD_DIR}
# - wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
# - tar xf lcov_1.11.orig.tar.gz

19
configure vendored
View File

@ -32847,10 +32847,8 @@ if test "x$ac_cv_crc32_intrinsics" = xyes; then
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
else
to_match='gcc (Ubuntu 5.*'
case `gcc --version | head -n 1` in
$to_match) ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc" ;; # On Ubuntu 16.04 bug: [#65612](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65612)
esac
fi
fi
@ -36679,7 +36677,7 @@ fi
if test -n "$AWK"; then
$AWK -f configure_log.awk config.log > include/ulib/internal/config1.h
$AWK -f configure_log.awk config.log > include/ulib/internal/config1.h
$AWK -f configure_h.awk include/ulib/internal/config.h > include/ulib/internal/config2.h
cd include/ulib/internal
cat config2.h config1.h >> config.h
@ -36688,7 +36686,6 @@ if test -n "$AWK"; then
fi
echo
echo "***"
# Verify the integrity of the current configuration
if test "$cross_compiling" != "yes"; then
@ -36725,8 +36722,17 @@ $as_echo "$ac_cv_configuration_is_usable" >&6; }
if test "$ac_cv_configuration_is_usable" = "no" ; then
# It appears that ulib/internal/common.cpp not compiled. If it didn't compile then there would be no chance that the rest would compile.
as_fn_error $? "The generated configuration appears to be unusable.
Please verify that your system path and environment variables are correct." "$LINENO" 5
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
$as_echo "" >&6; }
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${T_MD}The generated configuration appears to be unusable. Please verify that your system path and environment variables are correct:${T_ME}" >&5
$as_echo "${T_MD}The generated configuration appears to be unusable. Please verify that your system path and environment variables are correct:${T_ME}" >&6; }
echo "***********************************************************************************************************************************"
NLINE=`grep -n 'checking if generated configuration is usable' config.log | cut -d':' -f1`
CFGLOG=`tail -n +$NLINE config.log`
echo "${CFGLOG}"
echo "***********************************************************************************************************************************"
exit 1
fi
fi
@ -36735,4 +36741,3 @@ echo
echo "You are now ready to build ULib"
echo "Enter the following command: ${T_MD}make && make install${T_ME}"
echo "After on some environment you must run also the following command: ${T_MD}sudo ldconfig${T_ME}"
echo "***"

View File

@ -2540,10 +2540,8 @@ if test "x$ac_cv_crc32_intrinsics" = xyes; then
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
else
to_match='gcc (Ubuntu 5.*'
case `gcc --version | head -n 1` in
$to_match) ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc" ;; # On Ubuntu 16.04 bug: [#65612](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65612)
esac
fi
fi
@ -2753,7 +2751,7 @@ AC_CONFIG_FILES([
AC_OUTPUT
if test -n "$AWK"; then
$AWK -f configure_log.awk config.log > include/ulib/internal/config1.h
$AWK -f configure_log.awk config.log > include/ulib/internal/config1.h
$AWK -f configure_h.awk include/ulib/internal/config.h > include/ulib/internal/config2.h
cd include/ulib/internal
cat config2.h config1.h >> config.h
@ -2762,7 +2760,6 @@ if test -n "$AWK"; then
fi
echo
echo "***"
# Verify the integrity of the current configuration
if test "$cross_compiling" != "yes"; then
@ -2776,8 +2773,12 @@ if test "$cross_compiling" != "yes"; then
if test "$ac_cv_configuration_is_usable" = "no" ; then
# It appears that ulib/internal/common.cpp not compiled. If it didn't compile then there would be no chance that the rest would compile.
AC_MSG_ERROR([The generated configuration appears to be unusable.
Please verify that your system path and environment variables are correct.])
TWOCAN_CONF_MSG(The generated configuration appears to be unusable. Please verify that your system path and environment variables are correct)
echo "***********************************************************************************************************************************"
NLINE=`grep -n 'checking if generated configuration is usable' config.log | cut -d':' -f1`
CFGLOG=`tail -n +$NLINE config.log`
echo "${CFGLOG}"
echo "***********************************************************************************************************************************"
exit 1
fi
fi
@ -2786,4 +2787,3 @@ echo
echo "You are now ready to build ULib"
echo "Enter the following command: ${T_MD}make && make install${T_ME}"
echo "After on some environment you must run also the following command: ${T_MD}sudo ldconfig${T_ME}"
echo "***"