[BACK] Return to configure.in CVS log [TXT][DIR] Up to Nevrax / code / nelns

Diff for /code/nelns/configure.in between version 1.4 and 1.7

version 1.4, 2001/08/07 12:41:46 version 1.7, 2001/08/16 12:42:26
Line 67 
Line 67 
 dnl STLPort dnl STLPort
 dnl ========== dnl ==========
  
 dnl Ask user for path to the STLport header files dnl Ask user for path to the STLport files location
 AC_ARG_WITH( stlport, AC_ARG_WITH( stlport,
     [  --with-stlport=<path>   path to the STLPort header files directory.     [  --with-stlport=<path>   path to the STLPort install directory.
                           e.g. /usr/local/include/stlport],                           e.g. /usr/local/stlport]
     [STLPORT_DIR=$with_stlport 
       AC_MSG_RESULT(using STLPort header files located in $with_stlport)], 
     AC_MSG_ERROR([You must call configure with the --with-stlport option. 
     This tells configure where to find the STLPort header files. 
     e.g. --with-stlport=/usr/local/include/stlport]) 
 ) )
  
 if test X"$STLPORT_DIR" != X""; AC_ARG_WITH( stlport-include,
 then     [  --with-stlport-include=<path>
     CXXFLAGS="-I$STLPORT_DIR $CXXFLAGS"                           path to the STLPort header files directory.
 fi                           e.g. /usr/local/stlport/stlport]
  )
  
 dnl Ask user for path to the STLPort library files AC_ARG_WITH( stlport-lib,
 AC_ARG_WITH( stllib,     [  --with-stlport-lib=<path>
     [  --with-stllib=<path>    path to the STLPort installation directory.                           path to the STLPort library files directory.
                           e.g. /usr/local/lib/stlport],                           e.g. /usr/local/stlport/lib]
     [STLLIB_DIR=$with_stllib 
       AC_MSG_RESULT(using STLPort library located in $with_stllib)] 
 ) )
  
 if test X"$STLLIB_DIR" != X""; if test "$with_stlport" != "no"
 then then
     LIBS="-L$STLLIB_DIR $LIBS"     if test -z "$with_stlport" && test -z "$with_stlport_lib" -o -z "$with_stlpo
  rt_include"
      then
          AC_MSG_ERROR([You must call configure with the --with-stlport or --with-stlport-lib and with-stlport-include options.
  This tells configure where to find the STLPort files.])
 fi fi
  
 LIBS="$LIBS -lstlport_gcc"     if test $with_stlport
      then
          AC_MSG_RESULT(using STLPort files located in $with_stlport)
  
 _CPPFLAGS="$CPPFLAGS"         STLPORT_CFLAGS="-I$with_stlport/stlport"
 CPPFLAGS="$CXXFLAGS"         STLPORT_LIB="-L$with_stlport/lib"
      fi
  else
      no_stlport="no"
      AC_MSG_RESULT(*** Override the use of the STLPorts (EXPERIMENTAL) ***)
  fi
  
 AC_MSG_CHECKING(for STLPort) if test -z "$no_stlport" -a "$with_stlport_include"
 AC_EGREP_CPP( yo_stlport, then
 [#include <algorithm>     AC_MSG_RESULT(using STLPort header files located in $with_stlport_include)
 #ifdef __SGI_STL_PORT     STLPORT_CFLAGS="-I$with_stlport_include"
    yo_stlport fi
 #endif], 
 [AC_MSG_RESULT(yes)], 
 AC_MSG_ERROR([STLPort is needed to compile NeLNS (www.stlport.org)]) 
 ) 
  
 CPPFLAGS="$_CPPFLAGS" if test -z "$no_stlport" -a  "$with_stlport_lib"
  then
      AC_MSG_RESULT(using STLPort library files located in $with_stlport_lib)
      STLPORT_LIB="-L$with_stlport_lib"
  fi
  
  
 dnl ========== dnl ==========
Line 121 
Line 126 
 dnl Ask user for path to the NeL header files dnl Ask user for path to the NeL header files
 AC_ARG_WITH( nel, AC_ARG_WITH( nel,
     [  --with-nel=<prefix>     prefix to the NeL files installation.     [  --with-nel=<prefix>     prefix to the NeL files installation.
                           e.g. /usr/local/include],                           e.g. /usr/local],
     [NEL_DIR=$with_nel     [NEL_DIR=$with_nel
       AC_MSG_RESULT(using NeL header files located in $with_nel)]       AC_MSG_RESULT(using NeL files located in $with_nel)]
 ) )
  
 if test X"$NEL_DIR" != X""; if test X"$NEL_DIR" != X"";
Line 198 
Line 203 
  
 dnl ==================================================================== dnl ====================================================================
 dnl Checks for libraries. dnl Checks for libraries.
  
  dnl ==========
  dnl STLPort
  dnl ==========
  
  if test -z "$no_stlport"
  then
    
      if test X"$STLPORT_CFLAGS" != X
      then
          CXXFLAGS="$STLPORT_CFLAGS $CXXFLAGS"
      fi
  
      if test X"$STLPORT_LIB" != X
      then
          LIBS="$STLPORT_LIB $LIBS -lstlport_gcc"
      fi
  
      _CPPFLAGS="$CPPFLAGS"
      CPPFLAGS="$CXXFLAGS $STLPORT_CFLAGS"
  
      AC_MSG_CHECKING(for STLPort)
      AC_EGREP_CPP( yo_stlport,
      [#include <algorithm>
  #ifdef __SGI_STL_PORT
     yo_stlport
  #endif],
      [ AC_MSG_RESULT(yes)],
        AC_MSG_ERROR([STLPort is needed to compile NeL (www.stlport.org).]) )
      
        CPPFLAGS="$_CPPFLAGS"
  fi
  
  
 dnl ==================================================================== dnl ====================================================================


Legend:
Removed from v.1.4 
changed lines
 Added in v.1.7