Salome HOME
Merge from V6_main 01/04/2013
[modules/yacs.git] / build_configure
1 #! /bin/sh
2 # Copyright (C) 2006-2013  CEA/DEN, EDF R&D
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 #
18 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 #
20
21 # --
22 # --
23 #
24 ORIG_DIR=`pwd`
25 run() {
26     local logfile=$ORIG_DIR/build_configure.log
27     printf "%-50s" "$1 ... "
28     eval $1 > $logfile 2>&1
29     if test $? != 0 ; then
30         echo "[FAILED]"
31         echo "see file build_configure.log ..."
32         exit 1
33     fi
34     echo "[  OK  ]"
35 }
36
37 # --
38 # -- goto build_configure dir
39 CONF_DIR=`echo $0 | sed -e "s,[^/]*$,,;s,/$,,;s,^$,.,"`
40 cd ${CONF_DIR}
41
42 # --
43 # -- configure.in construction
44 rm -f configure.in
45 touch configure.in
46
47 cat configure.in.base >> configure.in
48
49 # --
50
51 run "aclocal -I adm/unix/config_files"
52 run "libtoolize --force --copy --automake"
53 run "autoheader -I adm/unix/config_files"
54 run "autoconf"
55 run "automake --add-missing --copy"