aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2018-02-11 13:09:24 -0800
committerPaul Eggert2018-02-11 13:10:41 -0800
commit37b2f9f356b7ea7b3329345dac0eaae04c1ff642 (patch)
tree1569d6334736bda3ccfc9f92f71a5768bed9ce94
parent65ebf7890922156eb056a1e61421f77d7ce158ef (diff)
downloademacs-37b2f9f356b7ea7b3329345dac0eaae04c1ff642.tar.gz
emacs-37b2f9f356b7ea7b3329345dac0eaae04c1ff642.zip
Merge from pkg-config
* m4/pkg.m4: Copy from pkg-config 0.29.2.
-rw-r--r--m4/pkg.m416
1 files changed, 8 insertions, 8 deletions
diff --git a/m4/pkg.m4 b/m4/pkg.m4
index 82bea96ee70..13a88901786 100644
--- a/m4/pkg.m4
+++ b/m4/pkg.m4
@@ -1,6 +1,6 @@
1dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 1# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
2dnl serial 11 (pkg-config-0.29.1) 2# serial 12 (pkg-config-0.29.2)
3dnl 3
4dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 4dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
5dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 5dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
6dnl 6dnl
@@ -41,7 +41,7 @@ dnl
41dnl See the "Since" comment for each macro you use to see what version 41dnl See the "Since" comment for each macro you use to see what version
42dnl of the macros you require. 42dnl of the macros you require.
43m4_defun([PKG_PREREQ], 43m4_defun([PKG_PREREQ],
44[m4_define([PKG_MACROS_VERSION], [0.29.1]) 44[m4_define([PKG_MACROS_VERSION], [0.29.2])
45m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 45m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
46 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 46 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
47])dnl PKG_PREREQ 47])dnl PKG_PREREQ
@@ -142,7 +142,7 @@ AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
142AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 142AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
143 143
144pkg_failed=no 144pkg_failed=no
145AC_MSG_CHECKING([for $1]) 145AC_MSG_CHECKING([for $2])
146 146
147_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 147_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
148_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 148_PKG_CONFIG([$1][_LIBS], [libs], [$2])
@@ -152,11 +152,11 @@ and $1[]_LIBS to avoid the need to call pkg-config.
152See the pkg-config man page for more details.]) 152See the pkg-config man page for more details.])
153 153
154if test $pkg_failed = yes; then 154if test $pkg_failed = yes; then
155 AC_MSG_RESULT([no]) 155 AC_MSG_RESULT([no])
156 _PKG_SHORT_ERRORS_SUPPORTED 156 _PKG_SHORT_ERRORS_SUPPORTED
157 if test $_pkg_short_errors_supported = yes; then 157 if test $_pkg_short_errors_supported = yes; then
158 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 158 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
159 else 159 else
160 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 160 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
161 fi 161 fi
162 # Put the nasty error message in config.log where it belongs 162 # Put the nasty error message in config.log where it belongs
@@ -173,7 +173,7 @@ installed software in a non-standard prefix.
173_PKG_TEXT])[]dnl 173_PKG_TEXT])[]dnl
174 ]) 174 ])
175elif test $pkg_failed = untried; then 175elif test $pkg_failed = untried; then
176 AC_MSG_RESULT([no]) 176 AC_MSG_RESULT([no])
177 m4_default([$4], [AC_MSG_FAILURE( 177 m4_default([$4], [AC_MSG_FAILURE(
178[The pkg-config script could not be found or is too old. Make sure it 178[The pkg-config script could not be found or is too old. Make sure it
179is in your PATH or set the PKG_CONFIG environment variable to the full 179is in your PATH or set the PKG_CONFIG environment variable to the full