File: configure.ac

package info (click to toggle)
pydb 1.26-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,512 kB
  • ctags: 1,061
  • sloc: python: 4,200; perl: 2,479; lisp: 866; sh: 780; makefile: 633; ansic: 16
file content (194 lines) | stat: -rw-r--r-- 6,806 bytes parent folder | download | duplicates (2)
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# Copyright (C) 2006, 2007, 2008, 2009 Rocky Bernstein <rocky@gnu.org>

# 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_REVISION([$Id: configure.ac,v 1.84 2009/04/10 23:41:58 rockyb Exp $])dnl
AC_INIT([pydb],[1.26],[bashdb-pydb-devel@lists.sourceforge.net])
AC_DEFINE([PACKAGE], [pydb], [Python Extended Debugger])
MIN_VERSION='2.4.0'
AC_SUBST(MIN_VERSION)


##
## Find out where to install the debugger emacs lisp files
##
AM_PATH_LISPDIR

AC_PATH_PROG(EMACS, emacs, no)

if test x$EMACS != xno ; then
  $EMACS -batch -q -no-site-file -eval \
  '(if (<= emacs-major-version 21)
     (progn
       (error "You need GNU Emacs 22 or better for GNU Emacs support.")
       (kill-emacs 1)
     ))'
  if test $? -ne 0 ; then
    EMACS=no
  fi
fi
AM_CONDITIONAL(INSTALL_EMACS_LISP, 
	       [test "x$lispdir" != "x" -a "x$EMACS" != "xno"])

##
## 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
##
AM_PATH_LISPDIR
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([emacs/Makefile])
AC_CONFIG_FILES([emacs/pydb-test.el])
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