[glib] win32: Use AC_CHECK_TOOL to find dlltool



commit 4a506290a701a890b4609ac979f8e1d11935a39e
Author: Arnel A. Borja <kyoushuu yahoo com>
Date:   Fri Sep 14 08:58:04 2012 +0800

    win32: Use AC_CHECK_TOOL to find dlltool
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684145

 configure.ac      |    1 +
 tests/Makefile.am |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 27b33d1..7804262 100644
--- a/configure.ac
+++ b/configure.ac
@@ -205,6 +205,7 @@ AS_IF([test "$glib_native_win32" = "yes"], [
     AC_MSG_ERROR([*** Could not find an implementation of nm in your PATH.])
   fi
   AC_CHECK_TOOL(RANLIB, ranlib, :)
+  AC_CHECK_TOOL(DLLTOOL, dlltool, :)
   AC_CHECK_PROG(ms_librarian, [lib.exe], [yes], [no])
 ])
 AM_CONDITIONAL(MS_LIB_AVAILABLE, [test x$ms_librarian = xyes])
diff --git a/tests/Makefile.am b/tests/Makefile.am
index b33b023..8a18f2f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -24,7 +24,7 @@ no_undefined = -no-undefined
 module_test_exp = module-test.exp
 
 module-test.exp: module-test.o
-	dlltool --output-exp module-test.exp module-test.o
+	$(DLLTOOL) --output-exp module-test.exp module-test.o
 
 spawn_test_win32_gui = spawn-test-win32-gui
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]