[BACK] Return to acinclude.m4 CVS log [TXT][DIR] Up to Nevrax / code / nelns

Diff for /code/nelns/acinclude.m4 between version 1.1 and 1.8

version 1.1, 2002/01/07 16:09:52 version 1.8, 2002/02/18 12:58:38
Line 64 
Line 64 
 dnl dnl
 dnl    Option:      "yes" if the use of the OpenAL library is mandatory. dnl    Option:      "yes" if the use of the OpenAL library is mandatory.
 dnl    Description: check the instalation of the OpenGL library and set the dnl    Description: check the instalation of the OpenGL library and set the
 dnl                 OPENAL_CFLAGS and OPENAL_LIB variables to use it. dnl                 OPENAL_CFLAGS and OPENAL_LIBS variables to use it.
 dnl dnl
 dnl dnl
 dnl AM_PATH_PYTHON dnl AM_PATH_PYTHON
Line 87 
Line 87 
 STL_DEBUG="-D__STL_DEBUG" STL_DEBUG="-D__STL_DEBUG"
  
 NL_DEBUG="-DNL_DEBUG" NL_DEBUG="-DNL_DEBUG"
 dnl NL_DEBUG_FAST="-DNL_DEBUG_FAST" NL_DEBUG_FAST="-DNL_DEBUG_FAST"
 NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG" NL_RELEASE_DEBUG="-DNL_RELEASE_DEBUG"
 NL_RELEASE="-DNL_RELEASE" NL_RELEASE="-DNL_RELEASE"
  
Line 214 
Line 214 
 [ AC_REQUIRE_CPP() [ AC_REQUIRE_CPP()
  
 chk_message_obj="$1" chk_message_obj="$1"
 nel_dir_lnk="$2" nel_libraries="$2"
 nel_libraries="$3" nel_test_lib="$3"
 nel_test_lib="$4" nel_additional_libs="$4"
 is_mandatory="$5" is_mandatory="$5"
  
 if test $is_mandatory = "yes" if test $is_mandatory = "yes"
Line 224 
Line 224 
  
     AC_MSG_CHECKING(for -l$nel_test_lib)     AC_MSG_CHECKING(for -l$nel_test_lib)
                  
     if test $nel_libraries     NEL_TEST_LIBS="$NEL_LIBS $nel_additional_libs -l$nel_test_lib"
     then 
         NEL_TEST_LIB="-L$nel_libraries -l$nel_test_lib" 
  
     else 
         NEL_TEST_LIB="$nel_dir_lnk -l$nel_test_lib" 
     fi 
  
     _CPPFLAGS="$CPPFLAGS"     _CPPFLAGS="$CPPFLAGS"
  
     CPPFLAGS="$CXXFLAGS $NEL_TEST_LIBS"     CPPFLAGS="$CXXFLAGS $LIBS $NEL_TEST_LIBS"
  
     AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no")     AC_TRY_LINK( , , have_nel_test_libraries="yes", have_nel_test_libraries="no")
  
Line 279 
Line 273 
 nel_net_lib="nelnet" nel_net_lib="nelnet"
 nel_3d_lib="nel3d" nel_3d_lib="nel3d"
 nel_pacs_lib="nelpacs" nel_pacs_lib="nelpacs"
 nel_sound_lib="nelsound" nel_sound_lib="nelsnd"
 nel_ai_lib="nelai" nel_ai_lib="nelai"
  
 nelmisc_is_mandatory="$1" nelmisc_is_mandatory="$1"
Line 289 
Line 283 
 nelsound_is_mandatory="$5" nelsound_is_mandatory="$5"
 nelai_is_mandatory="$6" nelai_is_mandatory="$6"
  
 nelconfig_libs_args="" 
  
 if test "$nelnet_is_mandatory" != "yes" 
 then 
     nelconfig_libs_args="$nelconfig_libs_args --without-network" 
 fi 
  
 if test "$nel3d_is_mandatory" != "yes" 
 then 
     nelconfig_libs_args="$nelconfig_libs_args --without-3d" 
 fi 
  
 if test "$nelpacs_is_mandatory" != "yes" 
 then 
     nelconfig_libs_args="$nelconfig_libs_args --without-pacs" 
 fi 
  
 if test "$nelsound_is_mandatory" != "yes" 
 then 
     nelconfig_libs_args="$nelconfig_libs_args --without-sound" 
 fi 
  
 if test "$nelai_is_mandatory" != "yes" 
 then 
     nelconfig_libs_args="$nelconfig_libs_args --without-ai" 
 fi 
  
 dnl Check for nel-config dnl Check for nel-config
 AC_PATH_PROG(NEL_CONFIG, nel-config, no) AC_PATH_PROG(NEL_CONFIG, nel-config, no)
  
Line 324 
Line 291 
     have_nel_config="no"     have_nel_config="no"
 else else
     NEL_CFLAGS=`nel-config --cflags`     NEL_CFLAGS=`nel-config --cflags`
     NEL_LIBS=`nel-config --libs $nelconfig_libs_args` 
  
     nel_dir_lnk=`echo '$NEL_LIBS' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'`     NEL_LIBS_CONFIG=`nel-config --libs`
  
      NEL_LIBS=`echo '$NEL_LIBS_CONFIG' | sed -e 's/[[:space:]]*-l[^[:space:]]*//g'`
  
     have_nel_config="yes"     have_nel_config="yes"
 fi fi
Line 352 
Line 320 
     NEL_CFLAGS="-I$nel_includes"     NEL_CFLAGS="-I$nel_includes"
 fi fi
  
  if test "$nel_libraries"
  then
      NEL_LIBS="-L$nel_libraries"
  fi
  
 dnl Checking for NeL headers dnl Checking for NeL headers
 MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory) MY_NEL_HEADER_CHK([NeL Misc], [nel/misc/types_nl.h], [NL_TYPES_H], $nelmisc_is_mandatory)
 MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory) MY_NEL_HEADER_CHK([NeL Network], [nel/net/sock.h], [NL_SOCK_H], $nelnet_is_mandatory)
