Home My Page Projects Code Snippets Project Openings 3D graphics for Standard ML
Summary Activity SCM

SCM Repository

[sml3d] View of /trunk/doc/configure.ac
ViewVC logotype

View of /trunk/doc/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1432 - (download) (annotate)
Fri Apr 25 15:51:26 2014 UTC (4 years, 3 months ago) by jhr
File size: 2827 byte(s)
  working on documentation for the OpenAL library
dnl Process this file with autoconf to produce a configure script.
dnl
dnl COPYRIGHT (c) 2014 The SML3d Project (http://sml3d.cs.uchicago.edu)
dnl All rights reserved.
dnl
dnl This the configuration script for autoconf version 2.60+.  The
dnl file configure.in is for older versions.

AC_INIT(sml3d-doc,0.1,sml3d@mailman.cs.uchicago.edu)

AC_PREREQ(2.60)
AC_COPYRIGHT([[COPYRIGHT (c) 2014 The SML3d Project (http://sml3d.cs.uchicago.edu)]])
AC_CONFIG_SRCDIR(src/web/index.txt)
AC_CONFIG_AUX_DIR(config)
AC_CONFIG_MACRO_DIR(config)
 
dnl
dnl get host information
dnl
AC_CANONICAL_HOST

dnl check for standard programs
dnl
AC_PROG_INSTALL
AC_PROG_MAKE_SET

dnl
dnl directory paths
dnl
case "$host_os" in
  mingw32)
    ROOT_DIR=`pwd -W`
    EXE_SUFFIX=".exe"
  ;;
  *)
    ROOT_DIR=`pwd`
    EXE_SUFFIX=""
  ;;
esac
SRC_DIR=$ROOT_DIR/src
MK_DIR=$ROOT_DIR/mk
SRC_CONFIG_DIR=$SRC_DIR/config
SRC_STYLES_DIR=$SRC_DIR/styles

AC_SUBST(ROOT_DIR)
AC_SUBST(SRC_DIR)
AC_SUBST(MK_DIR)
AC_SUBST(SRC_CONFIG_DIR)
AC_SUBST(SRC_STYLES_DIR)
AC_SUBST(EXE_SUFFIX)

dnl a path to search for executables
dnl
EXE_PATH=$PATH$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin

dnl
dnl If we are on Mac OS X, check for the presence of macports and/or fink
dnl
NEEDS_MACPORTS=no
NEEDS_FINK=no
case "$host_os" in
  darwin*) # On Mac OS X we check for installed frameworks
    if test -x /opt/local/bin/port ; then
      HAS_MACPORTS=yes
      EXE_PATH=$EXE_PATH$PATH_SEPARATOR/opt/local/bin
    else
      HAS_MACPORTS=no
    fi
    if test -x /sw/bin/fink ; then
      HAS_FINK=yes
      EXE_PATH=$EXE_PATH$PATH_SEPARATOR/sw/bin
    else
      HAS_FINK=no
    fi
  ;;
esac


dnl
dnl ******************** check for documentation tools ********************
dnl
AC_PATH_PROGS([ASCIIDOC], [asciidoc], [none])
AC_PATH_PROGS([HIGHLIGHTER], [pygmentize], [none])
AC_PATH_PROGS([DBLATEX], [dblatex], [none])

dnl
dnl error check for availability of tools
dnl
if test x"$ASCIIDOC" = xnone ; then
  AC_MSG_ERROR([documentation generation requires asciidoc])
fi
if test x"$HIGHLIGHTER" = xnone ; then
  AC_MSG_ERROR([documentation generation requires a source highlighter tool])
fi

dnl
dnl get the path to the asciidoc cofiguration files
dnl
if test x"$ASCIIDOC" != xnone ; then
  AC_MSG_CHECKING([path to asciidoc configuration files])
  ASCIIDOC_CONF_DIR=`$ASCIIDOC -v /dev/null 2>&1 | head -n 1 | sed 's|.*reading: \(.*\)/asciidoc.conf|\1|'`
  AC_MSG_RESULT([$ASCIIDOC_CONF_DIR])
fi
AC_SUBST(ASCIIDOC)
AC_SUBST(ASCIIDOC_CONF_DIR)
AC_SUBST(HIGHLIGHTER)
AC_SUBST(DBLATEX)


dnl
dnl ******************** write output ********************
dnl
AC_CONFIG_FILES(
dnl ***** Makefiles *****
  mk/doc-rules.gmk:config/doc-rules_gmk.in
  src/Makefile
  src/glfw/Makefile
  src/openal/Makefile
  src/raw-data/Makefile
  src/sml3d/Makefile
  src/web/Makefile
)

AC_OUTPUT

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0