mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
Fix on x86 architectures - was just checking for 386, D'oh.
Original commit message from CVS: Fix on x86 architectures - was just checking for 386, D'oh. Fix autogen to run autoheader _before_ autoconf, since it generates a required file (config.h.in, which I just removed from CVS since its an autogenerated one). Also fix messed up variables in gst/Makefile.am
This commit is contained in:
parent
238bbc23c8
commit
968b5acaa1
6 changed files with 12 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,6 +4,7 @@ aclocal.m4
|
||||||
config.cache
|
config.cache
|
||||||
config.guess
|
config.guess
|
||||||
config.h
|
config.h
|
||||||
|
config.h.in
|
||||||
config.log
|
config.log
|
||||||
config.status
|
config.status
|
||||||
config.sub
|
config.sub
|
||||||
|
|
|
@ -46,8 +46,8 @@ fi
|
||||||
libtoolize --copy --force
|
libtoolize --copy --force
|
||||||
aclocal $ACLOCAL_FLAGS
|
aclocal $ACLOCAL_FLAGS
|
||||||
automake --add-missing
|
automake --add-missing
|
||||||
autoconf
|
|
||||||
autoheader
|
autoheader
|
||||||
|
autoconf
|
||||||
|
|
||||||
if [ "x$1" = "x--autogen-recurse" ];then
|
if [ "x$1" = "x--autogen-recurse" ];then
|
||||||
exit # the rest will happen later
|
exit # the rest will happen later
|
||||||
|
|
|
@ -48,7 +48,7 @@ dnl Set up conditionals for (target) host type:
|
||||||
dnl ===========================================
|
dnl ===========================================
|
||||||
|
|
||||||
case "x${target_cpu}" in
|
case "x${target_cpu}" in
|
||||||
xi386) HAVE_CPU_I386=yes ;
|
xi?86) HAVE_CPU_I386=yes ;
|
||||||
AC_DEFINE(HAVE_CPU_I386) ;;
|
AC_DEFINE(HAVE_CPU_I386) ;;
|
||||||
xpowerpc) HAVE_CPU_PPC=yes ;
|
xpowerpc) HAVE_CPU_PPC=yes ;
|
||||||
AC_DEFINE(HAVE_CPU_PPC) ;;
|
AC_DEFINE(HAVE_CPU_PPC) ;;
|
||||||
|
|
|
@ -26,8 +26,7 @@ libgst_la_SOURCES = \
|
||||||
gstbufferpool.c \
|
gstbufferpool.c \
|
||||||
gstclock.c \
|
gstclock.c \
|
||||||
gstcpu.c \
|
gstcpu.c \
|
||||||
$(GSTI386_SRCS) \
|
$(GSTARCH_SRCS) \
|
||||||
$(GSTPPC_SRCS) \
|
|
||||||
gstelement.c \
|
gstelement.c \
|
||||||
gstelementfactory.c \
|
gstelementfactory.c \
|
||||||
gstbin.c \
|
gstbin.c \
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
#ifndef GST_HGUARD_GSTARCH_H
|
#ifndef GST_HGUARD_GSTARCH_H
|
||||||
#define GST_HGUARD_GSTARCH_H
|
#define GST_HGUARD_GSTARCH_H
|
||||||
|
|
||||||
#ifdef __I386__
|
#include "config.h"
|
||||||
#include "gsti386.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __PPC__
|
#ifdef HAVE_CPU_I386
|
||||||
|
#include "gsti386.h"
|
||||||
|
#else
|
||||||
|
#ifdef HAVE_CPU_PPC
|
||||||
#include "gstppc.h"
|
#include "gstppc.h"
|
||||||
|
#else
|
||||||
|
#warn Need to know about this architecture, or have a generic implementation
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* GST_HGUARD_GSTARCH_H */
|
#endif /* GST_HGUARD_GSTARCH_H */
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
#ifndef GST_HGUARD_GSTI386_H
|
#ifndef GST_HGUARD_GSTI386_H
|
||||||
#define GST_HGUARD_GSTI386_H
|
#define GST_HGUARD_GSTI386_H
|
||||||
|
|
||||||
/* Hmm - does this work, or do the braces cause other stack manipulation?
|
|
||||||
* XXX
|
|
||||||
*/
|
|
||||||
#define GET_SP(target) \
|
#define GET_SP(target) \
|
||||||
__asm__("movl %%esp, %0" : "=m"(target) : : "esp", "ebp");
|
__asm__("movl %%esp, %0" : "=m"(target) : : "esp", "ebp");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue