source: trunk/configure.in

Last change on this file was 368, checked in by bas, 5 years ago

sara_nodes also displays NHC offline notes,

File size: 1.6 KB
Line 
1#AC_INIT(src/PBSQuery.py)
2
3AC_PREREQ([2.69])
4AC_INIT([pbs-python], [4.6.6])
5AC_CONFIG_SRCDIR([src/C++/pbs_wrap.cxx])
6
7AC_SUBST(prefix)
8AC_SUBST(exec_prefix)
9AC_SUBST(pyexecdir)
10
11
12pbsdir_default=''
13AC_ARG_WITH([pbsdir],
14 [  --with-pbsdir=PATH  The torque/pbs install directory],
15  pbsdir=$withval, pbsdir=$pbsdir_default)
16AC_SUBST(pbsdir)
17
18# Verify the PBS libs are there, but let Makefile handle including them
19# on the link line.  First check for modern torque pbs-config program using
20# $pbsdir and the rest of PATH, then fall back to looking around for the
21# libraries by hand.
22AC_PATH_PROG(PBSCONFIG, pbs-config, none, $pbsdir:$pbsdir/bin:$pbsdir/../bin:$PATH)
23if test "$PBSCONFIG" != "none"; then
24  pbs_library_compile_line="`$PBSCONFIG --libs`"
25  pbs_library_dir="`$PBSCONFIG --libdir`"
26  pbs_version="`$PBSCONFIG --version`"
27  AC_MSG_RESULT(Found torque version: $pbs_version)
28else
29  AC_MSG_ERROR([Failed to find program pbs-config])
30fi
31AC_SUBST(pbs_library_compile_line)
32AC_SUBST(pbs_library_dir)
33AC_SUBST(pbs_version)
34
35
36AM_PATH_PYTHON
37
38AC_SUBST(pbs_python_version, "$(cat release.json | awk -F'\"' '/\"version\"/ {print $4}')")
39
40AC_OUTPUT(
41    Makefile
42    Makefile.rpm
43        setup.py
44    examples/ha_server.py
45    examples/JobParser.py
46    examples/logpbs.py
47    examples/new_interface.py
48    examples/new_rack_pbsmon.py
49    examples/node_event_parse.py
50    examples/pbs_joblogin
51    examples/pbs_jobmonitor
52    examples/pbsmon.py
53    examples/pbsnodes-a.py
54    examples/pbs_version.py
55    examples/rack_pbsmon.py
56    examples/resmom_info.py
57    examples/sara_nodes.py
58    examples/set_property.py
59)
Note: See TracBrowser for help on using the repository browser.