paradiseo/trunk/paradiseo-peo/configure.in
legrand b277c3b3c5 add tag AC_DEFUN([AC_DATAROOTDIR_CHECKED] for autoconf 2.6 and higher compatibility
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@279 331e1502-861f-0410-8da2-ba01fb791d7f
2007-04-19 12:45:30 +00:00

97 lines
2 KiB
Text
Executable file

dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta - will be overwritten
dnl If you don't want it to overwrite it,
dnl Please disable it in the Anjuta project configuration
AC_INIT(configure.in)
AM_INIT_AUTOMAKE(paradisEO, 0.3)
dnl AM_CONFIG_HEADER(config.h)
dnl Autoconf 2.6 or higher compatibility
AC_DEFUN([AC_DATAROOTDIR_CHECKED])
AC_ISC_POSIX
CXXFLAGS=""
AC_SUBST(CXXFLAGS)
AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC
AC_PROG_RANLIB
AC_SUBST(EO_DIR)
dnl EO
AC_ARG_WITH(EOdir,
--with-EOdir : Giving the path of the EO tree.,
dnl Well done :-)
EO_DIR="$withval"
if test ! -d $EO_DIR
then
echo ""
echo "# --with-EOdir Invalid directory $withval"
exit 1
fi,
dnl Bouhhhh !!!!
echo ""
echo "# You forgot to give the path of the EO tree !"
echo "# Please write something like ... './configure --with-EOdir=\$HOME/eo'"
exit 1
)
AC_SUBST(MO_DIR)
dnl MO
AC_ARG_WITH(MOdir,
--with-MOdir : Giving the path of the MO tree.,
dnl Well done :-)
MO_DIR="$withval"
if test ! -d $MO_DIR
then
echo ""
echo "# --with-MOdir Invalid directory $withval"
exit 1
fi,
dnl Bouhhhh !!!!
echo ""
echo "# You forgot to give the path of the MO tree !"
echo "# Please write something like ... './configure --with-MOdir=\$HOME/mo'"
exit 1
)
AC_SUBST(MOEO_DIR)
dnl MOEO
AC_ARG_WITH(MOEOdir,
--with-MOEOdir : Giving the path of the MOEO tree.,
dnl Well done :-)
MOEO_DIR="$withval"
if test ! -d $MOEO_DIR
then
echo ""
echo "# --with-MOEOdir Invalid directory $withval"
exit 1
fi,
dnl Bouhhhh !!!!
echo ""
echo "# You forgot to give the path of the MOEO tree !"
echo "# Please write something like ... './configure --with-MOEOdir=\$HOME/moeo'"
exit 1
)
AC_OUTPUT([
Makefile
docs/Makefile
examples/Makefile
examples/shared/Makefile
examples/lesson1/Makefile
examples/lesson2/Makefile
src/Makefile
src/core/Makefile
src/rmc/Makefile
src/rmc/mpi/Makefile
])