X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=autogen.sh;h=5094f4c1fe0d68113f09c53f6c8cf8352a4a80fc;hb=460cf7f4df541b72a55f3ac6ffac15310d318274;hp=b0b2835fdb5886d46c4a1e7187f2fa09d149f9ed;hpb=85294aa578020737e93aecebf774a7c79f7555c8;p=modules%2Fadao.git diff --git a/autogen.sh b/autogen.sh index b0b2835..5094f4c 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2010-2011 EDF R&D +# Copyright (C) 2008-2021 EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -22,9 +22,18 @@ rm -rf autom4te.cache rm -f aclocal.m4 adm_local/ltmain.sh +######################################################################## +# Test if the KERNEL_ROOT_DIR is set correctly + +if test ! -d "${KERNEL_ROOT_DIR}"; then + echo "failed : KERNEL_ROOT_DIR variable is not correct !" + exit 1 +fi + echo "Running aclocal..." ; -aclocal --force -I adm_local || exit 1 -echo "Running autoheader..." ; autoheader --force -I adm_local || exit 1 +aclocal --force -I adm_local \ + -I ${KERNEL_ROOT_DIR}/salome_adm/unix/config_files || exit 1 +echo "Running autoheader..." ; autoheader --force || exit 1 echo "Running autoconf..." ; autoconf --force || exit 1 echo "Running libtoolize..." ; libtoolize --copy --force || exit 1 echo "Running automake..." ; automake --add-missing --copy || exit 1