4 # Tool for updating list of .in file for the SALOME project
5 # and regenerating configure script
7 # Author : Marc Tajchman - CEA
13 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
15 ########################################################################
16 # Test if the KERNEL_ROOT_DIR is set correctly
18 if test ! -d "${KERNEL_ROOT_DIR}"; then
19 echo "failed : KERNEL_ROOT_DIR variable is not correct !"
23 # Test if the KERNEL_SRC is set correctly
25 #if test ! -d "${KERNEL_SRC}"; then
26 # echo "failed : KERNEL_SRC variable is not correct !"
30 ########################################################################
31 # Test if the GUI_ROOT_DIR is set correctly
33 if test ! -d "${GUI_ROOT_DIR}"; then
34 echo "failed : GUI_ROOT_DIR variable is not correct !"
38 ########################################################################
39 # Test if the GEOM_ROOT_DIR is set correctly
41 if test ! -d "${GEOM_ROOT_DIR}"; then
42 echo "failed : GEOM_ROOT_DIR variable is not correct !"
46 ########################################################################
47 # Test if the SMESH_ROOT_DIR is set correctly
49 if test ! -d "${SMESH_ROOT_DIR}"; then
50 echo "failed : SMESH_ROOT_DIR variable is not correct !"
57 mkdir -p salome_adm/unix/config_files
58 #cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files/* salome_adm/unix/config_files
59 #cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/pythonbe.py salome_adm/unix
61 cp -f ${KERNEL_ROOT_DIR}/salome_adm/unix/SALOMEconfig.h.in salome_adm/unix
63 #cp -f ${GUI_ROOT_DIR}/adm_local/unix/config_files/* salome_adm/unix/config_files
64 #cp -f ${GEOM_ROOT_DIR}/adm_local/unix/config_files/* salome_adm/unix/config_files
65 #cp -f ${SMESH_ROOT_DIR}/adm_local/unix/config_files/* salome_adm/unix/config_files
67 # remove KERNEL deprecated configure files
68 #for deprecated in ac_cc_warnings.m4 ac_cxx_partial_specialization.m4 \
69 # check_mico.m4 config.guess ltmain.sh ac_cxx_bool.m4 ltconfig ac_cxx_typename.m4 \
70 # check_pthreads.m4 config.sub libtool.m4 ac_cxx_mutable.m4 missing
72 # rm -f salome_adm/unix/config_files/${deprecated}
76 # ____________________________________________________________________
77 # aclocal creates the aclocal.m4 file from the standard macro and the
78 # custom macro embedded in the directory salome_adm/unix/config_files
79 # and KERNEL config_files directory.
82 # autom4te.cache (directory)
83 echo "====================================================== aclocal"
85 aclocal -I adm_local/unix/config_files \
86 -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files \
87 -I ${GUI_ROOT_DIR}/adm_local/unix/config_files \
88 -I ${GEOM_ROOT_DIR}/adm_local/unix/config_files \
89 -I ${SMESH_ROOT_DIR}/adm_local/unix/config_files || exit 1
91 # ____________________________________________________________________
92 # libtoolize creates some configuration files (ltmain.sh,
93 # config.guess and config.sub). It only depends on the libtool
94 # version. The files are created in the directory specified with the
95 # AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac).
97 # salome_adm/unix/config_files/config.guess
98 # salome_adm/unix/config_files/config.sub
99 # salome_adm/unix/config_files/ltmain.sh
100 #echo "====================================================== libtoolize"
102 libtoolize --force --copy --automake || exit 1
104 # ____________________________________________________________________
105 # autoconf creates the configure script from the file configure.ac (or
106 # configure.in if configure.ac doesn't exist)
109 echo "====================================================== autoconf"
113 # ____________________________________________________________________
114 # automake creates some scripts used in building process
115 # (install-sh, missing, ...). It only depends on the automake
116 # version. The files are created in the directory specified with the
117 # AC_CONFIG_AUX_DIR(<mydir>) tag (see configure.ac). This step also
118 # creates the Makefile.in files from the Makefile.am files.
120 # salome_adm/unix/config_files/compile
121 # salome_adm/unix/config_files/depcomp
122 # salome_adm/unix/config_files/install-sh
123 # salome_adm/unix/config_files/missing
124 # salome_adm/unix/config_files/py-compile
125 # Makefile.in (from Makefile.am)
126 echo "====================================================== automake"
128 automake --copy --gnu --add-missing