summaryrefslogtreecommitdiff
path: root/devel/jq/patches/patch-configure.ac
blob: 93d3a4537a51eec783c6002bd7b012d93ea5b5b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-configure.ac,v 1.4 2018/11/03 12:47:16 leot Exp $

Defining _GNU_SOURCE, _BSD_SOURCE etc. in C sources is problematic,
because the result of the configure command may be inconsistent with it.
to be consistent, such macros have to be defined in the early stage of
the configure command, and the AC_USE_SYSTEM_EXTENSIONS macro does the job.

Part of pull request 1458, commit id `df9a0963f8fa6fca773b059dce22c598152f3edb':

 <https://github.com/stedolan/jq/pull/1458>

Also shared via PR pkg/52460.

--- configure.ac.orig	2018-11-02 14:52:43.000000000 +0000
+++ configure.ac
@@ -11,6 +11,7 @@ AC_PREREQ([2.64])
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([1.11.2 subdir-objects parallel-tests foreign -Wall])
 AM_SILENT_RULES([yes])
+AC_USE_SYSTEM_EXTENSIONS
 AM_PROG_AR
 AM_MAINTAINER_MODE([enable])
 AC_PROG_CC