1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
|
dnl svn info
dnl $Author: morongo $
dnl $HeadURL: https://jaula.svn.sourceforge.net/svnroot/jaula/tags/jaula-1.4.0/configure.in $
dnl $Id: configure.in 48 2009-01-11 16:31:24Z morongo $
dnl Global Definitions
AC_INIT(jaula, 1.4.0, morongo666@gmail.com)
AM_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(jaula/jaula.h)
AC_COPYRIGHT([(c) Kombo Morongo <morongo666@gmail.com>])
AC_REVISION($Revision: 48 $)
dnl Automake configuration
AM_INIT_AUTOMAKE([1.9 dist-bzip2])
dnl Keeping libtool macros in-tree
AC_CONFIG_MACRO_DIR([m4])
dnl target library version
AC_SUBST(VERSION_INFO, [1:4:0])
dnl Default installation directory
AC_PREFIX_DEFAULT([/usr])
dnl project first-level directories
AC_SUBST(SUBDIRS, ["doc jaula examples"])
dnl Autoheader configuration
AH_TOP([/*
This file has been automatically generated during the
configuration process.
Do not touch the contents of this directly but by invoking
./configure from the project root.
Run ./configure --help from the project root in order to get
information about the available configuration options.
*/])
AH_TEMPLATE([_REENTRANT])
AH_TEMPLATE([EXTENDED_DEBUG], [Flag to report debugging information from the library])
AH_BOTTOM([/* EOF : config.h */])
dnl Debugging options
AC_ARG_ENABLE(extended-debug, AS_HELP_STRING([--enable-extended-debug], [enables debugging of the parsing process]),
[if test "$enableval" = "yes"
then
AC_DEFINE(EXTENDED_DEBUG)
fi
])
dnl Documentation generation
AC_ARG_ENABLE(doc-gen, AS_HELP_STRING([--enable-doc-gen], [generates library documentation]),
[if test "$enableval" = "yes"
then
DOC_GEN=1
else
DOC_GEN=0
fi
])
AC_SUBST(DOC_GEN)
dnl C++ language usage
AC_LANG(C++)
dnl libtool usage
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
dnl Estandar compiler checks
AC_PROG_CXX
AC_PROG_CXXCPP
AC_HEADER_STDC
dnl Flex checking
AM_PROG_LEX
if test "$LEX" != flex
then
AC_MSG_ERROR([Flex lexical analyzer not found. Configuration aborted])
else
AC_SUBST(LEX_OUTPUT_ROOT, lex.yy)
fi
AC_CHECK_HEADERS(FlexLexer.h,, AC_MSG_ERROR([Header not found. Configuration aborted.]))
dnl C headers check
AC_CHECK_HEADERS(ctype.h,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(stdlib.h,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
dnl C++ headers check
AC_CHECK_HEADERS(fstream,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(iostream,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(list,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(map,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(memory,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(ostream,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(sstream,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
AC_CHECK_HEADERS(string,,AC_MSG_ERROR([Header not found. Configuration aborted.]))
dnl Doxygen checks
if test "$DOC_GEN" -ne "0"
then
AC_PATH_PROG(DOXYGEN, [doxygen], [])
if test -z "$DOXYGEN"
then
AC_MSG_WARN([API documentation generation will be skipped.])
AC_SUBST(HAVE_DOT, [NO])
else
AC_MSG_NOTICE([API documentation will be generated.])
AC_SUBST(DOXYGEN,[doxygen])
AC_PATH_PROG(TEST_DOT, [dot], [])
if test -z "$TEST_DOT"
then
AC_MSG_WARN([API documentation will only include basic diagrams.])
AC_SUBST(HAVE_DOT, [NO])
else
AC_MSG_NOTICE([API documentation will include extended diagrams.])
AC_SUBST(HAVE_DOT, [YES])
fi
fi
else
DOXYGEN=""
AC_SUBST(DOXYGEN)
AC_MSG_WARN([--disable-doc-gen option activated. Library documentation will not be generated.])
fi
dnl Doxygen extensions for PDF conversion
if test -n "$DOXYGEN"
then
AC_PATH_PROG(PDFLATEX, [pdflatex], [])
if test -z "$PDFLATEX"
then
AC_MSG_WARN([API latex documentation cannot be converted to PDF format.])
else
AC_MSG_NOTICE([API latex documentation will be also available in PDF format.])
fi
else
PDFLATEX=""
fi
AC_SUBST(PDFLATEX)
dnl Generacion de ficheros
AC_OUTPUT([Makefile doc/Doxyfile doc/Makefile jaula/Makefile examples/Makefile])
dnl EOF $Id: configure.in 48 2009-01-11 16:31:24Z morongo $
|