diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -46,6 +46,8 @@ Installation directories: default: /usr/local --bindir=BINDIR install scripts in BINDIR default: PREFIX/bin + --libdir=LIBDIR install library scripts in LIBDIR + default: PREFIX/lib --mandir=MANDIR install manual pages in MANDIR default: PREFIX/share/man EOF @@ -57,7 +59,7 @@ print_version() ${PACKAGE} ${VERSION} configure Not generated by GNU Autoconf -Copyright (C) 2012 Patrick "P. J." McDermott +Copyright (C) 2011-2012 Patrick "P. J." McDermott License: GNU GPL version 3 or later <http://www.gnu.org/licenses/gpl.html>. This configure script is free software: you can redistribute and/or modify it. There is NO WARRANTY, to the extent permitted by law. @@ -65,7 +67,7 @@ EOF } opts=$(getopt -n "${0}" -o 'hVq' -l 'help,version,quiet' \ - -l 'srcdir:,prefix:,bindir:' -- "${@}") + -l 'srcdir:,prefix:,bindir:,libdir:,mandir:' -- "${@}") if [ ${?} -ne 0 ]; then print_usage "${0}" >&2 exit 1; @@ -98,6 +100,11 @@ while true; do BINDIR="\${PREFIX}/${2}" shift 2 ;; + --libdir) + # Leave PREFIX unexpanded for now, in case it isn't set yet. + LIBDIR="\${PREFIX}/${2}" + shift 2 + ;; --mandir) # Leave PREFIX unexpanded for now, in case it isn't set yet. MANDIR="\${PREFIX}/${2}" @@ -127,11 +134,15 @@ fi if [ -z "${BINDIR}" ]; then BINDIR=${PREFIX}/bin fi +if [ -z "${LIBDIR}" ]; then + LIBDIR=${PREFIX}/lib +fi if [ -z "${MANDIR}" ]; then MANDIR=${PREFIX}/man fi # Expand PREFIX if it's there. eval "BINDIR=${BINDIR}" +eval "LIBDIR=${LIBDIR}" eval "MANDIR=${MANDIR}" find_dependency() @@ -173,6 +184,7 @@ s&@install@&${INSTALL} -c& s&@srcdir@&${SRCDIR}& s&@prefix@&${PREFIX}& s&@bindir@&${BINDIR}& +s&@libdir@&${LIBDIR}& s&@mandir@&${MANDIR}&" # Replace configuration variables in Makefile.in |