openbsd-ports/devel/gettext/patches/patch-gettext-runtime_m4_fcntl-o_m4
naddy 6ebce09c16 Big oops! Bring back fcntl-o.m4 fix. It is packaged and in fact
picked up by other ports, e.g. audio/xmms.  touch(1) the file to
avoid triggering an autotools rebuild cascade.

Breakage noticed by landry@
2010-10-26 14:15:01 +00:00

20 lines
796 B
Plaintext

$OpenBSD: patch-gettext-runtime_m4_fcntl-o_m4,v 1.3 2010/10/26 14:15:01 naddy Exp $
Provide fallback for AC_USE_SYSTEM_EXTENSIONS which was introduced
in autoconf 2.60. This is picked up by other ports that run autoconf,
e.g. audio/xmms.
--- gettext-runtime/m4/fcntl-o.m4.orig Thu Jul 1 07:44:09 2010
+++ gettext-runtime/m4/fcntl-o.m4 Thu Jul 1 07:44:43 2010
@@ -12,7 +12,9 @@ dnl Written by Paul Eggert.
AC_DEFUN([gl_FCNTL_O_FLAGS],
[
dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW.
- AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+ m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
+ [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
+ [AC_REQUIRE([AC_GNU_SOURCE])])
AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h],
[AC_RUN_IFELSE(
[AC_LANG_PROGRAM(