1dnl ************************************************************************ 2dnl 3dnl This file is part of the Cal3D library/package 4dnl Copyright (C) 2002 Bruno 'Beosil' Heidelberger (beosil@swileys.com) 5dnl Copyright (C) 2006 Loic Dachary <loic@dachary.org> 6dnl 7dnl This library is free software; you can redistribute it and/or modify it 8dnl under the terms of the GNU Lesser General Public License as published by 9dnl the Free Software Foundation; either version 2.1 of the License, or (at 10dnl your option) any later version. 11dnl 12dnl ************************************************************************ 13 14AC_INIT(src/cal3d/cal3d.h) 15 16AM_CONFIG_HEADER(config.h) 17 18AC_CANONICAL_SYSTEM 19 20AM_INIT_AUTOMAKE(cal3d,0.12.0) 21 22AC_ARG_WITH(cxx,[ --with-cxx=CXX force the use of a particular C++ compiler ], 23[ 24 CXX="$withval" 25],) 26 27AC_ARG_WITH(cc,[ --with-cc=CC force the use of a particular C compiler ], 28[ 29 CC="$withval" 30],) 31 32 33dnl ************************************************************************ 34 35CAL3D_CHECK_USER_CXX_FLAGS 36 37dnl ************************************************************************ 38 39AC_PROG_CXX 40 41AC_DISABLE_STATIC 42 43AC_LIBTOOL_WIN32_DLL 44AC_PROG_LIBTOOL 45 46AC_PROG_INSTALL 47 48AC_CHECK_PROG(DOXYGEN, doxygen, true, false) 49if test "$DOXYGEN" = false; then 50 AC_MSG_WARN([cannot find doxygen, unable to generate Cal3D API Reference!]) 51fi 52 53AC_CHECK_PROG(DB2HTML, db2html, true, false) 54if test "$DB2HTML" = false; then 55 AC_MSG_WARN([cannot find db2html, unable to generate Cal3D User's Guide!]) 56fi 57 58AC_PATH_PROG(BLENDER, [blender]) 59AC_PATH_PROG(VALGRIND, [valgrind]) 60 61CPPFLAGS="$CPPFLAGS"' -I${top_srcdir}/src' 62 63dnl ************************************************************************ 64 65CAL3D_CHECK_BUILD 66 67dnl ************************************************************************ 68 69AC_OUTPUT(Makefile src/Makefile src/cal3d/Makefile docs/Makefile docs/api/Makefile docs/shared/Makefile tests/Makefile tests/run cal3d.pc src/cal3d_converter.1 fileformats.txt) 70 71dnl ************************************************************************ 72 73echo "o-----------------------------------------------------------o" 74echo "| To build and install the Cal3D library type... |" 75echo "| make; make install |" 76 77echo "| |" 78 79if test "$DB2HTML" = false; then 80 echo "| To generate the Cal3D User's Guide you need to install |" 81 echo "| the DocBook tools first. ('docbktls' package) |" 82else 83 echo "| To generate the Cal3D User's Guide type... |" 84 echo "| cd docs; make doc-guide |" 85fi 86 87echo "| |" 88 89if test "$DOXYGEN" = false; then 90 echo "| To generate the Cal3D API Reference you need to install |" 91 echo "| the Doxygen tool first. (see http://www.doxygen.org) |" 92else 93 echo "| To generate the Cal3D API Reference type... |" 94 echo "| cd docs; make doc-api |" 95fi 96 97echo "o-----------------------------------------------------------o" 98 99dnl ************************************************************************ 100 101