diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2012-02-25 15:34:10 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-02-25 15:34:10 +0100 |
commit | ee245d8ca36ce90212db3684528c9ed68f92d643 (patch) | |
tree | 2e4721fba535790437ba7847aeb35f78e14c3052 /m4 | |
parent | dd762c302d085c0c3ddd28b2f5efc1e6dd003051 (diff) | |
download | strace-ee245d8ca36ce90212db3684528c9ed68f92d643.tar.gz strace-ee245d8ca36ce90212db3684528c9ed68f92d643.tar.bz2 strace-ee245d8ca36ce90212db3684528c9ed68f92d643.tar.xz |
Remove parts of automake machinery which are not needed on Linux
This change is a verbatim part of Dmitry's changes to remove support
for non-Linux architectures.
* Makefile.am: Don't install PORTING file. Install README-linux-ptrace file.
Set OS variable to linux unconditionally.
* configure.ac: Remove code to set opsys variable, and its usage.
Remove checks for headers which are never present on Linux.
* m4/stat.m4: Remove 'ifdef LINUX' check.
* m4/statfs.m4: Likewise.
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/stat.m4 | 8 | ||||
-rw-r--r-- | m4/statfs.m4 | 4 |
2 files changed, 5 insertions, 7 deletions
@@ -2,13 +2,11 @@ dnl ### A macro to determine whether stat64 is defined. AC_DEFUN([AC_STAT64], [AC_MSG_CHECKING(for stat64 in (asm|sys)/stat.h) AC_CACHE_VAL(ac_cv_type_stat64, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> -#ifdef LINUX +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ +#include <sys/types.h> #include <linux/types.h> #include <asm/stat.h> -#else -#include <sys/stat.h> -#endif]], [[struct stat64 st;]])],[ac_cv_type_stat64=yes],[ac_cv_type_stat64=no])]) +]], [[struct stat64 st;]])],[ac_cv_type_stat64=yes],[ac_cv_type_stat64=no])]) AC_MSG_RESULT($ac_cv_type_stat64) if test "$ac_cv_type_stat64" = yes then diff --git a/m4/statfs.m4 b/m4/statfs.m4 index 4651eca..1a2f971 100644 --- a/m4/statfs.m4 +++ b/m4/statfs.m4 @@ -2,10 +2,10 @@ dnl ### A macro to determine whether statfs64 is defined. AC_DEFUN([AC_STATFS64], [AC_MSG_CHECKING(for statfs64 in sys/vfs.h) AC_CACHE_VAL(ac_cv_type_statfs64, -[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifdef LINUX +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <linux/types.h> #include <sys/vfs.h> -#endif]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])]) +]], [[struct statfs64 st;]])],[ac_cv_type_statfs64=yes],[ac_cv_type_statfs64=no])]) AC_MSG_RESULT($ac_cv_type_statfs64) if test "$ac_cv_type_statfs64" = yes then |