case "$host_os" in
+ hpux*)
+ #
+ # Note that this is HP C, because we have to
+ # treat it specially below.
+ #
+ ac_lbl_cc_is_hp_c=yes
+ ;;
+
+
irix*)
$1="$$1 -xansi -signed -O"
;;
$1="$$1 ${LBL_CFLAGS}"
fi
if test -f .devel ; then
- AC_LBL_CHECK_UNKNOWN_WARNING_OPTION_ERROR()
- AC_LBL_CHECK_COMPILER_OPT($1, -Wall)
- AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-prototypes)
- AC_LBL_CHECK_COMPILER_OPT($1, -Wstrict-prototypes)
- AC_LBL_CHECK_COMPILER_OPT($1, -Wwrite-strings)
- AC_LBL_CHECK_COMPILER_OPT($1, -Wpointer-arith)
- AC_LBL_CHECK_COMPILER_OPT($1, -W)
+ #
+ # At least one version of HP's C compiler will not
+ # exit with a non-zero exit status when given an
+ # unknown -W flag, even if you use +We and the
+ # number of the warning it gives for that issue.
+ #
+ # We therefore skip all the warning option stuff
+ # on HP-UX.
+ #
+ if test "$ac_lbl_cc_is_hp_c" != yes; then
+ AC_LBL_CHECK_UNKNOWN_WARNING_OPTION_ERROR()
+ AC_LBL_CHECK_COMPILER_OPT($1, -Wall)
+ AC_LBL_CHECK_COMPILER_OPT($1, -Wmissing-prototypes)
+ AC_LBL_CHECK_COMPILER_OPT($1, -Wstrict-prototypes)
+ AC_LBL_CHECK_COMPILER_OPT($1, -Wwrite-strings)
+ AC_LBL_CHECK_COMPILER_OPT($1, -Wpointer-arith)
+ AC_LBL_CHECK_COMPILER_OPT($1, -W)
+ fi
if test "$GCC" = yes ; then
if test "${LBL_CFLAGS+set}" != set; then
if test "$ac_cv_prog_cc_g" = yes ; then
case "$host_os" in
+ hpux*)
+ #
+ # Note that this is HP C, because we have to
+ # treat it specially below.
+ #
+ ac_lbl_cc_is_hp_c=yes
+ ;;
+
+
irix*)
V_CCOPT="$V_CCOPT -xansi -signed -O"
;;
V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
fi
if test -f .devel ; then
+ #
+ # At least one version of HP's C compiler will not
+ # exit with a non-zero exit status when given an
+ # unknown -W flag, even if you use +We and the
+ # number of the warning it gives for that issue.
+ #
+ # We therefore skip all the warning option stuff
+ # on HP-UX.
+ #
+ if test "$ac_lbl_cc_is_hp_c" != yes; then
{ echo "$as_me:$LINENO: checking whether the compiler fails when given an unknown warning option" >&5
echo $ECHO_N "checking whether the compiler fails when given an unknown warning option... $ECHO_C" >&6; }
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
if test "$GCC" = yes ; then
if test "${LBL_CFLAGS+set}" != set; then
if test "$ac_cv_prog_cc_g" = yes ; then