|
Packit |
575503 |
# The VMS POSIX `c89' command writes any/all diagnostic info to stdout
|
|
Packit |
575503 |
# rather than stderr, confusing configure tests which capture error output.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
# Also, the VMS linker issues a warning for any undefined symbol, but that
|
|
Packit |
575503 |
# does not inhibit creation of the final executable file, again confusing
|
|
Packit |
575503 |
# configure. As an added complication, there's not enough control of the
|
|
Packit |
575503 |
# linker to put the map file with chosen name into the current directory.
|
|
Packit |
575503 |
#
|
|
Packit |
575503 |
if [ -f ~/_posix-cc.map ] ; then rm -f ~/_posix-cc.map* ; fi
|
|
Packit |
575503 |
c89 -Wc,nowarn -Wl,nodebug -Wl,map=_posix-cc.map $* ; x=$?
|
|
Packit |
575503 |
if [ -f ~/_posix-cc.map ] ; then
|
|
Packit |
575503 |
if [ -n "`fgrep LINK-W-USEUNDEF ~/_posix-cc.map`" ] ; then x=1 ; fi
|
|
Packit |
575503 |
rm -f ~/_posix-cc.map*
|
|
Packit |
575503 |
fi
|
|
Packit |
575503 |
if [ x -ne 0 ] ; then echo "c89 reports failure" 1>&2 && exit 1 ; fi
|
|
Packit |
575503 |
exit 0
|