source: trunk/configure.in @ 217

Last change on this file since 217 was 217, checked in by bas, 14 years ago

Only support installations that have pbs-config installed

File size: 853 bytes
Line 
1AC_INIT(src/pbs_2.4.py)
2AC_SUBST(prefix)
3AC_SUBST(exec_prefix)
4AC_SUBST(pyexecdir)
5
6
7pbsdir_default=''
8AC_ARG_WITH([pbsdir],
9 [  --with-pbsdir=PATH  The torque/pbs install directory],
10  pbsdir=$withval, pbsdir=$pbsdir_default)
11AC_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.
17AC_PATH_PROG(PBSCONFIG, pbs-config, none, $pbsdir:$pbsdir/bin:$pbsdir/../bin:$PATH)
18if test "$PBSCONFIG" != "none"; then
19  pbs_library_dir="`$PBSCONFIG --libs`"
20  pbs_version="`$PBSCONFIG --version`"
21else
22  AC_MSG_ERROR([Failed to find program pbs-config])
23fi
24AC_SUBST(pbs_library_dir)
25AC_SUBST(pbs_version)
26
27
28AM_PATH_PYTHON
29
30AC_OUTPUT(
31        Makefile
32        setup.py
33        )
Note: See TracBrowser for help on using the repository browser.