# Configure script for URBIdev.
# Copyright (c) Gostai S.A.S., 2006.
#
# This software is provided "as is" without warranty of any kind,
# either expressed or implied, including but not limited to the
# implied warranties of fitness for a particular purpose.
#
# See the LICENSE file for more information.
# For comments, bug reports and feedback: http://www.urbiforge.com

## ------------- ##
## Package setup ##
## ------------- ##

AC_INIT([URBIdev], [0.0.1], [[email protected]], [urbi-dev])

AC_CONFIG_AUX_DIR([build-aux])

AM_INIT_AUTOMAKE([foreign -Wall])

## -------------------- ##
## Tool/Compilers setup ##
## -------------------- ##

# Look for a C++ compiler.
AC_LANG([C++])
AC_PROG_CXX
AC_PROG_LIBTOOL

AT_WITH_QT([+xml])

# Speed the compilation up and tweak warning flags.
if test "$GXX" = yes; then
  AM_CXXFLAGS="$AM_CXXFLAGS -Wall -W -Wold-style-cast\
 -Woverloaded-virtual -pipe"
  AC_SUBST([AM_CXXFLAGS])
fi

WITH_QSCINTILLA2

AC_CONFIG_FILES([
  Makefile
    loki/Makefile
      loki/src/Makefile
    behavior-graphs/Makefile
      behavior-graphs/src/Makefile
        behavior-graphs/src/xml_parser/Makefile
      behavior-graphs/tests/Makefile
        behavior-graphs/tests/xml/Makefile
    src/Makefile
      src/fsmwidget/Makefile
      src/misc/Makefile
      src/images/Makefile
    doc/Makefile
    tests/Makefile
])

AC_CONFIG_FILES([doc/doxygen.sh], [chmod a=rx doc/doxygen.sh])

AC_OUTPUT