Author: amassari
Date: Sat Sep 30 15:16:04 2006
New Revision: 451686

URL: http://svn.apache.org/viewvc?view=rev&rev=451686
Log:
If the compiler is MSVC or Forte, and the user didn't specify a linker, set a 
reasonable value

Modified:
    xerces/c/trunk/configure.ac

Modified: xerces/c/trunk/configure.ac
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/configure.ac?view=diff&rev=451686&r1=451685&r2=451686
==============================================================================
--- xerces/c/trunk/configure.ac (original)
+++ xerces/c/trunk/configure.ac Sat Sep 30 15:16:04 2006
@@ -41,6 +41,20 @@
 # Checks for programs.
 AC_PROG_CXX
 AC_PROG_CC
+
+# If using MSVC (under Cygwin) or Solaris Forte, and the user didn't specify a 
linker, force a reasonable
+# choice in order to avoid the "cannot find 'ld'" error from the 
AC_PROG_LIBTOOL
+if test x$LD = x; then
+       case $CXX in
+       'cl.exe' | 'cl')
+               LD='link'
+               ;;
+       'CC')
+               LD='CC'
+               ;;
+       esac
+fi
+
 AC_PROG_LN_S
 AC_LIBTOOL_WIN32_DLL
 AC_PROG_LIBTOOL



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to