ia64/xen-unstable

view tools/libfsimage/check-libext2fs @ 17339:ee38b254e98e

libfsimage: Revert broken parts of portability changes to the build system.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Mar 27 15:13:55 2008 +0000 (2008-03-27)
parents 2c48ed7e303d
children a819cf758b8c
line source
1 #!/bin/bash
3 cat >ext2-test.c <<EOF
4 #include <ext2fs/ext2fs.h>
6 int main()
7 {
8 ext2fs_open2;
9 }
10 EOF
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
19 rm -f ext2-test ext2-test.c
21 exit 0