237 |
STATIC_EXTENSION="" |
STATIC_EXTENSION="" |
238 |
OBJECT_EXTENSION="" |
OBJECT_EXTENSION="" |
239 |
case "$target_os" in |
case "$target_os" in |
240 |
*bsd*|linux*|beos|irix*|solaris*) |
*bsd*|linux*|beos|irix*|solaris*|gnu*) |
241 |
AC_MSG_RESULT([.so .a .o]) |
AC_MSG_RESULT([.so .a .o]) |
242 |
STATIC_EXTENSION="a" |
STATIC_EXTENSION="a" |
243 |
SHARED_EXTENSION="so" |
SHARED_EXTENSION="so" |
281 |
ALTIVEC_CFLAGS="" |
ALTIVEC_CFLAGS="" |
282 |
PRE_SHARED_LIB="" |
PRE_SHARED_LIB="" |
283 |
case "$target_os" in |
case "$target_os" in |
284 |
linux*|solaris*) |
linux*|solaris*|gnu*) |
285 |
AC_MSG_RESULT([ok]) |
AC_MSG_RESULT([ok]) |
286 |
STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)" |
STATIC_LIB="libxvidcore.\$(STATIC_EXTENSION)" |
287 |
SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR).\$(API_MINOR)" |
SHARED_LIB="libxvidcore.\$(SHARED_EXTENSION).\$(API_MAJOR).\$(API_MINOR)" |
419 |
if test "$found_nasm_comp_prog" = "yes" ; then |
if test "$found_nasm_comp_prog" = "yes" ; then |
420 |
AC_MSG_CHECKING([for asm object format]) |
AC_MSG_CHECKING([for asm object format]) |
421 |
case "$target_os" in |
case "$target_os" in |
422 |
*bsd*|linux*|beos|irix*|solaris*) |
*bsd*|linux*|beos|irix*|solaris*|gnu*) |
423 |
if test "$ARCHITECTURE" = "X86_64" ; then |
if test "$ARCHITECTURE" = "X86_64" ; then |
424 |
AC_MSG_RESULT([elf64]) |
AC_MSG_RESULT([elf64]) |
425 |
NASM_FORMAT="elf64" |
NASM_FORMAT="elf64" |
649 |
dnl ========================================================================== |
dnl ========================================================================== |
650 |
|
|
651 |
if test "$GCC" = "yes" ; then |
if test "$GCC" = "yes" ; then |
|
cat << EOF > test.c |
|
|
#include <stdio.h> |
|
|
int main(int argc, char **argv) |
|
|
{ |
|
|
if (*argv[[1]] == 'M') { |
|
|
printf("%d", __GNUC__); |
|
|
} |
|
|
if (*argv[[1]] == 'm') { |
|
|
printf("%d", __GNUC_MINOR__); |
|
|
} |
|
|
return 0; |
|
|
} |
|
|
EOF |
|
|
$CC -o gcc-ver test.c |
|
|
|
|
|
GCC_MAJOR=`./gcc-ver M` |
|
|
GCC_MINOR=`./gcc-ver m` |
|
652 |
|
|
653 |
rm -f test.c |
GCC_MAJOR=`$CC -dumpversion | cut -d . -f 1` |
654 |
rm -f gcc-ver |
GCC_MINOR=`$CC -dumpversion | cut -d . -f 2` |
655 |
|
|
656 |
# GCC 4.x |
# GCC 4.x |
657 |
if test "${GCC_MAJOR}" -gt 3 ; then |
if test "${GCC_MAJOR}" -gt 3 ; then |
690 |
AC_SUBST(ASSEMBLY_SOURCES) |
AC_SUBST(ASSEMBLY_SOURCES) |
691 |
AC_SUBST(CC) |
AC_SUBST(CC) |
692 |
AC_SUBST(CFLAGS) |
AC_SUBST(CFLAGS) |
693 |
|
AC_SUBST(LDFLAGS) |
694 |
AC_SUBST(SPECIFIC_LDFLAGS) |
AC_SUBST(SPECIFIC_LDFLAGS) |
695 |
AC_SUBST(SPECIFIC_CFLAGS) |
AC_SUBST(SPECIFIC_CFLAGS) |
696 |
AC_SUBST(DCT_IA64_SOURCES) |
AC_SUBST(DCT_IA64_SOURCES) |