Line 361 
Line 334 
 MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory) MY_NEL_HEADER_CHK([NeL AI], [nel/ai/nl_ai.h], [_IA_NEL_H], $nelai_is_mandatory)
  
 dnl Checking for NeL libraries dnl Checking for NeL libraries
 MY_NEL_LIB_CHK([NeL Misc], $nel_dir_lnk, $nel_libraries, $nel_misc_lib, $nelmisc_is_mandatory) MY_NEL_LIB_CHK([NeL Misc], $nel_libraries, $nel_misc_lib, "", $nelmisc_is_mandatory)
 MY_NEL_LIB_CHK([NeL Network], $nel_dir_lnk, $nel_libraries, $nel_net_lib, $nelnet_is_mandatory) MY_NEL_LIB_CHK([NeL Network],$nel_libraries, $nel_net_lib, "-lnelmisc", $nelnet_is_mandatory)
 MY_NEL_LIB_CHK([NeL 3D], $nel_dir_lnk, $nel_libraries, $nel_3d_lib, $nel3d_is_mandatory) MY_NEL_LIB_CHK([NeL 3D], $nel_libraries, $nel_3d_lib, "-lnelmisc", $nel3d_is_mandatory)
 MY_NEL_LIB_CHK([NeL PACS], $nel_dir_lnk, $nel_libraries, $nel_pacs_lib, $nelpacs_is_mandatory) MY_NEL_LIB_CHK([NeL PACS], $nel_libraries, $nel_pacs_lib, "-lnelmisc", $nelpacs_is_mandatory)
 MY_NEL_LIB_CHK([NeL Sound], $nel_dir_lnk, $nel_libraries, $nel_sound_lib, $nelsound_is_mandatory) MY_NEL_LIB_CHK([NeL AI], $nel_libraries, $nel_ai_lib, "-lnelmisc", $nelai_is_mandatory)
 MY_NEL_LIB_CHK([NeL AI], $nel_dir_lnk, $nel_libraries, $nel_ai_lib, $nelai_is_mandatory) MY_NEL_LIB_CHK([NeL Sound], $nel_libraries, $nel_sound_lib, "-lnelmisc" $OPENAL_LIBS, $nelsound_is_mandatory)
  
 ]) ])
  
