Last change
on this file since 236 was
236,
checked in by bas, 14 years ago
|
Added an new variable:
- pbs_library_compile_line
- pbs_library_dir (pbs-config --libdir)
|
File size:
991 bytes
|
Rev | Line | |
---|
[216] | 1 | AC_INIT(src/pbs_2.4.py) |
---|
[64] | 2 | AC_SUBST(prefix) |
---|
| 3 | AC_SUBST(exec_prefix) |
---|
| 4 | AC_SUBST(pyexecdir) |
---|
| 5 | |
---|
[95] | 6 | |
---|
[216] | 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) |
---|
[95] | 12 | |
---|
[216] | 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 |
---|
[236] | 19 | pbs_library_compile_line="`$PBSCONFIG --libs`" |
---|
| 20 | pbs_library_dir="`$PBSCONFIG --libdir`" |
---|
[216] | 21 | pbs_version="`$PBSCONFIG --version`" |
---|
[228] | 22 | AC_MSG_RESULT(Found torque version: $pbs_version) |
---|
[216] | 23 | else |
---|
[217] | 24 | AC_MSG_ERROR([Failed to find program pbs-config]) |
---|
[216] | 25 | fi |
---|
[236] | 26 | AC_SUBST(pbs_library_compile_line) |
---|
[216] | 27 | AC_SUBST(pbs_library_dir) |
---|
| 28 | AC_SUBST(pbs_version) |
---|
[95] | 29 | |
---|
| 30 | |
---|
[64] | 31 | AM_PATH_PYTHON |
---|
| 32 | |
---|
| 33 | AC_OUTPUT( |
---|
| 34 | Makefile |
---|
[95] | 35 | setup.py |
---|
[64] | 36 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.