Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
b090201e
Commit
b090201e
authored
22 years ago
by
Mark Grondona
Browse files
Options
Downloads
Patches
Plain Diff
o added --with-elan option for compiling in elan support
o added tests for functional rms and elan3 libs
parent
780aa5ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configure.ac
+39
-12
39 additions, 12 deletions
configure.ac
with
39 additions
and
12 deletions
configure.ac
+
39
−
12
View file @
b090201e
# This file is to be processed with autoconf to generate a configure script
# This file is to be processed with autoconf to generate a configure script
# XXX generate PROJECT and VERSION automatically at some point
# XXX generate PROJECT and VERSION automatically at some point
AC_INIT([slurm],
[0.1])
AC_INIT([slurm],[0.1])
# AC_PREREQ(2.5
0
)
# AC_PREREQ(2.5
2
)
AC_CONFIG_SRCDIR([src/common/slurm.h])
AC_CONFIG_SRCDIR([src/common/slurm.h])
AC_CONFIG_AUX_DIR(auxdir)
AC_CONFIG_AUX_DIR(auxdir)
AC_CANONICAL_HOST
AC_CANONICAL_TARGET([])
AC_CANONICAL_SYSTEM
# determine project/version
# determine project/version
# PROJECT="slurm"
# PROJECT="slurm"
...
@@ -33,30 +32,58 @@ AC_ARG_ENABLE(debug,
...
@@ -33,30 +32,58 @@ AC_ARG_ENABLE(debug,
)
)
AC_MSG_RESULT(${debug=no})
AC_MSG_RESULT(${debug=no})
if test "x$debug" = "xtrue"; then
if test "x$debug" = "xtrue"; then
CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith
-Wstrict-prototypes
}"
CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith}"
AC_DEFINE(DEBUG_SYSTEM, 1, [Define for extra debug messages.])
AC_DEFINE(DEBUG_SYSTEM, 1, [Define for extra debug messages.])
else
else
CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith
-Wstrict-prototypes
}"
CFLAGS="${CFLAGS--g -O2 -Wall -Wpointer-arith}"
fi
fi
AM_CONDITIONAL(DEBUG_MODULES, test "x$debug" = "xtrue")
AM_CONDITIONAL(DEBUG_MODULES, test "x$debug" = "xtrue")
#
# check for whether to include Elan support:
AC_MSG_CHECKING(whether to include Elan support)
AC_ARG_WITH(elan,
AC_HELP_STRING([--with-elan],[compile with Elan support]),
[ case "${withval}" in
yes) elan=yes ;;
no) elan=no ;;
*) AC_MSG_ERROR([bad value ${enableval} for --with-elan]) ;;
esac
]
)
AC_MSG_RESULT(${elan=no})
AM_CONDITIONAL(WITH_ELAN, test "x$with_elan" = "xyes")
dnl Checks for programs.
dnl Checks for programs.
AC_PROG_CC
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_RANLIB
dnl Checks for libraries
dnl Checks for libraries
if test $with_elan; then
AC_CHECK_LIB(rms, rms_prgcreate,
[],
[AC_MSG_ERROR([unable to find the RMS library needed for Elan support.])],
"-lelan3"
)
AC_CHECK_LIB(elan3, elan3_create,
[],
[AC_MSG_ERROR([unable to find the Elan3 library needed for Elan support])],
)
fi
dnl Checks for header files.
dnl Checks for header files.
AC_CHECK_HEADERS(popt.h mcheck.h unistd.h)
AC_CHECK_HEADERS(popt.h mcheck.h values.h)
AC_CHECK_HEADERS(strings.h values.h)
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
dnl Checks for types.
AC_PROG_GCC_TRADITIONAL([])
dnl Checks for structures.
dnl Checks for structures.
dnl Checks for types.
dnl Checks for compiler characteristics.
dnl Checks for compiler characteristics.
AC_PROG_GCC_TRADITIONAL([])
dnl checks for library functions.
dnl checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MALLOC
...
@@ -92,9 +119,9 @@ AC_CONFIG_FILES([Makefile
...
@@ -92,9 +119,9 @@ AC_CONFIG_FILES([Makefile
src/slurmd/Makefile
src/slurmd/Makefile
src/slurmctld/Makefile
src/slurmctld/Makefile
src/scontrol/Makefile
src/scontrol/Makefile
src/test/Makefile
]
]
)
)
AC_OUTPUT
AC_OUTPUT
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment