39 |
## |
## |
40 |
################################################################### |
################################################################### |
41 |
|
|
42 |
|
AC_PREREQ([2.50]) |
43 |
AC_INIT([LipSip], [0], [hannibal@marvinproject.org]) |
AC_INIT([LipSip], [0], [hannibal@marvinproject.org]) |
44 |
|
|
45 |
# Look for a C++ compiler. |
# Look for a C++ compiler. |
46 |
|
AC_PROG_CXX([g++3.2 g++ c++ CC]) |
47 |
AC_LANG([C++]) |
AC_LANG([C++]) |
48 |
AC_PROG_CXX |
AC_PROG_CXX |
49 |
AC_PROG_RANLIB |
AC_PROG_RANLIB |
50 |
|
AC_CHECK_HEADER() |
51 |
|
|
52 |
# Look for doxygen |
# Look for doxygen |
53 |
AC_CHECK_PROG(DOXYGEN_HERE,doxygen,doxygen,no) |
AC_CHECK_PROG(DOXYGEN_HERE,doxygen,doxygen,no) |
81 |
AC_MSG_WARN([Cannot find texi2html! That's not a big problem: 'make doc' will just generate documentation for which texi2html is not needed. Please install dtexi2html for 'make doc' to generate its output in $(DOCPATH).]) |
AC_MSG_WARN([Cannot find texi2html! That's not a big problem: 'make doc' will just generate documentation for which texi2html is not needed. Please install dtexi2html for 'make doc' to generate its output in $(DOCPATH).]) |
82 |
fi |
fi |
83 |
|
|
84 |
|
AC_CHECK_PROG(PERL_HERE,perl,perl,no) |
85 |
|
if test "$PERL_HERE" = no ; then |
86 |
|
AC_MSG_WARN([Cannot find perl! That's a big problem; you can't compile without it]) |
87 |
|
fi |
88 |
|
|
89 |
|
# We extract perl version number |
90 |
|
PERLVERSION=`$PERL_HERE -v perl -v | sed -n -e 's|.*v *\(.*\)\ |\1|p' | cut -d' ' -f1 | head -n 1` |
91 |
|
echo -e "perl version is $PERLVERSION. \n\tIf perl version <= 5.8.0 please install perl 5.8.0 or greater \n\tbecause you must have some problems during compilation." |
92 |
|
|
93 |
AC_CONFIG_FILES([doc/Doxyfile]) |
AC_CONFIG_FILES([doc/Doxyfile]) |
94 |
|
|
95 |
# Finally create common.Makefile from commom.Makefile.in |
# Finally create common.Makefile from commom.Makefile.in |