File: ln.m4

package info (click to toggle)
gnu-smalltalk 3.1-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 33,300 kB
  • ctags: 13,999
  • sloc: ansic: 88,106; sh: 23,223; asm: 7,889; perl: 4,493; cpp: 3,539; awk: 1,483; yacc: 1,355; xml: 1,272; makefile: 1,192; lex: 843; sed: 258; objc: 124
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