Warn the user if 'wine' will not find its libraries after installation

on 'make install'.
This commit is contained in:
Marcus Meissner 2002-06-04 00:59:57 +00:00 committed by Alexandre Julliard
parent 978a934245
commit c6476e90ab
1 changed files with 12 additions and 0 deletions

View File

@ -20,6 +20,7 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
LIBEXT = @LIBEXT@ LIBEXT = @LIBEXT@
LDCONFIG = @LDCONFIG@ LDCONFIG = @LDCONFIG@
LDD = @LDD@
MODULE = none MODULE = none
# Sub-directories containing stand-alone programs # Sub-directories containing stand-alone programs
@ -72,6 +73,17 @@ wine: $(WINEWRAPPER)
install:: all $(SUBDIRS:%=%/__install__) install:: all $(SUBDIRS:%=%/__install__)
-$(LDCONFIG) -$(LDCONFIG)
@if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`"; \
then \
echo "*************************************************" ; \
echo "*************************************************" ; \
echo "The installed Wine libraries will not be found!" ; \
echo "You can either:" ; \
echo " Add the line '$(libdir)' to /etc/ld.so.conf" ; \
echo ' export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
echo "*************************************************" ; \
echo "*************************************************" ; \
fi
uninstall:: $(SUBDIRS:%=%/__uninstall__) uninstall:: $(SUBDIRS:%=%/__uninstall__)