source: packages/lang/python/patches/010-cannot-run-test-programm.patch @ 29369

Last change on this file since 29369 was 29369, checked in by jow, 4 years ago

[packages] python: fix compilation against Linux 3.x (#10197)

File size: 2.2 KB
  • configure.in

    ---
     configure.in |   46 ++++++++++++++++++++++++++++++++++------------
     1 file changed, 34 insertions(+), 12 deletions(-)
    
    a b AC_CHECK_LIB(c, inet_aton, [$ac_cv_prog_ 
    26532653# On Tru64, chflags seems to be present, but calling it will 
    26542654# exit Python 
    26552655AC_MSG_CHECKING(for chflags) 
     2656AC_CACHE_VAL(ac_cv_have_chflags, [ 
    26562657AC_TRY_RUN([ 
    26572658#include <sys/stat.h> 
    26582659#include <unistd.h> 
    int main(int argc, char*argv[]) 
    26622663    return 1; 
    26632664  return 0; 
    26642665} 
    2665 ],AC_DEFINE(HAVE_CHFLAGS, 1, Define to 1 if you have the `chflags' function.) 
    2666   AC_MSG_RESULT(yes), 
    2667   AC_MSG_RESULT(no) 
    2668 ) 
     2666], 
     2667ac_cv_have_chflags=yes, 
     2668ac_cv_have_chflags=no, 
     2669ac_cv_have_chflags=no)]) 
     2670AC_MSG_RESULT($ac_cv_have_chflags) 
     2671if test "$ac_cv_have_chflags" = yes 
     2672then 
     2673  AC_DEFINE(HAVE_CHFLAGS, 1, 
     2674  [Define to 1 if you have the `chflags' function.]) 
     2675fi 
    26692676 
    26702677AC_MSG_CHECKING(for lchflags) 
     2678AC_CACHE_VAL(ac_cv_have_lchflags, [ 
    26712679AC_TRY_RUN([ 
    26722680#include <sys/stat.h> 
    26732681#include <unistd.h> 
    int main(int argc, char*argv[]) 
    26772685    return 1; 
    26782686  return 0; 
    26792687} 
    2680 ],AC_DEFINE(HAVE_LCHFLAGS, 1, Define to 1 if you have the `lchflags' function.) 
    2681   AC_MSG_RESULT(yes), 
    2682   AC_MSG_RESULT(no) 
    2683 ) 
     2688], 
     2689ac_cv_have_lchflags=yes, 
     2690ac_cv_have_lchflags=no, 
     2691ac_cv_have_lchflags=no)]) 
     2692AC_MSG_RESULT($ac_cv_have_lchflags) 
     2693if test "$ac_cv_have_lchflags" = yes 
     2694then 
     2695  AC_DEFINE(HAVE_CHFLAGS, 1, 
     2696  [Define to 1 if you have the `lchflags' function.]) 
     2697fi 
    26842698 
    26852699dnl Check if system zlib has *Copy() functions 
    26862700dnl 
    else 
    37813795fi 
    37823796 
    37833797AC_MSG_CHECKING(for %zd printf() format support) 
     3798AC_CACHE_VAL(ac_cv_py_format_size_t, [ 
    37843799AC_TRY_RUN([#include <stdio.h> 
    37853800#include <stddef.h> 
    37863801#include <string.h> 
    int main() 
    38143829        return 1; 
    38153830 
    38163831    return 0; 
    3817 }], 
    3818 [AC_MSG_RESULT(yes) 
    3819  AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])], 
    3820  AC_MSG_RESULT(no)) 
     3832} 
     3833], 
     3834ac_cv_py_format_size_t=yes, 
     3835ac_cv_py_format_size_t=no, 
     3836ac_cv_py_format_size_t=no)]) 
     3837AC_MSG_RESULT($ac_cv_py_format_size_t) 
     3838if test "$ac_cv_pyt_format_t" = yes 
     3839then 
     3840  AC_DEFINE(PY_FORMAT_SIZE_T, "z", 
     3841  [Define to printf format modifier for Py_ssize_t]) 
     3842fi 
    38213843 
    38223844AC_CHECK_TYPE(socklen_t,, 
    38233845  AC_DEFINE(socklen_t,int, 
Note: See TracBrowser for help on using the repository browser.