public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Anthony G. Basile" <blueness@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/elfix:master commit in: /
Date: Sat, 26 Nov 2011 22:54:47 +0000 (UTC)	[thread overview]
Message-ID: <e334b5df552dec27782a75ef3ef3c3994befb5fc.blueness@gentoo> (raw)

commit:     e334b5df552dec27782a75ef3ef3c3994befb5fc
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 22:54:41 2011 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 22:54:41 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=e334b5df

configure.ac: added --enable-xattr switch

---
 configure.ac |   53 +++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 45 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 18331f1..46ca874 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,29 +25,66 @@ AC_ARG_ENABLE(
 )
 AM_CONDITIONAL([TEST],[test "x$has_yasm" = "xyes"])
 
+AC_ARG_ENABLE(
+	[xattr],
+	AS_HELP_STRING(
+		[--enable-xattr],
+		[enable support for pax markings in xattrs]
+	),
+	[
+		AS_IF(
+			[test "x$enable_xattr" = "xyes"],
+			[
+				AC_CHECK_HEADERS(
+					[attr/xattr.h],
+					[],
+					[AC_MSG_ERROR(["Missing necessary attr/xattr.h"])]
+				)
+				AC_CHECK_LIB(
+					[attr],
+					[fgetxattr],
+					[],
+					[AC_MSG_ERROR(["Missing necessary function fgetxattr in libattr"])]
+				)
+				CFLAGS+=" -DXATTR"
+			],
+			[
+				CFLAGS+=" -UXATTR"
+			]
+		)
+	],
+	[
+		CFLAGS+=" -DXATTR"
+	]
+)
+
 # Checks for programs.
+AC_PROG_AWK
 AC_PROG_CC
-AC_CHECK_FUNCS([memset strerror])
-AC_FUNC_MMAP
 
 # Checks for libraries.
-AC_CHECK_LIB([elf], [elf_begin])
-AC_CHECK_LIB([attr], [fgetxattr])
+AC_CHECK_LIB([elf], [elf_begin],[],[AC_MSG_ERROR(["Missing necessary function elf_begin in libelf"])])
 
 # Checks for header files.
 
-AC_CHECK_HEADERS([attr/xattr.h errno.h error.h fcntl.h gelf.h libgen.h stdio.h \
-	stdlib.h string.h sys/mman.h sys/stat.h sys/types.h unistd.h
-],
-[], [AC_MSG_ERROR(["Missing necessary header"])])
+AC_CHECK_HEADERS(
+	[errno.h error.h fcntl.h gelf.h libgen.h stdio.h stdlib.h string.h \
+	sys/mman.h sys/stat.h sys/types.h unistd.h],
+	[],
+	[AC_MSG_ERROR(["Missing necessary header"])]
+)
 
 # Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_PID_T
 AC_TYPE_SIZE_T
 AC_TYPE_UINT8_T
 AC_TYPE_UINT16_T
 
 # Checks for library functions.
 AC_FUNC_ERROR_AT_LINE
+AC_FUNC_FORK
+AC_FUNC_MMAP
+AC_CHECK_FUNCS([memset strerror])
 
 AC_CONFIG_FILES([
 	Makefile



             reply	other threads:[~2011-11-26 22:54 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-26 22:54 Anthony G. Basile [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-24  3:18 [gentoo-commits] proj/elfix:master commit in: / Sam James
2023-01-10  5:21 Sam James
2016-04-02 22:11 Anthony G. Basile
2016-02-28 21:14 Anthony G. Basile
2016-02-28 21:02 Anthony G. Basile
2016-02-28 17:15 Anthony G. Basile
2016-02-28 17:04 Anthony G. Basile
2016-02-28 16:28 Anthony G. Basile
2016-02-28 14:13 Anthony G. Basile
2016-02-28  7:12 Anthony G. Basile
2016-02-28  7:10 Anthony G. Basile
2016-02-13 21:29 Anthony G. Basile
2015-10-27 19:48 Anthony G. Basile
2015-10-24 18:32 Anthony G. Basile
2014-11-03 12:23 Anthony G. Basile
2014-10-13 22:19 Anthony G. Basile
2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:32 ` Anthony G. Basile
2014-08-19 14:01 Anthony G. Basile
2014-07-30 16:40 ` Anthony G. Basile
2014-07-30 22:36 Anthony G. Basile
2014-08-19 14:01 ` Anthony G. Basile
2014-07-30 19:39 Anthony G. Basile
2014-08-19 14:01 ` Anthony G. Basile
2014-07-30 16:20 Anthony G. Basile
2014-07-21 21:05 Anthony G. Basile
2014-06-07 14:20 Anthony G. Basile
2014-06-07 14:18 Anthony G. Basile
2013-11-07 14:51 Anthony G. Basile
2013-05-21  2:21 Anthony G. Basile
2012-12-29  2:36 Anthony G. Basile
2012-12-29  1:36 Anthony G. Basile
2012-12-27  3:16 Anthony G. Basile
2012-12-16 21:31 Anthony G. Basile
2012-12-12 18:47 Anthony G. Basile
2012-11-10 23:38 Anthony G. Basile
2012-11-10 22:26 Anthony G. Basile
2012-11-10 21:02 Anthony G. Basile
2012-11-10 21:01 Anthony G. Basile
2012-07-29 15:18 Anthony G. Basile
2012-07-28 12:46 Anthony G. Basile
2012-07-27 22:37 Anthony G. Basile
2012-07-24 12:53 Anthony G. Basile
2012-07-24 12:38 Anthony G. Basile
2012-07-21 19:04 Anthony G. Basile
2012-07-20 15:20 Anthony G. Basile
2011-12-29  0:53 Anthony G. Basile
2011-12-04 22:00 Anthony G. Basile
2011-12-04 21:47 Anthony G. Basile
2011-11-27  1:33 Anthony G. Basile
2011-11-27  1:12 Anthony G. Basile
2011-11-15 19:37 Anthony G. Basile
2011-11-03 19:00 Anthony G. Basile
2011-11-02  9:30 Anthony G. Basile
2011-10-23 15:44 Anthony G. Basile
2011-10-23 14:57 Anthony G. Basile
2011-10-17 21:24 Anthony G. Basile
2011-10-12 10:53 Anthony G. Basile
2011-10-08 19:31 Anthony G. Basile
2011-09-18 23:06 Anthony G. Basile
2011-05-05 19:46 Anthony G. Basile
2011-05-04  2:24 Anthony G. Basile

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e334b5df552dec27782a75ef3ef3c3994befb5fc.blueness@gentoo \
    --to=blueness@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox