1 dnl Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 dnl CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 dnl This library is free software; you can redistribute it and/or
5 dnl modify it under the terms of the GNU Lesser General Public
6 dnl License as published by the Free Software Foundation; either
7 dnl version 2.1 of the License.
9 dnl This library is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 dnl Lesser General Public License for more details.
14 dnl You should have received a copy of the GNU Lesser General Public
15 dnl License along with this library; if not, write to the Free Software
16 dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 dnl See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
23 AC_DEFUN([CHECK_PLATFORM],[
24 AC_REQUIRE([AC_PROG_CC])dnl
25 AC_REQUIRE([AC_PROG_CPP])dnl
27 AC_CHECKING(for Platform)
29 AC_SUBST(PLATFORM_INCLUDES)
31 PLATFORM_INCLUDES="PCLINUX"
36 irix5.* | irix6.* | osf4.* | osf5.* | linux* )
39 expr "$host_os" : 'linux' >/dev/null && test ! x"$host_cpu" = x"x86_64" && linux64="false"
40 if test ! x"$linux64" = "xfalse" ; then
41 echo "$as_me:$LINENO: checking for 64bits integers size in F77/F90" >&5
42 echo $ECHO_N "checking for 64bits integers size in F77/F90... $ECHO_C" >&6
43 # Check whether --enable-int64 or --disable-int64 was given.
44 if test "${enable_int64+set}" = set; then
45 enableval="$enable_int64"
48 case "X-$enable_int64" in
50 echo "$as_me:$LINENO: result: \"disabled\"" >&5
51 echo "${ECHO_T}\"disabled\"" >&6
55 echo "$as_me:$LINENO: result: \"enabled\"" >&5
56 echo "${ECHO_T}\"enabled\"" >&6
69 test x"$linux64" = x"true" && \
70 MACHINE="PCLINUX64${SUFFIXES}" || \
81 MACHINE="IRIX64${SUFFIXES}"
82 host_os_novers=irix5.x
85 MACHINE="IRIX64${SUFFIXES}"
86 host_os_novers=irix6.x
89 MACHINE="OSF1${SUFFIXES}"
93 MACHINE="OSF1${SUFFIXES}"
98 host_os_novers=solaris2.x
105 host_os_novers=$host_os
115 PLATFORM_INCLUDES=" -D$MACHINE "