mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
Fixes for cross-compilation
Original commit message from CVS: Fixes for cross-compilation
This commit is contained in:
parent
e85f1bed4e
commit
e9bae927c1
1 changed files with 9 additions and 9 deletions
16
configure.ac
16
configure.ac
|
@ -110,7 +110,11 @@ AC_MSG_RESULT(no)
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl check for makecontext and define HAVE_MAKECONTEXT if we have it
|
dnl check for makecontext and define HAVE_MAKECONTEXT if we have it
|
||||||
GST_CHECK_MAKECONTEXT()
|
AC_CHECK_MCSC()
|
||||||
|
if test "$ac_cv_check_mcsc" == "yes"; then
|
||||||
|
AC_DEFINE_UNQUOTED(HAVE_MAKECONTEXT, $HAVE_MAKECONTEXT,
|
||||||
|
[defined if we have makecontext ()])
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Check for a way to display the function name in debug output
|
dnl Check for a way to display the function name in debug output
|
||||||
GST_CHECK_FUNCTION()
|
GST_CHECK_FUNCTION()
|
||||||
|
@ -153,12 +157,12 @@ GST_CHECK_LIBHEADER(POPT, popt, poptStrippedArgv,, popt.h, POPT_LIBS="-lpopt",
|
||||||
ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
|
ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/])
|
||||||
)
|
)
|
||||||
AC_MSG_NOTICE(Checking for POPT_TABLEEND)
|
AC_MSG_NOTICE(Checking for POPT_TABLEEND)
|
||||||
AC_TRY_RUN([
|
AC_COMPILE_IFELSE([
|
||||||
#include <popt.h>
|
#include <popt.h>
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
#ifndef POPT_TABLEEND
|
#ifndef POPT_TABLEEND
|
||||||
return 1;
|
#error
|
||||||
#else
|
#else
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
|
@ -176,7 +180,7 @@ dnl defines the wrong default symbol as well (HAVE_ASM_ATOMIC_H)
|
||||||
AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
|
AC_CHECK_HEADER(asm/atomic.h, HAVE_ATOMIC_H=yes, HAVE_ATOMIC_H=no)
|
||||||
dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
|
dnl Do a compile to check that it has atomic_set (eg, linux 2.0 didn't)
|
||||||
if test x$HAVE_ATOMIC_H = xyes; then
|
if test x$HAVE_ATOMIC_H = xyes; then
|
||||||
AC_TRY_RUN([
|
AC_LINK_IFELSE([
|
||||||
#include "asm/atomic.h"
|
#include "asm/atomic.h"
|
||||||
main() {atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
|
main() {atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0;}
|
||||||
],, [
|
],, [
|
||||||
|
@ -185,10 +189,6 @@ main() { atomic_t t; atomic_set(&t,0); atomic_inc(&t); atomic_add(1,&t);return 0
|
||||||
AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
|
AC_MSG_WARN(Atomic reference counting is out of date: doing without.)
|
||||||
fi
|
fi
|
||||||
HAVE_ATOMIC_H=no
|
HAVE_ATOMIC_H=no
|
||||||
], [
|
|
||||||
# Cross compiling
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_MSG_WARN(Can't check properly for atomic reference counting. Assuming OK.)
|
|
||||||
])
|
])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue