| | |
| | | # generated automatically by aclocal 1.13.3 -*- Autoconf -*- |
| | | # generated automatically by aclocal 1.14.1 -*- Autoconf -*- |
| | | |
| | | # Copyright (C) 1996-2013 Free Software Foundation, Inc. |
| | | |
| | |
| | | If you have problems, you may need to regenerate the build system entirely. |
| | | To do so, use the procedure documented by the package, typically 'autoreconf'.])]) |
| | | |
| | | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
| | | # serial 1 (pkg-config-0.24) |
| | | # |
| | | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. |
| | | # |
| | | # This program is free software; you can redistribute it and/or modify |
| | | # it under the terms of the GNU General Public License as published by |
| | | # the Free Software Foundation; either version 2 of the License, or |
| | | # (at your option) any later version. |
| | | # |
| | | # This program is distributed in the hope that it will be useful, but |
| | | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| | | # General Public License for more details. |
| | | # |
| | | # You should have received a copy of the GNU General Public License |
| | | # along with this program; if not, write to the Free Software |
| | | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| | | # |
| | | # As a special exception to the GNU General Public License, if you |
| | | # distribute this file as part of a program that contains a |
| | | # configuration script generated by Autoconf, you may include it under |
| | | # the same distribution terms that you use for the rest of that program. |
| | | |
| | | # PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
| | | # ---------------------------------- |
| | | AC_DEFUN([PKG_PROG_PKG_CONFIG], |
| | | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
| | | m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) |
| | | m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) |
| | | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) |
| | | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) |
| | | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) |
| | | |
| | | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| | | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
| | | fi |
| | | if test -n "$PKG_CONFIG"; then |
| | | _pkg_min_version=m4_default([$1], [0.9.0]) |
| | | AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
| | | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| | | AC_MSG_RESULT([yes]) |
| | | else |
| | | AC_MSG_RESULT([no]) |
| | | PKG_CONFIG="" |
| | | fi |
| | | fi[]dnl |
| | | ])# PKG_PROG_PKG_CONFIG |
| | | |
| | | # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
| | | # |
| | | # Check to see whether a particular set of modules exists. Similar |
| | | # to PKG_CHECK_MODULES(), but does not set variables or print errors. |
| | | # |
| | | # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
| | | # only at the first occurence in configure.ac, so if the first place |
| | | # it's called might be skipped (such as if it is within an "if", you |
| | | # have to call PKG_CHECK_EXISTS manually |
| | | # -------------------------------------------------------------- |
| | | AC_DEFUN([PKG_CHECK_EXISTS], |
| | | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| | | if test -n "$PKG_CONFIG" && \ |
| | | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
| | | m4_default([$2], [:]) |
| | | m4_ifvaln([$3], [else |
| | | $3])dnl |
| | | fi]) |
| | | |
| | | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
| | | # --------------------------------------------- |
| | | m4_define([_PKG_CONFIG], |
| | | [if test -n "$$1"; then |
| | | pkg_cv_[]$1="$$1" |
| | | elif test -n "$PKG_CONFIG"; then |
| | | PKG_CHECK_EXISTS([$3], |
| | | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` |
| | | test "x$?" != "x0" && pkg_failed=yes ], |
| | | [pkg_failed=yes]) |
| | | else |
| | | pkg_failed=untried |
| | | fi[]dnl |
| | | ])# _PKG_CONFIG |
| | | |
| | | # _PKG_SHORT_ERRORS_SUPPORTED |
| | | # ----------------------------- |
| | | AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
| | | [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
| | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| | | _pkg_short_errors_supported=yes |
| | | else |
| | | _pkg_short_errors_supported=no |
| | | fi[]dnl |
| | | ])# _PKG_SHORT_ERRORS_SUPPORTED |
| | | |
| | | |
| | | # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
| | | # [ACTION-IF-NOT-FOUND]) |
| | | # |
| | | # |
| | | # Note that if there is a possibility the first call to |
| | | # PKG_CHECK_MODULES might not happen, you should be sure to include an |
| | | # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
| | | # |
| | | # |
| | | # -------------------------------------------------------------- |
| | | AC_DEFUN([PKG_CHECK_MODULES], |
| | | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
| | | AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
| | | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
| | | |
| | | pkg_failed=no |
| | | AC_MSG_CHECKING([for $1]) |
| | | |
| | | _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
| | | _PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
| | | |
| | | m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS |
| | | and $1[]_LIBS to avoid the need to call pkg-config. |
| | | See the pkg-config man page for more details.]) |
| | | |
| | | if test $pkg_failed = yes; then |
| | | AC_MSG_RESULT([no]) |
| | | _PKG_SHORT_ERRORS_SUPPORTED |
| | | if test $_pkg_short_errors_supported = yes; then |
| | | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` |
| | | else |
| | | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` |
| | | fi |
| | | # Put the nasty error message in config.log where it belongs |
| | | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
| | | |
| | | m4_default([$4], [AC_MSG_ERROR( |
| | | [Package requirements ($2) were not met: |
| | | |
| | | $$1_PKG_ERRORS |
| | | |
| | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| | | installed software in a non-standard prefix. |
| | | |
| | | _PKG_TEXT])[]dnl |
| | | ]) |
| | | elif test $pkg_failed = untried; then |
| | | AC_MSG_RESULT([no]) |
| | | m4_default([$4], [AC_MSG_FAILURE( |
| | | [The pkg-config script could not be found or is too old. Make sure it |
| | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| | | path to pkg-config. |
| | | |
| | | _PKG_TEXT |
| | | |
| | | To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl |
| | | ]) |
| | | else |
| | | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
| | | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
| | | AC_MSG_RESULT([yes]) |
| | | $3 |
| | | fi[]dnl |
| | | ])# PKG_CHECK_MODULES |
| | | |
| | | # Copyright (C) 2002-2013 Free Software Foundation, Inc. |
| | | # |
| | | # This file is free software; the Free Software Foundation |
| | |
| | | # generated from the m4 files accompanying Automake X.Y. |
| | | # (This private macro should not be called outside this file.) |
| | | AC_DEFUN([AM_AUTOMAKE_VERSION], |
| | | [am__api_version='1.13' |
| | | [am__api_version='1.14' |
| | | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
| | | dnl require some minimum version. Point them to the right macro. |
| | | m4_if([$1], [1.13.3], [], |
| | | m4_if([$1], [1.14.1], [], |
| | | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
| | | ]) |
| | | |
| | |
| | | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
| | | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. |
| | | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
| | | [AM_AUTOMAKE_VERSION([1.13.3])dnl |
| | | [AM_AUTOMAKE_VERSION([1.14.1])dnl |
| | | m4_ifndef([AC_AUTOCONF_VERSION], |
| | | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
| | | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) |
| | |
| | | # This macro actually does too much. Some checks are only needed if |
| | | # your package does certain things. But this isn't really a big deal. |
| | | |
| | | dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. |
| | | m4_define([AC_PROG_CC], |
| | | m4_defn([AC_PROG_CC]) |
| | | [_AM_PROG_CC_C_O |
| | | ]) |
| | | |
| | | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
| | | # AM_INIT_AUTOMAKE([OPTIONS]) |
| | | # ----------------------------------------------- |
| | |
| | | AC_CONFIG_COMMANDS_PRE(dnl |
| | | [m4_provide_if([_AM_COMPILER_EXEEXT], |
| | | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl |
| | | ]) |
| | | |
| | | # POSIX will say in a future version that running "rm -f" with no argument |
| | | # is OK; and we want to be able to make that assumption in our Makefile |
| | | # recipes. So use an aggressive probe to check that the usage we want is |
| | | # actually supported "in the wild" to an acceptable degree. |
| | | # See automake bug#10828. |
| | | # To make any issue more visible, cause the running configure to be aborted |
| | | # by default if the 'rm' program in use doesn't match our expectations; the |
| | | # user can still override this though. |
| | | if rm -f && rm -fr && rm -rf; then : OK; else |
| | | cat >&2 <<'END' |
| | | Oops! |
| | | |
| | | Your 'rm' program seems unable to run without file operands specified |
| | | on the command line, even when the '-f' option is present. This is contrary |
| | | to the behaviour of most rm programs out there, and not conforming with |
| | | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| | | |
| | | Please tell bug-automake@gnu.org about your system, including the value |
| | | of your $PATH and any error possibly output before this message. This |
| | | can help us improve future automake versions. |
| | | |
| | | END |
| | | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| | | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| | | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| | | echo >&2 |
| | | else |
| | | cat >&2 <<'END' |
| | | Aborting the configuration process, to ensure you take notice of the issue. |
| | | |
| | | You can download and install GNU coreutils to get an 'rm' implementation |
| | | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| | | |
| | | If you want to complete the configuration process using your problematic |
| | | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| | | to "yes", and re-run configure. |
| | | |
| | | END |
| | | AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) |
| | | 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 |
| | | dnl mangled by Autoconf and run in a shell conditional statement. |
| | | m4_define([_AC_COMPILER_EXEEXT], |
| | | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) |
| | | |
| | | |
| | | # When config.status generates a header, we must update the stamp-h file. |
| | | # This file resides in the same directory as the config header |
| | |
| | | AC_DEFUN([_AM_IF_OPTION], |
| | | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
| | | |
| | | # Copyright (C) 1999-2013 Free Software Foundation, Inc. |
| | | # |
| | | # This file is free software; the Free Software Foundation |
| | | # gives unlimited permission to copy and/or distribute it, |
| | | # with or without modifications, as long as this notice is preserved. |
| | | |
| | | # _AM_PROG_CC_C_O |
| | | # --------------- |
| | | # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC |
| | | # to automatically call this. |
| | | AC_DEFUN([_AM_PROG_CC_C_O], |
| | | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
| | | AC_REQUIRE_AUX_FILE([compile])dnl |
| | | AC_LANG_PUSH([C])dnl |
| | | AC_CACHE_CHECK( |
| | | [whether $CC understands -c and -o together], |
| | | [am_cv_prog_cc_c_o], |
| | | [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) |
| | | # Make sure it works both with $CC and with simple cc. |
| | | # Following AC_PROG_CC_C_O, we do the test twice because some |
| | | # compilers refuse to overwrite an existing .o file with -o, |
| | | # though they will create one. |
| | | am_cv_prog_cc_c_o=yes |
| | | for am_i in 1 2; do |
| | | if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ |
| | | && test -f conftest2.$ac_objext; then |
| | | : OK |
| | | else |
| | | am_cv_prog_cc_c_o=no |
| | | break |
| | | fi |
| | | done |
| | | rm -f core conftest* |
| | | unset am_i]) |
| | | if test "$am_cv_prog_cc_c_o" != yes; then |
| | | # Losing compiler, so override with the script. |
| | | # FIXME: It is wrong to rewrite CC. |
| | | # But if we don't then we get into trouble of one sort or another. |
| | | # A longer-term fix would be to have automake use am__CC in this case, |
| | | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| | | CC="$am_aux_dir/compile $CC" |
| | | fi |
| | | AC_LANG_POP([C])]) |
| | | |
| | | # For backward compatibility. |
| | | AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) |
| | | |
| | | # Copyright (C) 2001-2013 Free Software Foundation, Inc. |
| | | # |
| | | # This file is free software; the Free Software Foundation |
| | | # gives unlimited permission to copy and/or distribute it, |
| | | # with or without modifications, as long as this notice is preserved. |
| | | |
| | | # AM_RUN_LOG(COMMAND) |
| | | # ------------------- |
| | | # Run COMMAND, save the exit status in ac_status, and log it. |
| | | # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) |
| | | AC_DEFUN([AM_RUN_LOG], |
| | | [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD |
| | | ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD |
| | | ac_status=$? |
| | | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
| | | (exit $ac_status); }]) |
| | | |
| | | # Check to make sure that the build environment is sane. -*- Autoconf -*- |
| | | |
| | | # Copyright (C) 1996-2013 Free Software Foundation, Inc. |