diff --git a/configure b/configure
index 7cbb9d7dcc..b0d578232c 100755
--- a/configure
+++ b/configure
@@ -18,6 +18,7 @@
prefix='/usr/local'
bindir='$(PREFIX)/bin'
libdir='$(PREFIX)/lib/compcert'
+mandir='$(PREFIX)/share/man'
coqdevdir='$(PREFIX)/lib/compcert/coq'
toolprefix=''
target=''
@@ -85,6 +86,7 @@ Options:
-prefix
Install in /bin and /lib/compcert
-bindir Install binaries in
-libdir Install libraries in
+ -mandir Install man pages in
-coqdevdir Install Coq development (.vo files) in
-toolprefix Prefix names of tools ("gcc", etc) with
-use-external-Flocq Use an already-installed Flocq library
@@ -114,6 +116,8 @@ while : ; do
bindir="$2"; shift;;
-libdir|--libdir)
libdir="$2"; shift;;
+ -mandir|--mandir)
+ mandir="$2"; shift;;
-coqdevdir|--coqdevdir)
coqdevdir="$2"; install_coqdev=true; shift;;
-toolprefix|--toolprefix)
@@ -614,7 +618,7 @@ cat > Makefile.config <