File: ln.m4

package info (click to toggle)
gnu-smalltalk 3.0.3-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 26,460 kB
  • ctags: 13,326
  • sloc: ansic: 82,059; sh: 22,788; asm: 7,846; perl: 4,493; cpp: 3,517; awk: 1,471; yacc: 1,355; makefile: 1,151; xml: 886; lex: 843; sed: 258
file content (24 lines) | stat: -rw-r--r-- 625 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AC_DEFUN([GST_PROG_LN],
[AC_MSG_CHECKING([whether ln works])
rm -f conf$$ conf$$.exe conf$$.file
echo >conf$$.file
if ln conf$$.file conf$$ 2>/dev/null; then
  # We could just check for DJGPP; but this test works, is more generic
  # and will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  if test -f conf$$.exe; then
    # Don't use ln at all; we don't have any links
    LN='cp -p'
  else
    LN='ln'
  fi
else
  LN=m4_if([$1], [], [$as_ln_s], [$1])
fi
rm -f conf$$ conf$$.exe conf$$.file
AC_SUBST([LN])dnl
if test "$LN" = ln; then
  AC_MSG_RESULT([yes])
else
  AC_MSG_RESULT([no, using $LN])
fi
])# GST_PROG_LN