diff options
author | Bruno Haible <bruno@clisp.org> | 2009-04-24 03:23:19 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-04-24 04:09:12 +0200 |
commit | b62576e3a1e93867f3c916bfb5b543485090cf92 (patch) | |
tree | 86a9a72cc0320fd6a5429134f678ada279feddd0 /m4 | |
parent | 5f755fddada02a264f6381974a564538950fb54a (diff) | |
download | libunistring-b62576e3a1e93867f3c916bfb5b543485090cf92.tar.gz |
Fix recognition of 'link' command.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/libtool.m4 | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 69ca81f..ab8fbc6 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1,7 +1,7 @@ # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. +# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives @@ -3214,7 +3214,19 @@ if test "$lt_cv_path_NM" != "no"; then NM="$lt_cv_path_NM" else # Didn't find any BSD compatible name lister, look for dumpbin. - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) + if test -n "$DUMPBIN"; then : + # Let the user override the test. + else + AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) + case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols" + ;; + *) + DUMPBIN=: + ;; + esac + fi AC_SUBST([DUMPBIN]) if test "$DUMPBIN" != ":"; then NM="$DUMPBIN" |