~ubuntu-branches/ubuntu/saucy/solfege/saucy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Tom Cato Amundsen
  • Date: 2010-03-28 06:34:28 UTC
  • mfrom: (1.1.10 upstream) (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100328063428-wg2bqvoce2aq4xfb
Tags: 3.15.9-1
* New upstream release.
* Redo packaging. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
 
# 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
 
4
# 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5
5
# This file is free software; the Free Software Foundation
6
6
# gives unlimited permission to copy and/or distribute it,
7
7
# with or without modifications, as long as this notice is preserved.
169
169
fi[]dnl
170
170
])# PKG_CHECK_MODULES
171
171
 
172
 
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
 
172
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
173
173
# Free Software Foundation, Inc.
174
174
#
175
175
# This file is free software; the Free Software Foundation
200
200
# numbers and dots only.
201
201
AC_DEFUN([AM_PATH_PYTHON],
202
202
 [
203
 
  dnl Find a Python interpreter.  Python versions prior to 1.5 are not
204
 
  dnl supported because the default installation locations changed from
205
 
  dnl $prefix/lib/site-python in 1.4 to $prefix/lib/python1.5/site-packages
206
 
  dnl in 1.5.
 
203
  dnl Find a Python interpreter.  Python versions prior to 2.0 are not
 
204
  dnl supported. (2.0 was released on October 16, 2000).
207
205
  m4_define_default([_AM_PYTHON_INTERPRETER_LIST],
208
 
                    [python python2 python2.5 python2.4 python2.3 python2.2 dnl
209
 
python2.1 python2.0 python1.6 python1.5])
 
206
                    [python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 dnl
 
207
python2.1 python2.0])
210
208
 
211
209
  m4_if([$1],[],[
212
210
    dnl No version check is needed.
253
251
  dnl library.
254
252
 
255
253
  AC_CACHE_CHECK([for $am_display_PYTHON version], [am_cv_python_version],
256
 
    [am_cv_python_version=`$PYTHON -c "import sys; print sys.version[[:3]]"`])
 
254
    [am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[[:3]])"`])
257
255
  AC_SUBST([PYTHON_VERSION], [$am_cv_python_version])
258
256
 
259
257
  dnl Use the values of $prefix and $exec_prefix for the corresponding
268
266
  dnl to know which OS platform Python thinks this is.
269
267
 
270
268
  AC_CACHE_CHECK([for $am_display_PYTHON platform], [am_cv_python_platform],
271
 
    [am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`])
 
269
    [am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`])
272
270
  AC_SUBST([PYTHON_PLATFORM], [$am_cv_python_platform])
273
271
 
274
272
 
285
283
    [am_cv_python_pythondir],
286
284
    [if test "x$prefix" = xNONE
287
285
     then
288
 
       py_prefix_arg=
 
286
       am_py_prefix=$ac_default_prefix
289
287
     else
290
 
       py_prefix_arg=",prefix='$prefix'"
 
288
       am_py_prefix=$prefix
291
289
     fi
292
 
     am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0$py_prefix_arg)" -n -q install $py_prefix_arg 2>/dev/null ||
293
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 
290
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
 
291
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
292
     case $am_cv_python_pythondir in
 
293
     $am_py_prefix*)
 
294
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
295
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
296
       ;;
 
297
     esac
 
298
    ])
294
299
  AC_SUBST([pythondir], [$am_cv_python_pythondir])
295
300
 
296
301
  dnl pkgpythondir -- $PACKAGE directory under pythondir.  Was
308
313
    [am_cv_python_pyexecdir],
309
314
    [if test "x$exec_prefix" = xNONE
310
315
     then
311
 
       py_exec_prefix_arg=$py_prefix_arg
 
316
       am_py_exec_prefix=$am_py_prefix
312
317
     else
313
 
       py_exec_prefix_arg=",prefix='$exec_prefix'"
 
318
       am_py_exec_prefix=$exec_prefix
314
319
     fi
315
 
     am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0$py_exec_prefix_arg)" -n -q install $py_exec_prefix_arg 2>/dev/null ||
316
 
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`])
 
320
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
 
321
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
322
     case $am_cv_python_pyexecdir in
 
323
     $am_py_exec_prefix*)
 
324
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
325
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
326
       ;;
 
327
     esac
 
328
    ])
317
329
  AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
318
330
 
319
331
  dnl pkgpyexecdir -- $(pyexecdir)/$(PACKAGE)
333
345
# Run ACTION-IF-FALSE otherwise.
334
346
# This test uses sys.hexversion instead of the string equivalent (first
335
347
# word of sys.version), in order to cope with versions such as 2.2c1.
336
 
# hexversion has been introduced in Python 1.5.2; it's probably not
337
 
# worth to support older versions (1.5.1 was released on October 31, 1998).
 
348
# This supports Python 2.0 or higher. (2.0 was released on October 16, 2000).
338
349
AC_DEFUN([AM_PYTHON_CHECK_VERSION],
339
 
 [prog="import sys, string
 
350
 [prog="import sys
340
351
# split strings by '.' and convert to numeric.  Append some zeros
341
352
# because we need at least 4 digits for the hex conversion.
342
 
minver = map(int, string.split('$2', '.')) + [[0, 0, 0]]
 
353
# map returns an iterator in Python 3.0 and a list in 2.x
 
354
minver = list(map(int, '$2'.split('.'))) + [[0, 0, 0]]
343
355
minverhex = 0
344
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[[i]]
 
356
# xrange is not present in Python 3.0 and range returns an iterator
 
357
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[[i]]
345
358
sys.exit(sys.hexversion < minverhex)"
346
359
  AS_IF([AM_RUN_LOG([$1 -c "$prog"])], [$3], [$4])])
347
360