2 # PLEASE DO NOT MODIFY configure.in FILE
4 # ALL CHANGES WILL BE DISCARDED BY THE NEXT
5 # build_configure COMMAND
7 # CHANGES MUST BE MADE IN configure.in.base FILE
10 # Author : Marc Tajchman (CEA)
12 # Modified by : Patrick GOLDBRONN (CEA)
13 # Modified by : Marc Tajchman (CEA)
15 # Created from configure.in.base
19 AC_CONFIG_AUX_DIR(${KERNEL_ROOT_DIR}/salome_adm/unix/config_files)
31 dnl Initialize source and build root directories
35 ROOT_SRCDIR=`echo $0 | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"`
41 AC_SUBST(ROOT_BUILDDIR)
44 echo Source root directory : $ROOT_SRCDIR
45 echo Build root directory : $ROOT_BUILDDIR
49 if test -z "$AR"; then
50 AC_CHECK_PROGS(AR,ar xar,:,$PATH)
54 dnl Export the AR macro so that it will be placed in the libtool file
59 echo ---------------------------------------------
61 echo ---------------------------------------------
67 dnl libtool macro check for CC, LD, NM, LN_S, RANLIB, STRIP + for shared libraries
72 echo ---------------------------------------------
74 echo ---------------------------------------------
76 dnl first, we set static to no!
77 dnl if we want it, use --enable-static
83 dnl Fix up the INSTALL macro if it s a relative path. We want the
84 dnl full-path to the binary instead.
87 INSTALL='\${KERNEL_ROOT_DIR}'/salome_adm/unix/config_files/install-sh
92 echo ---------------------------------------------
94 echo ---------------------------------------------
100 echo ---------------------------------------------
102 echo ---------------------------------------------
108 echo ---------------------------------------------
109 echo default ORB : omniORB
110 echo ---------------------------------------------
118 CORBA=adm_local/unix/$corba
121 echo ---------------------------------------------
123 echo ---------------------------------------------
129 echo ---------------------------------------------
131 echo ---------------------------------------------
137 echo ---------------------------------------------
138 echo Testing full GUI
139 echo ---------------------------------------------
143 if test "x${CORBA_IN_GUI}" != "xyes"; then
144 echo "failed : For configure PYHELLO1 module necessary full GUI !"
149 echo ---------------------------------------------
151 echo ---------------------------------------------
157 echo ---------------------------------------------
159 echo ---------------------------------------------
163 variables="python_ok omniORB_ok msg2qm_ok Kernel_ok"
165 for var in $variables
167 printf " %10s : " `echo \$var | sed -e "s,_ok,,"`
172 echo "Default ORB : $DEFAULT_ORB"
175 dnl generals files which could be included in every makefile
177 AC_SUBST_FILE(COMMENCE) COMMENCE=adm_local/unix/make_commence
178 AC_SUBST_FILE(CONCLUDE) CONCLUDE=salome_adm/unix/make_conclude
179 AC_SUBST_FILE(MODULE) MODULE=salome_adm/unix/make_module
182 AC_SUBST_FILE(DEPEND) DEPEND=salome_adm/unix/depend
184 dnl We don t need to say when we re entering directories if we re using
185 dnl GNU make becuase make does it for us.
186 if test "X$GMAKE" = "Xyes"; then
187 AC_SUBST(SETX) SETX=":"
189 AC_SUBST(SETX) SETX="set -x"
192 # make other build directories
193 for rep in salome_adm adm_local doc bin/salome include/salome lib/salome share/salome/resources share/salome/doc idl
199 echo ---------------------------------------------
200 echo copying resource files, shell scripts, and
202 echo ---------------------------------------------
205 dnl copy shells and utilities contained in the bin directory
206 dnl excluding .in files (treated in AC-OUTPUT below) and CVS
210 for i in $ROOT_SRCDIR/bin/*
212 local_bin=`echo $i | sed -e "s,$ROOT_SRCDIR,.,"`
216 *) ln -fs $i; echo $local_bin ;;
221 AC_SUBST_FILE(ENVSCRIPT) ENVSCRIPT=salome_adm/unix/envScript
224 echo ---------------------------------------------
225 echo generating Makefiles and configure files
226 echo ---------------------------------------------
229 AC_OUTPUT_COMMANDS([ \
233 ## do not delete this line