3110
3111
SED="$ac_cv_path_SED"
3111
3112
rm -f conftest.sed
3113
major_version=$(echo 2.1.0-rc1 | sed 's/^\([0-9]\)*\.[0-9]*\.[0-9]*.*$/\1/')
3114
minor_version=$(echo 2.1.0-rc1 | sed 's/^[0-9]*\.\([0-9]*\)\.[0-9]*.*$/\1/')
3115
patchlevel_version=$(echo 2.1.0-rc1 | sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*$/\1/')
3114
major_version=$(echo 2.1.0-rc2 | sed 's/^\([0-9]\)*\.[0-9]*\.[0-9]*.*$/\1/')
3115
minor_version=$(echo 2.1.0-rc2 | sed 's/^[0-9]*\.\([0-9]*\)\.[0-9]*.*$/\1/')
3116
patchlevel_version=$(echo 2.1.0-rc2 | sed 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*$/\1/')
3116
3117
MAJOR_VERSION=$major_version
3118
3119
MINOR_VERSION=$minor_version
15939
# Check for various supplementary host information (beyond the
15940
# triplet) which might affect the library format choices. E.g., we
15941
# can be building with `i686-unknown-linux-gnu-gcc -m64'
15944
i[34567]86-*-linux*)
15945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
15946
$as_echo_n "checking if building for x86-64... " >&6; }
15947
if ${ust_cv_i386_is_x86_64+:} false; then :
15948
$as_echo_n "(cached) " >&6
15950
save_CPPFLAGS="$CPPFLAGS"
15951
CPPFLAGS="$CPPFLAGS $CFLAGS"
15952
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15953
/* end confdefs.h. */
15960
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15961
$EGREP "got it" >/dev/null 2>&1; then :
15962
ust_cv_i386_is_x86_64=yes
15964
ust_cv_i386_is_x86_64=no
15968
CPPFLAGS="$save_CPPFLAGS"
15970
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ust_cv_i386_is_x86_64" >&5
15971
$as_echo "$ust_cv_i386_is_x86_64" >&6; }
15975
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking library format for the host system" >&5
15976
$as_echo_n "checking library format for the host system... " >&6; }
15948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system alignment requirements" >&5
15949
$as_echo_n "checking host system alignment requirements... " >&6; }
15977
15950
case $host_cpu in
15979
if test "$ust_cv_i386_is_x86_64" = yes ; then
15980
LIBFORMAT="elf64-x86-64"
15982
LIBFORMAT="elf32-i386"
15985
x86_64) LIBFORMAT="elf64-x86-64" ;;
15986
amd64) LIBFORMAT="elf64-x86-64" ;;
15987
powerpc) LIBFORMAT="elf32-powerpc" ;;
15988
ppc64) LIBFORMAT="elf64-powerpc" ;;
15989
powerpc64) LIBFORMAT="elf64-powerpc" ;;
15990
s390) LIBFORMAT="elf32-s390"; NO_UNALIGNED_ACCESS=1 ;;
15991
s390x) LIBFORMAT="elf64-s390"; NO_UNALIGNED_ACCESS=1 ;;
15992
armv5) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;
15993
arm) LIBFORMAT="elf32-littlearm"; NO_UNALIGNED_ACCESS=1 ;;
15994
mips*) LIBFORMAT=""; NO_UNALIGNED_ACCESS=1;;
15995
*) as_fn_error $? "unable to detect library format (unsupported architecture ($host_cpu)?)" "$LINENO" 5 ;;
15958
s390) NO_UNALIGNED_ACCESS=1 ;;
15959
s390x) NO_UNALIGNED_ACCESS=1 ;;
15960
arm*) NO_UNALIGNED_ACCESS=1 ;;
15961
mips*) NO_UNALIGNED_ACCESS=1;;
15962
*) as_fn_error $? "unable to detect alignment requirements (unsupported architecture ($host_cpu)?)" "$LINENO" 5 ;;
15998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFORMAT" >&5
15999
$as_echo "$LIBFORMAT" >&6; }
16001
if test "x$host_cpu" = "xarm" ; then
16002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for armv5" >&5
16003
$as_echo_n "checking checking for armv5... " >&6; }
16004
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005
/* end confdefs.h. */
16007
#ifndef __ARM_ARCH_5TEJ__
16008
#error "no arm5 here"
16012
if ac_fn_c_try_compile "$LINENO"; then :
16014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16015
$as_echo "yes" >&6; }
16016
NO_UNALIGNED_ACCESS=1
16021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16022
$as_echo "no" >&6; }
16026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028
15965
if test x$NO_UNALIGNED_ACCESS = x ; then
16029
15966
$as_echo "#define LTTNG_UST_HAVE_EFFICIENT_UNALIGNED_ACCESS 1" >>confdefs.h
17303
17244
"tests/hello/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hello/Makefile" ;;
17304
17245
"tests/hello-static-lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hello-static-lib/Makefile" ;;
17305
17246
"tests/hello.cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hello.cxx/Makefile" ;;
17247
"tests/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES tests/daemon/Makefile" ;;
17306
17248
"tests/demo/Makefile") CONFIG_FILES="$CONFIG_FILES tests/demo/Makefile" ;;
17307
17249
"tests/fork/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fork/Makefile" ;;
17308
17250
"tests/ust-basic-tracing/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ust-basic-tracing/Makefile" ;;