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.
7 --- configure.ac.orig 2011-09-06 17:17:45.000000000 +0000
10 #### Initialization stubs
12 AC_INIT([filebench], [1.4.9.1])
13 -AM_CONFIG_HEADER([config.h])
14 +AC_CONFIG_HEADERS([config.h])
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
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([
41 +AC_MSG_CHECKING(gettid)
43 +#include <asm/unistd.h>
45 +[ int nr_gettid = __NR_gettid;
47 + AC_DEFINE(HAVE_GETTID,1,[ Define if have gettid])
49 + ], AC_MSG_RESULT(no)
53 #### Check for structure members