Permalink
Browse files

fix compilation error on some systems

  • Loading branch information...
nitslp-ri committed Aug 31, 2016
1 parent a702aff commit 80fb587284575c6925a4344a2867301c7ba085a2
Showing with 16 additions and 7 deletions.
  1. 0 jclient-perl/jclient.pl
  2. +3 −3 libsent/configure
  3. +2 −2 libsent/configure.in
  4. +11 −2 support/modrev.sh
View
0 jclient-perl/jclient.pl 100755 → 100644
No changes.
View
@@ -3285,7 +3285,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
int
main ()
{
__m256 v;
__m256 v = _mm256_setzero_ps();
;
return 0;
}
@@ -3301,7 +3301,7 @@ xxxxAVX=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
if test "$xxxxAVX" = no; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIMD AVX instruction with -mavx" >&5
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIMD AVX instruction with -mavx" >&5
$as_echo_n "checking for SIMD AVX instruction with -mavx... " >&6; }
CFLAGS="$CFLAGS -mavx"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3311,7 +3311,7 @@ $as_echo_n "checking for SIMD AVX instruction with -mavx... " >&6; }
int
main ()
{
__m256 v;
__m256 v = _mm256_setzero_ps();
;
return 0;
}
View
@@ -128,7 +128,7 @@ dnl Checks for AVX capability
xxxxAVX=yes
AC_MSG_CHECKING([for SIMD AVX instruction])
AC_TRY_COMPILE([#include <immintrin.h>
],[__m256 v;],
],[__m256 v = _mm256_setzero_ps();],
AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no])
xxxxAVX=no
@@ -138,7 +138,7 @@ if test "$xxxxAVX" = no; then
AC_MSG_CHECKING([for SIMD AVX instruction with -mavx])
CFLAGS="$CFLAGS -mavx"
AC_TRY_COMPILE([#include <immintrin.h>
],[__m256 v;],
],[__m256 v = _mm256_setzero_ps();],
AC_MSG_RESULT([yes]),
AC_MSG_ERROR([no support for SIMD AVX instruction]))
fi
View
@@ -3,14 +3,23 @@
# change version
# (should be executed in the parent directory)
#
newver=$1
newver_major=$1
newver_minor=$2
for i in ./libjulius/configure.in ./support/build-all.sh; do
newver=${newver_major}.${newver_minor}
for i in ./support/build-all.sh; do
echo $i
sed -e "s/^JULIUS_VERSION=[^ ]*/JULIUS_VERSION=$newver/" < $i > tmp
diff $i tmp
mv tmp ${i}
done
for i in ./libjulius/configure.in ; do
echo $i
cat $i | sed -e "s/^JULIUS_MAJOR_VERSION=[^ ]*/JULIUS_MAJOR_VERSION=$newver_major/" | sed -e "s/^JULIUS_MINOR_VERSION=[^ ]*/JULIUS_MINOR_VERSION=$newver_minor/" > tmp
diff $i tmp
mv tmp ${i}
done
for i in ./libsent/configure.in; do
echo $i
sed -e "s/^LIBSENT_VERSION=[^ ]*/LIBSENT_VERSION=$newver/" < $i > tmp

0 comments on commit 80fb587

Please sign in to comment.