6 AC_INIT([GRAS],[0.0.040205],[martin.quinson@ens-lyon.fr])
7 AC_CONFIG_SRCDIR([src/include/gras.h])
8 AC_REVISION($Revision$)
9 AC_CONFIG_SUBDIRS(src/nws_portability)
14 AM_CONFIG_HEADER(src/gras_config.h)
20 # declare the modules (no optional module)
23 dnl Load anything under acmacro/*.m4
25 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
26 ACLOCAL="$ACLOCAL -I acmacro"
31 AC_F77_LIBRARY_LDFLAGS
35 # Checks for header files.
37 AC_CHECK_HEADERS([stddef.h stdlib.h string.h unistd.h])
39 # Checks for typedefs, structures, and compiler characteristics.
44 # Checks for library functions.
47 AC_CHECK_FUNCS([memset strchr strerror])
49 dnl ####[ Search libs ]#######################################################
50 ACI_PACKAGE_SAVED(XML,[XML library (version XML2)],xml2-config,,,:)
51 ACI_PACKAGE([SimGrid],[the SimGrid simulator],[SG_init],[-lsimgrid],[simgrid.h])
53 dnl A C_CHECK_LIB(pthread, pthread_mutex_lock)
55 dnl ####[ maint mode ]#######################################################
57 if test x$USE_MAINTAINER_MODE = xyes
59 GNOME_COMPILE_WARNINGS(yes)
66 dnl ####[ check for some programms ]###########################################
67 AC_CHECK_PROG(BASH, bash, `which bash`, /bin/sh)
68 WARNING="This file is generated, do not edit"
71 dnl ####[ Makes the output ]###################################################
76 src/include/modules/Makefile
78 src/base/Tests/Makefile
79 src/base/Tests/gs_example
80 src/base/Tests/run_tests
83 src/examples/ping/Makefile
84 src/examples/bandwidth/Makefile src/examples/saturate/Makefile
85 src/examples/alnem/Makefile
87 ],[( cd src/include ; test -e gras || ln -s . gras )
88 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
89 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests])
95 Configuration of package \`${PACKAGE}':