6 AC_INIT([GRAS],[0.1.1],[martin.quinson@ens-lyon.fr])
7 AC_CONFIG_SRCDIR([src/include/gras.h])
8 AC_CONFIG_HEADERS([src/gras_config.h])
10 AC_REVISION($Revision$)
15 # MACRO_DIR should tell aclocal to search for my macro. That's the autoconf
16 # maintainer plan, but automake does not implement this yet (as in 1.8)
17 AC_CONFIG_MACRO_DIR(acmacro)
18 # It seems to be called ACLOCAL_INCLUDE...
19 # A M_ACLOCAL_INCLUDE(acmacro)
26 # declare the modules (no optional module)
29 dnl Load anything under acmacro/*.m4
31 dnl test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
32 ACLOCAL="$ACLOCAL -I acmacro"
39 # Check architecture signature begin
41 # Check architecture signature end
42 GRAS_CHECK_STRUCT_COMPACTION
44 # Checks for header files.
46 AC_CHECK_HEADERS([stddef.h stdlib.h string.h unistd.h])
48 # Checks for typedefs, structures, and compiler characteristics.
53 # Checks for library functions.
56 AC_CHECK_FUNCS([memset strchr strerror usleep])
58 # Can we rebuild the parsers?
59 # We really want flex and refuse other lex. So, the parser is portable and
60 # does not induce extra lib dependency
62 if test "$LEX" != flex; then
63 LEX="$SHELL $missing_dir/missing flex"
66 # Can we rebuild the documentation?
69 dnl ####[ Search libs ]#######################################################
70 ACI_PACKAGE([SimGrid],[the SimGrid simulator],[SG_init],[-lsimgrid],[simgrid.h],,:)
71 AM_CONDITIONAL(HAVE_SG,test x$HAVE_SimGrid = xyes)
73 dnl A C_CHECK_LIB(pthread, pthread_mutex_lock, LIBS="$LIBS -lpthread")
74 AC_CHECK_LIB(nsl, gethostbyname, [LIBS="$LIBS -lnsl"])
75 AC_CHECK_LIB(socket, connect, [LIBS="$LIBS -lsocket"])
77 dnl ####[ maint mode ]#######################################################
79 if test x$USE_MAINTAINER_MODE = xyes
81 GNOME_COMPILE_WARNINGS(yes)
88 dnl ####[ check for some programms ]###########################################
89 AC_CHECK_PROG(BASH, bash, `which bash`, /bin/sh)
90 WARNING="This file is generated, do not edit"
93 dnl ####[ Makes the output ]###################################################
98 src/include/modules/Makefile
100 src/base/Tests/Makefile
101 src/base/Tests/run_tests
102 src/base/Tests/trp_tcp_usage
103 src/base/Tests/trp_file_usage
104 src/examples/Makefile
105 src/examples/ping/Makefile
107 tools/compile-remote-worker
108 ],[( cd src/include ; test -e gras || ln -s . gras )
109 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
110 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
111 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests;
112 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
113 chmod +x tools/gras-check-arch;
114 chmod +x src/examples/ping/test_rl; chmod +x src/examples/ping/test_sg])
116 # src/examples/pastry/Makefile
117 # src/modules/Makefile
118 # src/examples/bandwidth/Makefile src/examples/saturate/Makefile
119 # src/examples/alnem/Makefile
125 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):