]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
infrastructure. Yes, it doesn't do much yet.
authorDirk Mueller <dmuell@gmx.net>
Sat, 3 Jan 2004 15:21:14 +0000 (15:21 +0000)
committerDirk Mueller <dmuell@gmx.net>
Sat, 3 Jan 2004 15:21:14 +0000 (15:21 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2172

configure.in
coregrind/arch/.cvsignore [new file with mode: 0644]
coregrind/arch/Makefile.am [new file with mode: 0644]
coregrind/arch/x86-freebsd/.cvsignore [new file with mode: 0644]
coregrind/arch/x86-freebsd/Makefile.am [new file with mode: 0644]
coregrind/arch/x86-linux/.cvsignore [new file with mode: 0644]
coregrind/arch/x86-linux/Makefile.am [new file with mode: 0644]

index 7b59f4db942f621decb2f6bc12d0179b7c3387b7..e23608f50cf34a8e8d9eacce231f4d6e10d440cd 100644 (file)
@@ -78,46 +78,55 @@ case "${host_cpu}" in
 esac
 
 AC_MSG_CHECKING([for a supported OS])
+AC_SUBST(VG_PLATFORM)
 
 case "${host_os}" in
-     *linux*) 
+     *linux*)
        AC_MSG_RESULT([ok (${host_os})])
-        ;;
+        VG_PLATFORM="x86-linux"
 
-     *) 
-       AC_MSG_RESULT([no (${host_os})])
-       AC_MSG_ERROR([Valgrind is Linux specific. Sorry])
-       ;;
-esac
+        # Ok, this is linux. Check the kernel version
+        AC_MSG_CHECKING([for the kernel version])
 
+        kernel=`uname -r`
 
-# Ok, this is linux. Check the kernel version
-AC_MSG_CHECKING([for the kernel version])
+        case "${kernel}" in
+             2.6.*) 
+                   AC_MSG_RESULT([2.6 family (${kernel})])
+                   AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
+                   ;;
 
-kernel=`uname -r`
+             2.4.*) 
+                   AC_MSG_RESULT([2.4 family (${kernel})])
+                   AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
+                   ;;
 
-case "${kernel}" in
-     2.6.*) 
-           AC_MSG_RESULT([2.6 family (${kernel})])
-           AC_DEFINE([KERNEL_2_6], 1, [Define to 1 if you're using Linux 2.6.x])
-           ;;
+             2.2.*) 
+                   AC_MSG_RESULT([2.2 family (${kernel})])
+                   AC_DEFINE([KERNEL_2_2], 1, [Define to 1 if you're using Linux 2.2.x])
+                   ;;
 
-     2.4.*) 
-           AC_MSG_RESULT([2.4 family (${kernel})])
-           AC_DEFINE([KERNEL_2_4], 1, [Define to 1 if you're using Linux 2.4.x])
-           ;;
+             *) 
+                   AC_MSG_RESULT([unsupported (${kernel})])
+                   AC_MSG_ERROR([Valgrind works on kernels 2.2, 2.4, 2.6])
+                   ;;
+        esac
 
-     2.2.*) 
-           AC_MSG_RESULT([2.2 family (${kernel})])
-           AC_DEFINE([KERNEL_2_2], 1, [Define to 1 if you're using Linux 2.2.x])
-           ;;
+        ;;
+
+     *freebsd*)
+        AC_MSG_RESULT([ok (${host_os})])
+        VG_PLATFORM="x86-freebsd"
+
+        ;;
 
      *) 
-           AC_MSG_RESULT([unsupported (${kernel})])
-           AC_MSG_ERROR([Valgrind works on kernels 2.2, 2.4, 2.6])
-           ;;
+       AC_MSG_RESULT([no (${host_os})])
+       AC_MSG_ERROR([Valgrind is operating system specific. Sorry. Please consider doing a port.])
+       ;;
 esac
 
+
 AC_SUBST(DEFAULT_SUPP)
 
 glibc=""
@@ -348,6 +357,9 @@ AC_OUTPUT(
    include/Makefile 
    auxprogs/Makefile
    coregrind/Makefile 
+   coregrind/arch/Makefile
+   coregrind/arch/x86-linux/Makefile
+   coregrind/arch/x86-freebsd/Makefile
    coregrind/demangle/Makefile 
    coregrind/docs/Makefile
    coregrind/x86/Makefile
diff --git a/coregrind/arch/.cvsignore b/coregrind/arch/.cvsignore
new file mode 100644 (file)
index 0000000..3dda729
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/coregrind/arch/Makefile.am b/coregrind/arch/Makefile.am
new file mode 100644 (file)
index 0000000..629a038
--- /dev/null
@@ -0,0 +1,2 @@
+
+SUBDIR=$(VG_PLATFORM)
diff --git a/coregrind/arch/x86-freebsd/.cvsignore b/coregrind/arch/x86-freebsd/.cvsignore
new file mode 100644 (file)
index 0000000..3dda729
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/coregrind/arch/x86-freebsd/Makefile.am b/coregrind/arch/x86-freebsd/Makefile.am
new file mode 100644 (file)
index 0000000..139597f
--- /dev/null
@@ -0,0 +1,2 @@
+
+
diff --git a/coregrind/arch/x86-linux/.cvsignore b/coregrind/arch/x86-linux/.cvsignore
new file mode 100644 (file)
index 0000000..3dda729
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/coregrind/arch/x86-linux/Makefile.am b/coregrind/arch/x86-linux/Makefile.am
new file mode 100644 (file)
index 0000000..139597f
--- /dev/null
@@ -0,0 +1,2 @@
+
+