Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8f48373c20309b77500708106ffd464e654e311d
[simgrid.git] / bootstrap
1 #!/bin/sh -e
2 # Run this to generate all the initial makefiles, etc.
3
4 amver=1.9
5
6
7 lt=`which libtoolize`
8 if [ "x$lt" = "x" ] ; then
9   echo "Libtool not found. Please install the libtool package to proceed with a CVS checkout"
10   exit 1
11 fi
12
13 if [ "x$lt" = "x./libtool" ] ; then
14   echo "The found libtool is the one in the current directory."
15   echo "Either your path is broken ('.' is before '/usr/bin') or the libtool package is not installed."
16   echo "Please fix the situation to proceed with a CVS checkout"
17   exit 1
18 fi
19
20 am=`which automake-$amver`
21 if [ "x$am" = "x" ] ; then
22   echo "automake version $amver not found. Please install the relevant package to proceed with a CVS checkout"
23   exit 1
24 fi
25
26 ac=`which autoconf`
27 if [ "x$ac" = "x" ] ; then
28   echo "autoconf not found. Please install the relevant package to proceed with a CVS checkout"
29   exit 1
30 fi
31
32
33 # AUTOCONF=
34 # AUTOHEADER=
35 # AUTOPOINT=
36 # LIBTOOLIZE=
37
38 ACLOCAL="aclocal-$amver -I acmacro" \
39 AUTOMAKE="automake-$amver" \
40   autoreconf -v -i -s || exit 1
41
42 echo
43 echo "And now, please launch ./configure"
44 echo "----------------------------------"
45
46 # What to do the day we declare optional modules using ACI:
47 #  if test -e aci.conf ; then
48 #   source aci.conf
49 #   pass the content of $configure_args to configure
50
51 echo 
52 echo "Most common flags:"
53 echo "  --enable-maintainer-mode         mandatory if you use the CVS version"
54 echo "  --disable-compile-optimizations  useful if your gdb gets fooled"
55 echo
56
57 echo 
58 echo "If you want to compile for several archs from the same (nfs-mounted?) tree, do:"
59 echo "  mkdir your_arch; cd your_arch && ../configure --srcdir=.."
60
61 echo 
62 echo "(after configure, you'll naturally have to run \`make')"
63 echo 
64 echo