| | |
| | | fi[]dnl |
| | | ])# PKG_CHECK_MODULES |
| | | |
| | | |
| | | # PKG_INSTALLDIR(DIRECTORY) |
| | | # ------------------------- |
| | | # Substitutes the variable pkgconfigdir as the location where a module |
| | | # should install pkg-config .pc files. By default the directory is |
| | | # $libdir/pkgconfig, but the default can be changed by passing |
| | | # DIRECTORY. The user can override through the --with-pkgconfigdir |
| | | # parameter. |
| | | AC_DEFUN([PKG_INSTALLDIR], |
| | | [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) |
| | | m4_pushdef([pkg_description], |
| | | [pkg-config installation directory @<:@]pkg_default[@:>@]) |
| | | AC_ARG_WITH([pkgconfigdir], |
| | | [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, |
| | | [with_pkgconfigdir=]pkg_default) |
| | | AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) |
| | | m4_popdef([pkg_default]) |
| | | m4_popdef([pkg_description]) |
| | | ]) dnl PKG_INSTALLDIR |
| | | |
| | | |
| | | # PKG_NOARCH_INSTALLDIR(DIRECTORY) |
| | | # ------------------------- |
| | | # Substitutes the variable noarch_pkgconfigdir as the location where a |
| | | # module should install arch-independent pkg-config .pc files. By |
| | | # default the directory is $datadir/pkgconfig, but the default can be |
| | | # changed by passing DIRECTORY. The user can override through the |
| | | # --with-noarch-pkgconfigdir parameter. |
| | | AC_DEFUN([PKG_NOARCH_INSTALLDIR], |
| | | [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) |
| | | m4_pushdef([pkg_description], |
| | | [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) |
| | | AC_ARG_WITH([noarch-pkgconfigdir], |
| | | [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, |
| | | [with_noarch_pkgconfigdir=]pkg_default) |
| | | AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) |
| | | m4_popdef([pkg_default]) |
| | | m4_popdef([pkg_description]) |
| | | ]) dnl PKG_NOARCH_INSTALLDIR |
| | | |
| | | |
| | | # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, |
| | | # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
| | | # ------------------------------------------- |
| | | # Retrieves the value of the pkg-config variable for the given module. |
| | | AC_DEFUN([PKG_CHECK_VAR], |
| | | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| | | AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl |
| | | |
| | | _PKG_CONFIG([$1], [variable="][$3]["], [$2]) |
| | | AS_VAR_COPY([$1], [pkg_cv_][$1]) |
| | | |
| | | AS_VAR_IF([$1], [""], [$5], [$4])dnl |
| | | ])# PKG_CHECK_VAR |
| | | |
| | | # Copyright (C) 2002-2013 Free Software Foundation, Inc. |
| | | # |
| | | # This file is free software; the Free Software Foundation |
| | |
| | | # configured tree to be moved without reconfiguration. |
| | | |
| | | AC_DEFUN([AM_AUX_DIR_EXPAND], |
| | | [dnl Rely on autoconf to set up CDPATH properly. |
| | | AC_PREREQ([2.50])dnl |
| | | # expand $ac_aux_dir to an absolute path |
| | | am_aux_dir=`cd $ac_aux_dir && pwd` |
| | | [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl |
| | | # Expand $ac_aux_dir to an absolute path. |
| | | am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| | | ]) |
| | | |
| | | # AM_CONDITIONAL -*- Autoconf -*- |
| | |
| | | END |
| | | AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) |
| | | fi |
| | | fi]) |
| | | fi |
| | | ]) |
| | | |
| | | dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not |
| | | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further |