From: Dirk Mueller Date: Sat, 3 Jan 2004 15:21:14 +0000 (+0000) Subject: infrastructure. Yes, it doesn't do much yet. X-Git-Tag: svn/VALGRIND_2_1_1~134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9f8dd46c0cb956a47bb3afbe25498c64cf6b975;p=thirdparty%2Fvalgrind.git infrastructure. Yes, it doesn't do much yet. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2172 --- diff --git a/configure.in b/configure.in index 7b59f4db94..e23608f50c 100644 --- a/configure.in +++ b/configure.in @@ -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 index 0000000000..3dda72986f --- /dev/null +++ b/coregrind/arch/.cvsignore @@ -0,0 +1,2 @@ +Makefile.in +Makefile diff --git a/coregrind/arch/Makefile.am b/coregrind/arch/Makefile.am new file mode 100644 index 0000000000..629a038d18 --- /dev/null +++ b/coregrind/arch/Makefile.am @@ -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 index 0000000000..3dda72986f --- /dev/null +++ b/coregrind/arch/x86-freebsd/.cvsignore @@ -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 index 0000000000..139597f9cb --- /dev/null +++ b/coregrind/arch/x86-freebsd/Makefile.am @@ -0,0 +1,2 @@ + + diff --git a/coregrind/arch/x86-linux/.cvsignore b/coregrind/arch/x86-linux/.cvsignore new file mode 100644 index 0000000000..3dda72986f --- /dev/null +++ b/coregrind/arch/x86-linux/.cvsignore @@ -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 index 0000000000..139597f9cb --- /dev/null +++ b/coregrind/arch/x86-linux/Makefile.am @@ -0,0 +1,2 @@ + +