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 # ====================================================================
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.
18 # autom4te.cache (directory)
19 echo "====================================================== aclocal"
21 aclocal -I salome_adm/unix/config_files || exit 1
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).
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"
35 libtoolize --force --copy --automake || exit 1
38 # ____________________________________________________________________
39 # autoconf creates the configure script from the file configure.ac (or
40 # configure.in if configure.ac doesn't exist)
43 echo "====================================================== autoconf"
47 # ____________________________________________________________________
48 # autoheader creates config.h.in
51 #echo "====================================================== autoheader"
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.
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"
70 automake --add-missing --copy --gnu
73 # ____________________________________________________________________
75 # Note that automake could be executed at last after autoconf. The
76 # order doesn't matter.
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.