diff --git a/aclocal.m4 b/aclocal.m4 index 3026cee81..938dd6758 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -123,7 +123,7 @@ int main() } EOF ${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.constructor.$ac_ext $LIBS 1>&5 -if test -n "`nm conftest | grep _ctors_aux`"; then +if test -n "`nm conftest${ac_exeext} | grep _ctors_aux`"; then objc_cv_con_autoload=yes else objc_cv_con_autoload=no diff --git a/configure b/configure index 6ff47ca2e..4f5ca9467 100755 --- a/configure +++ b/configure @@ -2041,7 +2041,7 @@ int main() } EOF ${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.constructor.$ac_ext $LIBS 1>&5 -if test -n "`nm conftest | grep _ctors_aux`"; then +if test -n "`nm conftest${ac_exeext} | grep _ctors_aux`"; then objc_cv_con_autoload=yes else objc_cv_con_autoload=no