ORIG_DIR=`pwd`
CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
+########################################################################
+# Test if the KERNEL_ROOT_DIR is set
+
+if test ! -d "${KERNEL_ROOT_DIR}"; then
+ echo "failed : KERNEL_ROOT_DIR variable is not correct !"
+ exit
+fi
+
########################################################################
# find_in - utility function
#
# put them "manually"
#
-echo " ./adm/unix/SALOMEconfig.h \\" >> configure.in_tmp1
-echo " ./adm/unix/F77config.h \\" >> configure.in_tmp1
-echo " ./adm/unix/sstream \\" >> configure.in_tmp1
-echo " ./adm/unix/depend \\" >> configure.in_tmp1
-echo " ./adm/unix/make_omniorb \\" >> configure.in_tmp1
-echo " ./adm/unix/envScript \\" >> configure.in_tmp1
-echo " ./adm/unix/make_commence \\" >> configure.in_tmp1
-echo " ./adm/unix/make_conclude \\" >> configure.in_tmp1
-echo " ./adm/unix/make_module \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/SALOMEconfig.h \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/F77config.h \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/sstream \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/depend \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_omniorb \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/envScript \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_commence \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_conclude \\" >> configure.in_tmp1
+echo " ${KERNEL_ROOT_DIR}/salome_adm/unix/make_module \\" >> configure.in_tmp1
\rm -f configure.in_tmp2 configure.in_tmp3
touch configure.in_tmp2
find_in . configure.in_tmp2
-sed '/^...adm/d' configure.in_tmp2 > configure.in_tmp3
+sed '/^.*salome_adm/d' configure.in_tmp2 > configure.in_tmp3
sed '/configure.in/d' configure.in_tmp3 > configure.in_tmp2
sed 's/.in / /' configure.in_tmp2 >> configure.in_tmp1
echo -n "Creating 'configure' script ... "
fi
-aclocal --acdir=adm/unix/config_files
+aclocal --acdir=${KERNEL_ROOT_DIR}/salome_adm/unix/config_files
if autoconf
then
echo "done"