~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/libfsimage/check-libext2fs

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
cat >ext2-test.c <<EOF
 
4
#include <ext2fs/ext2fs.h>
 
5
 
 
6
int main()
 
7
{
 
8
        ext2fs_open2;
 
9
}
 
10
EOF
 
11
 
 
12
${CC-gcc} -o ext2-test ext2-test.c -lext2fs >/dev/null 2>&1
 
13
if [ $? = 0 ]; then
 
14
        echo ext2fs-lib
 
15
else
 
16
        echo ext2fs
 
17
fi
 
18
 
 
19
rm -f ext2-test ext2-test.c
 
20
 
 
21
exit 0