ltmain.in: Avoid using deprecated MSVC -o option

Microsoft deprecated -o and MSVC emits a warning when used:

cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release

The replacement when linking an executable is `-Fe`.

Reported: https://savannah.gnu.org/patch/?10570

* build-aux/ltmain.in: Replace -o with -Fe for MSVC compiler.
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 70d0e11..3c30492 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -8907,7 +8907,13 @@
 	    # compiling, it, like the target executable, must be
 	    # executed on the $host or under an emulation environment.
 	    $opt_dry_run || {
-	      $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
+	      func_cc_basename "$LTCC"
+	      case $func_cc_basename_result in
+		cl|cl.exe)
+		  $LTCC $LTCFLAGS -Fe$cwrapper $cwrappersource ;;
+		*)
+		  $LTCC $LTCFLAGS -o $cwrapper $cwrappersource ;;
+	      esac
 	      $STRIP $cwrapper
 	    }