Skip to content

Commit 0211a88

Browse files
committed
Make the configure script fail on command failures
1 parent bd9aad1 commit 0211a88

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

configure

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# ----------------------------------------------------------------------
44
#
55

6+
set -e
7+
68
# Some functions
79

810
#set -x
@@ -567,16 +569,16 @@ if ! check_library unix 'possible since 4.08' unix/unix.cmi unix.cmi; then
567569
exit 1
568570
fi
569571

570-
check_library dynlink '' dynlink/dynlink.cmi dynlink.cmi
571-
check_library bigarray 'possible since 4.08'
572-
check_library compiler-libs '' 'compiler-libs'
573-
check_library dbm 'normal since 4.00'
574-
check_library graphics 'normal since 4.09'
575-
check_library num 'normal since 4.06'
576-
check_library ocamlbuild 'normal since 4.03' ocamlbuild/ocamlbuildlib.cma
577-
check_library ocamldoc '' ocamldoc/odoc.cmi
578-
check_library raw_spacetime 'normal since 4.12' raw_spacetime_lib.cmxa
579-
check_library threads '' threads/thread.cmi vmthreads/thread.cmi;
572+
check_library dynlink '' dynlink/dynlink.cmi dynlink.cmi || true
573+
check_library bigarray 'possible since 4.08' || true
574+
check_library compiler-libs '' 'compiler-libs' || true
575+
check_library dbm 'normal since 4.00' || true
576+
check_library graphics 'normal since 4.09' || true
577+
check_library num 'normal since 4.06' || true
578+
check_library ocamlbuild 'normal since 4.03' ocamlbuild/ocamlbuildlib.cma || true
579+
check_library ocamldoc '' ocamldoc/odoc.cmi || true
580+
check_library raw_spacetime 'normal since 4.12' raw_spacetime_lib.cmxa || true
581+
check_library threads '' threads/thread.cmi vmthreads/thread.cmi || true
580582

581583
# Need to know if str and labltk are available for the toolbox
582584
if check_library str 'possible since 4.08' str/str.cmi str.cmi; then

0 commit comments

Comments
 (0)