mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
sync
This commit is contained in:
parent
5d94398e65
commit
915f6a8781
30
.travis.yml
30
.travis.yml
|
@ -1,11 +1,33 @@
|
||||||
dist: trusty
|
dist: trusty
|
||||||
language: cpp
|
language: cpp
|
||||||
compiler:
|
|
||||||
- gcc
|
matrix:
|
||||||
# - clang
|
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:
|
#before_install:
|
||||||
# - sudo pip install cpp-coveralls
|
# - 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}
|
# - cd ${TRAVIS_BUILD_DIR}
|
||||||
# - wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
|
# - 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
|
# - tar xf lcov_1.11.orig.tar.gz
|
||||||
|
|
19
configure
vendored
19
configure
vendored
|
@ -32847,10 +32847,8 @@ if test "x$ac_cv_crc32_intrinsics" = xyes; then
|
||||||
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
|
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
|
||||||
else
|
else
|
||||||
to_match='gcc (Ubuntu 5.*'
|
to_match='gcc (Ubuntu 5.*'
|
||||||
|
|
||||||
case `gcc --version | head -n 1` in
|
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)
|
$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
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -36679,7 +36677,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if test -n "$AWK"; then
|
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
|
$AWK -f configure_h.awk include/ulib/internal/config.h > include/ulib/internal/config2.h
|
||||||
cd include/ulib/internal
|
cd include/ulib/internal
|
||||||
cat config2.h config1.h >> config.h
|
cat config2.h config1.h >> config.h
|
||||||
|
@ -36688,7 +36686,6 @@ if test -n "$AWK"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "***"
|
|
||||||
|
|
||||||
# Verify the integrity of the current configuration
|
# Verify the integrity of the current configuration
|
||||||
if test "$cross_compiling" != "yes"; then
|
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
|
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.
|
# 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
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -36735,4 +36741,3 @@ echo
|
||||||
echo "You are now ready to build ULib"
|
echo "You are now ready to build ULib"
|
||||||
echo "Enter the following command: ${T_MD}make && make install${T_ME}"
|
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 "After on some environment you must run also the following command: ${T_MD}sudo ldconfig${T_ME}"
|
||||||
echo "***"
|
|
||||||
|
|
14
configure.ac
14
configure.ac
|
@ -2540,10 +2540,8 @@ if test "x$ac_cv_crc32_intrinsics" = xyes; then
|
||||||
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
|
ULIB_LIBS="$ULIB_LIBS -lgcc_s -lgcc"
|
||||||
else
|
else
|
||||||
to_match='gcc (Ubuntu 5.*'
|
to_match='gcc (Ubuntu 5.*'
|
||||||
|
|
||||||
case `gcc --version | head -n 1` in
|
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)
|
$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
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -2753,7 +2751,7 @@ AC_CONFIG_FILES([
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
if test -n "$AWK"; then
|
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
|
$AWK -f configure_h.awk include/ulib/internal/config.h > include/ulib/internal/config2.h
|
||||||
cd include/ulib/internal
|
cd include/ulib/internal
|
||||||
cat config2.h config1.h >> config.h
|
cat config2.h config1.h >> config.h
|
||||||
|
@ -2762,7 +2760,6 @@ if test -n "$AWK"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "***"
|
|
||||||
|
|
||||||
# Verify the integrity of the current configuration
|
# Verify the integrity of the current configuration
|
||||||
if test "$cross_compiling" != "yes"; then
|
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
|
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.
|
# 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.
|
TWOCAN_CONF_MSG(The generated configuration appears to be unusable. Please verify that your system path and environment variables are correct)
|
||||||
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -2786,4 +2787,3 @@ echo
|
||||||
echo "You are now ready to build ULib"
|
echo "You are now ready to build ULib"
|
||||||
echo "Enter the following command: ${T_MD}make && make install${T_ME}"
|
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 "After on some environment you must run also the following command: ${T_MD}sudo ldconfig${T_ME}"
|
||||||
echo "***"
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user