]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 1243: Build overrides configured AR setting
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 30 Oct 2011 06:27:44 +0000 (00:27 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 30 Oct 2011 06:27:44 +0000 (00:27 -0600)
configure.ac

index 28a5e9cb6025a61ab86932b2db0fcc555e3883c6..1fa14d4091dddb22a73b44dd8d9414799f88f8b4 100644 (file)
@@ -2256,8 +2256,10 @@ case "$host" in
        ;;
 esac
 
-dnl set $(AR)
-AC_PATH_PROG(AR, ar, $FALSE)
+dnl set $(AR) if not provided by the build environment
+if test "x$AR" = "x"; then
+  AC_PATH_PROG(AR, ar, $FALSE)
+fi
 AR_R="$AR r"
 case "$host" in
        *-next-nextstep3)