~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_with_python.m4

Reverted 1103

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
dnl   
4
4
dnl pandora-build: A pedantic build system
5
5
dnl Copyright (C) 2009 Sun Microsystems, Inc.
6
 
dnl This file is free software; Sun Microsystems
 
6
dnl This file is free software; the Free Software Foundation
7
7
dnl gives unlimited permission to copy and/or distribute it,
8
8
dnl with or without modifications, as long as this notice is preserved.
9
9
dnl
15
15
  AC_ARG_WITH([python], 
16
16
    [AS_HELP_STRING([--with-python],
17
17
      [Build Python Bindings @<:@default=yes@:>@])],
18
 
    [with_python=$withval
19
 
     python_requested=$withval
20
 
    ], 
21
 
    [with_python=yes
22
 
     python_requested=no
23
 
    ])
 
18
    [with_python=$withval], 
 
19
    [with_python=yes])
24
20
 
25
21
  AS_IF([test "x$with_python" != "xno"],[
26
22
    AS_IF([test "x$with_python" != "xyes"],[PYTHON=$with_python])
28
24
    AC_PYTHON_DEVEL()
29
25
    AS_IF([test "x$pythonexists" = "xno"],[with_python="no"])
30
26
  ])
31
 
  AS_IF([test "x$with_python" = "xno" -a "$python_requested" = "yes"],[
32
 
    AC_MSG_ERROR([Python support was explicity requested, but Python support
33
 
                  was not found. Please correct your build environment and try
34
 
                  again])
35
 
  ])
36
27
  AM_CONDITIONAL(BUILD_PYTHON, [test "$with_python" = "yes"])
37
28
])