regenerate autofoo. add missing 'compile' script.
authorOzkan Sezer <sezeroz@gmail.com>
Sat, 27 Oct 2018 11:10:02 +0300
changeset 620083e81296e65
parent 619 6f43400b7d77
child 621 dd745dc6b614
regenerate autofoo. add missing 'compile' script.
Makefile.in
aclocal.m4
compile
     1.1 --- a/Makefile.in	Fri Oct 26 15:08:22 2018 -0700
     1.2 +++ b/Makefile.in	Sat Oct 27 11:10:02 2018 +0300
     1.3 @@ -1,4 +1,4 @@
     1.4 -# Makefile.in generated by automake 1.16 from Makefile.am.
     1.5 +# Makefile.in generated by automake 1.16.1 from Makefile.am.
     1.6  # @configure_input@
     1.7  
     1.8  # Copyright (C) 1994-2018 Free Software Foundation, Inc.
     1.9 @@ -259,8 +259,8 @@
    1.10  CSCOPE = cscope
    1.11  AM_RECURSIVE_TARGETS = cscope
    1.12  am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/SDL2_image.pc.in \
    1.13 -	$(srcdir)/SDL2_image.spec.in ar-lib compile config.guess \
    1.14 -	config.sub depcomp install-sh ltmain.sh missing
    1.15 +	$(srcdir)/SDL2_image.spec.in compile config.guess config.sub \
    1.16 +	depcomp install-sh ltmain.sh missing
    1.17  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    1.18  distdir = $(PACKAGE)-$(VERSION)
    1.19  top_distdir = $(distdir)
     2.1 --- a/aclocal.m4	Fri Oct 26 15:08:22 2018 -0700
     2.2 +++ b/aclocal.m4	Sat Oct 27 11:10:02 2018 +0300
     2.3 @@ -1,4 +1,4 @@
     2.4 -# generated automatically by aclocal 1.16 -*- Autoconf -*-
     2.5 +# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
     2.6  
     2.7  # Copyright (C) 1996-2018 Free Software Foundation, Inc.
     2.8  
     2.9 @@ -20,106 +20,6 @@
    2.10  If you have problems, you may need to regenerate the build system entirely.
    2.11  To do so, use the procedure documented by the package, typically 'autoreconf'.])])
    2.12  
    2.13 -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
    2.14 -#
    2.15 -#   Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
    2.16 -#   Foundation, Inc.
    2.17 -#   Written by Scott James Remnant, 2004.
    2.18 -#
    2.19 -# This file is free software; the Free Software Foundation gives
    2.20 -# unlimited permission to copy and/or distribute it, with or without
    2.21 -# modifications, as long as this notice is preserved.
    2.22 -
    2.23 -# serial 5 lt~obsolete.m4
    2.24 -
    2.25 -# These exist entirely to fool aclocal when bootstrapping libtool.
    2.26 -#
    2.27 -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
    2.28 -# which have later been changed to m4_define as they aren't part of the
    2.29 -# exported API, or moved to Autoconf or Automake where they belong.
    2.30 -#
    2.31 -# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
    2.32 -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
    2.33 -# using a macro with the same name in our local m4/libtool.m4 it'll
    2.34 -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
    2.35 -# and doesn't know about Autoconf macros at all.)
    2.36 -#
    2.37 -# So we provide this file, which has a silly filename so it's always
    2.38 -# included after everything else.  This provides aclocal with the
    2.39 -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
    2.40 -# because those macros already exist, or will be overwritten later.
    2.41 -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
    2.42 -#
    2.43 -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
    2.44 -# Yes, that means every name once taken will need to remain here until
    2.45 -# we give up compatibility with versions before 1.7, at which point
    2.46 -# we need to keep only those names which we still refer to.
    2.47 -
    2.48 -# This is to help aclocal find these macros, as it can't see m4_define.
    2.49 -AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
    2.50 -
    2.51 -m4_ifndef([AC_LIBTOOL_LINKER_OPTION],	[AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
    2.52 -m4_ifndef([AC_PROG_EGREP],		[AC_DEFUN([AC_PROG_EGREP])])
    2.53 -m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
    2.54 -m4_ifndef([_LT_AC_SHELL_INIT],		[AC_DEFUN([_LT_AC_SHELL_INIT])])
    2.55 -m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],	[AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
    2.56 -m4_ifndef([_LT_PROG_LTMAIN],		[AC_DEFUN([_LT_PROG_LTMAIN])])
    2.57 -m4_ifndef([_LT_AC_TAGVAR],		[AC_DEFUN([_LT_AC_TAGVAR])])
    2.58 -m4_ifndef([AC_LTDL_ENABLE_INSTALL],	[AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
    2.59 -m4_ifndef([AC_LTDL_PREOPEN],		[AC_DEFUN([AC_LTDL_PREOPEN])])
    2.60 -m4_ifndef([_LT_AC_SYS_COMPILER],	[AC_DEFUN([_LT_AC_SYS_COMPILER])])
    2.61 -m4_ifndef([_LT_AC_LOCK],		[AC_DEFUN([_LT_AC_LOCK])])
    2.62 -m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],	[AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
    2.63 -m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],	[AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
    2.64 -m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],	[AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
    2.65 -m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
    2.66 -m4_ifndef([AC_LIBTOOL_OBJDIR],		[AC_DEFUN([AC_LIBTOOL_OBJDIR])])
    2.67 -m4_ifndef([AC_LTDL_OBJDIR],		[AC_DEFUN([AC_LTDL_OBJDIR])])
    2.68 -m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
    2.69 -m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],	[AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
    2.70 -m4_ifndef([AC_PATH_MAGIC],		[AC_DEFUN([AC_PATH_MAGIC])])
    2.71 -m4_ifndef([AC_PROG_LD_GNU],		[AC_DEFUN([AC_PROG_LD_GNU])])
    2.72 -m4_ifndef([AC_PROG_LD_RELOAD_FLAG],	[AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
    2.73 -m4_ifndef([AC_DEPLIBS_CHECK_METHOD],	[AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
    2.74 -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
    2.75 -m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
    2.76 -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
    2.77 -m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],	[AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
    2.78 -m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],	[AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
    2.79 -m4_ifndef([LT_AC_PROG_EGREP],		[AC_DEFUN([LT_AC_PROG_EGREP])])
    2.80 -m4_ifndef([LT_AC_PROG_SED],		[AC_DEFUN([LT_AC_PROG_SED])])
    2.81 -m4_ifndef([_LT_CC_BASENAME],		[AC_DEFUN([_LT_CC_BASENAME])])
    2.82 -m4_ifndef([_LT_COMPILER_BOILERPLATE],	[AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
    2.83 -m4_ifndef([_LT_LINKER_BOILERPLATE],	[AC_DEFUN([_LT_LINKER_BOILERPLATE])])
    2.84 -m4_ifndef([_AC_PROG_LIBTOOL],		[AC_DEFUN([_AC_PROG_LIBTOOL])])
    2.85 -m4_ifndef([AC_LIBTOOL_SETUP],		[AC_DEFUN([AC_LIBTOOL_SETUP])])
    2.86 -m4_ifndef([_LT_AC_CHECK_DLFCN],		[AC_DEFUN([_LT_AC_CHECK_DLFCN])])
    2.87 -m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],	[AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
    2.88 -m4_ifndef([_LT_AC_TAGCONFIG],		[AC_DEFUN([_LT_AC_TAGCONFIG])])
    2.89 -m4_ifndef([AC_DISABLE_FAST_INSTALL],	[AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
    2.90 -m4_ifndef([_LT_AC_LANG_CXX],		[AC_DEFUN([_LT_AC_LANG_CXX])])
    2.91 -m4_ifndef([_LT_AC_LANG_F77],		[AC_DEFUN([_LT_AC_LANG_F77])])
    2.92 -m4_ifndef([_LT_AC_LANG_GCJ],		[AC_DEFUN([_LT_AC_LANG_GCJ])])
    2.93 -m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
    2.94 -m4_ifndef([_LT_AC_LANG_C_CONFIG],	[AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
    2.95 -m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
    2.96 -m4_ifndef([_LT_AC_LANG_CXX_CONFIG],	[AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
    2.97 -m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
    2.98 -m4_ifndef([_LT_AC_LANG_F77_CONFIG],	[AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
    2.99 -m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
   2.100 -m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],	[AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
   2.101 -m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],	[AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
   2.102 -m4_ifndef([_LT_AC_LANG_RC_CONFIG],	[AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
   2.103 -m4_ifndef([AC_LIBTOOL_CONFIG],		[AC_DEFUN([AC_LIBTOOL_CONFIG])])
   2.104 -m4_ifndef([_LT_AC_FILE_LTDLL_C],	[AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
   2.105 -m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],	[AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
   2.106 -m4_ifndef([_LT_AC_PROG_CXXCPP],		[AC_DEFUN([_LT_AC_PROG_CXXCPP])])
   2.107 -m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],	[AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
   2.108 -m4_ifndef([_LT_PROG_ECHO_BACKSLASH],	[AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
   2.109 -m4_ifndef([_LT_PROG_F77],		[AC_DEFUN([_LT_PROG_F77])])
   2.110 -m4_ifndef([_LT_PROG_FC],		[AC_DEFUN([_LT_PROG_FC])])
   2.111 -m4_ifndef([_LT_PROG_CXX],		[AC_DEFUN([_LT_PROG_CXX])])
   2.112 -
   2.113  # Copyright (C) 2002-2018 Free Software Foundation, Inc.
   2.114  #
   2.115  # This file is free software; the Free Software Foundation
   2.116 @@ -135,7 +35,7 @@
   2.117  [am__api_version='1.16'
   2.118  dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
   2.119  dnl require some minimum version.  Point them to the right macro.
   2.120 -m4_if([$1], [1.16], [],
   2.121 +m4_if([$1], [1.16.1], [],
   2.122        [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
   2.123  ])
   2.124  
   2.125 @@ -151,7 +51,7 @@
   2.126  # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
   2.127  # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
   2.128  AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
   2.129 -[AM_AUTOMAKE_VERSION([1.16])dnl
   2.130 +[AM_AUTOMAKE_VERSION([1.16.1])dnl
   2.131  m4_ifndef([AC_AUTOCONF_VERSION],
   2.132    [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
   2.133  _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/compile	Sat Oct 27 11:10:02 2018 +0300
     3.3 @@ -0,0 +1,348 @@
     3.4 +#! /bin/sh
     3.5 +# Wrapper for compilers which do not understand '-c -o'.
     3.6 +
     3.7 +scriptversion=2018-03-07.03; # UTC
     3.8 +
     3.9 +# Copyright (C) 1999-2018 Free Software Foundation, Inc.
    3.10 +# Written by Tom Tromey <tromey@cygnus.com>.
    3.11 +#
    3.12 +# This program is free software; you can redistribute it and/or modify
    3.13 +# it under the terms of the GNU General Public License as published by
    3.14 +# the Free Software Foundation; either version 2, or (at your option)
    3.15 +# any later version.
    3.16 +#
    3.17 +# This program is distributed in the hope that it will be useful,
    3.18 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    3.19 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    3.20 +# GNU General Public License for more details.
    3.21 +#
    3.22 +# You should have received a copy of the GNU General Public License
    3.23 +# along with this program.  If not, see <https://www.gnu.org/licenses/>.
    3.24 +
    3.25 +# As a special exception to the GNU General Public License, if you
    3.26 +# distribute this file as part of a program that contains a
    3.27 +# configuration script generated by Autoconf, you may include it under
    3.28 +# the same distribution terms that you use for the rest of that program.
    3.29 +
    3.30 +# This file is maintained in Automake, please report
    3.31 +# bugs to <bug-automake@gnu.org> or send patches to
    3.32 +# <automake-patches@gnu.org>.
    3.33 +
    3.34 +nl='
    3.35 +'
    3.36 +
    3.37 +# We need space, tab and new line, in precisely that order.  Quoting is
    3.38 +# there to prevent tools from complaining about whitespace usage.
    3.39 +IFS=" ""	$nl"
    3.40 +
    3.41 +file_conv=
    3.42 +
    3.43 +# func_file_conv build_file lazy
    3.44 +# Convert a $build file to $host form and store it in $file
    3.45 +# Currently only supports Windows hosts. If the determined conversion
    3.46 +# type is listed in (the comma separated) LAZY, no conversion will
    3.47 +# take place.
    3.48 +func_file_conv ()
    3.49 +{
    3.50 +  file=$1
    3.51 +  case $file in
    3.52 +    / | /[!/]*) # absolute file, and not a UNC file
    3.53 +      if test -z "$file_conv"; then
    3.54 +	# lazily determine how to convert abs files
    3.55 +	case `uname -s` in
    3.56 +	  MINGW*)
    3.57 +	    file_conv=mingw
    3.58 +	    ;;
    3.59 +	  CYGWIN*)
    3.60 +	    file_conv=cygwin
    3.61 +	    ;;
    3.62 +	  *)
    3.63 +	    file_conv=wine
    3.64 +	    ;;
    3.65 +	esac
    3.66 +      fi
    3.67 +      case $file_conv/,$2, in
    3.68 +	*,$file_conv,*)
    3.69 +	  ;;
    3.70 +	mingw/*)
    3.71 +	  file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
    3.72 +	  ;;
    3.73 +	cygwin/*)
    3.74 +	  file=`cygpath -m "$file" || echo "$file"`
    3.75 +	  ;;
    3.76 +	wine/*)
    3.77 +	  file=`winepath -w "$file" || echo "$file"`
    3.78 +	  ;;
    3.79 +      esac
    3.80 +      ;;
    3.81 +  esac
    3.82 +}
    3.83 +
    3.84 +# func_cl_dashL linkdir
    3.85 +# Make cl look for libraries in LINKDIR
    3.86 +func_cl_dashL ()
    3.87 +{
    3.88 +  func_file_conv "$1"
    3.89 +  if test -z "$lib_path"; then
    3.90 +    lib_path=$file
    3.91 +  else
    3.92 +    lib_path="$lib_path;$file"
    3.93 +  fi
    3.94 +  linker_opts="$linker_opts -LIBPATH:$file"
    3.95 +}
    3.96 +
    3.97 +# func_cl_dashl library
    3.98 +# Do a library search-path lookup for cl
    3.99 +func_cl_dashl ()
   3.100 +{
   3.101 +  lib=$1
   3.102 +  found=no
   3.103 +  save_IFS=$IFS
   3.104 +  IFS=';'
   3.105 +  for dir in $lib_path $LIB
   3.106 +  do
   3.107 +    IFS=$save_IFS
   3.108 +    if $shared && test -f "$dir/$lib.dll.lib"; then
   3.109 +      found=yes
   3.110 +      lib=$dir/$lib.dll.lib
   3.111 +      break
   3.112 +    fi
   3.113 +    if test -f "$dir/$lib.lib"; then
   3.114 +      found=yes
   3.115 +      lib=$dir/$lib.lib
   3.116 +      break
   3.117 +    fi
   3.118 +    if test -f "$dir/lib$lib.a"; then
   3.119 +      found=yes
   3.120 +      lib=$dir/lib$lib.a
   3.121 +      break
   3.122 +    fi
   3.123 +  done
   3.124 +  IFS=$save_IFS
   3.125 +
   3.126 +  if test "$found" != yes; then
   3.127 +    lib=$lib.lib
   3.128 +  fi
   3.129 +}
   3.130 +
   3.131 +# func_cl_wrapper cl arg...
   3.132 +# Adjust compile command to suit cl
   3.133 +func_cl_wrapper ()
   3.134 +{
   3.135 +  # Assume a capable shell
   3.136 +  lib_path=
   3.137 +  shared=:
   3.138 +  linker_opts=
   3.139 +  for arg
   3.140 +  do
   3.141 +    if test -n "$eat"; then
   3.142 +      eat=
   3.143 +    else
   3.144 +      case $1 in
   3.145 +	-o)
   3.146 +	  # configure might choose to run compile as 'compile cc -o foo foo.c'.
   3.147 +	  eat=1
   3.148 +	  case $2 in
   3.149 +	    *.o | *.[oO][bB][jJ])
   3.150 +	      func_file_conv "$2"
   3.151 +	      set x "$@" -Fo"$file"
   3.152 +	      shift
   3.153 +	      ;;
   3.154 +	    *)
   3.155 +	      func_file_conv "$2"
   3.156 +	      set x "$@" -Fe"$file"
   3.157 +	      shift
   3.158 +	      ;;
   3.159 +	  esac
   3.160 +	  ;;
   3.161 +	-I)
   3.162 +	  eat=1
   3.163 +	  func_file_conv "$2" mingw
   3.164 +	  set x "$@" -I"$file"
   3.165 +	  shift
   3.166 +	  ;;
   3.167 +	-I*)
   3.168 +	  func_file_conv "${1#-I}" mingw
   3.169 +	  set x "$@" -I"$file"
   3.170 +	  shift
   3.171 +	  ;;
   3.172 +	-l)
   3.173 +	  eat=1
   3.174 +	  func_cl_dashl "$2"
   3.175 +	  set x "$@" "$lib"
   3.176 +	  shift
   3.177 +	  ;;
   3.178 +	-l*)
   3.179 +	  func_cl_dashl "${1#-l}"
   3.180 +	  set x "$@" "$lib"
   3.181 +	  shift
   3.182 +	  ;;
   3.183 +	-L)
   3.184 +	  eat=1
   3.185 +	  func_cl_dashL "$2"
   3.186 +	  ;;
   3.187 +	-L*)
   3.188 +	  func_cl_dashL "${1#-L}"
   3.189 +	  ;;
   3.190 +	-static)
   3.191 +	  shared=false
   3.192 +	  ;;
   3.193 +	-Wl,*)
   3.194 +	  arg=${1#-Wl,}
   3.195 +	  save_ifs="$IFS"; IFS=','
   3.196 +	  for flag in $arg; do
   3.197 +	    IFS="$save_ifs"
   3.198 +	    linker_opts="$linker_opts $flag"
   3.199 +	  done
   3.200 +	  IFS="$save_ifs"
   3.201 +	  ;;
   3.202 +	-Xlinker)
   3.203 +	  eat=1
   3.204 +	  linker_opts="$linker_opts $2"
   3.205 +	  ;;
   3.206 +	-*)
   3.207 +	  set x "$@" "$1"
   3.208 +	  shift
   3.209 +	  ;;
   3.210 +	*.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
   3.211 +	  func_file_conv "$1"
   3.212 +	  set x "$@" -Tp"$file"
   3.213 +	  shift
   3.214 +	  ;;
   3.215 +	*.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
   3.216 +	  func_file_conv "$1" mingw
   3.217 +	  set x "$@" "$file"
   3.218 +	  shift
   3.219 +	  ;;
   3.220 +	*)
   3.221 +	  set x "$@" "$1"
   3.222 +	  shift
   3.223 +	  ;;
   3.224 +      esac
   3.225 +    fi
   3.226 +    shift
   3.227 +  done
   3.228 +  if test -n "$linker_opts"; then
   3.229 +    linker_opts="-link$linker_opts"
   3.230 +  fi
   3.231 +  exec "$@" $linker_opts
   3.232 +  exit 1
   3.233 +}
   3.234 +
   3.235 +eat=
   3.236 +
   3.237 +case $1 in
   3.238 +  '')
   3.239 +     echo "$0: No command.  Try '$0 --help' for more information." 1>&2
   3.240 +     exit 1;
   3.241 +     ;;
   3.242 +  -h | --h*)
   3.243 +    cat <<\EOF
   3.244 +Usage: compile [--help] [--version] PROGRAM [ARGS]
   3.245 +
   3.246 +Wrapper for compilers which do not understand '-c -o'.
   3.247 +Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
   3.248 +arguments, and rename the output as expected.
   3.249 +
   3.250 +If you are trying to build a whole package this is not the
   3.251 +right script to run: please start by reading the file 'INSTALL'.
   3.252 +
   3.253 +Report bugs to <bug-automake@gnu.org>.
   3.254 +EOF
   3.255 +    exit $?
   3.256 +    ;;
   3.257 +  -v | --v*)
   3.258 +    echo "compile $scriptversion"
   3.259 +    exit $?
   3.260 +    ;;
   3.261 +  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
   3.262 +  icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
   3.263 +    func_cl_wrapper "$@"      # Doesn't return...
   3.264 +    ;;
   3.265 +esac
   3.266 +
   3.267 +ofile=
   3.268 +cfile=
   3.269 +
   3.270 +for arg
   3.271 +do
   3.272 +  if test -n "$eat"; then
   3.273 +    eat=
   3.274 +  else
   3.275 +    case $1 in
   3.276 +      -o)
   3.277 +	# configure might choose to run compile as 'compile cc -o foo foo.c'.
   3.278 +	# So we strip '-o arg' only if arg is an object.
   3.279 +	eat=1
   3.280 +	case $2 in
   3.281 +	  *.o | *.obj)
   3.282 +	    ofile=$2
   3.283 +	    ;;
   3.284 +	  *)
   3.285 +	    set x "$@" -o "$2"
   3.286 +	    shift
   3.287 +	    ;;
   3.288 +	esac
   3.289 +	;;
   3.290 +      *.c)
   3.291 +	cfile=$1
   3.292 +	set x "$@" "$1"
   3.293 +	shift
   3.294 +	;;
   3.295 +      *)
   3.296 +	set x "$@" "$1"
   3.297 +	shift
   3.298 +	;;
   3.299 +    esac
   3.300 +  fi
   3.301 +  shift
   3.302 +done
   3.303 +
   3.304 +if test -z "$ofile" || test -z "$cfile"; then
   3.305 +  # If no '-o' option was seen then we might have been invoked from a
   3.306 +  # pattern rule where we don't need one.  That is ok -- this is a
   3.307 +  # normal compilation that the losing compiler can handle.  If no
   3.308 +  # '.c' file was seen then we are probably linking.  That is also
   3.309 +  # ok.
   3.310 +  exec "$@"
   3.311 +fi
   3.312 +
   3.313 +# Name of file we expect compiler to create.
   3.314 +cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
   3.315 +
   3.316 +# Create the lock directory.
   3.317 +# Note: use '[/\\:.-]' here to ensure that we don't use the same name
   3.318 +# that we are using for the .o file.  Also, base the name on the expected
   3.319 +# object file name, since that is what matters with a parallel build.
   3.320 +lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
   3.321 +while true; do
   3.322 +  if mkdir "$lockdir" >/dev/null 2>&1; then
   3.323 +    break
   3.324 +  fi
   3.325 +  sleep 1
   3.326 +done
   3.327 +# FIXME: race condition here if user kills between mkdir and trap.
   3.328 +trap "rmdir '$lockdir'; exit 1" 1 2 15
   3.329 +
   3.330 +# Run the compile.
   3.331 +"$@"
   3.332 +ret=$?
   3.333 +
   3.334 +if test -f "$cofile"; then
   3.335 +  test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
   3.336 +elif test -f "${cofile}bj"; then
   3.337 +  test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
   3.338 +fi
   3.339 +
   3.340 +rmdir "$lockdir"
   3.341 +exit $ret
   3.342 +
   3.343 +# Local Variables:
   3.344 +# mode: shell-script
   3.345 +# sh-indentation: 2
   3.346 +# eval: (add-hook 'before-save-hook 'time-stamp)
   3.347 +# time-stamp-start: "scriptversion="
   3.348 +# time-stamp-format: "%:y-%02m-%02d.%02H"
   3.349 +# time-stamp-time-zone: "UTC0"
   3.350 +# time-stamp-end: "; # UTC"
   3.351 +# End: