8 |
|
|
9 |
AC_PREREQ([2.50]) |
AC_PREREQ([2.50]) |
10 |
|
|
11 |
AC_INIT([Xvid], [1.3.0], [xvid-devel@xvid.org]) |
AC_INIT([Xvid], [1.3.2], [xvid-devel@xvid.org]) |
12 |
AC_CONFIG_SRCDIR(configure.in) |
AC_CONFIG_SRCDIR(configure.in) |
13 |
|
|
14 |
dnl Do not forget to increase that when needed. |
dnl Do not forget to increase that when needed. |
74 |
fi], |
fi], |
75 |
[assembly="yes"]) |
[assembly="yes"]) |
76 |
|
|
77 |
|
dnl pthread code |
78 |
|
AC_ARG_ENABLE(pthread, |
79 |
|
AC_HELP_STRING([--disable-pthread], |
80 |
|
[Disable pthread dependent code]), |
81 |
|
[if test "$enable_pthread" = "no" ; then |
82 |
|
pthread="no" |
83 |
|
else |
84 |
|
if test "$enable_pthread" = "yes" ; then |
85 |
|
pthread="yes" |
86 |
|
fi |
87 |
|
fi], |
88 |
|
[pthread="yes"]) |
89 |
|
|
90 |
dnl Build as a module not a shared lib on darwin |
dnl Build as a module not a shared lib on darwin |
91 |
AC_ARG_ENABLE(macosx_module, |
AC_ARG_ENABLE(macosx_module, |
92 |
AC_HELP_STRING([--enable-macosx_module], |
AC_HELP_STRING([--enable-macosx_module], |
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" |
605 |
dnl |
dnl |
606 |
dnl ========================================================================== |
dnl ========================================================================== |
607 |
|
|
608 |
|
if test x"$pthread" = x"yes" ; then |
609 |
AC_CHECK_HEADER( |
AC_CHECK_HEADER( |
610 |
[pthread.h], |
[pthread.h], |
611 |
[AC_CHECK_LIB( |
[AC_CHECK_LIB( |
615 |
SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"], |
SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread"], |
616 |
AC_MSG_WARN(Pthread not supported. No SMP support))], |
AC_MSG_WARN(Pthread not supported. No SMP support))], |
617 |
AC_MSG_WARN(Pthread not supported. No SMP support)) |
AC_MSG_WARN(Pthread not supported. No SMP support)) |
618 |
|
else |
619 |
|
AC_MSG_WARN(Pthread support disabled. No SMP support) |
620 |
|
fi |
621 |
|
|
622 |
dnl ========================================================================== |
dnl ========================================================================== |
623 |
dnl |
dnl |