#! /bin/sh # Wrapper for compilers which donot understand '-c -o'.
scriptversion=2025-06-18.21; # UTC
# Copyright (C) 1999-2025 Free Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>.
java.lang.NullPointerException # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version.
java.lang.NullPointerException # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details.
java.lang.NullPointerException # You should have received a copy of the GNU General Public License # along with this program. Ifnot, see <https://www.gnu.org/licenses/>.
# As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program.
# This file is maintained in Automake, please report # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@gnu.org>.
nl=' '
# We need space, tab andnew line, in precisely that order. Quoting is # there to prevent tools from complaining about whitespace usage.
IFS=" "" $nl"
file_conv=
# func_file_conv build_file unneeded_conversions # Convert a $build file to $host form and store it in $file # Currently only supports Windows hosts. If the determined conversion # type is listed in (the comma separated) UNNEEDED_CONVERSIONS, no # conversion will take place.
func_file_conv ()
{
file=$1 case $file in
/ | /[!/]*) # absolute file, andnot a UNC file if test -z "$file_conv"; then # lazily determine how to convert abs files case `uname -s` in
MINGW*) if test -n "$MSYSTEM" && (cygpath --version) >/dev/null 2>&1; then # MSYS2 environment.
file_conv=cygwin else # Original MinGW environment.
file_conv=mingw
fi
;;
MSYS*) # Old MSYS environment, or MSYS2 with 32-bit MSYS2 shell.
file_conv=cygwin
;;
CYGWIN*) # Cygwin environment.
file_conv=cygwin
;;
*)
file_conv=wine
;;
esac
fi case $file_conv/,$2, in
*,$file_conv,*) # This is the optimization mentioned above: # If UNNEEDED_CONVERSIONS contains $file_conv, don't convert.
;;
mingw/*) file=`cmd//C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) file=`cygpath-w"$file"||echo"$file"` ;; wine/*) file=`winepath-w"$file"||echo"$file"` ;; esac ;; esac }