summaryrefslogtreecommitdiff
path: root/finance/emma/patches/patch-af
blob: 8373d6063ffc932e3023c389824d29b629cc77ac (plain)
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
$NetBSD: patch-af,v 1.1 2002/01/19 17:44:06 drochner Exp $

--- configure.orig	Sat Jan 19 18:36:50 2002
+++ configure	Sat Jan 19 18:38:12 2002
@@ -3062,40 +3062,12 @@
 	
 
 
-# Extract the first word of "python", so it can be a program name with args.
-set dummy python; ac_word=$2
-echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3069: checking for $ac_word" >&5
-if eval "test \"`echo '$''{'ac_cv_prog_python_val'+set}'`\" = set"; then
-  echo $ac_n "(cached) $ac_c" 1>&6
-else
-  if test -n "$python_val"; then
-  ac_cv_prog_python_val="$python_val" # Let the user override the test.
-else
-  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
-  ac_dummy="$PATH"
-  for ac_dir in $ac_dummy; do
-    test -z "$ac_dir" && ac_dir=.
-    if test -f $ac_dir/$ac_word; then
-      ac_cv_prog_python_val="true"
-      break
-    fi
-  done
-  IFS="$ac_save_ifs"
-  test -z "$ac_cv_prog_python_val" && ac_cv_prog_python_val="false"
-fi
-fi
-python_val="$ac_cv_prog_python_val"
-if test -n "$python_val"; then
-  echo "$ac_t""$python_val" 1>&6
-else
-  echo "$ac_t""no" 1>&6
-fi
+python_val=true
 
 if $python_val; then
-	PY_PREFIX=`python -c 'import sys ; print sys.prefix'`
-	PY_EXEC_PREFIX=`python -c 'import sys ; print sys.exec_prefix'`
-		PY_VERSION=`python -c 'import sys ; print sys.version[0:3]'`
+	PY_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.prefix'`
+	PY_EXEC_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.exec_prefix'`
+		PY_VERSION=`${PYTHONBIN} -c 'import sys ; print sys.version[0:3]'`
 		if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h; then
 		PY_LIBS="-lpython$PY_VERSION"
 		PY_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"