use GST_ARCH
authorThomas Vander Stichele <thomas@apestaart.org>
Fri, 13 Feb 2004 13:09:27 +0000 (13:09 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Fri, 13 Feb 2004 13:09:27 +0000 (13:09 +0000)
Original commit message from CVS:
use GST_ARCH

ChangeLog
common
configure.ac

index 1357bc5..9c34ce1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-13  Thomas Vander Stichele  <thomas at apestaart dot org>
+
+       * configure.ac: use GST_ARCH to detect architecture
+
 2004-02-12  Julien MOUTTE  <julien@moutte.net>
 
        * gst/vbidec/vbiscreen.c: Fixing thomasvs fixes. Missing header.
diff --git a/common b/common
index d7fa140..a2d2883 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit d7fa1407cff7d2054ba22ac6824eba4086fdd047
+Subproject commit a2d2883febd16e51a267a580cc4413b2a17a91a9
index 75bf8c7..220a849 100644 (file)
@@ -149,6 +149,9 @@ AC_ARG_WITH(pkg-config-path,
    AC_HELP_STRING([--with-pkg-config-path],[colon-separated list of pkg-config(1) dirs]),
    [export PKG_CONFIG_PATH=${withval}])
 
+dnl check architecture
+GST_ARCH()
+
 dnl Check for nasm
 AC_PATH_PROG(NASM_PATH, nasm, no)
 AC_SUBST(NASM_PATH)
@@ -206,39 +209,6 @@ fi
 
 AC_SUBST(GST_CONTROL_LIBS)
 
-dnl Set up conditionals for (target) architecture:
-dnl ==============================================
-
-dnl Determine CPU
-case "x${target_cpu}" in
-  xi?86 | k?) HAVE_CPU_I386=yes
-              AC_DEFINE(HAVE_CPU_I386, 1, [Define if the target CPU is an x86])
-              dnl FIXME could use some better detection
-              dnl       (ie CPUID)
-              case "x${target_cpu}" in
-                xi386 | xi486) ;;
-                *)             AC_DEFINE(HAVE_RDTSC, 1, [Define if RDTSC is available]) ;;
-              esac ;;
-  xpowerpc)   HAVE_CPU_PPC=yes
-              AC_DEFINE(HAVE_CPU_PPC, 1, [Define if the target CPU is a PPC]) ;;
-  xalpha)     HAVE_CPU_ALPHA=yes
-              AC_DEFINE(HAVE_CPU_ALPHA, 1, [Define if the target CPU is an Alpha]) ;;
-  xarm*)      HAVE_CPU_ARM=yes
-              AC_DEFINE(HAVE_CPU_ARM, 1, [Define if the target CPU is an ARM]) ;;
-  xsparc*)    HAVE_CPU_SPARC=yes
-              AC_DEFINE(HAVE_CPU_SPARC, 1, [Define if the target CPU is a PPC]) ;;
-  xmips*)     HAVE_CPU_MIPS=yes
-              AC_DEFINE(HAVE_CPU_MIPS, 1, [Define if the target CPU is a MIPS]) ;;
-  xhppa*)     HAVE_CPU_HPPA=yes
-              AC_DEFINE(HAVE_CPU_HPPA, 1, [Define if the target CPU is a HPPA]) ;;
-esac
-# make these available to automake
-AM_CONDITIONAL(HAVE_CPU_I386,       test "x$HAVE_CPU_I386" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_PPC,        test "x$HAVE_CPU_PPC" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_ALPHA,      test "x$HAVE_CPU_ALPHA" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_ARM,        test "x$HAVE_CPU_ARM" = "xyes")
-AM_CONDITIONAL(HAVE_CPU_SPARC,      test "x$HAVE_CPU_SPARC" = "xyes")
-
 dnl Determine endianness
 AC_C_BIGENDIAN