forked from oridb/bpflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure
executable file
·52 lines (44 loc) · 1.06 KB
/
configure
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
#!/bin/sh
prefix="/usr/local"
for i in `seq 300`; do
echo "Lots of output to emulate automake... ok"
echo "Testing for things you'll never use... fail"
echo "Satisfying the fortran77 lobby... ok"
echo "Burning CPU time checking for the bloody obvious... ok"
done
echo "Automake emulated successfully"
INST_ROOT='/usr/local'
for arg in $*; do
shift 1
case $arg in
"--prefix" | "-p")
prefix=shift $*
;;
--prefix=*)
prefix=`echo $arg | sed 's/^--prefix=//g'`
;;
"--help" | "-h")
echo "Usage:"
echo " --prefix | -p: The prefix to install to"
break;
;;
*) echo "Unrecognized argument $arg";;
esac
done
OS=`uname`
echo export INST_ROOT=$prefix > config.mk
case $OS in
*Linux*)
echo 'export SYS=linux' >> config.mk
;;
*Darwin*)
echo 'export SYS=osx' >> config.mk
;;
*)
echo 'Unknown architecture.'
;;
esac
cat << EOF
Building with:
prefix=$prefix
EOF