Annotation of pkgsrc/lang/python310/patches/patch-configure, revision 1.2

1.2     ! adam        1: $NetBSD: patch-configure,v 1.1 2021/10/05 19:07:13 adam Exp $
1.1       adam        2: 
                      3: Use gnu99 instead of c99 to avoid "alloca() undefined" problems.
                      4: Fix linking on Darwin; don't use -stack_size.
                      5: Changes for consistency across pkgsrc platforms.
                      6: Simplify _sysconfigdata to include only platform name.
                      7: detect netcan/can.h on NetBSD
                      8: 
1.2     ! adam        9: --- configure.orig     2021-12-06 18:23:39.000000000 +0000
1.1       adam       10: +++ configure
1.2     ! adam       11: @@ -7040,7 +7040,7 @@ UNIVERSAL_ARCH_FLAGS=
1.1       adam       12:  # tweak BASECFLAGS based on compiler and platform
                     13:  case $GCC in
                     14:  yes)
                     15: -    CFLAGS_NODIST="$CFLAGS_NODIST -std=c99"
                     16: +    CFLAGS_NODIST="$CFLAGS_NODIST -std=gnu99"
                     17:  
                     18:      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5
                     19:  $as_echo_n "checking for -Wextra... " >&6; }
1.2     ! adam       20: @@ -8664,6 +8664,17 @@ if test "x$ac_cv_type___uint128_t" = xye
1.1       adam       21:  $as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
                     22:  
                     23:  fi
                     24: +ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" "
                     25: +#ifdef HAVE_SYS_SOCKET_H
                     26: +#include <sys/socket.h>
                     27: +#endif
                     28: +
                     29: +"
                     30: +if test "x$ac_cv_header_netcan_can_h" = xyes
                     31: +then :
                     32: +  printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h
                     33: +
                     34: +fi
                     35:  
                     36:  
                     37:  # Sizes and alignments of various common basic types
1.2     ! adam       38: @@ -9884,13 +9895,12 @@ then
        !            39:                # small for the default recursion limit. Increase the stack size
1.1       adam       40:                # to ensure that tests don't crash
1.2     ! adam       41:      stack_size="1000000"  # 16 MB
        !            42: -    if test "$with_ubsan" == "yes"
        !            43: +    if test "$with_ubsan" = "yes"
        !            44:      then
        !            45:          # Undefined behavior sanitizer requires an even deeper stack
        !            46:          stack_size="4000000"  # 64 MB
        !            47:      fi
        !            48:  
        !            49: -    LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED"
        !            50:  
        !            51:  
        !            52:  cat >>confdefs.h <<_ACEOF
        !            53: @@ -14751,10 +14761,10 @@ _ACEOF
1.1       adam       54:  if ac_fn_c_try_compile "$LINENO"; then :
                     55:  
                     56:  
                     57: -if grep noonsees conftest.$ac_objext >/dev/null ; then
                     58: +if strings -a conftest.$ac_objext | grep noonsees >/dev/null ; then
                     59:    ax_cv_c_float_words_bigendian=yes
                     60:  fi
                     61: -if grep seesnoon conftest.$ac_objext >/dev/null ; then
                     62: +if strings -a conftest.$ac_objext | grep seesnoon >/dev/null ; then
                     63:    if test "$ax_cv_c_float_words_bigendian" = unknown; then
                     64:      ax_cv_c_float_words_bigendian=no
                     65:    else
1.2     ! adam       66: @@ -15655,7 +15665,7 @@ _ACEOF
1.1       adam       67:  fi
                     68:  
                     69:  
                     70: -EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX}
                     71: +EXT_SUFFIX=${SHLIB_SUFFIX}
                     72:  
                     73:  { $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
                     74:  $as_echo_n "checking LDVERSION... " >&6; }
1.2     ! adam       75: @@ -15708,11 +15718,7 @@ fi
1.1       adam       76:  
                     77:  
                     78:  
                     79: -if test x$PLATFORM_TRIPLET = x; then
                     80: -  LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}"
                     81: -else
                     82: -  LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
                     83: -fi
                     84: +LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}"
                     85:  
                     86:  
                     87:  # Check for --with-wheel-pkg-dir=PATH

CVSweb <webmaster@jp.NetBSD.org>