From d3de1a714f2b22dea03f255de83b99581882f24b Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 15 Dec 2012 22:10:27 -0500 Subject: [PATCH] configure: clarify message regarding checking if we can link with -static Signed-off-by: "Theodore Ts'o" --- configure | 4 ++-- configure.in | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 01b56c55..da1bcb6c 100755 --- a/configure +++ b/configure @@ -11293,8 +11293,8 @@ if test "${with_multiarch+set}" = set; then : root_libdir=$root_libdir/$withval fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 -$as_echo_n "checking whether linker accepts -static... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 +$as_echo_n "checking whether we can link with -static... " >&6; } if ${ac_cv_e2fsprogs_use_static+:} false; then : $as_echo_n "(cached) " >&6 else diff --git a/configure.in b/configure.in index 2b44d1e7..1099309a 100644 --- a/configure.in +++ b/configure.in @@ -1180,9 +1180,11 @@ libdir=$libdir/$withval root_libdir=$root_libdir/$withval )dnl dnl -dnl See if -static works. +dnl See if -static works. This could fail if the linker does not +dnl support -static, or if required external libraries are not available +dnl in static form. dnl -AC_MSG_CHECKING([whether linker accepts -static]) +AC_MSG_CHECKING([whether we can link with -static]) AC_CACHE_VAL(ac_cv_e2fsprogs_use_static, [SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" AC_TRY_LINK([#include ],[fflush(stdout);],