From: Alexandre Oliva Date: Mon, 11 Jan 1999 06:14:39 +0000 (+0000) Subject: * libtool.m4 (AM_SYS_NM_PARSE): while we are at it, we may well X-Git-Tag: automake_1-4~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2487d7fcccc7214a47d0066f3559ff5a31f41f20;p=thirdparty%2Flibtool.git * libtool.m4 (AM_SYS_NM_PARSE): while we are at it, we may well cache the value of ac_cv_sys_symbol_underscore --- diff --git a/ChangeLog b/ChangeLog index 3bf5e9a65..548968a25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,11 @@ 1999-01-11 Alexandre Oliva + * libtool.m4 (AM_SYS_NM_PARSE): while we are at it, we may well + cache the value of ac_cv_sys_symbol_underscore + * libtool.m4 (AM_SYS_NM_PARSE): need for underscore prefix is now - auto-detected, by trying first without, then with it + auto-detected, by trying first without, then with it. + * ltconfig.in: ditto 1999-01-10 Alexandre Oliva diff --git a/libtool.m4 b/libtool.m4 index c735e9967..c84e388e2 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -380,7 +380,9 @@ changequote([,])dnl for ac_symprfx in "" "_"; do # Write the raw and C identifiers. - ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_symprfx$ac_sympat$/$ac_symxfrm/p'" + # Unlike in ltconfig.in, we need $ac_symprfx before $ac_symxfrm here, + # otherwise AM_SYS_SYMBOL_UNDERSCORE will always be false + ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'" # Check to see that the pipe works correctly. ac_pipe_works=no @@ -486,6 +488,11 @@ EOF # Do not use the global_symbol_pipe unless it works. if test "$ac_pipe_works" = yes; then + if test x"$ac_symprfx" = x"_"; then + ac_cv_sys_symbol_underscore=yes + else + ac_cv_sys_symbol_underscore=no + fi break else ac_cv_sys_global_symbol_pipe=