@@ -21,7 +21,7 @@ If you have problems, you may need to regenerate the build system entirely.
2121To do so, use the procedure documented by the package, typically 'autoreconf'.] )] )
2222
2323# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
24- # serial 11 (pkg-config-0.29.1 )
24+ # serial 12 (pkg-config-0.29.2 )
2525
2626dnl Copyright © 2004 Scott James Remnant <[email protected] >.2727dnl Copyright © 2012-2015 Dan Nicholson <[email protected] >6363dnl See the "Since" comment for each macro you use to see what version
6464dnl of the macros you require.
6565m4_defun([ PKG_PREREQ] ,
66- [ m4_define ( [ PKG_MACROS_VERSION] , [ 0.29.1 ] )
66+ [ m4_define ( [ PKG_MACROS_VERSION] , [ 0.29.2 ] )
6767m4_if ( m4_version_compare ( PKG_MACROS_VERSION , [ $1 ] ) , - 1 ,
6868 [ m4_fatal ( [ pkg.m4 version $1 or higher is required but ] PKG_MACROS_VERSION [ found] ) ] )
6969] )dnl PKG_PREREQ
@@ -164,7 +164,7 @@ AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
164164AC_ARG_VAR ( [ $1 ] [ _LIBS] , [ linker flags for $1 , overriding pkg-config] ) dnl
165165
166166pkg_failed=no
167- AC_MSG_CHECKING ( [ for $1 ] )
167+ AC_MSG_CHECKING ( [ for $2 ] )
168168
169169_PKG_CONFIG([ $1 ] [ _CFLAGS] , [ cflags] , [ $2 ] )
170170_PKG_CONFIG([ $1 ] [ _LIBS] , [ libs] , [ $2 ] )
@@ -174,11 +174,11 @@ and $1[]_LIBS to avoid the need to call pkg-config.
174174See the pkg-config man page for more details.] )
175175
176176if test $pkg_failed = yes; then
177- AC_MSG_RESULT ( [ no] )
177+ AC_MSG_RESULT ( [ no] )
178178 _PKG_SHORT_ERRORS_SUPPORTED
179179 if test $_pkg_short_errors_supported = yes; then
180180 $1 [ ] _PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2 " 2>&1`
181- else
181+ else
182182 $1 [ ] _PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2 " 2>&1`
183183 fi
184184 # Put the nasty error message in config.log where it belongs
@@ -195,7 +195,7 @@ installed software in a non-standard prefix.
195195_PKG_TEXT] ) [ ] dnl
196196 ] )
197197elif test $pkg_failed = untried; then
198- AC_MSG_RESULT ( [ no] )
198+ AC_MSG_RESULT ( [ no] )
199199 m4_default ( [ $4 ] , [ AC_MSG_FAILURE (
200200[ The pkg-config script could not be found or is too old. Make sure it
201201is in your PATH or set the PKG_CONFIG environment variable to the full
@@ -296,74 +296,6 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
296296AS_VAR_IF ( [ $1 ] , [ ""] , [ $5 ] , [ $4 ] ) dnl
297297] ) dnl PKG_CHECK_VAR
298298
299- dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
300- dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
301- dnl [DESCRIPTION], [DEFAULT])
302- dnl ------------------------------------------
303- dnl
304- dnl Prepare a "--with-" configure option using the lowercase
305- dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
306- dnl PKG_CHECK_MODULES in a single macro.
307- AC_DEFUN ( [ PKG_WITH_MODULES] ,
308- [
309- m4_pushdef ( [ with_arg] , m4_tolower ( [ $1 ] ) )
310-
311- m4_pushdef ( [ description] ,
312- [ m4_default ( [ $5 ] , [ build with ] with_arg [ support] ) ] )
313-
314- m4_pushdef ( [ def_arg] , [ m4_default ( [ $6 ] , [ auto] ) ] )
315- m4_pushdef ( [ def_action_if_found] , [ AS_TR_SH ( [ with_] with_arg ) =yes] )
316- m4_pushdef ( [ def_action_if_not_found] , [ AS_TR_SH ( [ with_] with_arg ) =no] )
317-
318- m4_case ( def_arg ,
319- [ yes] ,[ m4_pushdef ( [ with_without] , [ --without-] with_arg ) ] ,
320- [ m4_pushdef ( [ with_without] ,[ --with-] with_arg ) ] )
321-
322- AC_ARG_WITH ( with_arg ,
323- AS_HELP_STRING ( with_without , description [ @<:@ default=] def_arg [ @:>@ ] ) ,,
324- [ AS_TR_SH ( [ with_] with_arg ) =def_arg] )
325-
326- AS_CASE ( [ $AS_TR_SH ( [ with_] with_arg ) ] ,
327- [ yes] ,[ PKG_CHECK_MODULES([ $1 ] ,[ $2 ] ,$3 ,$4 )] ,
328- [ auto] ,[ PKG_CHECK_MODULES([ $1 ] ,[ $2 ] ,
329- [ m4_n ( [ def_action_if_found] ) $3 ] ,
330- [ m4_n ( [ def_action_if_not_found] ) $4 ] )] )
331-
332- m4_popdef ( [ with_arg] )
333- m4_popdef ( [ description] )
334- m4_popdef ( [ def_arg] )
335-
336- ] ) dnl PKG_WITH_MODULES
337-
338- dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
339- dnl [DESCRIPTION], [DEFAULT])
340- dnl -----------------------------------------------
341- dnl
342- dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
343- dnl check._[VARIABLE-PREFIX] is exported as make variable.
344- AC_DEFUN ( [ PKG_HAVE_WITH_MODULES] ,
345- [
346- PKG_WITH_MODULES([ $1 ] ,[ $2 ] ,,,[ $3 ] ,[ $4 ] )
347-
348- AM_CONDITIONAL([ HAVE_] [ $1 ] ,
349- [ test "$AS_TR_SH ( [ with_] m4_tolower ( [ $1 ] ) ) " = "yes"] )
350- ] ) dnl PKG_HAVE_WITH_MODULES
351-
352- dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
353- dnl [DESCRIPTION], [DEFAULT])
354- dnl ------------------------------------------------------
355- dnl
356- dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
357- dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
358- dnl and preprocessor variable.
359- AC_DEFUN ( [ PKG_HAVE_DEFINE_WITH_MODULES] ,
360- [
361- PKG_HAVE_WITH_MODULES([ $1 ] ,[ $2 ] ,[ $3 ] ,[ $4 ] )
362-
363- AS_IF ( [ test "$AS_TR_SH ( [ with_] m4_tolower ( [ $1 ] ) ) " = "yes"] ,
364- [ AC_DEFINE ( [ HAVE_] [ $1 ] , 1 , [ Enable ] m4_tolower ( [ $1 ] ) [ support] ) ] )
365- ] ) dnl PKG_HAVE_DEFINE_WITH_MODULES
366-
367299# Copyright (C) 2002-2021 Free Software Foundation, Inc.
368300#
369301# This file is free software; the Free Software Foundation
0 commit comments