CXX=${CXX:-g++}
CFLAGS=${CFLAGS:--O2}
CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
+LDFLAGS=${LDFLAGS:-}
XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config-1.1 xapian-config}
# We don't allow the EMACS or GZIP Makefile variables inherit values
configure-script calling conventions, but don't do anything yet:
--build=<cpu>-<vendor>-<os> Currently ignored
+ --host=<cpu>-<vendor>-<os> Currently ignored
--infodir=DIR Currently ignored
+ --datadir=DIR Currently ignored
--localstatedir=DIR Currently ignored
--libexecdir=DIR Currently ignored
--disable-maintainer-mode Currently ignored
build_option=${build_option#*-}
build_vendor=${build_option%%-*}
build_os=${build_option#*-}
+ elif [ "${option%%=*}" = '--host' ] ; then
+ host_option="${option#*=}"
+ case ${host_option} in
+ *-*-*) ;;
+ *)
+ echo "Unrecognized value for --host option: ${host_option}"
+ echo "Should be: <cpu>-<vendor>-<os>"
+ echo "See:"
+ echo " $0 --help"
+ echo ""
+ exit 1
+ esac
+ host_cpu=${host_option%%-*}
+ host_option=${host_option#*-}
+ host_vendor=${host_option%%-*}
+ host_os=${host_option#*-}
elif [ "${option%%=*}" = '--infodir' ] ; then
true
+ elif [ "${option%%=*}" = '--datadir' ] ; then
+ true
elif [ "${option%%=*}" = '--localstatedir' ] ; then
true
elif [ "${option%%=*}" = '--libexecdir' ] ; then
# Default FLAGS for C++ compiler (can be overridden by user such as "make CXXFLAGS=-g")
CXXFLAGS = ${CXXFLAGS}
+# Default FLAGS for the linker (can be overridden by user such as "make LDFLAGS=-znow")
+LDFLAGS = ${LDFLAGS}
+
# Flags to enable warnings when using the C++ compiler
WARN_CXXFLAGS=-Wall -Wextra -Wwrite-strings -Wswitch-enum