1#! /bin/sh 2# Copyright (C) 1999, 2000, 2002 Red Hat, Inc. 3# Written by Ulrich Drepper <drepper@redhat.com>, 1999. 4# 5# This program is Open Source software; you can redistribute it and/or 6# modify it under the terms of the Open Software License version 1.0 as 7# published by the Open Source Initiative. 8# 9# You should have received a copy of the Open Software License along 10# with this program; if not, you may obtain a copy of the Open Software 11# License version 1.0 from http://www.opensource.org/licenses/osl.php or 12# by writing the Open Source Initiative c/o Lawrence Rosen, Esq., 13# 3001 King Ranch Road, Ukiah, CA 95482. 14 15archive=../libelf/.libs/libelf.a 16test -f $archive || archive=../libelf/libelf.a 17if test -f $archive; then 18 # The file is really available (i.e., no shared-only built). 19 echo -n "Extracting symbols... $ac_c" 20 21 # The files we are looking at. 22 for f in ../libelf/*.o; do 23 ./arextract $archive `basename $f` arextract.test || exit 1 24 cmp $f arextract.test || { 25 echo "Extraction of $1 failed" 26 exit 1 27 } 28 rm -f ${objpfx}arextract.test 29 done 30 31 echo "done" 32fi 33 34exit 0 35