• Home
  • Raw
  • Download

Lines Matching +full:libpython +full:- +full:dev

19 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
20 rm -f pybuilddir.txt
27 if test -z "$PYTHON_FOR_BUILD"; then
29 which $interp >/dev/null 2>&1 || continue
30 …if $interp -c 'import sys;sys.exit(not (sys.version_info@<:@:2@:>@ >= (2,7) and sys.version_info@<…
39 …dir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && e…
42 AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and --build=ARCH])
44 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
54 prefix=`echo "$prefix" | sed -e 's/\/$//g'`
73 # with other autoconf-based packages that include Python.h
74 grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new
85 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
89 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
94 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
103 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
114 AC_MSG_CHECKING([for --enable-universalsdk])
116 AS_HELP_STRING([--enable-universalsdk@<:@=SDKDIR@:>@], [Build fat binary against Mac OS X SDK]),
122 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
123 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null )
126 if test ! -d "${enableval}"
140 if test ! -d "${UNIVERSALSDK}"
142 AC_MSG_ERROR([--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}])
151 if test -n "${UNIVERSALSDK}"
162 # For backward compatibility reasons we prefer to select '32-bit' if available,
164 UNIVERSAL_ARCHS="32-bit"
165 if test "`uname -s`" = "Darwin"
167 if test -n "${UNIVERSALSDK}"
169 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`"
177 AC_MSG_CHECKING(for --with-universal-archs)
178 AC_ARG_WITH(universal-archs,
179 …LP_STRING([--with-universal-archs=ARCH], [select architectures for universal build ("32-bit", "64-
184 if test -n "${UNIVERSALSDK}"
191 AC_ARG_WITH(framework-name,
192 AS_HELP_STRING([--with-framework-name=FRAMEWORK],
193 … [specify an alternate name of the framework built with --enable-framework]),
198 AC_MSG_ERROR([--with-framework-name without --enable-framework. See Mac/README])
202 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr '[A-Z]' '[a-z]'`
210 … AS_HELP_STRING([--enable-framework@<:@=INSTALLDIR@:>@], [Build (MacOSX|Darwin) framework]),
219 PYTHONFRAMEWORKDIR=no-framework
269 # --prefix option, but wants to install
270 # the framework in a non-default location,
295 PYTHONFRAMEWORKDIR=no-framework
323 ## AS_HELP_STRING([--with-dyld],
326 # Set name for machine-dependent library files
329 if test -z "$MACHDEP"
337 *-*-linux*)
340 *-*-cygwin*)
350 ac_sys_system=`uname -s`
352 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
353 ac_sys_release=`uname -v`
355 ac_sys_release=`uname -r`
359 tr -d '[/ ]' | tr '[[A-Z]]' '[[a-z]]'`
361 tr -d '[/ ]' | sed 's/^[[A-Z]]\.//' | sed 's/\..*//'`
377 *-*-linux*)
386 *-*-cygwin*)
394 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}"
429 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6@<:@A-S@:>@)
441 OpenUNIX/8.0.0| UnixWare/7.1.@<:@0-4@:>@)
448 # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them.
460 Darwin/1@<:@0-9@:>@.*)
468 if test `uname -r` -eq 1; then
488 # cases for HP-UX, we define it globally.
490 Define to activate Unix95-and-earlier features)
492 AC_DEFINE(_POSIX_C_SOURCE, 200112L, Define to activate features from IEEE Stds 1003.1-2001)
506 if test ! -z "$SGI_ABI"
515 PLATDIR=plat-$MACHDEP
517 # And add extra plat-mac for darwin
521 if test -z "$EXTRAPLATDIR"
536 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
554 AC_MSG_CHECKING(for --without-gcc)
556 AS_HELP_STRING([--without-gcc], [never use gcc]),
559 no) CC=${CC:-cc}
567 AIX*) CC=${CC:-xlc_r}
574 BASECFLAGS="$BASECFLAGS -export pragma"
575 OPT="$OPT -O"
576 LDFLAGS="$LDFLAGS -nodup"
581 OPT="$OPT -O"
594 AC_MSG_CHECKING(for --with-icc)
596 AS_HELP_STRING([--with-icc], [build with icc]),
599 no) CC=${CC:-cc}
611 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
613 AC_MSG_ERROR([cached CC is different -- throw away $cache_file
628 # configure:4619: cc -c conftest.c >&5
629 # cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5
639 # Therefore, we use `-diag_error 1035` to have the compiler treat the
640 # warning as an error, which causes cc to return a non-zero result,
642 CFLAGS="$CFLAGS -diag_error 1035"
645 if test -z "$CXX"; then
654 if test ! -z "$preset_cflags"
661 AC_MSG_CHECKING(for --with-cxx-main=<compiler>)
663 AS_HELP_STRING([--with-cxx-main=<compiler>],
674 if test -z "$CXX"
685 if test -z "$CXX"
696 if test -z "$CXX"
713 MULTIARCH=$($CC --print-multiarch 2>/dev/null)
729 AC_MSG_CHECKING(for --with-suffix)
731 AS_HELP_STRING([--with-suffix=.exe], [set executable suffix]),
740 # Test whether we're running on a non-case-sensitive system, in which
743 AC_MSG_CHECKING(for case-insensitive build directory)
744 if test ! -d CaseSensitiveTestDir; then
748 if test -d casesensitivetestdir
761 gcc) CC="$CC -D_HAVE_BSDI";;
768 cc|*/cc) CC="$CC -Ae";;
779 if test -z "$LIBRARY"
781 LIBRARY='libpython$(VERSION).a'
797 # on the system - some systems like version suffix, others don't
811 # LINKCC is the command that links the python executable -- default is $(CC).
819 if test -z "$LINKCC"
825 if test $ac_sys_release -ge 5 -o \
826 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then
832 # support -N.
840 # distutils.unixccompiler to know if it should add --enable-new-dtags
847 ac_prog=`$CC -print-prog-name=ld`
849 case `"$ac_prog" -V 2>&1 < /dev/null` in
857 AC_MSG_CHECKING(for --enable-shared)
859 AS_HELP_STRING([--enable-shared], [disable/enable building shared python library]))
861 if test -z "$enable_shared"
872 AC_MSG_CHECKING(for --enable-profiling)
874 AS_HELP_STRING([--enable-profiling], [enable C-level code profiling]))
877 CC="$CC -pg"
888 BASECFLAGS="-pg $BASECFLAGS"
889 LDFLAGS="-pg $LDFLAGS"
896 # will find it with a -framework option). For this reason there is an
914 LDLIBRARY='libpython$(VERSION).so'
917 LDLIBRARY='libpython$(VERSION).dll.a'
918 DLLLIBRARY='libpython$(VERSION).dll'
921 LDLIBRARY='libpython$(VERSION).so'
922 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)'
927 LDLIBRARY='libpython$(VERSION).so'
928 BLDLIBRARY='-L. -lpython$(VERSION)'
932 SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
938 case `uname -m` in
940 LDLIBRARY='libpython$(VERSION).so'
943 LDLIBRARY='libpython$(VERSION).sl'
946 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)'
950 LDLIBRARY='libpython$(VERSION).so'
951 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
955 LDLIBRARY='libpython$(VERSION).so'
956 BLDLIBRARY='-L. -lpython$(VERSION)'
957 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib}
960 LDLIBRARY='libpython$(VERSION).dylib'
961 BLDLIBRARY='-L. -lpython$(VERSION)'
965 LDLIBRARY='libpython$(VERSION).so'
974 LDLIBRARY='libpython$(VERSION).dll.a'
991 if test -z "$ARFLAGS"
1000 if test -e $srcdir/.git
1002 AC_CHECK_PROG(HAS_GIT, git, found, not-found)
1004 HAS_GIT=no-repository
1008 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
1009 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
1010 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
1019 # install -d does not work on BSDI or HP-UX
1020 if test -z "$INSTALL"
1022 INSTALL="${srcdir}/install-sh -c"
1030 if test -z "$LN" ; then
1032 BeOS*) LN="ln -s";;
1033 CYGWIN*) LN="ln -s";;
1034 atheos*) LN="ln -s";;
1039 # Check for --with-pydebug
1040 AC_MSG_CHECKING(for --with-pydebug)
1042 AS_HELP_STRING([--with-pydebug], [build with Py_DEBUG defined]),
1047 [Define if you want to build an interpreter with many run-time checks.])
1058 # ------------------------
1059 # (The following bit of code is complicated enough - please keep things
1060 # indented properly. Just pretend you're editing Python code. ;-)
1070 if test "${OPT-unset}" = "unset"
1075 STRICT_PROTO="-Wstrict-prototypes"
1077 # For gcc 4.x we need to use -fwrapv so lets check if its supported
1078 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
1079 WRAP="-fwrapv"
1082 # Clang also needs -fwrapv
1084 *clang*) WRAP="-fwrapv"
1093 OPT="-g -O0 -Wall $STRICT_PROTO"
1095 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
1099 OPT="-O3 -Wall $STRICT_PROTO"
1103 SCO_SV*) OPT="$OPT -m486 -DSCO5"
1109 OPT="-O"
1116 # The -arch flags for universal builds on OSX
1125 # so use -fno-strict-aliasing if supported.
1126 AC_MSG_CHECKING(whether $CC accepts -fno-strict-aliasing)
1128 CC="$CC -fno-strict-aliasing"
1138 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing"
1141 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
1146 BASECFLAGS="$BASECFLAGS -mieee"
1152 BASECFLAGS="$BASECFLAGS -m486 -DSCO5"
1156 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
1157 # used to be here, but non-Apple gcc doesn't accept them.
1166 CC=gcc-4.0
1167 CPP=cpp-4.0
1176 32-bit)
1177 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386"
1181 64-bit)
1182 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64"
1187 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
1188 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
1189 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
1192 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64"
1193 LIPO_32BIT_FLAGS="-extract i386"
1194 ARCH_RUN_32BIT="/usr/bin/arch -i386"
1196 intel-32)
1197 UNIVERSAL_ARCH_FLAGS="-arch i386"
1201 intel-64)
1202 UNIVERSAL_ARCH_FLAGS="-arch x86_64"
1206 3-way)
1207 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64"
1208 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386"
1209 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc"
1212 AC_MSG_ERROR([proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way])
1218 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
1219 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
1220 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
1241 cur_target_major=`sw_vers -productVersion | \
1242 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
1243 cur_target_minor=`sw_vers -productVersion | \
1244 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
1246 if test ${cur_target_major} -eq 10 && \
1247 test ${cur_target_minor} -ge 3 && \
1248 test ${cur_target_minor} -le 5
1255 all|3-way|intel|64-bit)
1268 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
1282 BASECFLAGS="$BASECFLAGS -mieee"
1290 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
1293 BASECFLAGS="$BASECFLAGS -ieee -std"
1296 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5"
1302 # ICC needs -fp-model strict or floats behave badly
1305 BASECFLAGS="$BASECFLAGS -fp-model strict"
1312 OPT="-DNDEBUG $OPT"
1326 AC_MSG_CHECKING(whether $CC accepts -OPT:Olimit=0)
1329 CC="$CC -OPT:Olimit=0"
1340 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque
1347 AIX*|SunOS*|HP-UX*|IRIX*)
1350 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0"
1354 AC_MSG_CHECKING(whether $CC accepts -Olimit 1500)
1357 CC="$CC -Olimit 1500"
1367 # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive.
1368 HP-UX*)
1371 BASECFLAGS="$BASECFLAGS -Olimit 1500"
1382 CFLAGS="$CFLAGS -Werror -Wformat"
1400 AC_MSG_CHECKING(for --enable-optimizations)
1401 AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizatio…
1416 # who want LTO need to use --with-lto themselves.
1417 DEF_MAKE_ALL_RULE="profile-opt"
1429 AC_MSG_CHECKING(for --with-lto)
1430 AC_ARG_WITH(lto, AS_HELP_STRING([--with-lto], [Enable Link Time Optimization in PGO builds. Disable…
1445 LTOFLAGS="-flto"
1450 LTOFLAGS="-flto"
1453 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
1461 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
1463 LTOFLAGS="$LTOFLAGS -g"
1476 # non-suffixed name in their versioned llvm directory.
1484 if test -L "${clang_bin}"
1493 AC_PATH_TARGET_TOOL(LLVM_PROFDATA, llvm-profdata, '', ${llvm_path})
1495 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
1499 LLVM_PROF_FOUND="not-found"
1501 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
1503 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
1504 if test -n "${found_llvm_profdata}"
1506 # llvm-profdata isn't directly in $PATH in some cases.
1508 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata'
1510 AC_MSG_NOTICE([llvm-profdata found via xcrun: ${LLVM_PROFDATA}])
1517 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
1518 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
1519 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
1520 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
1521 if test $LLVM_PROF_FOUND = not-found
1526 …AC_MSG_ERROR([llvm-profdata is required for a --enable-optimizations build but could not be found.…
1533 PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
1534 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd"
1535 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr"
1536 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\""
1537 if test "${LLVM_PROF_FOUND}" = "not-found"
1542 …AC_MSG_ERROR([llvm-profdata is required for a --enable-optimizations build but could not be found.…
1547 PGO_PROF_GEN_FLAG="-fprofile-generate"
1548 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
1555 PGO_PROF_GEN_FLAG="-prof-gen"
1556 PGO_PROF_USE_FLAG="-prof-use"
1567 # options before we can check whether -Kpthread improves anything.
1596 # -Kpthread, if available, provides the right #defines
1598 # Some compilers won't report that they do not support -Kpthread,
1601 AC_MSG_CHECKING(whether $CC accepts -Kpthread)
1604 CC="$CC -Kpthread"
1623 if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no
1625 # -Kthread, if available, provides the right #defines
1627 # Some compilers won't report that they do not support -Kthread,
1630 AC_MSG_CHECKING(whether $CC accepts -Kthread)
1633 CC="$CC -Kthread"
1652 if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no
1654 # -pthread, if available, provides the right #defines
1656 # Some compilers won't report that they do not support -pthread,
1659 AC_MSG_CHECKING(whether $CC accepts -pthread)
1662 CC="$CC -pthread"
1684 if test ! -z "$CXX"
1691 CXX="$CXX -Kpthread"
1695 CXX="$CXX -Kthread"
1699 CXX="$CXX -pthread"
1706 $CXX -c conftest.$ac_ext 2>&5
1707 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \
1708 && test -s conftest$ac_exeext && ./conftest$ac_exeext
1714 rm -fr conftest*
1723 dnl #define spam(name, doc) {#name, &name, #name "() -- " doc}
1796 # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit
1798 # work-around, disable LFS on such configurations
1842 # There are two separate checks for each of the exact-width integer types we
1931 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
1932 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
1958 then CC="$CC -Kpthread"
1960 then CC="$CC -Kthread"
1962 then CC="$CC -pthread"
1979 AC_MSG_CHECKING(for --enable-toolbox-glue)
1980 AC_ARG_ENABLE(toolbox-glue,
1981 … AS_HELP_STRING([--enable-toolbox-glue], [disable/enable MacOSX glue code for extensions]))
1983 if test -z "$enable_toolbox_glue"
1995 extra_undefs="-u _PyMac_Error"
1997 [Define if you want to use MacPython modules on MacOSX in unix-Python.])
2010 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000"
2021 LIBTOOL_CRUFT="-framework System -lcc_dynamic"
2025 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`"
2027 …LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYT…
2028 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
2030 gcc_version=`gcc -dumpversion`
2033 LIBTOOL_CRUFT="-lcc_dynamic"
2076 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}"
2077 …LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYT…
2078 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';;
2081 AC_MSG_CHECKING(for --enable-framework)
2084 BASECFLAGS="$BASECFLAGS -fno-common -dynamic"
2085 # -F. is needed to allow linking to the framework while
2093 …AC_MSG_ERROR([Specifying both --enable-shared and --enable-framework is not supported, use only --
2103 [Define if you want to use the new-style (Openstep, Rhapsody, MacOS)
2104 dynamic linker (dyld) instead of the old-style (NextStep) dynamic
2121 # -- usually .so, .sl on HP-UX, .dll on Cygwin
2123 if test -z "$SO"
2127 case `uname -m` in
2151 # -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
2155 if test -z "$LDSHARED"
2159 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
2160 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp"
2166 IRIX/5*) LDSHARED="ld -shared";;
2167 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
2170 LDSHARED='$(CC) -shared'
2171 LDCXXSHARED='$(CXX) -shared'
2173 LDSHARED='$(CC) -G'
2174 LDCXXSHARED='$(CXX) -G'
2178 LDSHARED='$(CC) -shared'
2179 LDCXXSHARED='$(CXX) -shared'
2181 LDSHARED='ld -b'
2183 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
2185 LDSHARED='$(CC) -bundle'
2186 LDCXXSHARED='$(CXX) -bundle'
2194 LDSHARED="$LDSHARED -undefined suppress"
2195 LDCXXSHARED="$LDCXXSHARED -undefined suppress"
2198 LDSHARED='$(CC) -bundle'
2199 LDCXXSHARED='$(CXX) -bundle'
2206 # No framework, use the Python app as bundle-loader
2207 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
2208 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
2209 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
2212 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
2216 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
2218 sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
2219 if test ${dep_target_major} -eq 10 && \
2220 test ${dep_target_minor} -le 2
2223 LDSHARED='$(CC) -bundle'
2224 LDCXXSHARED='$(CXX) -bundle'
2231 # No framework, use the Python app as bundle-loader
2232 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
2233 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
2234 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
2238 LDSHARED='$(CC) -bundle -undefined dynamic_lookup'
2239 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup'
2244 LDSHARED='$(CC) -shared'
2245 LDCXXSHARED='$(CXX) -shared';;
2247 LDSHARED="gcc -shared"
2248 LDCXXSHARED="g++ -shared";;
2250 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
2252 LDSHARED='$(CC) -shared'
2253 LDCXXSHARED='$(CXX) -shared'
2255 LDSHARED="ld -Bshareable"
2258 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
2260 LDSHARED='$(CC) -shared $(CCSHARED)'
2261 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
2263 case `uname -r` in
2264 [[01]].* | 2.[[0-7]] | 2.[[0-7]].*)
2265 LDSHARED="ld -Bshareable ${LDFLAGS}"
2268 LDSHARED='$(CC) -shared $(CCSHARED)'
2269 LDCXXSHARED='$(CXX) -shared $(CCSHARED)'
2274 LDSHARED='$(CC) -shared'
2275 LDCXXSHARED='$(CXX) -shared';;
2278 LDSHARED='$(CC) -shared'
2279 LDCXXSHARED='$(CXX) -shared'
2281 LDSHARED='$(CC) -G'
2282 LDCXXSHARED='$(CXX) -G'
2285 LDSHARED='$(CC) -Wl,-G,-Bexport'
2286 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';;
2288 LDSHARED="gcc -shared -Wl,--enable-auto-image-base"
2289 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";;
2291 LDSHARED="gcc -shared"
2292 LDCXXSHARED="g++ -shared";;
2297 LDCXXSHARED=${LDCXXSHARED-$LDSHARED}
2298 BLDSHARED=${BLDSHARED-$LDSHARED}
2300 # library (module) -- this is only needed for a few systems
2302 if test -z "$CCSHARED"
2306 then CCSHARED="-fPIC";
2307 elif test `uname -p` = sparc;
2308 then CCSHARED="-xcode=pic32";
2309 else CCSHARED="-Kpic";
2312 then CCSHARED="-fPIC";
2315 Linux*|GNU*) CCSHARED="-fPIC";;
2316 BSD/OS*/4*) CCSHARED="-fpic";;
2317 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";;
2320 then CCSHARED="-fPIC"
2321 else CCSHARED="-KPIC"
2325 then CCSHARED="-fPIC"
2326 else CCSHARED="-Kpic -belf"
2329 *gcc*) CCSHARED="-shared";;
2332 atheos*) CCSHARED="-fPIC";;
2337 # the python executable -- this is only needed for a few systems
2339 if test -z "$LINKFORSHARED"
2342 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';;
2344 LINKFORSHARED="-Wl,-E -Wl,+s";;
2345 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
2346 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
2347 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";;
2348 # -u libsys_s pulls in all symbols in libsys
2350 # -u _PyMac_Error is needed to pull in the mac toolbox glue,
2354 # -prebind is no longer used, because it actually seems to give a
2364 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
2365 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";;
2366 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
2368 if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
2370 LINKFORSHARED="-Wl,--export-dynamic"
2374 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
2376 LINKFORSHARED="-Xlinker --export-dynamic"
2382 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)'
2385 # -Wl,-E causes the symbols to be added to the dynamic
2387 # is loaded. -N 2048K causes the stack size to be set
2390 LINKFORSHARED='-Wl,-E -N 2048K';;
2411 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
2412 # library (with --enable-shared).
2416 # to LIBS. This, in turn, means that applications linking the shared libpython
2430 AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
2433 if test "$with_threads" = "yes" -o -z "$with_threads"; then
2461 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
2463 AC_CHECK_LIB(nsl, t_open, [LIBS="-lnsl $LIBS"]) # SVR4
2464 AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
2468 AC_CHECK_LIB(net, socket, [LIBS="-lnet $LIBS"], [], $LIBS) # BeOS
2472 AC_MSG_CHECKING(for --with-libs)
2474 AS_HELP_STRING([--with-libs='lib1 ...'], [link against additional libs]),
2484 AC_MSG_CHECKING(for --with-system-expat)
2486 … AS_HELP_STRING([--with-system-expat], [build pyexpat module using an installed expat library]),
2493 AC_MSG_CHECKING(for --with-system-ffi)
2495 … AS_HELP_STRING([--with-system-ffi], [build _ctypes module using an installed ffi library]),
2499 if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then
2500 … LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
2508 # Check for --with-tcltk-includes=path and --with-tcltk-libs=path
2511 AC_MSG_CHECKING(for --with-tcltk-includes)
2512 AC_ARG_WITH(tcltk-includes,
2513 … AS_HELP_STRING([--with-tcltk-includes='-I...'], [override search for Tcl and Tk include files]),
2517 AC_MSG_CHECKING(for --with-tcltk-libs)
2518 AC_ARG_WITH(tcltk-libs,
2519 AS_HELP_STRING([--with-tcltk-libs='-L...'], [override search for Tcl and Tk libs]),
2527 AC_MSG_ERROR([use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither])
2536 # Check for --with-dbmliborder
2537 AC_MSG_CHECKING(for --with-dbmliborder)
2539 …AS_HELP_STRING([--with-dbmliborder=db1:db2:...], [order to check db backends for dbm. Valid value …
2543 AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...])
2548 AC_MSG_ERROR([proper usage is --with-dbmliborder=db1:db2:...])
2557 AC_MSG_CHECKING(for --with-signal-module)
2558 AC_ARG_WITH(signal-module,
2559 AS_HELP_STRING([--with-signal-module], [disable/enable signal module]))
2561 if test -z "$with_signal_module"
2578 AC_MSG_CHECKING(for --with-dec-threads)
2580 AC_ARG_WITH(dec-threads,
2581 AS_HELP_STRING([--with-dec-threads], [use DEC Alpha/OSF1 thread-safe libraries]),
2584 LDLAST=-threads
2594 [Define to force use of thread-safe errno, h_errno, and other functions])
2598 AC_MSG_CHECKING(for --with-threads)
2601 … AS_HELP_STRING([--with(out)-threads@<:@=DIRECTORY@:>@], [disable/enable thread support]))
2603 # --with-thread is deprecated, but check for it anyway
2606 … AS_HELP_STRING([--with(out)-thread@<:@=DIRECTORY@:>@], [deprecated; use --with(out)-threads]),
2609 if test -z "$with_threads"
2627 CC="$CC -Kpthread"
2629 CXX="$CXX -Kpthread"
2636 CC="$CC -Kthread"
2638 CXX="$CXX -Kthread"
2645 CC="$CC -pthread"
2647 CXX="$CXX -pthread"
2653 if test ! -z "$with_threads" -a -d "$with_threads"
2654 then LDFLAGS="$LDFLAGS -L$with_threads"
2656 if test ! -z "$withval" -a -d "$withval"
2657 then LDFLAGS="$LDFLAGS -L$withval"
2678 LIBS="$LIBS -lthreads"
2685 AC_MSG_CHECKING(for --with-pth)
2687 AS_HELP_STRING([--with-pth], [use GNU pth threading libraries]),
2692 LIBS="-lpth $LIBS"
2700 LIBS="$LIBS -lpthread"
2701 AC_MSG_CHECKING([for pthread_create in -lpthread])
2726 LIBS="$LIBS -lpthreads"
2730 LIBS="$LIBS -lc_r"
2734 LIBS="$LIBS -lpthread"
2738 LIBS="$LIBS -lcma"
2744 LIBS="$LIBS -lmpc"
2750 LIBS="$LIBS -lthread"
2758 # needs this '-threads' argument during linking.
2760 OSF1) LDLAST=-threads;;
2796 if (pthread_attr_init(&attr)) exit(-1);
2797 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1);
2798 if (pthread_create(&id, &attr, foo, NULL)) exit(-1);
2820 # Check for enable-ipv6
2821 AH_TEMPLATE(ENABLE_IPV6, [Define if --enable-ipv6 is specified])
2822 AC_MSG_CHECKING([if --enable-ipv6 is specified])
2824 [ --enable-ipv6 Enable ipv6 (with ipv4) support
2825 --disable-ipv6 Disable ipv6 support],
2877 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta;
2901 linux-glibc)
2911 linux-inet6)
2913 if test -d /usr/inet6; then
2917 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS"
2921 if test -f /etc/netconfig; then
2922 if $GREP -q tcp6 /etc/netconfig; then
2947 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"])
2967 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
2968 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
2969 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
2993 # Check for --with-doc-strings
2994 AC_MSG_CHECKING(for --with-doc-strings)
2995 AC_ARG_WITH(doc-strings,
2996 AS_HELP_STRING([--with(out)-doc-strings], [disable/enable documentation strings]))
2998 if test -z "$with_doc_strings"
3008 # Check for Python-specific malloc support
3009 AC_MSG_CHECKING(for --with-tsc)
3011 AS_HELP_STRING([--with(out)-tsc],[enable/disable timestamp counter profile]),[
3021 # Check for Python-specific malloc support
3022 AC_MSG_CHECKING(for --with-pymalloc)
3024 AS_HELP_STRING([--with(out)-pymalloc], [disable/enable specialized mallocs]))
3026 if test -z "$with_pymalloc"
3032 [Define if you want to compile in Python-specific mallocs])
3037 AC_MSG_CHECKING([for --with-valgrind])
3039 AS_HELP_STRING([--with-valgrind], [Enable Valgrind support]),,
3049 # Check for --with-wctype-functions
3050 AC_MSG_CHECKING(for --with-wctype-functions)
3051 AC_ARG_WITH(wctype-functions,
3052 AS_HELP_STRING([--with-wctype-functions], [use wctype.h functions]),
3064 # -I${DLINCLDIR} is added to the compile rule for importdl.o
3076 if test -z "$DYNLOADFILE"
3107 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
3111 if test -z "$MACHDEP_OBJS"
3252 dnl On some systems (e.g. Solaris 9), hstrerror and inet_aton are in -lresolv
3304 dnl before searching for static libraries. setup.py adds -Wl,-search_paths_first
3309 dnl The -L/usr/local/lib is needed as wel to get the same compilation
3316 CFLAGS="${CFLAGS} -Wl,-search_paths_first"
3317 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib"
3380 [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"],
3381 AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"])
3386 [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"],
3387 AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"])
3477 for (ai = aitop; ai; ai = ai->ai_next) {
3478 if (ai->ai_addr == NULL ||
3479 ai->ai_addrlen == 0 ||
3480 getnameinfo(ai->ai_addr, ai->ai_addrlen,
3485 switch (ai->ai_family) {
3547 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6"
3555 if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes
3560 echo ' or you can specify "--disable-ipv6"'.
3713 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
3735 [Define this if you have the 6-arg version of gethostbyname_r().])
3754 [Define this if you have the 5-arg version of gethostbyname_r().])
3771 [Define this if you have the 3-arg version of gethostbyname_r().])
3797 # Check for --with-fpectl
3798 AC_MSG_CHECKING(for --with-fpectl)
3800 AS_HELP_STRING([--with-fpectl], [enable SIGFPE catching]),
3811 # check for --with-libm=...
3816 *) LIBM=-lm
3818 AC_MSG_CHECKING(for --with-libm=STRING)
3820 AS_HELP_STRING([--with-libm=STRING], [math library]),
3828 else AC_MSG_ERROR([proper usage is --with-libm=STRING])
3832 # check for --with-libc=...
3834 AC_MSG_CHECKING(for --with-libc=STRING)
3836 AS_HELP_STRING([--with-libc=STRING], [C library]),
3844 else AC_MSG_ERROR([proper usage is --with-libc=STRING])
3852 AC_MSG_CHECKING(whether C doubles are little-endian IEEE 754 binary64)
3871 [Define if C doubles are 64-bit IEEE 754 binary format, stored
3875 AC_MSG_CHECKING(whether C doubles are big-endian IEEE 754 binary64)
3894 [Define if C doubles are 64-bit IEEE 754 binary format, stored
3898 # Some ARM platforms use a mixed-endian representation for doubles.
3900 # (see e.g., issue 1762561), we can at least make sure that float <-> string
3902 AC_MSG_CHECKING(whether C doubles are ARM mixed-endian IEEE 754 binary64)
3921 [Define if C doubles are 64-bit IEEE 754 binary format, stored
3922 in ARM mixed-endian order (byte order 45670123)])
3926 # correctly-rounded string <-> double conversion functions from
3927 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
3948 # Detect whether system arithmetic is subject to x87-style double
3951 # mode is round-to-nearest and double rounding issues are present, and
3953 AC_MSG_CHECKING(for x87-style double rounding)
3962 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
3963 x = 0.99999999999999989; /* 1-2**-53 */
3967 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
3985 [Define if arithmetic is subject to x87-style double rounding issue])
3995 # On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of
3996 # -0. on some architectures.
4005 and tanh(-0.) == -0. */
4006 if (atan2(0., -1.) == atan2(-0., -1.) ||
4007 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0);
4018 [Define if tanh(-0.) is -0., or if platform doesn't have signed zeros])
4085 return res==-1 ? 1 : 0;
4101 AC_ARG_ENABLE(big-digits,
4102 AS_HELP_STRING([--enable-big-digits@<:@=BITS@:>@],[use big digits for Python longs [[BITS=30]]]),
4111 AC_MSG_ERROR([bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30]) ;;
4133 AC_MSG_CHECKING(for UCS-4 tcl)
4156 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
4168 …AS_HELP_STRING([--enable-unicode@<:@=ucs@<:@24@:>@@:>@], [Enable Unicode strings (default is ucs2)…
4174 # Without any arguments, Py_UNICODE defaults to two-byte mode
4192 no) ;; # To allow --disable-unicode
4193 *) AC_MSG_ERROR([invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase).]) ;;
4211 -a "$ac_cv_wchar_t_signed" = "no"
4243 exit(((-1)>>3 == -1) ? 0 : 1);
4261 FILE *f = fopen("/dev/null", "r");
4283 if test -z "$py_libtermcap"; then
4284 READLINE_LIBS="-lreadline"
4286 READLINE_LIBS="-lreadline -l$py_libtermcap"
4303 [Define if you have the readline library (-lreadline).])
4370 if (val1 != -1 && val1 == nice(2))
4439 tm->tm_zone does not exist since it is the alternative way
4446 time_t groundhogday = 1044144000; /* GMT-based */
4451 if (localtime(&groundhogday)->tm_hour != 0)
4462 if (localtime(&groundhogday)->tm_hour != 19)
4469 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
4471 if (localtime(&groundhogday)->tm_hour != 11)
4479 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
4481 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
4532 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
4571 w->_flags = 0;
4700 AC_MSG_CHECKING([for /dev/ptmx])
4705 AC_MSG_CHECKING([for /dev/ptc])
4711 AC_CHECK_FILE(/dev/ptmx, [], [])
4714 [Define to 1 if you have the /dev/ptmx device file.])
4716 AC_CHECK_FILE(/dev/ptc, [], [])
4719 [Define to 1 if you have the /dev/ptc device file.])
4744 if (sprintf(buffer, "%lld", (long long)-123) < 0)
4746 if (strcmp(buffer, "-123"))
4759 [ac_cv_have_long_long_format="cross -- assuming no"
4762 CFLAGS="$CFLAGS -Werror -Wformat"
4769 sprintf(buffer, "%lld", (long long)-123);
4788 LIBS="$LIBS -framework CoreFoundation"
4820 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
4823 if (strcmp(buffer, "-123"))
4831 [ac_cv_have_size_t_format="cross -- assuming yes"
4866 if test ! -d $dir; then
4872 # Check for --with-computed-gotos
4873 AC_MSG_CHECKING(for --with-computed-gotos)
4874 AC_ARG_WITH(computed-gotos,
4875 AS_HELP_STRING([--with(out)-computed-gotos],
4910 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos"
4926 [AS_HELP_STRING([--with(out)-ensurepip=@<:@=OPTION@:>@],
4934 [AC_MSG_ERROR([--with-ensurepip=upgrade|install|no])])
4944 if test ! -f Modules/Setup
4950 if test ! -f Modules/Setup.local
4956 $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \
4957 -s Modules Modules/Setup.config \
4973 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
4977 echo "please run ./configure --enable-optimizations" >&AS_MESSAGE_FD