-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.ac
168 lines (150 loc) · 6.01 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# Copyright (C) 2006-2009, 2012 Rocky Bernstein <[email protected]>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
## Note: the version number (the 2nd parameter in AC_INIT)
## is picked up inside the Python debugger script.
AC_INIT([pydb],[1.261],[https://github.com/rocky/pydb/issues])
AC_DEFINE([PACKAGE], [pydb], [Python Extended Debugger])
MIN_VERSION='2.4.0'
AC_SUBST(MIN_VERSION)
##
## AM_PATH_PYTHON seems to use PACKAGE and AC_INIT sets PACKAGE_NAME.
if test -z "$PACKAGE" ; then
PACKAGE=$PACKAGE_NAME
fi
##
## Get user-specified Python site-packages location. This should
## come before getting user-specified Python or looking for that.
##
find_pythondir=yes
AC_ARG_WITH(site-packages,
AC_HELP_STRING([--with-site-packages],
[place to install module]),
[pythondir=$withval;
pkgpythondir=${pythondir}/$PACKAGE_NAME
find_pythondir=no])
if test "$find_pythondir" != yes; then
am_cv_python_pythondir=$pythondir
fi
READLINE=readline
AC_ARG_ENABLE(pyreadline,
AC_HELP_STRING([--enable-pyreadline],
[Use pyreadline instead of readline]),
[ if test "${enable_readline}" = "yes"; then
READLINE=pyreadline
fi
])
AC_SUBST(READLINE)
##
## Get user-specified Python location
##
AC_ARG_WITH(python,
AC_HELP_STRING([--with-python],
[set path to Python]),
PYTHON=$withval)
##
## Check for Python interpreter and make we have a recent version.
##
AM_PATH_PYTHON($MIN_VERSION,,
[AC_MSG_ERROR(Debugger known only to work with Python $MIN_VERSION or greater)])
## Automake doesn't get Python's install path correct. So we
## figure it out and set it ourself.
## This must come after looking for Python since we use that below.
if test "$find_pythondir" = yes; then
AC_MSG_NOTICE([Trying to reset site-packages a the default often gets this wrong])
pythondir=`$PYTHON ${srcdir}/site-packages-path.py`
if test $? != 0 ; then
AC_MSG_ERROR([Didn't get Python site packages install path.
Set it with --with-site-packages])
fi
pkgpythondir=\${pythondir}/$PACKAGE_NAME
fi
##
##
## In maintainer mode we produce a ChangeLog
##
AM_MAINTAINER_MODE
##
## make sure we are using a recent autoconf version
##
AC_PREREQ(2.53)
AC_ARG_PROGRAM
AM_INIT_AUTOMAKE
##
## cvs2cl is used to create the ChangeLog when we create a distribution
##
AM_MISSING_PROG(CVS2CL, cvs2cl, $missing_dir)
##
## A symbolic links is used to link a name in users PATH to the python
## script.
##
AC_PROG_LN_S
##
## Produced derived files.
##
AC_CONFIG_FILES([Doc/Makefile])
AC_CONFIG_FILES([Doc/pydb.1])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([pydb/__init__.py])
AC_CONFIG_FILES([pydb/gdb.py])
AC_CONFIG_FILES([pydb/pydb.py],[chmod +x pydb/pydb.py])
AC_CONFIG_FILES([setup.py],[chmod +x setup.py])
AC_CONFIG_FILES([test/.pydbrc]) # Just to get this into builddir
AC_CONFIG_FILES([test/Makefile])
AC_CONFIG_FILES([test/data/Makefile])
AC_CONFIG_FILES([test/unit/Makefile])
AC_CONFIG_FILES([test/brkpt3.cmd])
AC_CONFIG_FILES([test/brkpt3.right])
AC_CONFIG_FILES([test/brkpt3t.right])
AC_CONFIG_FILES([test/except.py],[chmod +x test/except.py])
AC_CONFIG_FILES([test/exceptbug.py],[chmod +x test/exceptbug.py])
AC_CONFIG_FILES([test/file-2.5.right])
AC_CONFIG_FILES([test/file.cmd])
AC_CONFIG_FILES([test/file.right])
AC_CONFIG_FILES([test/settrace.py],[chmod +x test/settrace.py])
AC_CONFIG_FILES([test/test-complete.py],[chmod +x test/test-complete.py])
AC_CONFIG_FILES([test/test-connect.py],[chmod +x test/test-connect.py])
AC_CONFIG_FILES([test/test-contbug.py],[chmod +x test/test-contbug.py])
AC_CONFIG_FILES([test/test-disassem.py],[chmod +x test/test-disassem.py])
AC_CONFIG_FILES([test/test-dbgcall.py],[chmod +x test/test-dbgcall.py])
AC_CONFIG_FILES([test/test-fifo-connect.py],[chmod +x test/test-fifo-connect.py])
AC_CONFIG_FILES([test/test-file.py],[chmod +x test/test-file.py])
AC_CONFIG_FILES([test/test-fns.py],[chmod +x test/test-fns.py])
AC_CONFIG_FILES([test/test-help.py],[chmod +x test/test-help.py])
AC_CONFIG_FILES([test/test-import.py],[chmod +x test/test-import.py])
AC_CONFIG_FILES([test/test-linetrace.py],[chmod +x test/test-linetrace.py])
AC_CONFIG_FILES([test/test-pm.py],[chmod +x test/test-pm.py])
AC_CONFIG_FILES([test/test-run.py],[chmod +x test/test-run.py])
AC_CONFIG_FILES([test/test-save.py], [chmod +x test/test-save.py])
AC_CONFIG_FILES([test/test-setshow.py], [chmod +x test/test-setshow.py])
AC_CONFIG_FILES([test/test-sig.py], [chmod +x test/test-sig.py])
AC_CONFIG_FILES([test/test-sighandle.py], [chmod +x test/test-sighandle.py])
AC_CONFIG_FILES([test/test-skip.py],[chmod +x test/test-skip.py])
AC_CONFIG_FILES([test/test-step.py], [chmod +x test/test-step.py])
AC_CONFIG_FILES([test/test-tcp-connect.py],[chmod +x test/test-tcp-connect.py])
AC_CONFIG_FILES([test/test-trace.py],[chmod +x test/test-trace.py])
AC_CONFIG_FILES([test/test-with.py],[chmod +x test/test-with.py])
AC_CONFIG_FILES([test/test.py],[chmod +x test/test.py])
AC_CONFIG_FILES([test/unit/bytecode.py],
[chmod +x test/unit/bytecode.py])
AC_CONFIG_FILES([test/unit/checkline.py],
[chmod +x test/unit/checkline.py])
AC_CONFIG_FILES([test/unit/fns.py],
[chmod +x test/unit/fns.py])
AC_CONFIG_FILES([test/unit/listsize.py],
[chmod +x test/unit/listsize.py])
AC_CONFIG_FILES([test/unit/pydbcmd.py],
[chmod +x test/unit/pydbcmd.py])
AC_CONFIG_FILES([test/unit/sighandler.py],
[chmod +x test/unit/sighandler.py])
AC_OUTPUT