Lines Matching +full:python3 +full:- +full:virtualenv
1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
3 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
23 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
24 # serial 11 (pkg-config-0.29.1)
27 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
41 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
42 dnl 02111-1307, USA.
50 dnl PKG_PREREQ(MIN-VERSION)
51 dnl -----------------------
54 dnl Verify that the version of the pkg-config macros are at least
55 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
56 dnl installed version of pkg-config, this checks the developer's version
61 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
67 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
71 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
72 dnl ----------------------------------
75 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
76 dnl first found in the path. Checks that the version of pkg-config found
77 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
79 dnl pkg-config existed.
81 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
84 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
85 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
86 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
89 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
91 if test -n "$PKG_CONFIG"; then
93 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
94 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
103 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
104 dnl -------------------------------------------------------------------
116 if test -n "$PKG_CONFIG" && \
117 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
124 dnl ---------------------------------------------
125 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
128 [if test -n "$$1"; then
130 elif test -n "$PKG_CONFIG"; then
132 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
141 dnl ---------------------------
142 dnl Internal check to see if pkg-config supports short errors.
145 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
153 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
154 dnl [ACTION-IF-NOT-FOUND])
155 dnl --------------------------------------------------------------
163 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
164 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
173 and $1[]_LIBS to avoid the need to call pkg-config.
174 See the pkg-config man page for more details.])
180 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
182 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
193 installed software in a non-standard prefix.
200 [The pkg-config script could not be found or is too old. Make sure it
202 path to pkg-config.
206 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
217 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
218 dnl [ACTION-IF-NOT-FOUND])
219 dnl ---------------------------------------------------------------------
223 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
224 dnl and VARIABLE-PREFIX_LIBS from --libs.
233 PKG_CONFIG="$PKG_CONFIG --static"
240 dnl -------------------------
244 dnl should install pkg-config .pc files. By default the directory is
246 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
251 [pkg-config installation directory @<:@]pkg_default[@:>@])
253 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
262 dnl --------------------------------
266 dnl module should install arch-independent pkg-config .pc files. By
269 dnl --with-noarch-pkgconfigdir parameter.
273 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
274 AC_ARG_WITH([noarch-pkgconfigdir],
275 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
283 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
284 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
285 dnl -------------------------------------------
288 dnl Retrieves the value of the pkg-config variable for the given module.
291 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
299 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
300 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
302 dnl ------------------------------------------
304 dnl Prepare a "--with-" configure option using the lowercase
305 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
319 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
320 [m4_pushdef([with_without],[--with-]with_arg)])
338 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
340 dnl -----------------------------------------------
343 dnl check._[VARIABLE-PREFIX] is exported as make variable.
352 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
354 dnl ------------------------------------------------------
357 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
367 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
374 # ----------------------------
387 # -----------------------------
394 # -------------------------------
403 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
405 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
431 # are both prefixed by $srcdir. In an in-source build this is usually
455 # AM_CONDITIONAL -*- Autoconf -*-
457 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
463 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
464 # -------------------------------------
483 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
488 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
503 # ----------------------
528 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
531 # instance it was reported that on HP-UX the gcc test will end up
532 # making a dummy file named 'D' -- because '-MD' means "put the output
534 rm -rf conftest.dir
542 # both Tru64's cc and ICC support -MD to output dependencies as a
550 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
555 *\ -arch\ *\ -arch\ *) am__universal=true ;;
559 *\ -arch\ *\ -arch\ *) am__universal=true ;;
579 # We check with '-c' and '-o' for the sake of the "dashmstdout"
581 # handle '-M -o', and we need to detect this. Also, some Intel
583 am__obj=sub/conftest.${OBJEXT-o}
584 am__minus_obj="-o $am__obj"
591 # After this tag, mechanisms are not by side-effect, so they'll
600 # This compiler won't grok '-c -o', but also, the minuso test has
603 am__obj=conftest.${OBJEXT-o}
611 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
618 # or remarks (even with -Werror). So we grep stderr for any message
620 # When given -MP, icc 7.0 and 7.1 complain thusly:
621 # icc: Command line warning: ignoring option '-M'; no argument required
623 # icc: Command line remark: option '-MP' not supported
633 rm -rf conftest.dir
646 # -------------
656 # ------------
658 [AC_ARG_ENABLE([dependency-tracking], [dnl
660 [--enable-dependency-tracking],
663 [--disable-dependency-tracking],
664 [speeds up one-time build])])
677 # Generate code to set up dependency tracking. -*- Autoconf -*-
679 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
686 # ------------------------------
689 # Older Autoconf quotes --file arguments for eval, but not when files
690 # are listed without --file. Let's play safe and only enable the eval
703 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
705 # dependency-tracking related rules and includes.
708 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
713 && sed -e '/# am--include-marker/d' "$am_filepart" \
714 | $MAKE -f - am--depfiles]) || am_rc=$?
716 if test $am_rc -ne 0; then
719 re-running the configure script with MAKE="gmake" (or whatever is
720 necessary). You can also try re-running configure with the
721 '--disable-dependency-tracking' option to at least be able to build
728 rm -f conftest-deps.mk
734 # -----------------------------
735 # This macro should only be invoked once -- use via AC_REQUIRE.
743 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
745 # Do all the work for Automake. -*- Autoconf -*-
747 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
762 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
764 # -----------------------------------------------
766 # call (pre autoconf-2.50), which is being phased out. PACKAGE
781 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
785 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
786 # is not polluted with repeated "-I."
787 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
789 if test -f $srcdir/config.status; then
795 if test -z "$CYGPATH_W"; then
796 if (cygpath --version) >/dev/null 2>/dev/null; then
797 CYGPATH_W='cygpath -w'
805 dnl Distinguish between old-style and new-style calls.
808 [$0: two- and three-arguments forms are deprecated.])
809 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
813 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
821 _AM_IF_OPTION([no-define],,
828 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
830 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
838 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
839 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
846 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
847 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
849 _AM_IF_OPTION([no-dependencies],,
868 if test -z "$CTAGS"; then
872 if test -z "$ETAGS"; then
876 if test -z "$CSCOPE"; then
887 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
889 # POSIX will say in a future version that running "rm -f" with no argument
897 if rm -f && rm -fr && rm -rf; then : OK; else
902 on the command line, even when the '-f' option is present. This is contrary
906 Please tell bug-automake@gnu.org about your system, including the value
924 to "yes", and re-run configure.
931 dnl backward compatibility and to allow trailing 'dnl'-style comments
941 # When config.status generates a header, we must update the stamp-h file.
960 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
962 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
969 # ------------------
976 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
978 install_sh="\${SHELL} $am_aux_dir/install-sh"
983 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
989 # Check whether the underlying file-system supports filenames
990 # with a leading dot. For instance MS-DOS doesn't.
992 [rm -rf .tst 2>/dev/null
994 if test -d .tst; then
1002 # Check to see how 'make' treats includes. -*- Autoconf -*-
1004 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1011 # -----------------
1015 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
1029 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
1040 rm -f confinc.* confmf.*
1045 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1047 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
1054 # ------------------------------
1057 $1=${$1-"${am_missing_run}$2"}
1061 # ------------------
1071 if eval "$MISSING --is-lightweight"; then
1079 # Helper functions for option handling. -*- Autoconf -*-
1081 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1088 # -----------------------
1090 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1093 # --------------------
1099 # ------------------------
1100 # OPTIONS is a space-separated list of Automake options.
1104 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1105 # -------------------------------------------
1106 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1110 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1117 # ---------------
1125 [whether $CC understands -c and -o together],
1130 # compilers refuse to overwrite an existing .o file with -o,
1134 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1135 && test -f conftest2.$ac_objext; then
1142 rm -f core conftest*
1148 # A longer-term fix would be to have automake use am__CC in this case,
1157 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
1164 # AM_PATH_PYTHON([MINIMUM-VERSION], [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1165 # ---------------------------------------------------------------------------
1182 # If the MINIMUM-VERSION argument is passed, AM_PATH_PYTHON will
1184 # doesn't meet the requirement. MINIMUM-VERSION should consist of
1191 [python python2 python3 dnl
1192 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl
1193 python3.2 python3.1 python3.0 dnl
1202 if test -z "$PYTHON"; then
1208 if test -n "$PYTHON"; then
1236 dnl Run any user-specified action, or abort.
1247 [am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[[:2]])"`])
1254 [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
1257 dnl emacs-page
1258 dnl If --with-python-sys-prefix is given, use the values of sys.prefix
1278 AC_ARG_WITH([python-sys-prefix],
1279 [AS_HELP_STRING([--with-python-sys-prefix],
1286 [AS_HELP_STRING([--with-python_prefix],
1297 [am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`])
1319 # emacs-page Now do it all over again for Python exec_prefix, but with yet
1322 [AS_HELP_STRING([--with-python_exec_prefix],
1329 # no explicit --with-python_exec_prefix, but if
1330 # --with-python_prefix was given, use its value for python_exec_prefix too.
1331 AS_IF([test -n "$with_python_prefix"],
1334 AC_MSG_CHECKING([for python_prefix-given $am_display_PYTHON exec_prefix])
1348 [am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`])
1382 # <https://github.com/pypa/virtualenv/issues/118>
1390 dnl emacs-page Set up 4 directories:
1393 dnl site-packages directory, not the python standard library
1405 am_cv_python_pythondir=`$PYTHON -c "
1422 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
1447 am_cv_python_pyexecdir=`$PYTHON -c "
1464 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
1476 dnl Run any user-specified action.
1482 # AM_PYTHON_CHECK_VERSION(PROG, VERSION, [ACTION-IF-TRUE], [ACTION-IF-FALSE])
1483 # ---------------------------------------------------------------------------
1484 # Run ACTION-IF-TRUE if the Python interpreter PROG has version >= VERSION.
1485 # Run ACTION-IF-FALSE otherwise.
1499 AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
1501 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1508 # -------------------
1518 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1520 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
1527 # ---------------
1544 # arguments. Must try -L first in case configure is actually a
1552 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1554 # -L didn't work.
1555 set X `ls -t "$srcdir/configure" conftest.file`
1564 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1567 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1593 if test -n "$am_sleep_pid"; then
1598 rm -f conftest.file
1601 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
1608 # --------------------------
1612 [AC_ARG_ENABLE([silent-rules], [dnl
1614 [--enable-silent-rules],
1617 [--disable-silent-rules],
1629 am_make=${MAKE-make}
1638 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1661 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
1668 # ---------------------
1671 # annoying in cross-compiling environments, where the build's strip
1673 # Fortunately install-sh will honor a STRIPPROG variable, so we
1674 # always use install-sh in "make install-strip", and initialize
1679 # run "make install-strip". However 'strip' might not be the right
1680 # tool to use in cross-compilation environments, therefore Automake
1686 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1689 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
1696 # ---------------------------
1702 # --------------------------
1706 # Check how to create a tarball. -*- Autoconf -*-
1708 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
1715 # --------------------
1720 # writing to stdout a FORMAT-tarball containing the directory
1730 # in the wild :-( We should find a proper way to deprecate it ...
1731 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1737 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1741 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1745 am_max_uid=2097151 # 2^21 - 1
1748 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1751 am_uid=`id -u || echo unknown`
1752 am_gid=`id -g || echo unknown`
1754 if test $am_uid -le $am_max_uid; then
1761 if test $am_gid -le $am_max_gid; then
1777 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1783 AM_RUN_LOG([$_am_tar --version]) && break
1785 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1786 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1787 am__untar="$_am_tar -xf -"
1790 # Must skip GNU tar: if it does not support --format= it doesn't create
1792 (tar --version) >/dev/null 2>&1 && continue
1793 am__tar='tar chf - "$$tardir"'
1794 am__tar_='tar chf - "$tardir"'
1795 am__untar='tar xf -'
1798 am__tar='pax -L -x $1 -w "$$tardir"'
1799 am__tar_='pax -L -x $1 -w "$tardir"'
1800 am__untar='pax -r'
1803 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1804 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1805 am__untar='cpio -i -H $1 -d'
1816 test -n "${am_cv_prog_tar_$1}" && break
1819 rm -rf conftest.dir
1823 rm -rf conftest.dir
1824 if test -s conftest.tar; then
1830 rm -rf conftest.dir