diff options
| author | Paul Eggert | 2018-02-11 13:09:24 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-02-11 13:10:41 -0800 |
| commit | 37b2f9f356b7ea7b3329345dac0eaae04c1ff642 (patch) | |
| tree | 1569d6334736bda3ccfc9f92f71a5768bed9ce94 | |
| parent | 65ebf7890922156eb056a1e61421f77d7ce158ef (diff) | |
| download | emacs-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.m4 | 16 |
1 files changed, 8 insertions, 8 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | 1 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
| 2 | dnl serial 11 (pkg-config-0.29.1) | 2 | # serial 12 (pkg-config-0.29.2) |
| 3 | dnl | 3 | |
| 4 | dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | 4 | dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
| 5 | dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> | 5 | dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> |
| 6 | dnl | 6 | dnl |
| @@ -41,7 +41,7 @@ dnl | |||
| 41 | dnl See the "Since" comment for each macro you use to see what version | 41 | dnl See the "Since" comment for each macro you use to see what version |
| 42 | dnl of the macros you require. | 42 | dnl of the macros you require. |
| 43 | m4_defun([PKG_PREREQ], | 43 | m4_defun([PKG_PREREQ], |
| 44 | [m4_define([PKG_MACROS_VERSION], [0.29.1]) | 44 | [m4_define([PKG_MACROS_VERSION], [0.29.2]) |
| 45 | m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, | 45 | m4_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 | |||
| 142 | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | 142 | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
| 143 | 143 | ||
| 144 | pkg_failed=no | 144 | pkg_failed=no |
| 145 | AC_MSG_CHECKING([for $1]) | 145 | AC_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. | |||
| 152 | See the pkg-config man page for more details.]) | 152 | See the pkg-config man page for more details.]) |
| 153 | 153 | ||
| 154 | if test $pkg_failed = yes; then | 154 | if 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 | ]) |
| 175 | elif test $pkg_failed = untried; then | 175 | elif 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 |
| 179 | is in your PATH or set the PKG_CONFIG environment variable to the full | 179 | is in your PATH or set the PKG_CONFIG environment variable to the full |