]> granicus.if.org Git - sudo/commitdiff
Only try to use +DAportable for non-GCC on hppa
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 28 Jul 2010 20:27:45 +0000 (16:27 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 28 Jul 2010 20:27:45 +0000 (16:27 -0400)
configure
configure.in

index dc75431f43bf9837bcb90618b18b883a8ad2f203..905edf23ce04dfb3a73e463db82fda62b7a820f0 100755 (executable)
--- a/configure
+++ b/configure
@@ -12661,10 +12661,13 @@ done
                : ${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
@@ -12693,8 +12696,11 @@ rm -f core conftest.err conftest.$ac_objext \
 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
index c8ec4ac9be9f1589ed6a616fff858b3235020c8c..f258265ee657ea55f1334768f3b2cb4d96c853d6 100644 (file)
@@ -1473,20 +1473,26 @@ 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