Changeset 426


Ignore:
Timestamp:
Jul 16, 2007 12:58:54 PM (13 years ago)
Author:
andreasw
Message:

enabled shared libraries for debug compile; started fix for VPATH soft links

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coin.m4

    r419 r426  
    319319[case "${enableval}" in
    320320   yes) coin_debug_compile=true
    321         enable_shared=no
     321        if test "${enable_shared+set}" = set; then :; else
     322          enable_shared=no
     323        fi
    322324        ;;
    323325   no)  coin_debug_compile=false
     
    19311933
    19321934###########################################################################
     1935#                        COIN_LINK_INPUT_CMD                              #
     1936###########################################################################
     1937
     1938# This macro determines which command should be used to "link" files
     1939# that are input to the generated executables.  On Windows, the codes
     1940# using the native Windows system libraries, cannot understand symbolic
     1941# links, and a copy should be used instead of 'ln -s'.
     1942# The result is stored in coin_link_input_cmd
     1943
     1944AC_DEFUN([AC_COIN_LINK_INPUT_CMD],
     1945[AC_REQUIRE([AC_PROG_LN_S])
     1946AC_BEFORE([AC_COIN_PROG_CC], [$0])
     1947AC_BEFORE([AC_COIN_ENABLE_DOSCOMPILE], [$0])
     1948
     1949AC_MSG_CHECKING([which command should be used to link input files])
     1950coin_link_input_cmd="$LN_S"
     1951if test "$enable_doscompile" = mingw; then
     1952  coin_link_input_cmd=cp
     1953fi
     1954case "$CC" in
     1955  cl* | */cl* | CL* | */CL*)
     1956    coin_link_input_cmd=cp ;;
     1957esac
     1958AC_MSG_RESULT($coin_link_input_cmd)
     1959])
     1960
     1961###########################################################################
    19331962#                              COIN_FINALIZE                              #
    19341963###########################################################################
     
    19431972AC_DEFUN([AC_COIN_FINALIZE],
    19441973[
     1974AC_REQUIRE([AC_COIN_LINK_INPUT_CMD])
    19451975if test x$coin_skip_ac_output != xyes; then
    19461976
     
    19842014
    19852015  if test x"$coin_vpath_link_files" = x; then : ; else
    1986     lnkcmd=
    1987     if test "$enable_doscompile" = mingw; then
    1988       lnkcmd=cp
    1989     fi
    1990     case "$CC" in
    1991       cl* | */cl* | CL* | */CL*)
    1992         lnkcmd=cp ;;
    1993     esac
     2016    lnkcmd="$coin_link_input_cmd"
    19942017    if test "$lnkcmd" = cp; then
    19952018      AC_MSG_NOTICE(Copying data files for VPATH configuration)
    19962019    else
    1997       AC_PROG_LN_S
    19982020      AC_MSG_NOTICE(Creating VPATH links for data files)
    1999       lnkcmd="$LN_S"
    20002021    fi
    20012022    for file in $coin_vpath_link_files; do
Note: See TracChangeset for help on using the changeset viewer.