mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
Fix configure script to handle --prefix=
Reviewed-by: Carl Worth <cworth@cworth.org>: This is really the fundamental thing that people expect a configure script to do, so it's important to support it.
This commit is contained in:
parent
926c71e6b9
commit
2c2b31d536
1 changed files with 11 additions and 1 deletions
12
configure
vendored
12
configure
vendored
|
@ -3,6 +3,16 @@
|
|||
CC=${CC:-gcc}
|
||||
CXX=${CXX:-g++}
|
||||
|
||||
# defaults
|
||||
PREFIX=/usr/local
|
||||
|
||||
# option parsing
|
||||
for option; do
|
||||
if [ "${option%=*}" = '--prefix' ] ; then
|
||||
PREFIX="${option#*=}"
|
||||
fi
|
||||
done
|
||||
|
||||
cat <<EOF
|
||||
Welcome to Notmuch, a system for indexing, searching and tagging your email.
|
||||
|
||||
|
@ -186,7 +196,7 @@ CC = ${CC}
|
|||
CXX = ${CXX}
|
||||
|
||||
# The prefix to which notmuch should be installed
|
||||
prefix = /usr/local
|
||||
prefix = ${PREFIX}
|
||||
|
||||
# The directory to which emacs lisp files should be installed
|
||||
emacs_lispdir=${emacs_lispdir}
|
||||
|
|
Loading…
Reference in a new issue