5
# Check to make sure the auto-generated utility code in the VxWorks build
10
[ -f $d/LICENSE ] || {
11
echo 'FAIL: cannot find source distribution directory.'
14
[ -f ../libdb.a ] || (cd .. && make libdb.a) || {
15
echo 'FAIL: unable to find or build libdb.a'
24
echo "main(int argc, char *argv[])"
25
echo "{return ($1(argv[1]));}"
29
echo "main(int argc, char *argv[])"
33
for i in db_archive db_checkpoint db_deadlock db_dump db_load \
34
db_printlog db_recover db_stat db_upgrade db_verify dbdemo; do
35
echo " compiling build_vxworks/$i"
36
(cat $d/build_vxworks/$i/$i.c; header $i) > t.c
37
if cc -Wall -I.. -I$d t.c \
39
$d/common/util_arg.c \
40
$d/common/util_cache.c \
41
$d/common/util_log.c \
42
$d/common/util_sig.c ../libdb.a -o t; then
45
echo "FAIL: unable to compile $i"
49
cat $d/build_vxworks/$i/$i.c >> t2.c
50
echo "i = $i(argv[1]);" >> t1.c
53
(cat t2.c t1.c; echo "return (0); }") > t.c
55
echo " compiling build_vxworks utility composite"
56
if cc -Dlint -Wall -I.. -I$d t.c \
58
$d/common/util_arg.c \
59
$d/common/util_cache.c \
60
$d/common/util_log.c \
61
$d/common/util_sig.c ../libdb.a -o t; then
64
echo "FAIL: unable to compile utility composite"