GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
AC_SUBST(GINACLIB_MAJOR_VERSION)
GINACLIB_VERSION=$GINACLIB_MAJOR_VERSION.$GINACLIB_MINOR_VERSION.$GINACLIB_MICRO_VERSION
AC_SUBST(GINACLIB_MAJOR_VERSION)
-AC_ARG_ENABLE(html-doc, [ --enable-html-doc build HTML documentation [default=yes]], , enable_html_doc=yes)
-AC_ARG_ENABLE(ps-doc, [ --enable-ps-doc build PostScript documentation [default=yes]], , enable_ps_doc=yes)
+AC_ARG_ENABLE(html-doc, [ --enable-html-doc build HTML documentation [default=no]], , enable_html_doc=no)
+AC_ARG_ENABLE(ps-doc, [ --enable-ps-doc build PostScript documentation [default=no]], , enable_ps_doc=no)
AC_ARG_WITH(cint, [ --with-cint=CINTSYSDIR build GiNaC-cint C++ interpreter [default=no]], , with_cint=no)
AC_ARG_WITH(cint, [ --with-cint=CINTSYSDIR build GiNaC-cint C++ interpreter [default=no]], , with_cint=no)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(long long, 8)
AC_CHECK_SIZEOF(long double, 12)
AC_CHECK_SIZEOF(long, 4)
AC_CHECK_SIZEOF(long long, 8)
AC_CHECK_SIZEOF(long double, 12)
dnl Check for stuff needed for building the GiNaC interactive shell (ginsh).
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(readline/readline.h readline/history.h)
dnl Check for stuff needed for building the GiNaC interactive shell (ginsh).
AC_CHECK_HEADERS(unistd.h)
AC_CHECK_HEADERS(readline/readline.h readline/history.h)
dnl Make sure all the necessary new-style headers are installed on the system.
dnl If one of them cannot be found the system is probably not ANSI-conform
dnl enough so trying the .h-style headers is a waste of time.
AC_CHECK_HEADERS(iostream vector map string list typeinfo iterator stdexcept algorithm, ,
dnl Make sure all the necessary new-style headers are installed on the system.
dnl If one of them cannot be found the system is probably not ANSI-conform
dnl enough so trying the .h-style headers is a waste of time.
AC_CHECK_HEADERS(iostream vector map string list typeinfo iterator stdexcept algorithm, ,
AC_CHECK_HEADERS(sstream strstream)
dnl We need to have Bruno Haible's CLN installed (macros are in acinclude.m4):
AC_CHECK_HEADERS(sstream strstream)
dnl We need to have Bruno Haible's CLN installed (macros are in acinclude.m4):
TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.html"
if [[ "$DOXYGEN" ]]; then
REFERENCE_TARGETS="$REFERENCE_TARGETS index.html"
fi
fi
TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.html"
if [[ "$DOXYGEN" ]]; then
REFERENCE_TARGETS="$REFERENCE_TARGETS index.html"
fi
fi
TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.ps"
if [[ "$DOXYGEN" ]]; then
REFERENCE_TARGETS="$REFERENCE_TARGETS reference.ps"
TUTORIAL_TARGETS="$TUTORIAL_TARGETS ginac.ps"
if [[ "$DOXYGEN" ]]; then
REFERENCE_TARGETS="$REFERENCE_TARGETS reference.ps"
-if [[ "x$with_cint" != "xno" ]]; then
- if [[ "x$enable_static" != "xyes" ]]; then
- AC_MSG_ERROR([currently GiNaC-cint needs to build a static libginac])
- fi
- if [[ "x$with_cint" = "xyes" ]]; then
- if [[ "x$CINTSYSDIR" = "x" ]]; then
+if test "x$with_cint" != "xno"; then
+ if test "x$with_cint" = "xyes"; then
+ if test "x$CINTSYSDIR" = "x"; then
- -D OBSCURE_CINT_HACK -D NO_NAMESPACE_GINAC \
- -I .. -I $CINTSYSDIR -m -H ../ginac/ginac.h dummies.h \
- -C++ dummies.cpp -C++ ginaccint.bin.cpp \
- -l ./libginac.a -lcln -cint -M0x10; \
+ -D OBSCURE_CINT_HACK "$CPPFLAGS" -cc "$CXXFLAGS" \
+ -I .. -I $CINTSYSDIR -m -H ../ginac/ginac.h \
+ -C++ ginaccint.bin.cpp \
+ -l -L../ginac/.libs -lginac -lcln \
+ -cint -M0x10; \
-cint/ginaccint
-], [chmod +x ginac-config cint/ginaccint])
-echo "Configuration done. Now type \"make\"."
+cint/launch.h
+], [chmod +x ginac-config])
+dnl Display a final warning if there has been a GINAC_ERROR or a GINAC_WARNING
+GINAC_CHECK_ERRORS