Line 391 
Line 364 
                           path to the STLPort library files directory.                           path to the STLPort library files directory.
                           e.g. /usr/local/stlport/lib])                           e.g. /usr/local/stlport/lib])
  
  if test "$with_debug" = "full"
  then
   stlport_lib="stlport_gcc_stldebug"
  else
 stlport_lib="stlport_gcc" stlport_lib="stlport_gcc"
  fi
  
 if test "$with_stlport" = no if test "$with_stlport" = no
 then then
Line 404 
Line 382 
     then     then
         stlport_includes="$with_stlport/stlport"         stlport_includes="$with_stlport/stlport"
         stlport_libraries="$with_stlport/lib"         stlport_libraries="$with_stlport/lib"
  
          if test ! -d "$stlport_includes"
          then
              stlport_includes="$with_stlport/include/stlport"
          fi
     fi     fi
 fi fi
  
Line 876 
Line 859 
 then then
     OPENAL_LIBS="-L$openal_libraries"     OPENAL_LIBS="-L$openal_libraries"
 fi fi
 OPENAL_LIB="$OPENAL_LIB -l$openal_lib" OPENAL_LIBS="$OPENAL_LIBS -l$openal_lib"
  
 _CPPFLAGS="$CPPFLAGS" _CPPFLAGS="$CPPFLAGS"
 CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS" CPPFLAGS="$CXXFLAGS $OPENAL_CFLAGS"
Line 905 
Line 888 
 dnl Test the libraries dnl Test the libraries
 AC_MSG_CHECKING(for OpenAL libraries) AC_MSG_CHECKING(for OpenAL libraries)
  
 CPPFLAGS="$CXXFLAGS $OPENAL_LIB" CPPFLAGS="$CXXFLAGS $OPENAL_LIBS"
  
 AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no") AC_TRY_LINK( , , have_openal_libraries="yes", have_openal_libraries="no")
  
Line 939 
Line 922 
 fi fi
  
 AC_SUBST(OPENAL_CFLAGS) AC_SUBST(OPENAL_CFLAGS)
 AC_SUBST(OPENAL_LIB) AC_SUBST(OPENAL_LIBS)
  
  
 ]) ])
Line 949 
Line 932 
 # AM_PATH_PYTHON : Python checking macros # AM_PATH_PYTHON : Python checking macros
  
 AC_DEFUN(AM_PATH_PYTHON, AC_DEFUN(AM_PATH_PYTHON,
 [ is_mandatory="$1" [ python_version_required="$1"
  
  is_mandatory="$2"
  
 AC_REQUIRE_CPP() AC_REQUIRE_CPP()
  
Line 975 
Line 960 
 then then
     PYTHON_EXEC="python$PYTHON_VERSION"     PYTHON_EXEC="python$PYTHON_VERSION"
 else else
     PYTHON_EXEC="python python2.0 python1.5"     PYTHON_EXEC="python python2.1 python2.0 python1.5"
 fi fi
  
 AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH) AC_PATH_PROGS(PYTHON, $PYTHON_EXEC, no, $PATH)
  
 if test "$PYTHON" = "no" if test "$PYTHON" != "no"
  then
      PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'`
      PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'`
  
      is_python_version_enough=`expr $python_version_required \<= $PYTHON_VERSION`
  fi
  
  
  if test "$PYTHON" = "no" || test "$is_python_version_enough" != "1"
 then then
  
     if test "$is_mandatory" = "yes"     if test "$is_mandatory" = "yes"
     then     then
         AC_MSG_ERROR([Python must be installed (http://www.python.org)])         AC_MSG_ERROR([Python $python_version_required must be installed (http://www.python.org)])
     else     else
         have_python="no"         have_python="no"
     fi     fi
  
 else else
  
     PYTHON_PREFIX=`$PYTHON -c 'import sys; print "%s" % (sys.prefix)'` 
     PYTHON_VERSION=`$PYTHON -c 'import sys; print "%s" % (sys.version[[:3]])'` 
  
     python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION"     python_includes="$PYTHON_PREFIX/include/python$PYTHON_VERSION"
     python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"     python_libraries="$PYTHON_PREFIX/lib/python$PYTHON_VERSION/config"


Legend:
Removed from v.1.1 
changed lines
 Added in v.1.8