: ${mansectsu='1m'}
: ${mansectform='4'}
- # Use the +DAportable flag if it is supported
- _CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS +DAportable"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
+ if test -z "$GCC"; then
+ # Use the +DAportable flag on hppa if it is supported
+ case "$host_cpu" in
+ hppa*)
+ _CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS +DAportable"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands +DAportable" >&5
$as_echo_n "checking whether $CC understands +DAportable... " >&6; }
if test "${sudo_cv_var_daportable+set}" = set; then :
$as_echo_n "(cached) " >&6
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
$as_echo "$sudo_cv_var_daportable" >&6; }
- if test X"$sudo_cv_var_daportable" != X"yes"; then
- CFLAGS="$_CFLAGS"
+ if test X"$sudo_cv_var_daportable" != X"yes"; then
+ CFLAGS="$_CFLAGS"
+ fi
+ ;;
+ esac
fi
case "$host" in
: ${mansectsu='1m'}
: ${mansectform='4'}
- # Use the +DAportable flag if it is supported
- _CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS +DAportable"
- AC_CACHE_CHECK([whether $CC understands +DAportable],
- [sudo_cv_var_daportable],
- [AC_LINK_IFELSE(
- [AC_LANG_PROGRAM([[]], [[]])],
- [sudo_cv_var_daportable=yes],
- [sudo_cv_var_daportable=no]
+ if test -z "$GCC"; then
+ # Use the +DAportable flag on hppa if it is supported
+ case "$host_cpu" in
+ hppa*)
+ _CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS +DAportable"
+ AC_CACHE_CHECK([whether $CC understands +DAportable],
+ [sudo_cv_var_daportable],
+ [AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[]], [[]])],
+ [sudo_cv_var_daportable=yes],
+ [sudo_cv_var_daportable=no]
+ )
+ ]
)
- ]
- )
- if test X"$sudo_cv_var_daportable" != X"yes"; then
- CFLAGS="$_CFLAGS"
+ if test X"$sudo_cv_var_daportable" != X"yes"; then
+ CFLAGS="$_CFLAGS"
+ fi
+ ;;
+ esac
fi
case "$host" in