blob: b4be911dd05a6373a5095e7e1af9f09e64a86867 (
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
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
|
--- ppp-2.4.5.orig/configure 2009-11-16 23:26:07.000000000 +0100
+++ ppp-2.4.5/configure 2011-01-21 21:29:57.977408326 +0100
@@ -5,12 +5,42 @@
DESTDIR=/usr/local
SYSCONF=/etc
+# Parse arguments
+while [ $# -gt 0 ]; do
+ arg=$1
+ val=
+ shift
+ case $arg in
+ *=*)
+ val=`expr "x$arg" : 'x[^=]*=\(.*\)'`
+ arg=`expr "x$arg" : 'x\([^=]*\)=.*'`
+ ;;
+ --prefix|--sysconf|--system|--arch|--release)
+ if [ $# -eq 0 ]; then
+ echo "error: the $arg argument requires a value" 1>&2
+ exit 1
+ fi
+ val=$1
+ shift
+ ;;
+ esac
+ case $arg in
+ --prefix) DESTDIR=$val ;;
+ --sysconfdir) SYSCONF=$val ;;
+ --system) system=$val ;;
+ --release) release=$val ;;
+ --arch) arch=$val ;;
+ esac
+done
+
+echo "DESTDIR is $DESTDIR"
+
# if [ -d /NextApps ]; then
# system="NeXTStep"
# else
- system=`uname -s`
- release=`uname -r`
- arch=`uname -m`
+if [ -z "$system" ];then system=`uname -s`;fi
+if [ -z "$release" ];then release=`uname -r`;fi
+if [ -z "$arch" ];then arch=`uname -m`;fi
# fi
state="unknown"
@@ -18,6 +48,7 @@ case $system in
Linux)
makext="linux";
ksrc="linux";
+ compiletype=.gcc;
state="known";;
SunOS)
karch=`/usr/bin/isainfo -k`
@@ -156,30 +187,6 @@ case $state in
echo "Configuring for $system";;
esac
-# Parse arguments
-while [ $# -gt 0 ]; do
- arg=$1
- val=
- shift
- case $arg in
- *=*)
- val=`expr "x$arg" : 'x[^=]*=\(.*\)'`
- arg=`expr "x$arg" : 'x\([^=]*\)=.*'`
- ;;
- --prefix|--sysconf)
- if [ $# -eq 0 ]; then
- echo "error: the $arg argument requires a value" 1>&2
- exit 1
- fi
- val=$1
- shift
- ;;
- esac
- case $arg in
- --prefix) DESTDIR=$val ;;
- --sysconfdir) SYSCONF=$val ;;
- esac
-done
mkmkf() {
rm -f $2
|