about -l and -L for archives and objects as output, to not
trigger for *.la files. Non-convenience archives are diagnosed
2008-01-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * libltdl/config/ltmain.m4sh (func_mode_link): Fix warning
+ about -l and -L for archives and objects as output, to not
+ trigger for *.la files. Non-convenience archives are diagnosed
+
* tests/configure-iface.at: Ensure LTDLINCL is expanded
before CPPFLAGS, so that even CPPFLAGS=-I/usr/local/include
won't make the tests prefer an installed ltdl.h over the
func_warning "\`-dlopen' is ignored for archives"
fi
- test -n "$deplibs" && \
- func_warning "\`-l' and \`-L' are ignored for archives"
-
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for archives" ;;
+ esac
test -n "$rpath" && \
func_warning "\`-rpath' is ignored for archives"
func_warning "\`-dlopen' is ignored for objects"
fi
- test -n "$deplibs" && \
- func_warning "\`-l' and \`-L' are ignored for objects"
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for objects" ;;
+ esac
test -n "$rpath" && \
func_warning "\`-rpath' is ignored for objects"