blob: f70eb72ce480a2373ce357d99310714e86661597 [file] [log] [blame]
Guido van Rossum627b2d71993-12-24 10:39:16 +00001dnl Process this file with autoconf to produce a configure script.
2
Guido van Rossum6085e321993-12-26 18:24:40 +00003AC_INIT(Include/object.h)
Guido van Rossum627b2d71993-12-24 10:39:16 +00004
5# checks for alternative programs
6AC_PROG_CC
7AC_PROG_RANLIB
8
9# checks for UNIX variants that set C preprocessor variables
10AC_AIX
11AC_ISC_POSIX
12AC_MINIX
13dnl DYNIX test runs compile so must be last
14AC_DYNIX_SEQ
15
16# checks for header files
17AC_STDC_HEADERS
18AC_HAVE_HEADERS(dlfcn.h signal.h stdarg.h unistd.h utime.h sys/param.h sys/select.h sys/times.h sys/utsname.h)
19AC_DIR_HEADER
20
21# checks for typedefs
22AC_GETGROUPS_T
23AC_MODE_T
24AC_OFF_T
25AC_PID_T
26AC_RETSIGTYPE
27AC_SIZE_T
28AC_UID_T
29
30# checks for libraries
31AC_HAVE_LIBRARY(dl)
32LIBS="${LIBS} -L${READLINESRC-${PWD-${CWD-`pwd`}}/readline}"
33AC_HAVE_LIBRARY(readline)
34if test -n "${have_lib}"; then
35AC_HAVE_LIBRARY(termcap)
36fi
37
38# Check for IRIX or SOLARIS thread interface
39AC_HAVE_LIBRARY(mpc)
40if test -n "${have_lib}"; then
41DEFS="${DEFS} -DUSE_THREAD"
42LIBOBJS="${LIBOBJS} thread.o"
43fi
44
45AC_HAVE_LIBRARY(thread)
46if test -n "${have_lib}"; then
47DEFS="${DEFS} -DUSE_THREAD"
48LIBOBJS="${LIBOBJS} thread.o"
49fi
50
51# checks for library functions
52AC_HAVE_FUNCS(clock ftime gettimeofday getpgrp getwd lstat readlink readline select setsid setpgid setpgrp siginterrupt symlink tcgetpgrp tcsetpgrp times uname waitpid)
53AC_REPLACE_FUNCS(dup2 getcwd strerror strtoul strtod memmove)
54AC_FUNC_CHECK(getpgrp, AC_COMPILE_CHECK([argument to getpgrp], [#include <unistd.h>], [getpgrp(0);], AC_DEFINE(GETPGRP_HAVE_ARG)))
55
56# checks for structures
57AC_TIME_WITH_SYS_TIME
58AC_STRUCT_TM
59AC_TIMEZONE
60
61# checks for compiler characteristics
62AC_CONST
63echo checking for prototypes
64AC_TEST_PROGRAM([int foo(int x){return 0;} int main(){return foo(10);}], AC_DEFINE(HAVE_PROTOTYPES) have_prototypes=1)
65if test "$have_prototypes"; then
66AC_COMPILE_CHECK(["bad exec* prototypes"], [#include <unistd.h>], [char *const*t;execve("@",t,t);], , AC_DEFINE(BAD_EXEC_PROTOTYPES))
67fi
68
69# checks for system services
70# (none yet)
71
72# other checks for UNIX variants
73AC_IRIX_SUN
74AC_XENIX_DIR
75
76# generate output files
77AC_OUTPUT(Objects/Makefile Parser/Makefile Python/Makefile)