Changeset 131


Ignore:
Timestamp:
Nov 2, 2006 4:36:16 PM (13 years ago)
Author:
andreasw
Message:

the VPATH_LINKS macro now also creates subdirectories if they don't exist (as requrest by Kipp)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/0.5/coin.m4

    r119 r131  
    15641564
    15651565if test x"$coin_vpath_link_files" = x; then : ; else
    1566   AC_MSG_NOTICE(Creating VPATH links for data files)
     1566  lnkcmd=
     1567  if test "$enable_doscompile" = yes; then
     1568    lnkcmd=cp
     1569  fi
     1570  case "$CC" in
     1571    cl* | */cl*)
     1572      lnkcmd=cp ;;
     1573  esac
     1574  if test "$lnkcmd" = cp; then
     1575    AC_MSG_NOTICE(Copying data files for VPATH configuration)
     1576  else
     1577    AC_PROG_LN_S
     1578    AC_MSG_NOTICE(Creating VPATH links for data files)
     1579    lnkcmd="$LN_S"
     1580  fi
    15671581  for file in $coin_vpath_link_files; do
     1582    dir=`echo ./$file | sed -e 's|[^/]*$||'`
     1583    if test -d $dir; then : ; else
     1584      AS_MKDIR_P($dir)
     1585    fi
    15681586    rm -f $file
    1569     $LN_S $abs_source_dir/$file $file
     1587    $lnkcmd $abs_source_dir/$file $file
    15701588  done
    15711589fi
Note: See TracChangeset for help on using the changeset viewer.