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]) |
AC_PROG_CXX([g++-3.2 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 |
|
AC_CHECK_HEADER(perl.h) |
52 |
|
|
53 |
# Look for doxygen |
# Look for doxygen |
54 |
AC_CHECK_PROG(DOXYGEN_HERE,doxygen,doxygen,no) |
AC_CHECK_PROG(DOXYGEN_HERE,doxygen,doxygen,no) |
74 |
AC_MSG_WARN([Cannot find dvips! That's not a big problem: 'make doc' will just generate documentation for which dvips is not needed. Please install dvips for 'make doc' to generate a ps output in $(DOCPATH).]) |
AC_MSG_WARN([Cannot find dvips! That's not a big problem: 'make doc' will just generate documentation for which dvips is not needed. Please install dvips for 'make doc' to generate a ps output in $(DOCPATH).]) |
75 |
fi |
fi |
76 |
|
|
|
|
|
|
|
|
77 |
# Look for texi2html |
# Look for texi2html |
78 |
AC_CHECK_PROG(TEXI2HTML_HERE,texi2html,texi2html,no) |
AC_CHECK_PROG(TEXI2HTML_HERE,texi2html,texi2html,no) |
79 |
if test "$TEXI2HTML_HERE" = no ; then |
if test "$TEXI2HTML_HERE" = no ; then |
80 |
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).]) |
81 |
fi |
fi |
82 |
|
|
83 |
|
|
84 |
|
# Look for perl |
85 |
AC_CHECK_PROG(PERL_HERE,perl,perl,no) |
AC_CHECK_PROG(PERL_HERE,perl,perl,no) |
86 |
if test "$PERL_HERE" = no ; then |
if test "$PERL_HERE" = no ; then |
87 |
AC_MSG_WARN([Cannot find perl! That's a big problem; you can't compile without it]) |
AC_MSG_WARN([Cannot find perl! That's a big problem; you can't do make check without it]) |
88 |
fi |
fi |
89 |
|
|
90 |
# We extract perl version number |
# We extract perl version number |
91 |
PERLVERSION=`$PERL_HERE -v perl -v | sed -n -e 's|.*v *\(.*\)\ |\1|p' | cut -d' ' -f1 | head -n 1` |
PERLVERSION=`$PERL_HERE -v perl -v | sed -n -e 's|.*v *\(.*\)\ |\1|p' | cut -d' ' -f1 | head -n 1` |
92 |
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." |
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 test phase." |
93 |
|
|
94 |
|
# Look for scilab |
95 |
|
AC_CHECK_PROG(SCILAB_HERE,scilab,scilab,no) |
96 |
|
if test "$SCILAB_HERE" = no ; then |
97 |
|
AC_MSG_WARN([Cannot find scilab! That's a big problem; you can't do 'make check' without it]) |
98 |
|
fi |
99 |
|
|
100 |
AC_CONFIG_FILES([doc/Doxyfile]) |
AC_CONFIG_FILES([doc/Doxyfile]) |
101 |
|
|