-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.ac
91 lines (70 loc) · 2.39 KB
/
configure.ac
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
88
89
90
dnl Process this file with autoconf to produce a new configure script if it has changed.
dnl ------------------------------------------------------------------------------------
AC_INIT
AC_CONFIG_SRCDIR([README.md])
AC_MSG_CHECKING([LMTOY config])
echo ""
LMTOY="`pwd`"
AC_SUBST(LMTOY)
echo Using LMTOY=$LMTOY
EDIT_MSG="Do not edit this file, it has been generated via configure in LMTOY"
AC_SUBST(EDIT_MSG)
dnl Override with: --with-data=
dnl Tested in this order:
dnl $DATA_LMT
dnl ~/LMT/data_lmt Suggested private sandboxes
dnl /data_lmt At the UMasss machine "cln"
dnl /lma1/lmt/data_lmt At the UMD machine "lma"
dnl ??? At the LMT site (wares?)
if test ! -z $DATA_LMT ; then
DATA_LMT=$DATA_LMT
elif test -d ~/LMT/data_lmt ; then
DATA_LMT=~/LMT/data_lmt
elif test -d /data_lmt ; then
DATA_LMT=/data_lmt
elif test -d /lma1/lmt/data_lmt ; then
DATA_LMT=/lma1/lmt/data_lmt
elif test -d /nese/toltec/data_lmt ; then
DATA_LMT=/nese/toltec/data_lmt
else
echo "Could not find the data_lmt, use --with-data="
DATA_LMT=/tmp
fi
data_default=$DATA_LMT
AC_ARG_WITH(data,
[ --with-data=DATA_LMT Root directory of DATA_LMT (or set $DATA_LMT)],
data_lmt="$withval",
data_lmt="$data_default")
DATA_LMT=$data_lmt
AC_SUBST(DATA_LMT)
echo "Using DATA_LMT=$DATA_LMT"
dnl Override with: --with-work=
dnl Tested in this order:
dnl $WORK_LMT
dnl ~/LMT/work_lmt Suggested private sandboxes
dnl /work_lmt At the UMasss machine "cln"
dnl /lma1/lmt/work_lmt At the UMD machine "lma"
dnl ??? At the LMT site (wares?)
if test ! -z $WORK_LMT ; then
WORK_LMT=$WORK_LMT
elif test -d ~/LMT/work_lmt ; then
WORK_LMT=~/LMT/work_lmt
elif test -d /work_lmt ; then
WORK_LMT=/work_lmt
elif test -d /lma1/lmt/work_lmt ; then
WORK_LMT=/lma1/lmt/work_lmt
else
echo "Could not find the work_lmt, use --with-work="
WORK_LMT=/tmp
fi
work_default=$WORK_LMT
AC_ARG_WITH(work,
[ --with-work=WORK_LMT Root directory of WORK_LMT (or set $WORK_LMT)],
work_lmt="$withval",
work_lmt="$work_default")
WORK_LMT=$work_lmt
AC_SUBST(WORK_LMT)
echo "Using WORK_LMT=$WORK_LMT"
# put these in a single AC_OUTPUT command so config.status is not called multiple times.
AC_CONFIG_FILES([lmtoy_start.csh lmtoy_start.sh])
AC_OUTPUT