pidgin/plugins/perl/Makefile.am

changeset 22879
39b83b2be9d0
parent 16972
abfb3e242ff5
child 27584
134e07aa6f64
--- a/pidgin/plugins/perl/Makefile.am	Sat Apr 26 00:12:41 2008 +0000
+++ b/pidgin/plugins/perl/Makefile.am	Sat Apr 26 00:43:15 2008 +0000
@@ -39,7 +39,9 @@
 common/Makefile: common/Makefile.PL
 	@if test "x${top_srcdir}" != "x${top_builddir}"; then \
 		for f in ${common_sources}; do \
-			${LN_S} -f ../${srcdir}/$$f $$f; \
+			srcloc=${srcdir}; \
+			case $$srcloc in /*) ;; *) srcloc=../${srcdir} ;; esac; \
+			${LN_S} -f $$srcloc/$$f $$f; \
 		done; \
 	fi
 	@cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)

mercurial