mirror of
https://github.com/openNDS/openNDS.git
synced 2026-05-04 03:01:32 -04:00
104 lines
2.8 KiB
Plaintext
104 lines
2.8 KiB
Plaintext
## -*-m4-*-
|
|
# $Id: configure.in 1162 2007-01-06 23:51:02Z benoitg $
|
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
# FILE:
|
|
# configure.in
|
|
#
|
|
# FUNCTION:
|
|
# implements checks for a variety of system-specific functions
|
|
|
|
AC_INIT(src/common.h)
|
|
AM_CONFIG_HEADER(config.h)
|
|
AC_CONFIG_AUX_DIR(config)
|
|
AC_PROG_CC
|
|
AC_PROG_CXX
|
|
#AC_PROG_RANLIB
|
|
|
|
AC_SUBST(BUILDROOT)
|
|
|
|
NODOGSPLASH_MAJOR_VERSION=0
|
|
NODOGSPLASH_MINOR_VERSION=9_beta6
|
|
NODOGSPLASH_VERSION=$NODOGSPLASH_MAJOR_VERSION.$NODOGSPLASH_MINOR_VERSION
|
|
|
|
AC_SUBST(NODOGSPLASH_MAJOR_VERSION)
|
|
AC_SUBST(NODOGSPLASH_MINOR_VERSION)
|
|
AC_SUBST(NODOGSPLASH_VERSION)
|
|
AM_INIT_AUTOMAKE(nodogsplash,$NODOGSPLASH_VERSION)
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_LIBTOOL_DLOPEN
|
|
AM_PROG_LIBTOOL
|
|
|
|
AC_ISC_POSIX
|
|
AC_C_BIGENDIAN
|
|
AC_PROG_MAKE_SET
|
|
AC_HEADER_STDC
|
|
|
|
|
|
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
|
|
# ----------------------------------------------------------------------------
|
|
AC_DEFUN([BB_ENABLE_DOXYGEN],
|
|
[
|
|
AC_ARG_ENABLE(doxygen, [ --enable-doxygen enable documentation generation with doxygen (auto)])
|
|
AC_ARG_ENABLE(dot, [ --enable-dot use 'dot' to generate graphs in doxygen (auto)])
|
|
AC_ARG_ENABLE(html-docs, [ --enable-html-docs enable HTML generation with doxygen (yes)], [], [ enable_html_docs=yes])
|
|
AC_ARG_ENABLE(latex-docs, [ --enable-latex-docs enable LaTeX documentation generation with doxygen (no)], [], [ enable_latex_docs=no])
|
|
if test "x$enable_doxygen" = xno; then
|
|
enable_doc=no
|
|
else
|
|
AC_PATH_PROG(DOXYGEN, doxygen, , $PATH)
|
|
if test x$DOXYGEN = x; then
|
|
if test "x$enable_doxygen" = xyes; then
|
|
AC_MSG_ERROR([could not find doxygen])
|
|
fi
|
|
enable_doc=no
|
|
else
|
|
enable_doc=yes
|
|
AC_PATH_PROG(DOT, dot, , $PATH)
|
|
fi
|
|
fi
|
|
AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
|
|
|
|
if test x$DOT = x; then
|
|
if test "x$enable_dot" = xyes; then
|
|
AC_MSG_ERROR([could not find dot])
|
|
fi
|
|
enable_dot=no
|
|
else
|
|
enable_dot=yes
|
|
fi
|
|
AM_CONDITIONAL(ENABLE_DOXYGEN, test x$enable_doc = xtrue)
|
|
AC_SUBST(enable_dot)
|
|
AC_SUBST(enable_html_docs)
|
|
AC_SUBST(enable_latex_docs)
|
|
])
|
|
|
|
# check for doxygen
|
|
# ----------------------------------------------------------------------------
|
|
BB_ENABLE_DOXYGEN
|
|
|
|
# check for pthread
|
|
AC_CHECK_HEADER(pthread.h, , AC_MSG_ERROR(You need the pthread headers) )
|
|
AC_CHECK_LIB(pthread, pthread_create, , AC_MSG_ERROR(You need the pthread library) )
|
|
|
|
# libhttpd dependencies
|
|
echo "Begining libhttpd dependencies check"
|
|
AC_CHECK_HEADERS(string.h strings.h stdarg.h unistd.h)
|
|
AC_HAVE_LIBRARY(socket)
|
|
AC_HAVE_LIBRARY(nsl)
|
|
echo "libhttpd dependencies check complete"
|
|
|
|
AC_OUTPUT( Makefile
|
|
nodogsplash.spec
|
|
src/Makefile
|
|
libhttpd/Makefile
|
|
doc/Makefile
|
|
)
|
|
|