Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
margo
Commits
7c5bd1b4
Commit
7c5bd1b4
authored
Sep 01, 2017
by
Shane Snyder
Browse files
add abt-snoozer configure enable/disable switch
parent
710203bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
7c5bd1b4
...
@@ -73,16 +73,34 @@ CPPFLAGS="$ARGOBOTS_CFLAGS $CPPFLAGS"
...
@@ -73,16 +73,34 @@ CPPFLAGS="$ARGOBOTS_CFLAGS $CPPFLAGS"
CFLAGS="$ARGOBOTS_CFLAGS $CFLAGS"
CFLAGS="$ARGOBOTS_CFLAGS $CFLAGS"
PC_REQUIRES="mercury argobots"
PC_REQUIRES="mercury argobots"
PKG_CHECK_MODULES([ABT_SNOOZER],[abt-snoozer],
[
check_abt_snoozer=auto
AC_DEFINE([HAVE_ABT_SNOOZER], [1], [Use ABT-SNOOZER])
AC_ARG_ENABLE([abt-snoozer],
PC_REQUIRES="$PC_REQUIRES abt-snoozer"
[ --enable-abt-snoozer enable abt-snoozer (default: dynamic check)],
],
[ case "${enableval}" in
[printf ""])
yes) check_abt_snoozer=yes ;;
LIBS="$ABT_SNOOZER_LIBS $LIBS"
no) check_abt_snoozer=no ;;
CPPFLAGS="$ABT_SNOOZER_CFLAGS $CPPFLAGS"
*) AC_MSG_ERROR([bad value ${enableval} for --enable-abt-snoozer]) ;;
CFLAGS="$ABT_SNOOZER_CFLAGS $CFLAGS"
esac],
AC_SUBST([PC_REQUIRES], ["$PC_REQUIRES"])
[])
check_abt_snoozer_status=fail
if test "x${check_abt_snoozer}" = xauto -o "x${check_abt_snoozer}" = xyes ; then
dnl AC_MSG_CHECKING([If abt-snoozer is installed])
PKG_CHECK_MODULES([ABT_SNOOZER],[abt-snoozer],
[AC_DEFINE([HAVE_ABT_SNOOZER], [1], [Use ABT-SNOOZER])
PC_REQUIRES="$PC_REQUIRES abt-snoozer"
LIBS="$ABT_SNOOZER_LIBS $LIBS"
CPPFLAGS="$ABT_SNOOZER_CFLAGS $CPPFLAGS"
CFLAGS="$ABT_SNOOZER_CFLAGS $CFLAGS"
AC_SUBST([PC_REQUIRES], ["$PC_REQUIRES"])
check_abt_snoozer_status=success],
[printf ""])
fi
if test "x${check_abt_snoozer_status}" = xfail -a "x${check_abt_snoozer}" = xyes; then
AC_MSG_ERROR([Could not find working abt-snoozer installation!])
fi
# turn off a warning that is tripping up our use of utlist at the moment
# turn off a warning that is tripping up our use of utlist at the moment
CFLAGS="-Wno-address $CFLAGS"
CFLAGS="-Wno-address $CFLAGS"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment