File: krb-prog-ln-s.m4

package info (click to toggle)
heimdal 7.5.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 42,300 kB
  • sloc: ansic: 355,050; sh: 11,962; makefile: 4,357; yacc: 1,786; perl: 1,572; lex: 732; python: 722; java: 119; awk: 41
file content (28 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
dnl $Id$
dnl
dnl
dnl Better test for ln -s, ln or cp
dnl

AC_DEFUN([AC_KRB_PROG_LN_S],
[AC_MSG_CHECKING(for ln -s or something else)
AC_CACHE_VAL(ac_cv_prog_LN_S,
[rm -f conftestdata
if ln -s X conftestdata 2>/dev/null
then
  rm -f conftestdata
  ac_cv_prog_LN_S="ln -s"
else
  touch conftestdata1
  if ln conftestdata1 conftestdata2; then
    rm -f conftestdata*
    ac_cv_prog_LN_S=ln
  else
    ac_cv_prog_LN_S=cp
  fi
fi])dnl
LN_S="$ac_cv_prog_LN_S"
AC_MSG_RESULT($ac_cv_prog_LN_S)
AC_SUBST(LN_S)dnl
])