Skip to content

Commit 951a847

Browse files
committed
discover: look also for plplotd
Signed-off-by: Marcello Seri <marcello.seri@gmail.com>
1 parent 134cc90 commit 951a847

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

configure/discover.ml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ let () =
1818
| None -> default
1919
| Some p -> begin
2020
match C.Pkg_config.query ~package:"plplot" p with
21-
|None -> default
22-
|Some conf -> conf
23-
end
21+
| None -> begin
22+
match C.Pkg_config.query ~package:"plplotd" p with
23+
| None -> default
24+
| Some conf -> conf
25+
end
26+
| Some conf -> conf
27+
end
2428
in
2529
if not
26-
@@ C.c_test
27-
c
28-
plplot_test
29-
~c_flags:conf.cflags
30-
~link_flags:conf.libs
30+
@@ C.c_test
31+
c
32+
plplot_test
33+
~c_flags:conf.cflags
34+
~link_flags:conf.libs
3135
then
3236
failwith "No valid installation of plplot or plplotd found."
3337
else
3438
C.Flags.write_sexp "c_flags.sexp" conf.cflags;
35-
C.Flags.write_sexp "c_library_flags.sexp" conf.libs)
39+
C.Flags.write_sexp "c_library_flags.sexp" conf.libs)

0 commit comments

Comments
 (0)