]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
provide med 2.2.3 compilability for Linux Fedora Core 4
authorvsr <vsr@opencascade.com>
Mon, 22 Jan 2007 12:02:33 +0000 (12:02 +0000)
committervsr <vsr@opencascade.com>
Mon, 22 Jan 2007 12:02:33 +0000 (12:02 +0000)
config_files/med-2.2.3.sh

index 0e8f757f7afc952247592ad63ba52cfc613ef163..243a58676cdfa22bdc8f14a7907618d9e9e33a15 100755 (executable)
@@ -75,16 +75,17 @@ check_jb tar xfz ${SOURCE_DIR}/med_fichier2.2.3.src.tar.gz -C ${INSTALL_WORK}
 cd ${PRODUCT_WORK}
 makedir ${PRODUCT_DIR}
 
-#vsr: provide additional flags for f95 (Mandriva 2006.0)
+#vsr: provide additional flags for f95 (Mandriva 2006.0, Fedora Core 4)
 is_mandriva=0
+is_fedora=0
 if [ -e /etc/redhat-release ] ; then
   grep -e "Mandriva Linux release 2006.0" /etc/redhat-release > /dev/null
   if [ $? == 0 ] ; then is_mandriva=1 ; fi
+  grep -e "Fedora Core release 4" /etc/redhat-release > /dev/null
+  if [ $? == 0 ] ; then is_fedora=1 ; fi
 fi
 
-if [ $is_mandriva == 0 ] ; then
-    check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
-else
+if [ $is_mandriva == 1 ] || [ $is_fedora == 1 ] ; then
     if test `uname -m` = "x86_64" ; then
     echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
     ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${INSTALL_WORK}/errlog
@@ -98,6 +99,8 @@ else
       cat ${INSTALL_WORK}/errlog >> ${PRODUCT_DIR}/CONFIGURE.LOG
       exit 1
     fi
+else
+    check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
 fi
 
 GCC=`which gcc`