#!/bin/sh
# config.sh.  Generated from config.sh.in by configure.
###############################################################################
# BRLTTY - A background process providing access to the console screen (when in
#          text mode) for a blind person using a refreshable braille display.
#
# Copyright (C) 1995-2015 by The BRLTTY Developers.
#
# BRLTTY comes with ABSOLUTELY NO WARRANTY.
#
# This is free software, placed under the terms of the
# GNU General Public License, as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any
# later version. Please see the file LICENSE-GPL for details.
#
# Web Page: http://brltty.com/
#
# This software is maintained by Dave Mielke <dave@mielke.cc>.
###############################################################################

brlttyAssignVariable() {
   eval "${1}"'="${2}"'
}

brlttyDefineVariable() {
   local name="${1}"
   local value="${2}"

   while true
   do
      eval local 'new="'${value}'"'
      [ "${new}" != "${value}" ] || break
      value="${new}"
   done

   brlttyAssignVariable "${name}" "${value}"
}

brlttyDefineVariables() {
   local prefix='/usr'
   local sysconfdir='/etc'
   local datarootdir='${prefix}/share'
   local datadir='${datarootdir}'
   local sharedstatedir='${prefix}/com'
   local localstatedir='/var'
   local includedir='${prefix}/include'
   local oldincludedir='/usr/include'

   local exec_prefix='${prefix}'
   local bindir='/bin'
   local sbindir='/sbin'
   local libdir='/lib'
   local libexecdir='${exec_prefix}/libexec'

   local localedir='${datarootdir}/locale'
   local mandir='/usr/man'
   local docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
   local infodir='/usr/info'
   local htmldir='${docdir}'
   local pdfdir='${docdir}'
   local psdir='${docdir}'
   local dvidir='${docdir}'

   local PACKAGE_TARNAME='brltty'
   local PACKAGE_NAME='BRLTTY'
   local PACKAGE_VERSION='5.3.1'
   local PACKAGE_URL='http://brltty.com/'
   local PACKAGE_BUGREPORT='brltty@mielke.cc'

   local execute_root=''
   local program_directory='/bin'
   local drivers_directory='/lib/brltty'
   local tables_directory='/etc/brltty'
   local manpage_directory='/usr/man'
   local include_directory='${prefix}/include/brltty'

   local api_version='0.6'
   local api_release='0.6.4'
   local api_authkeyfile='brlapi.key'

   brlttyDefineVariable BRLTTY_PREFIX "${prefix}"
   brlttyDefineVariable BRLTTY_SYSCONFDIR "${sysconfdir}"
   brlttyDefineVariable BRLTTY_DATAROOTDIR "${datarootdir}"
   brlttyDefineVariable BRLTTY_DATADIR "${datadir}"
   brlttyDefineVariable BRLTTY_SHAREDSTATEDIR "${sharedstatedir}"
   brlttyDefineVariable BRLTTY_LOCALSTATEDIR "${localstatedir}"
   brlttyDefineVariable BRLTTY_INCLUDEDIR "${includedir}"
   brlttyDefineVariable BRLTTY_OLDINCLUDEDIR "${oldincludedir}"

   brlttyDefineVariable BRLTTY_EXEC_PREFIX "${exec_prefix}"
   brlttyDefineVariable BRLTTY_BINDIR "${bindir}"
   brlttyDefineVariable BRLTTY_SBINDIR "${sbindir}"
   brlttyDefineVariable BRLTTY_LIBDIR "${libdir}"
   brlttyDefineVariable BRLTTY_LIBEXECDIR "${libexecdir}"

   brlttyDefineVariable BRLTTY_LOCALEDIR "${localedir}"
   brlttyDefineVariable BRLTTY_MANDIR "${mandir}"
   brlttyDefineVariable BRLTTY_INFODIR "${infodir}"
   brlttyDefineVariable BRLTTY_DOCDIR "${docdir}"
   brlttyDefineVariable BRLTTY_HTMLDIR "${htmldir}"
   brlttyDefineVariable BRLTTY_PDFDIR "${pdfdir}"
   brlttyDefineVariable BRLTTY_PSDIR "${psdir}"
   brlttyDefineVariable BRLTTY_DVIDIR "${dvidir}"

   brlttyDefineVariable BRLTTY_TARNAME "${PACKAGE_TARNAME}"
   brlttyDefineVariable BRLTTY_NAME "${PACKAGE_NAME}"
   brlttyDefineVariable BRLTTY_VERSION "${PACKAGE_VERSION}"
   brlttyDefineVariable BRLTTY_URL "${PACKAGE_URL}"
   brlttyDefineVariable BRLTTY_BUGREPORT "${PACKAGE_BUGREPORT}"

   brlttyDefineVariable BRLTTY_ROOT "${execute_root}"
   brlttyDefineVariable BRLTTY_PROGRAMS_DIRECTORY "${program_directory}"
   brlttyDefineVariable BRLTTY_DRIVERS_DIRECTORY "${drivers_directory}"
   brlttyDefineVariable BRLTTY_TABLES_DIRECTORY "${tables_directory}"
   brlttyDefineVariable BRLTTY_MANPAGE_DIRECTORY "${manpage_directory}"
   brlttyDefineVariable BRLTTY_INCLUDE_DIRECTORY "${include_directory}"

   brlttyDefineVariable BRLAPI_VERSION "${api_version}"
   brlttyDefineVariable BRLAPI_RELEASE "${api_release}"
   brlttyDefineVariable BRLAPI_AUTHKEYFILE "${api_authkeyfile}"
}

brlttyDefineVariables
