# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../autoconf/parse-config # Copyright (C) 2004 - 2005 The T2 SDE Project # # More information can be found in the files COPYING and README. # # 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; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- # some packages do not include an up-to-date config.{sub,guess} autoconf_check () { case $arch_machine in sparcv*|x86_64|powerpc64) : ;; *) return ;; esac # search (recursively) for out-of-date files without x86_64, sparcv9b, ... find -name config.sub -o -name config.guess | while read file ; do if grep -q Autoconf $file && ! grep -q "$arch_machine" $file ; then echo "Outdated $file (no $arch_machine) - updating." cp -fv $root/usr/share/automake/${file/*\/} $file fi done } hook_add preconf 5 "autoconf_check"