Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
66656f76
Commit
66656f76
authored
5 years ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[configure] automatic uppercasing of configure_pkg arg
parent
a541cb19
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
share/configure.ac
+16
-15
16 additions, 15 deletions
share/configure.ac
src/plugins/server/configure.ac
+1
-1
1 addition, 1 deletion
src/plugins/server/configure.ac
with
17 additions
and
16 deletions
share/configure.ac
+
16
−
15
View file @
66656f76
...
...
@@ -212,22 +212,22 @@ m4_define([configure_library],
])
])
# 1st param: uppercase name of the ocamlfind package
# 2nd param: actual name of the ocamlfind package (often lowercase)
# 3rd param: warning to display if problem
# 1st param: actual name of the ocamlfind package (often lowercase)
# 2nd param: warning to display if problem
m4_define([configure_pkg],
[
m4_ifdef(HAS_OCAML_$1,,
define([PKG_UP],[tovarname($1)])
m4_ifdef([HAS_OCAML_]PKG_UP,,
[
define([VAR],[OCAML_
$1
])
define([require],[$REQUIRE_OCAML_
$1
])
define([use],[$USE_OCAML_
$1
])
define([msg],[$
3
])
define([has],[HAS_OCAML_
$1
])
define([VAR],[
[
OCAML_
]PKG_UP
])
define([require],[$
[
REQUIRE_OCAML_
]PKG_UP
])
define([use],[$
[
USE_OCAML_
]PKG_UP
])
define([msg],[$
2
])
define([has],[
[
HAS_OCAML_
]PKG_UP
])
has=
AC_MSG_CHECKING(for OCaml package $
2
)
VAR=$(ocamlfind query $
2
-format %v 2>/dev/null)
AC_MSG_CHECKING(for OCaml package $
1
)
VAR=$(ocamlfind query $
1
-format %v 2>/dev/null)
if test -z "$VAR" ; then
AC_MSG_RESULT(not found via ocamlfind.)
has=no
...
...
@@ -239,7 +239,7 @@ m4_ifdef(HAS_OCAML_$1,,
if test -n "require" -o -n "use" -o "$force_check" = "yes"; then
if test "$has" = "no"; then
AC_MSG_WARN([msg])
reason="$
2
missing"
reason="$
1
missing"
for p in require; do
up=`upper "$p"`
ep=ENABLE_$up
...
...
@@ -249,7 +249,7 @@ m4_ifdef(HAS_OCAML_$1,,
if eval test "\$$fp" = "yes"; then
AC_MSG_ERROR([$p requested but $reason.])
fi
eval $ep="no\ \(see\ warning\ about\ $
2
\)"
eval $ep="no\ \(see\ warning\ about\ $
1
\)"
AC_MSG_WARN([$p disabled because $reason.])
eval INFO_$up=\", $reason\"
fi
...
...
@@ -259,18 +259,19 @@ m4_ifdef(HAS_OCAML_$1,,
ep=ENABLE_$up
eval eep="\$$ep"
if test "`echo $eep | sed -e 's/ .*//' `" != "no"; then
eval $ep="partial\ \(see\ warning\ about\ $
2
\)"
eval $ep="partial\ \(see\ warning\ about\ $
1
\)"
AC_MSG_WARN([$p partially enabled because $reason.])
eval INFO_$up=\", $reason\"
fi
done
else
VAR=
$1
VAR=
PKG_UP
fi
fi
m4_divert_pop(frama_c_configure_tool)
AC_SUBST(VAR)
AC_SUBST(has)
undefine([PKG_UP])
undefine([VAR])
undefine([require])
undefine([use])
...
...
This diff is collapsed.
Click to expand it.
src/plugins/server/configure.ac
+
1
−
1
View file @
66656f76
...
...
@@ -50,7 +50,7 @@ AC_ARG_ENABLE(
if test "$SERVER_ZMQ" = "yes" ;
then
configure_pkg([
ZMQ],[
zmq],
configure_pkg([zmq],
[Server support for ZeroMQ disabled (try 'opam install zmq').])
plugin_use_pkg(server,zmq)
fi
...
...
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