Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, September 20, 2019

File: [Platon] / libplaton / configure.in (download)

Revision 1.14, Sat Apr 24 14:03:11 2010 UTC (9 years, 4 months ago) by nepto


Changes since 1.13: +2 -1 lines

Added CPU related subroutines

dnl $Platon: libplaton/configure.in,v 1.13 2008-09-22 18:54:28 nepto 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 pop3"; ],
              [enable_extended="no";  NET_SUBDIRS="smtp pop3"; ])

# AC_CONFIG_HEADER {{{
AC_CONFIG_HEADER(config.h)
# }}} AC_CONFIG_HEADER

# Checks for programs. {{{
# -Wno-long-long is due to <platon/hash/tiger.c>
CFLAGS=${CFLAGS-"-O2 -Wall -Wno-shadow -Wno-long-long -pedantic -fPIC"}
AC_PROG_CC
AC_PROG_CXX
AC_PROG_AWK

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/Makefile \
platon/compress/Makefile \
platon/cpu/Makefile \
platon/dsn/Makefile \
platon/hash/Makefile \
platon/html/Makefile \
platon/misc/Makefile \
platon/net/Makefile \
platon/net/smtp/Makefile \
platon/net/pop3/Makefile \
platon/str/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/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top