+2000-04-16 Eli Zaretskii <eliz@is.elta.co.il>
+
+ * Makefile.in (LN_S): Define.
+ (gdb-cfg.texi, gdb.dvi, links2roff, inc-hist.texinfo): Don't
+ invoke "ln -s" unless it is known to work.
+
+ * configure.in (AC_PROG_LN_S): Add.
+
2000-04-14 Jim Blandy <jimb@redhat.com>
* gdbint.texinfo (Pointers Are Not Always Addresses): New manual
SHELL = @SHELL@
+LN_S = @LN_S@
+
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
# not one for their binary config---which may not be specifically
# defined anyways).
gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi
- ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
+ (test "$$LN_S" = "ln -s" && \
+ ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi) || \
ln ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
cp ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi
# GDB MANUAL: TeX dvi file
gdb.dvi: ${SFILES_DOC}
if [ ! -f ./GDBvn.texi ]; then \
- ln -s $(srcdir)/GDBvn.texi . || \
+ (test "$$LN_S" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
ln $(srcdir)/GDBvn.texi . || \
cp $(srcdir)/GDBvn.texi . ; else true; fi
$(SET_TEXINPUTS) $(TEX) gdb.texinfo
# in main sourcedir.
links2roff: $(SFILES_INCLUDED)
if [ ! -f gdb.texinfo ]; then \
- ln -s $(SFILES_INCLUDED) . || \
+ (test "$$LN_S" = "ln -s" && ln -s $(SFILES_INCLUDED) .) || \
ln $(SFILES_INCLUDED) . || \
cp $(SFILES_INCLUDED) . ; \
fi
${READLINE_DIR}/rluser.texinfo > ./rluser.texinfo
inc-hist.texinfo: ${READLINE_DIR}/inc-hist.texinfo
- ln -s ${READLINE_DIR}/inc-hist.texinfo . || \
+ (test "$$LN_S" = "ln -s" && \
+ ln -s ${READLINE_DIR}/inc-hist.texinfo .) || \
ln ${READLINE_DIR}/inc-hist.texinfo . || \
cp ${READLINE_DIR}/inc-hist.texinfo .