From 74cb9f996e6221f664f8a8b7b984c7a92e19bdf2 Mon Sep 17 00:00:00 2001 From: herbelin Date: Wed, 5 Sep 2012 12:32:51 +0000 Subject: A few fixes in configure file: - Fixing parsing of option -custom - More precise documentation of which option expects an argument - Deprecation of obviously obsolete -emacs option git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15773 85f007b7-540e-0410-9357-904b9bb8a0f7 --- configure | 47 ++++++++++++++++------------------------------- 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/configure b/configure index fe43465efa..f8ac8e99e5 100755 --- a/configure +++ b/configure @@ -35,35 +35,34 @@ usage () { printf "\tSet installation directory to \n" echo "-local" printf "\tSet installation directory to the current source tree\n" - echo "-coqrunbyteflags" + echo "-coqrunbyteflags " printf "\tSet link flags for VM-dependent bytecode (coqtop)\n" - echo "-coqtoolsbyteflags" + echo "-coqtoolsbyteflags " printf "\tSet link flags for VM-independant bytecode (coqdep, coqdoc, ...)\n" echo "-custom" printf "\tGenerate all bytecode executables with -custom (not recommended)\n" - echo "-bindir" - echo "-libdir" - echo "-configdir" - echo "-datadir" - echo "-mandir" - echo "-docdir" + echo "-bindir " + echo "-libdir " + echo "-configdir " + echo "-datadir " + echo "-mandir " + echo "-docdir " printf "\tSpecifies where to install bin/lib/config/data/man/doc files resp.\n" - echo "-emacslib" - echo "-emacs" + echo "-emacslib " printf "\tSpecifies where emacs files are to be installed\n" - echo "-coqdocdir" + echo "-coqdocdir " printf "\tSpecifies where Coqdoc style files are to be installed\n" - echo "-camldir" + echo "-camldir " printf "\tSpecifies the path to the OCaml library\n" - echo "-lablgtkdir" + echo "-lablgtkdir " printf "\tSpecifies the path to the Lablgtk library\n" echo "-usecamlp5" printf "\tSpecifies to use camlp5 instead of camlp4\n" echo "-usecamlp4" printf "\tSpecifies to use camlp4 instead of camlp5\n" - echo "-camlp5dir" + echo "-camlp5dir " printf "\tSpecifies where to look for the Camlp5 library and tells to use it\n" - echo "-arch" + echo "-arch " printf "\tSpecifies the architecture\n" echo "-opt" printf "\tSpecifies whether or not to use OCaml *.opt optimized compilers\n" @@ -161,8 +160,7 @@ while : ; do -coqtoolsbyteflags|--coqtoolsbyteflags) coqtoolsbyteflags_spec=yes coqtoolsbyteflags="$2" shift;; - -custom|--custom) custom_spec=yes - shift;; + -custom|--custom) custom_spec=yes;; -bindir|--bindir) bindir_spec=yes bindir="$2" shift;; @@ -186,6 +184,7 @@ while : ; do shift;; -emacs |--emacs) emacs_spec=yes emacs="$2" + printf "Warning: obsolete -emacs option\n" shift;; -coqdocdir|--coqdocdir) coqdocdir_spec=yes coqdocdir="$2" @@ -742,8 +741,6 @@ case $ARCH$CYGWIN in coqdocdir_def=/usr/local/share/texmf/tex/latex/misc;; esac -emacs_def=emacs - askdir () { printf "Where should I install $1 [%s]? " $2 read answer @@ -845,18 +842,6 @@ case $coqtoolsbyteflags_spec/$custom_spec/$CUSTOM_OS in *) COQTOOLSBYTEFLAGS="";; esac -# case $emacs_spec in -# no) printf "Which Emacs command should I use to compile coq.el [%s]? " "$emacs_def" -# read EMACS - -# case $EMACS in -# "") EMACS="$emacs_def";; -# *) true;; -# esac;; -# yes) EMACS="$emacs";; -# esac - - ########################################### # Summary of the configuration -- cgit v1.2.3