1#! /bin/sh 2# Copyright (C) 2006 SEIKO EPSON Corporation 3# 4# This file is part of the "Image Scan!" build infra-structure. 5# 6# The "Image Scan!" build infra-structure is free software. 7# You can redistribute it and/or modify it under the terms of the GNU 8# General Public License as published by the Free Software Foundation; 9# either version 2 of the License or at your option any later version. 10# 11# This program is distributed in the hope that it will be useful, but 12# WITHOUT ANY WARRANTY; without even the implied warranty of FITNESS 13# FOR A PARTICULAR PURPOSE or MERCHANTABILITY. 14# See the GNU General Public License for more details. 15# 16# You should have received a verbatim copy of the GNU General Public 17# License along with this program; if not, write to: 18# 19# Free Software Foundation, Inc. 20# 59 Temple Place, Suite 330 21# Boston, MA 02111-1307 USA 22 23## Requirements: automake, autoconf, libtool, pkg-config, patch. 24 25# Our configure.ac says to recurse into libltdl so we'd better make 26# sure it's populated before calling autoreconf as it'll be looking 27# for a configure.ac file there. 28 29libtoolize --force --copy --automake --ltdl 30 31# Unlike with some of the other utilities, the use of libtool doesn't 32# result in the relevant autoconf macro definitions to be included in 33# the package. 34 35test -d m4 || mkdir m4 36cp /usr/share/aclocal/libtool.m4 m4/. 37 38# Now get everything in sync. 39 40autoreconf --force --install 41 42# The patching of ltmain.sh is needed to take care of some special 43# requirements on SANE backend libraries. See patch for details. 44 45patch -p0 < ltmain.sh.diff 46 47# We refer to COPYING.LIB, without directory qualifications, in our 48# README so let's put a copy at the top-level. We execute automake 49# so the top-level Makefile.in will pick it up as well. 50 51cp libltdl/COPYING.LIB . 52automake 53