Last change
on this file since 216 was
216,
checked in by bas, 14 years ago
|
New configure options to determine version and where the libs are installed, borrowed from mpiexec
|
File size:
839 bytes
|
Line | |
---|
1 | AC_INIT(src/pbs_2.4.py) |
---|
2 | AC_SUBST(prefix) |
---|
3 | AC_SUBST(exec_prefix) |
---|
4 | AC_SUBST(pyexecdir) |
---|
5 | |
---|
6 | |
---|
7 | pbsdir_default='' |
---|
8 | AC_ARG_WITH([pbsdir], |
---|
9 | [ --with-pbsdir=PATH The torque/pbs install directory], |
---|
10 | pbsdir=$withval, pbsdir=$pbsdir_default) |
---|
11 | AC_SUBST(pbsdir) |
---|
12 | |
---|
13 | # Verify the PBS libs are there, but let Makefile handle including them |
---|
14 | # on the link line. First check for modern torque pbs-config program using |
---|
15 | # $pbsdir and the rest of PATH, then fall back to looking around for the |
---|
16 | # libraries by hand. |
---|
17 | AC_PATH_PROG(PBSCONFIG, pbs-config, none, $pbsdir:$pbsdir/bin:$pbsdir/../bin:$PATH) |
---|
18 | if test "$PBSCONFIG" != "none"; then |
---|
19 | pbs_library_dir="`$PBSCONFIG --libs`" |
---|
20 | pbs_version="`$PBSCONFIG --version`" |
---|
21 | else |
---|
22 | pbs_library_DIR="" |
---|
23 | pbs_version="" |
---|
24 | fi |
---|
25 | AC_SUBST(pbs_library_dir) |
---|
26 | AC_SUBST(pbs_version) |
---|
27 | |
---|
28 | |
---|
29 | AM_PATH_PYTHON |
---|
30 | |
---|
31 | AC_OUTPUT( |
---|
32 | Makefile |
---|
33 | setup.py |
---|
34 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.