Index: libtool/libtoolize.m4sh =================================================================== RCS file: /sources/libtool/libtool/libtoolize.m4sh,v retrieving revision 1.60 diff -u -r1.60 libtoolize.m4sh --- libtool/libtoolize.m4sh 9 Mar 2007 15:08:43 -0000 1.60 +++ libtool/libtoolize.m4sh 19 Mar 2007 21:04:29 -0000 @@ -5,7 +5,7 @@ # libtoolize (GNU @PACKAGE@@TIMESTAMP@) @VERSION@ # Written by Gary V. Vaughan , 2003 -# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +# Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @@ -39,6 +39,7 @@ # -n, --dry-run print commands rather than running them # -f, --force replace existing files # -i, --install copy missing auxiliary files +# --clean remove auxiliary files # --ltdl[=DIR] install libltdl sources [default: libltdl] # --nonrecursive prepare ltdl for non-recursive make # -q, --quiet work silently @@ -89,6 +90,7 @@ opt_debug=: opt_force=false opt_install=false +opt_clean=false opt_link=: opt_ltdl=false @@ -147,6 +149,10 @@ --install|-i) opt_install=: ;; + --clean) opt_clean=: + opt_quiet=: + ;; + --ltdl) opt_ltdl=: if test "$#" -gt 0; then case $1 in @@ -729,6 +735,12 @@ my_srcfile="$my_srcdir/$my_filename" my_destfile="$my_destdir/$my_filename" + if $opt_clean; then + rm -f "$my_destfile" + my_return_status=$? + return $? + fi + test -f "$my_srcfile" || func_fatal_error "\`$my_srcfile' does not exist." if test -f "$my_destfile"; then @@ -750,7 +762,6 @@ if $my_serial_update_p || $opt_force; then func_copy "$my_srcfile" "$my_destfile" - my_return_status=$? elif test "X$my_dest_serial" = "X$my_src_serial"; then $opt_quiet \ || func_echo "\`$my_destfile' is already up to date." @@ -798,6 +809,12 @@ my_srcfile="$my_srcdir/$my_filename" my_destfile="$my_destdir/$my_filename" + if $opt_clean; then + rm -f "$my_destfile" + my_return_status=$? + return $my_return_status + fi + my_keyword_update_p=: test -f "$my_srcfile" || func_fatal_error "\`$my_srcfile' does not exist."