#!/bin/sh # # Do not edit! # This file was generated from configure.in by BSDbuild %VERSION%. # # To regenerate this file, get the latest BSDbuild release from # http://hypertriton.com/bsdbuild/, and use the command: # # $ cat configure.in | mkconfigure > configure # # Copyright (c) 2001-2007 Hypertriton, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE # USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # optarg= for arg do case "$arg" in -*=*) optarg=`echo "$arg" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; esac case "$arg" in --prefix=*) prefix=$optarg ;; --sysconfdir=*) sysconfdir=$optarg ;; --sharedir=*) sharedir=$optarg ;; --localedir=*) localedir=$optarg ;; --enable-*) option=`echo $arg | sed -e 's/--enable-//' -e 's/=.*//'` option=`echo $option | sed 's/-/_/g'` case "$arg" in *=*) eval "enable_${option}='$optarg'" ;; *) eval "enable_${option}=yes" ;; esac ;; --disable-*) option=`echo $arg | sed -e 's/--disable-//'`; option=`echo $option | sed 's/-/_/g'` eval "enable_${option}=no" ;; --with-*) option=`echo $arg | sed -e 's/--with-//' -e 's/=.*//'` option=`echo $option | sed 's/-/_/g'` case "$arg" in *=*) eval "with_${option}='$optarg'" ;; *) eval "with_${option}=yes" ;; esac ;; --without-*) option=`echo $arg | sed -e 's/--without-//'`; option=`echo $option | sed 's/-/_/g'` eval "with_${option}=no" ;; --help) help=yes ;; --srcdir=*) srcdir=$optarg ;; *) echo "invalid argument: $arg" echo "try ./configure --help" exit 1 ;; esac done if [ "${prefix}" != "" ]; then PREFIX="$prefix" else PREFIX="/usr/local" fi if [ "${srcdir}" != "" ]; then echo "concurrent build (source in ${srcdir})" SRC=${srcdir} perl ${SRC}/mk/mkconcurrent.pl ${SRC} if [ $? != 0 ]; then exit 1; fi else SRC=`pwd` fi if [ "${help}" = "yes" ]; then echo "Usage: ./configure [args]" echo " --prefix Installation prefix [/usr/local]" echo " --sysconfdir System-wide configuration prefix [/etc]" echo " --sharedir Share prefix [$PREFIX/share]" echo " --localedir Locale prefix [$PREFIX/share/locale]" echo " --srcdir Source tree for concurrent build [.]" echo " --help Display this message" echo " --enable-nls Native Language Support [no]" echo " --with-gettext Use gettext tools (msgmerge, ...) [check]" echo " --with-libtool Specify path to libtool [check]" echo " --with-manpages Manual pages (-mdoc) [yes]" echo " --with-docs Printable docs (-me/tbl/eqn/pic/refer) [no]" echo " --enable-debug Include debugging code [no]" exit 1 fi MACHINE=`uname -m 2>/dev/null` || MACHINE=unknown OSRELEASE=`uname -r 2>/dev/null` || OSRELEASE=unknown SYSTEM=`uname -s 2>/dev/null` || SYSTEM=unknown HOST="$SYSTEM-$OSRELEASE-$MACHINE" echo "Host: $HOST" echo "# File generated by configure script (BSDbuild %VERSION%)." > Makefile.config echo "Machine: $MACHINE" > config.log echo "Release: $OSRELEASE" >> config.log echo "System: $SYSTEM" >> config.log for arg do echo "Argument: $arg" >> config.log done mkdir config 1>/dev/null 2>&1 HAVE_MANDOC="no" NROFF="" for path in `echo $PATH | sed 's/:/ /g'`; do if [ -x "${path}/nroff" ]; then NROFF="${path}/nroff" fi done if [ "${NROFF}" != "" ]; then echo | ${NROFF} -Tmandoc >/dev/null if [ $? == 0 ]; then HAVE_MANDOC="yes" fi fi if [ "${HAVE_MANDOC}" = "no" ]; then if [ "${with_manpages}" = "yes" ]; then echo "*" echo "* --with-manpages requested, but nroff/mandoc not found." echo "*" exit 1 fi echo "HAVE_MANDOC=no" >> Makefile.config echo "NOMAN=yes" >> Makefile.config echo "NOMANLINKS=yes" >> Makefile.config else echo "HAVE_MANDOC=yes" >> Makefile.config if [ "${with_manpages}" = "no" ]; then echo "NOMAN=yes" >> Makefile.config echo "NOMANLINKS=yes" >> Makefile.config fi fi if [ "${with_docs}" = "no" ]; then echo "NODOC=yes" >> Makefile.config fi if [ "${enable_debug}" = "yes" ]; then echo "LDFLAGS+=-g" >> Makefile.config echo "#ifndef DEBUG" > config/debug.h echo "#define DEBUG 1" >> config/debug.h echo "#endif /* DEBUG */" >> config/debug.h else echo "#undef DEBUG" > config/debug.h fi if [ "${enable_nls}" = "yes" ]; then ENABLE_NLS="yes" echo "#ifndef ENABLE_NLS" > config/enable_nls.h echo "#define ENABLE_NLS 1" >> config/enable_nls.h echo "#endif /* ENABLE_NLS */" >> config/enable_nls.h msgfmt="" for path in `echo $PATH | sed 's/:/ /g'`; do if [ -x "${path}/msgfmt" ]; then msgfmt=${path}/msgfmt fi done if [ "${msgfmt}" != "" ]; then HAVE_GETTEXT="yes" else HAVE_GETTEXT="no" fi else ENABLE_NLS="no" HAVE_GETTEXT="no" echo "#undef ENABLE_NLS" > config/enable_nls.h fi echo "ENABLE_NLS=${ENABLE_NLS}" >> Makefile.config echo "HAVE_GETTEXT=${HAVE_GETTEXT}" >> Makefile.config if [ "${with_libtool}" != "" ]; then echo "LIBTOOL=${with_libtool}" >> Makefile.config else ltool="" for path in `echo $PATH | sed 's/:/ /g'`; do if [ -x "${path}/libtool" ]; then ltool=${path}/libtool fi done if [ "${ltool}" != "" ]; then echo "LIBTOOL=${ltool}" >> Makefile.config else echo "Warning: libtool not found on system, using bundled copy" echo "LIBTOOL=\${TOP}/mk/libtool/libtool" >> Makefile.config fi fi echo "PREFIX?=${PREFIX}" >> Makefile.config echo "#ifndef PREFIX" > config/prefix.h echo "#define PREFIX \"${PREFIX}\"" >> config/prefix.h echo "#endif /* PREFIX */" >> config/prefix.h if [ "${sharedir}" != "" ]; then echo "SHAREDIR=${sharedir}" >> Makefile.config echo "#ifndef SHAREDIR" > config/sharedir.h echo "#define SHAREDIR \"${sharedir}\"" >> config/sharedir.h echo "#endif /* SHAREDIR */" >> config/sharedir.h SHAREDIR="${sharedir}" else echo "SHAREDIR=\${PREFIX}/share" >> Makefile.config echo "#ifndef SHAREDIR" > config/sharedir.h echo "#define SHAREDIR \"${SHAREDIR}\"" >> config/sharedir.h echo "#endif /* SHAREDIR */" >> config/sharedir.h SHAREDIR="${PREFIX}/share" fi if [ "${localedir}" != "" ]; then LOCALEDIR="${localedir}" echo "LOCALEDIR=${LOCALEDIR}" >> Makefile.config echo "#ifndef LOCALEDIR" > config/localedir.h echo "#define LOCALEDIR \"${LOCALEDIR}\"" >> config/localedir.h echo "#endif /* LOCALEDIR */" >> config/localedir.h else LOCALEDIR="${SHAREDIR}/locale" echo "LOCALEDIR=\${SHAREDIR}/locale" >> Makefile.config echo "#ifndef LOCALEDIR" > config/localedir.h echo "#define LOCALEDIR \"${LOCALEDIR}\"" >> config/localedir.h echo "#endif /* LOCALEDIR */" >> config/localedir.h fi if [ "${sysconfdir}" != "" ]; then SYSCONFDIR="${sysconfdir}" echo "SYSCONFDIR=${sysconfdir}" >> Makefile.config echo "#ifndef SYSCONFDIR" > config/sysconfdir.h echo "#define SYSCONFDIR \"${SYSCONFDIR}\"" >> config/sysconfdir.h echo "#endif /* SYSCONFDIR */" >> config/sysconfdir.h else SYSCONFDIR="${PREFIX}/etc" echo "SYSCONFDIR=\${PREFIX}/etc" >> Makefile.config echo "#ifndef SYSCONFDIR" > config/sysconfdir.h echo "#define SYSCONFDIR \"${SYSCONFDIR}\"" >> config/sysconfdir.h echo "#endif /* SYSCONFDIR */" >> config/sysconfdir.h fi SHAREDIR="$PREFIX/share/bsdbuild" echo "SHAREDIR=$SHAREDIR" >> Makefile.config VERSION="2.2" echo "VERSION=$VERSION" >> Makefile.config RELEASE="Descent into Darkness" echo "RELEASE=$RELEASE" >> Makefile.config echo "Don't forget to run \"make depend\"." echo "Don't forget to run \"make depend\"." >> config.log