Skip to content

Commit

Permalink
discover: look also for plplotd
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
  • Loading branch information
mseri committed Mar 5, 2020
1 parent 134cc90 commit 951a847
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions configure/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,22 @@ let () =
| None -> default
| Some p -> begin
match C.Pkg_config.query ~package:"plplot" p with
|None -> default
|Some conf -> conf
end
| None -> begin
match C.Pkg_config.query ~package:"plplotd" p with
| None -> default
| Some conf -> conf
end
| Some conf -> conf
end
in
if not
@@ C.c_test
c
plplot_test
~c_flags:conf.cflags
~link_flags:conf.libs
@@ C.c_test
c
plplot_test
~c_flags:conf.cflags
~link_flags:conf.libs
then
failwith "No valid installation of plplot or plplotd found."
else
C.Flags.write_sexp "c_flags.sexp" conf.cflags;
C.Flags.write_sexp "c_library_flags.sexp" conf.libs)
C.Flags.write_sexp "c_library_flags.sexp" conf.libs)

0 comments on commit 951a847

Please sign in to comment.