mirror of
https://github.com/python/cpython.git
synced 2025-01-19 15:05:15 +08:00
Some more header files and symbols.
Split the AC_CHECK_FUNCS() line using backslashes. Added FreeBSD support. Added XXX comment -- need to be more liberal or careful about -lreadline.
This commit is contained in:
parent
554e96fd3d
commit
68242b5a8b
15
configure.in
15
configure.in
@ -58,7 +58,7 @@ AC_MINIX
|
|||||||
|
|
||||||
# checks for header files
|
# checks for header files
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h sys/un.h sys/utsname.h sys/wait.h)
|
AC_CHECK_HEADERS(dlfcn.h fcntl.h limits.h ncurses.h signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h sys/audioio.h sys/param.h sys/select.h sys/time.h sys/times.h sys/un.h sys/utsname.h sys/wait.h)
|
||||||
AC_HEADER_DIRENT
|
AC_HEADER_DIRENT
|
||||||
|
|
||||||
# checks for typedefs
|
# checks for typedefs
|
||||||
@ -123,6 +123,7 @@ then
|
|||||||
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
|
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
|
||||||
DYNIX/ptx*) LDSHARED="ld -G";;
|
DYNIX/ptx*) LDSHARED="ld -G";;
|
||||||
Linux*) LDSHARED="gcc-elf -shared";;
|
Linux*) LDSHARED="gcc-elf -shared";;
|
||||||
|
FreeBSD*) LDSHARED="ld -Bshareable";;
|
||||||
*) LDSHARED="ld";;
|
*) LDSHARED="ld";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
@ -138,6 +139,7 @@ then
|
|||||||
else CCSHARED="+z";
|
else CCSHARED="+z";
|
||||||
fi;;
|
fi;;
|
||||||
Linux*) CCSHARED="-fpic";;
|
Linux*) CCSHARED="-fpic";;
|
||||||
|
FreeBSD*) CCSHARED="-fpic";;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
AC_MSG_RESULT($CCSHARED)
|
AC_MSG_RESULT($CCSHARED)
|
||||||
@ -170,6 +172,8 @@ AC_CHECK_LIB(inet, gethostbyname, [LIBS="-linet $LIBS"], [], -lnsl) # Sequent
|
|||||||
AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
|
AC_CHECK_LIB(socket, socket, [LIBS="-lsocket $LIBS"], [], $LIBS) # SVR4 sockets
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# XXX need to check whether libreadline.a actually exists there!
|
||||||
|
# XXX Also, on some systems, it's libreadline.so...
|
||||||
AC_MSG_CHECKING(for --with-readline)
|
AC_MSG_CHECKING(for --with-readline)
|
||||||
AC_ARG_WITH(readline, [--with-readline=DIRECTORY GNU readline], [
|
AC_ARG_WITH(readline, [--with-readline=DIRECTORY GNU readline], [
|
||||||
AC_MSG_RESULT($withval)
|
AC_MSG_RESULT($withval)
|
||||||
@ -209,7 +213,7 @@ LIBS="$LIBS -lthread"
|
|||||||
LIBOBJS="$LIBOBJS thread.o"])
|
LIBOBJS="$LIBOBJS thread.o"])
|
||||||
], AC_MSG_RESULT(no))
|
], AC_MSG_RESULT(no))
|
||||||
|
|
||||||
# -I${DLINCLDIR} is added to the compile rule for import.o
|
# -I${DLINCLDIR} is added to the compile rule for importdl.o
|
||||||
AC_SUBST(DLINCLDIR)
|
AC_SUBST(DLINCLDIR)
|
||||||
DLINCLDIR=/
|
DLINCLDIR=/
|
||||||
|
|
||||||
@ -239,7 +243,12 @@ DLINCLDIR=${dldir}
|
|||||||
LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no))
|
LIBS="$LIBS -ldl -ldld"], AC_MSG_RESULT(no))
|
||||||
|
|
||||||
# checks for library functions
|
# checks for library functions
|
||||||
AC_CHECK_FUNCS(chown clock dlopen ftime ftruncate gethostname_r gettimeofday getpeername getpgrp getpid getwd link lstat nice readlink select setgid setuid setsid setpgid setpgrp setvbuf siginterrupt strftime symlink tcgetpgrp tcsetpgrp times truncate uname waitpid)
|
AC_CHECK_FUNCS(chown clock dlopen ftime ftruncate \
|
||||||
|
gethostname_r getpeername getpgrp getpid gettimeofday getwd \
|
||||||
|
link lstat mkfifo nice readlink \
|
||||||
|
select setgid setuid setsid setpgid setpgrp setvbuf \
|
||||||
|
sigaction siginterrupt sigrelse strftime symlink \
|
||||||
|
tcgetpgrp tcsetpgrp times truncate uname waitpid) \
|
||||||
AC_REPLACE_FUNCS(dup2 getcwd strerror memmove)
|
AC_REPLACE_FUNCS(dup2 getcwd strerror memmove)
|
||||||
AC_CHECK_FUNC(getpgrp, AC_TRY_COMPILE([#include <unistd.h>], [getpgrp(0);], AC_DEFINE(GETPGRP_HAVE_ARG)))
|
AC_CHECK_FUNC(getpgrp, AC_TRY_COMPILE([#include <unistd.h>], [getpgrp(0);], AC_DEFINE(GETPGRP_HAVE_ARG)))
|
||||||
AC_CHECK_FUNC(setpgrp, AC_TRY_COMPILE([#include <unistd.h>], [setpgrp(0,0);], AC_DEFINE(SETPGRP_HAVE_ARG)))
|
AC_CHECK_FUNC(setpgrp, AC_TRY_COMPILE([#include <unistd.h>], [setpgrp(0,0);], AC_DEFINE(SETPGRP_HAVE_ARG)))
|
||||||
|
Loading…
Reference in New Issue
Block a user