r19042 - gnucash/trunk/packaging/win32 - pexports is only available if MSVC is installed. Encapsulate it in a conditional.

Geert Janssens gjanssens at code.gnucash.org
Tue Apr 20 10:54:59 EDT 2010


Author: gjanssens
Date: 2010-04-20 10:54:58 -0400 (Tue, 20 Apr 2010)
New Revision: 19042
Trac: http://svn.gnucash.org/trac/changeset/19042

Modified:
   gnucash/trunk/packaging/win32/install.sh
Log:
pexports is only available if MSVC is installed. Encapsulate it in a conditional.

Modified: gnucash/trunk/packaging/win32/install.sh
===================================================================
--- gnucash/trunk/packaging/win32/install.sh	2010-04-19 22:26:44 UTC (rev 19041)
+++ gnucash/trunk/packaging/win32/install.sh	2010-04-20 14:54:58 UTC (rev 19042)
@@ -394,7 +394,10 @@
 #endif
 EOF
         # Also, for MSVC compiler we need to create an import library
-        pexports $_GUILE_UDIR/bin/libguile.dll > $_GUILE_UDIR/lib/libguile.def
+        if [ x"$(which pexports.exe > /dev/null 2>&1)" != x ]
+        then
+            pexports $_GUILE_UDIR/bin/libguile.dll > $_GUILE_UDIR/lib/libguile.def
+        fi
         ${DLLTOOL} -d $_GUILE_UDIR/lib/libguile.def -D $_GUILE_UDIR/bin/libguile.dll -l $_GUILE_UDIR/lib/libguile.lib
         # Also, for MSVC compiler we need to slightly modify the gc.h header
         GC_H=$_GUILE_UDIR/include/libguile/gc.h



More information about the gnucash-changes mailing list