]> SALOME platform Git repositories - modules/kernel.git/blob - build_configure
Salome HOME
c682f1fad503ed755e83dc5560d6aa9396f9337f
[modules/kernel.git] / build_configure
1 #!/bin/sh
2 # ====================================================================
3 # This script is just here to illustrate the procedure for preparing
4 # the configure process. It creates configuration files (ex:
5 # ltmain.sh) using libtoolize, the aclocal macro, the configure script
6 # using autoconf and some scripts used in building process (ex:
7 # install-sh) using automake. Automake is used here to creates the
8 # files Makefile.in from the files Makefile.am.
9 # ====================================================================
10 #
11
12
13 # ____________________________________________________________________
14 # aclocal creates the aclocal.m4 file from the standard macro and the
15 # custom macro embedded in the directory salome_adm/unix/config_files.
16 # output:
17 #   aclocal.m4
18 #   autom4te.cache (directory)
19 echo "====================================================== aclocal"
20
21 aclocal -I salome_adm/unix/config_files || exit 1
22
23
24 # ____________________________________________________________________
25 # libtoolize creates some configuration files (ltmain.sh,
26 # config.guess and config.sub). It only depends on the libtool
27 # version. The files are created in the directory specified with the
28 # AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac).
29 # output:
30 #   salome_adm/unix/config_files/config.guess
31 #   salome_adm/unix/config_files/config.sub
32 #   salome_adm/unix/config_files/ltmain.sh
33 echo "====================================================== libtoolize"
34
35 libtoolize --force --copy --automake || exit 1
36
37
38 # ____________________________________________________________________
39 # autoconf creates the configure script from the file configure.ac (or
40 # configure.in if configure.ac doesn't exist)
41 # output:
42 #   configure
43 echo "====================================================== autoconf"
44
45 autoconf
46
47 # ____________________________________________________________________
48 # autoheader creates config.h.in
49 # output:
50 #   configure
51 #echo "====================================================== autoheader"
52
53 #autoheader
54
55 # ____________________________________________________________________
56 # automake creates some scripts used in building process
57 # (install-sh, missing, ...). It only depends on the automake
58 # version. The files are created in the directory specified with the
59 # AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac). This step also
60 # creates the Makefile.in files from the Makefile.am files.
61 # output:
62 #   salome_adm/unix/config_files/compile
63 #   salome_adm/unix/config_files/depcomp
64 #   salome_adm/unix/config_files/install-sh
65 #   salome_adm/unix/config_files/missing
66 #   salome_adm/unix/config_files/py-compile
67 #   Makefile.in (from Makefile.am)
68 echo "====================================================== automake"
69
70 automake --add-missing --copy --gnu
71
72
73 # ____________________________________________________________________
74 #
75 # Note that automake could be executed at last after autoconf. The
76 # order doesn't matter.
77 #
78 # When modifying a Makefile.am file, after a first step of
79 # configure+make, you just have to :
80 # - go to the top source directory and run automake, to rebuild the Makefile.in,
81 # - go to the top build directory and run config.status to rebuild the
82 #   Makefile from the Makefile.in,
83 # - go to the source directory being modified, and then run make.
84 #