Commit 79d4c613 authored by Guido van Rossum's avatar Guido van Rossum

Added tweak for SET_CCC (which I don't even know what it is!) for Linux.

Added AC_CHECK_SIZEOF(void *).
Added yet another test for pthreads (pthread_create may be in libc).
Added pthread_init to list of functions whose existence is checked.
parent 83a9162a
...@@ -84,6 +84,7 @@ if test -z "$CCC" ...@@ -84,6 +84,7 @@ if test -z "$CCC"
then then
case $ac_sys_system in case $ac_sys_system in
IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";; IRIX*) SET_CCC="CCC= CC ${SGI_ABI}";;
Linux*) SET_CCC="CCC= g++";;
*) SET_CCC="" *) SET_CCC=""
esac esac
else else
...@@ -279,6 +280,7 @@ AC_TYPE_UID_T ...@@ -279,6 +280,7 @@ AC_TYPE_UID_T
AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(void *)
AC_MSG_CHECKING(for long long support) AC_MSG_CHECKING(for long long support)
have_long_long=no have_long_long=no
...@@ -433,6 +435,9 @@ AC_DEFINE(_REENTRANT) ...@@ -433,6 +435,9 @@ AC_DEFINE(_REENTRANT)
AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD) AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(C_THREADS) AC_DEFINE(C_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[ LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_FUNC(pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[
AC_CHECK_HEADER(kernel/OS.h, [AC_DEFINE(WITH_THREAD) AC_CHECK_HEADER(kernel/OS.h, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(BEOS_THREADS) AC_DEFINE(BEOS_THREADS)
LIBOBJS="$LIBOBJS thread.o"],[ LIBOBJS="$LIBOBJS thread.o"],[
...@@ -456,7 +461,7 @@ AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD) ...@@ -456,7 +461,7 @@ AC_CHECK_LIB(cma, pthread_create, [AC_DEFINE(WITH_THREAD)
AC_DEFINE(_POSIX_THREADS) AC_DEFINE(_POSIX_THREADS)
LIBS="$LIBS -lcma" LIBS="$LIBS -lcma"
LIBOBJS="$LIBOBJS thread.o"]) LIBOBJS="$LIBOBJS thread.o"])
])])])])])]) ])])])])])])])
AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD) AC_CHECK_LIB(mpc, usconfig, [AC_DEFINE(WITH_THREAD)
LIBS="$LIBS -lmpc" LIBS="$LIBS -lmpc"
...@@ -498,7 +503,7 @@ LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no)) ...@@ -498,7 +503,7 @@ LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no))
# checks for library functions # checks for library functions
AC_CHECK_FUNCS(alarm chown clock dlopen execv flock fork ftime ftruncate \ AC_CHECK_FUNCS(alarm chown clock dlopen execv flock fork ftime ftruncate \
gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \ gethostname_r getpeername getpgrp getpid getpwent gettimeofday getwd \
kill link lstat mkfifo mktime nice pause plock putenv readlink \ kill link lstat mkfifo mktime nice pause plock pthread_init putenv readlink \
select setgid setlocale setuid setsid setpgid setpgrp setvbuf \ select setgid setlocale setuid setsid setpgid setpgrp setvbuf \
sigaction siginterrupt sigrelse strftime strptime symlink \ sigaction siginterrupt sigrelse strftime strptime symlink \
tcgetpgrp tcsetpgrp timegm times truncate uname waitpid) tcgetpgrp tcsetpgrp timegm times truncate uname waitpid)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment