rust/cargo-c: update to 0.10.9+cargo-0.85.0
[oi-userland.git] / components / sysutils / filebench / patches / patch-configure.ac.patch
blobc7864e321ed6a5a610382daa2a073493d84d500b
1 $NetBSD: patch-configure.ac,v 1.2 2013/01/26 21:59:40 wiz Exp $
3 First chunk: automake-1.13 compat.
4 Second chunk: Fix unportable test(1) construct.
5 Rest: ?
7 --- configure.ac.orig 2011-09-06 17:17:45.000000000 +0000
8 +++ configure.ac
9 @@ -2,7 +2,7 @@
10 #### Initialization stubs
11 ####
12 AC_INIT([filebench], [1.4.9.1])
13 -AM_CONFIG_HEADER([config.h])
14 +AC_CONFIG_HEADERS([config.h])
15 AM_INIT_AUTOMAKE
17 ####
18 @@ -31,7 +31,7 @@ AC_CHECK_HEADERS([netdb.h])
19 AC_CHECK_HEADERS([netinet/in.h])
20 AC_CHECK_HEADERS([stddef.h])
21 AC_CHECK_HEADERS([math.h])
22 -if test "$ac_cv_header_math_h" == no
23 +if test "$ac_cv_header_math_h" = no
24 then
25 AC_MSG_ERROR([The math.h header is missing! If you use OpenIndiana b148, install "header-math" package.])
27 @@ -212,6 +212,9 @@ AC_CHECK_FILE(
28 [AC_DEFINE(HAVE_PROC_STAT, 1, [Checking if you have /proc/stat])]
31 +AC_CHECK_HEADERS([asm/unistd.h],
32 + [AC_DEFINE(HAVE_ASM_UNISTD_H, 1, [Checking if you have <asm/unistd.h>])])
34 # this checks if stat file is present ins /proc/<pid> directory. This file is
35 # used to get per thread per operation CPU usage statistics on Linux
36 # distributions. To facilitate this check,we are checking if stat file exists
37 @@ -469,6 +472,17 @@ AC_TRY_COMPILE([
38 ], AC_MSG_RESULT(no)
41 +AC_MSG_CHECKING(gettid)
42 +AC_TRY_COMPILE([
43 +#include <asm/unistd.h>
44 +],
45 +[ int nr_gettid = __NR_gettid;
46 +],[
47 + AC_DEFINE(HAVE_GETTID,1,[ Define if have gettid])
48 + AC_MSG_RESULT(yes)
49 + ], AC_MSG_RESULT(no)
52 ####
53 #### Check for structure members
54 ####