File: [Platon] / libplaton / configure.in (download)
Revision 1.3, Wed Oct 2 20:29:47 2002 UTC (21 years, 6 months ago) by rajo
Changes since 1.2: +7 -4
lines
Makefile simplification: global rules moved to Rules.make.
|
dnl $Id: configure.in,v 1.3 2002/10/02 20:29:47 rajo Exp $
AC_INIT(platon/macros.h)
PACKAGE="libplaton"
VERSION="0.1"
DATE="`date '+%e %B %Y' || echo '2002-??-??'`"
MANVOLNUM=3
AC_ARG_ENABLE(extended,
[ --enable-extended Include some non-free sources.],
[enable_extended="yes"; NET_SUBDIRS="atlantis smtp"; ],
[enable_extended="no"; NET_SUBDIRS="smtp"; ])
# AC_CONFIG_HEADER {{{
AC_CONFIG_HEADER(config.h)
# }}} AC_CONFIG_HEADER
# Checks for programs. {{{
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CXX
AC_PROG_CPP
# AC_GCC_TRADITIONAL {{{
AC_GCC_TRADITIONAL
# }}} AC_GCC_TRADITIONAL
if test "X$CC" = "Xgcc"; then
CFLAGS="-Wall $CFLAGS"
fi
AC_PROG_LN_S
LN_S="$LN_S -f" # adds '-f' parameter to 'ln'
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PROG_RANLIB
# AC_CHECK_PROG STRIP {{{
# Don't strip if we don't have it
AC_CHECK_PROG(STRIP, strip, strip, :)
# }}} AC_CHECK_PROG STRIP
#AC_CHECK_PROG(JADEWRAP, jw, jw, :)
AC_CHECK_PROG(DOXYGEN, doxygen, doxygen, :)
#AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, :)
#AC_CHECK_PROG(DOCBOOK2MAN, docbook2man, docbook2man, :)
#AC_CHECK_PROG(DB_HTML2MAN, db-html2man, `which db-html2man`, :)
#AC_CHECK_PROG(DB_GET_ID, db-get-id, `which db-get-id`, :)
# }}} Checks for programs.
# AC_CHECK_HEADERS {{{
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(ctype.h errno.h float.h limits.h math.h stdarg.h stdio.h stdlib.h string.h strings.h unistd.h)
# }}} AC_CHECK_HEADERS
# AC_CHECK_FUNCS {{{
dnl AC_CHECK_FUNCS(strerror)
# }}} AC_CHECK_FUNCS
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(DATE)
AC_SUBST(MANVOLNUM)
AC_SUBST(NET_SUBDIRS)
OUTPUT_FILES=" \
Rules.make \
Makefile \
doc/Makefile \
platon/html/Makefile \
platon/misc/Makefile \
platon/net/smtp/Makefile \
platon/net/Makefile \
platon/str/Makefile \
platon/Makefile \
utils/Makefile"
if test "$enable_extended" = "yes"; then
OUTPUT_FILES="$OUTPUT_FILES platon/net/atlantis/Makefile"
fi
# {{{ AC_OUTPUT
AC_OUTPUT($OUTPUT_FILES)
# }}} AC_OUTPUT
# vim600: fdm=marker fdc=3
Platon Group <platon@platon.org> http://platon.org/
|