Patch #881820: look for openpty and forkpty also in libbsd.
Will backport.
This commit is contained in:
parent
0c6e2f1640
commit
fd9a72ad89
|
@ -633,6 +633,8 @@ Library
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Patch #881820: look for openpty and forkpty also in libbsd.
|
||||||
|
|
||||||
- The sources of zlib are now part of the Python distribution (zlib 1.2.3).
|
- The sources of zlib are now part of the Python distribution (zlib 1.2.3).
|
||||||
The zlib module is now builtin on Windows.
|
The zlib module is now builtin on Windows.
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# From configure.in Revision: 41925 .
|
# From configure.in Revision: 41953 .
|
||||||
# Guess values for system-dependent variables and create Makefiles.
|
# Guess values for system-dependent variables and create Makefiles.
|
||||||
# Generated by GNU Autoconf 2.59 for python 2.5.
|
# Generated by GNU Autoconf 2.59 for python 2.5.
|
||||||
#
|
#
|
||||||
|
@ -14741,7 +14741,81 @@ if test $ac_cv_lib_util_openpty = yes; then
|
||||||
#define HAVE_OPENPTY 1
|
#define HAVE_OPENPTY 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
LIBS="$LIBS -lutil"
|
LIBS="$LIBS -lutil"
|
||||||
|
else
|
||||||
|
echo "$as_me:$LINENO: checking for openpty in -lbsd" >&5
|
||||||
|
echo $ECHO_N "checking for openpty in -lbsd... $ECHO_C" >&6
|
||||||
|
if test "${ac_cv_lib_bsd_openpty+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
|
LIBS="-lbsd $LIBS"
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
/* We use char because int might match the return type of a gcc2
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
char openpty ();
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
openpty ();
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
|
(eval $ac_link) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
|| test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest$ac_exeext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
ac_cv_lib_bsd_openpty=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
ac_cv_lib_bsd_openpty=no
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_openpty" >&5
|
||||||
|
echo "${ECHO_T}$ac_cv_lib_bsd_openpty" >&6
|
||||||
|
if test $ac_cv_lib_bsd_openpty = yes; then
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define HAVE_OPENPTY 1
|
||||||
|
_ACEOF
|
||||||
|
LIBS="$LIBS -lbsd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@ -14909,7 +14983,81 @@ if test $ac_cv_lib_util_forkpty = yes; then
|
||||||
#define HAVE_FORKPTY 1
|
#define HAVE_FORKPTY 1
|
||||||
_ACEOF
|
_ACEOF
|
||||||
LIBS="$LIBS -lutil"
|
LIBS="$LIBS -lutil"
|
||||||
|
else
|
||||||
|
echo "$as_me:$LINENO: checking for forkpty in -lbsd" >&5
|
||||||
|
echo $ECHO_N "checking for forkpty in -lbsd... $ECHO_C" >&6
|
||||||
|
if test "${ac_cv_lib_bsd_forkpty+set}" = set; then
|
||||||
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||||
|
else
|
||||||
|
ac_check_lib_save_LIBS=$LIBS
|
||||||
|
LIBS="-lbsd $LIBS"
|
||||||
|
cat >conftest.$ac_ext <<_ACEOF
|
||||||
|
/* confdefs.h. */
|
||||||
|
_ACEOF
|
||||||
|
cat confdefs.h >>conftest.$ac_ext
|
||||||
|
cat >>conftest.$ac_ext <<_ACEOF
|
||||||
|
/* end confdefs.h. */
|
||||||
|
|
||||||
|
/* Override any gcc2 internal prototype to avoid an error. */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C"
|
||||||
|
#endif
|
||||||
|
/* We use char because int might match the return type of a gcc2
|
||||||
|
builtin and then its argument prototype would still apply. */
|
||||||
|
char forkpty ();
|
||||||
|
int
|
||||||
|
main ()
|
||||||
|
{
|
||||||
|
forkpty ();
|
||||||
|
;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
_ACEOF
|
||||||
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
||||||
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
||||||
|
(eval $ac_link) 2>conftest.er1
|
||||||
|
ac_status=$?
|
||||||
|
grep -v '^ *+' conftest.er1 >conftest.err
|
||||||
|
rm -f conftest.er1
|
||||||
|
cat conftest.err >&5
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); } &&
|
||||||
|
{ ac_try='test -z "$ac_c_werror_flag"
|
||||||
|
|| test ! -s conftest.err'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; } &&
|
||||||
|
{ ac_try='test -s conftest$ac_exeext'
|
||||||
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
||||||
|
(eval $ac_try) 2>&5
|
||||||
|
ac_status=$?
|
||||||
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
||||||
|
(exit $ac_status); }; }; then
|
||||||
|
ac_cv_lib_bsd_forkpty=yes
|
||||||
|
else
|
||||||
|
echo "$as_me: failed program was:" >&5
|
||||||
|
sed 's/^/| /' conftest.$ac_ext >&5
|
||||||
|
|
||||||
|
ac_cv_lib_bsd_forkpty=no
|
||||||
fi
|
fi
|
||||||
|
rm -f conftest.err conftest.$ac_objext \
|
||||||
|
conftest$ac_exeext conftest.$ac_ext
|
||||||
|
LIBS=$ac_check_lib_save_LIBS
|
||||||
|
fi
|
||||||
|
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_forkpty" >&5
|
||||||
|
echo "${ECHO_T}$ac_cv_lib_bsd_forkpty" >&6
|
||||||
|
if test $ac_cv_lib_bsd_forkpty = yes; then
|
||||||
|
cat >>confdefs.h <<\_ACEOF
|
||||||
|
#define HAVE_FORKPTY 1
|
||||||
|
_ACEOF
|
||||||
|
LIBS="$LIBS -lbsd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
14
configure.in
14
configure.in
|
@ -2273,8 +2273,18 @@ void* p = setgroups,
|
||||||
|
|
||||||
# check for openpty and forkpty
|
# check for openpty and forkpty
|
||||||
|
|
||||||
AC_CHECK_FUNCS(openpty,, AC_CHECK_LIB(util,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"]))
|
AC_CHECK_FUNCS(openpty,,
|
||||||
AC_CHECK_FUNCS(forkpty,, AC_CHECK_LIB(util,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"]))
|
AC_CHECK_LIB(util,openpty,
|
||||||
|
[AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lutil"],
|
||||||
|
AC_CHECK_LIB(bsd,openpty, [AC_DEFINE(HAVE_OPENPTY) LIBS="$LIBS -lbsd"])
|
||||||
|
)
|
||||||
|
)
|
||||||
|
AC_CHECK_FUNCS(forkpty,,
|
||||||
|
AC_CHECK_LIB(util,forkpty,
|
||||||
|
[AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lutil"],
|
||||||
|
AC_CHECK_LIB(bsd,forkpty, [AC_DEFINE(HAVE_FORKPTY) LIBS="$LIBS -lbsd"])
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
# check for long file support functions
|
# check for long file support functions
|
||||||
AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
|
AC_CHECK_FUNCS(fseek64 fseeko fstatvfs ftell64 ftello statvfs)
|
||||||
|
|
Loading…
Reference in New Issue