* libtool.m4 (AM_SYS_NM_PARSE): while we are at it, we may well

cache the value of ac_cv_sys_symbol_underscore
This commit is contained in:
Alexandre Oliva 1999-01-11 06:14:39 +00:00 committed by Alexandre Oliva
parent 35f45d7e2e
commit 2487d7fccc
2 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,11 @@
1999-01-11 Alexandre Oliva <oliva@dcc.unicamp.br>
* 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 <oliva@dcc.unicamp.br>

9
libtool.m4 vendored
View File

@ -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=