From: Todd C. Miller Date: Sun, 14 Aug 2011 19:58:49 +0000 (-0400) Subject: Detect HP-UX bundled compiler on ia64 systems. X-Git-Tag: SUDO_1_7_7~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e455e46448723158cd416580124a127a0c1423d4;p=sudo Detect HP-UX bundled compiler on ia64 systems. --HG-- branch : 1.7 --- diff --git a/configure b/configure index 733232426..fcee4a33d 100755 --- a/configure +++ b/configure @@ -13811,10 +13811,28 @@ done : ${mansectsu='1m'} : ${mansectform='4'} - # HP-UX bundled compiler can't generate shared objects - if test -z "$GCC" -a "x$ac_cv_prog_cc_c89" = "xno"; then - with_noexec=no - fi + if test -z "$GCC"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5 +$as_echo_n "checking for HP bundled C compiler... " >&6; } +if ${sudo_cv_var_hpccbundled+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test "x$ac_cv_prog_cc_c89" = "xno"; then + sudo_cv_var_hpccbundled=yes + elif $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then + sudo_cv_var_hpccbundled=yes + else + sudo_cv_var_hpccbundled=no + fi + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5 +$as_echo "$sudo_cv_var_hpccbundled" >&6; } + # The HP bundled compiler can't generate shared objects + if test "$sudo_cv_var_hpccbundled" = "yes"; then + with_noexec=no + fi + fi # Build PA-RISC1.1 objects for better portability case "$host_cpu" in diff --git a/configure.in b/configure.in index 488b5f5ff..640785658 100644 --- a/configure.in +++ b/configure.in @@ -1530,10 +1530,22 @@ case "$host" in : ${mansectsu='1m'} : ${mansectform='4'} - # HP-UX bundled compiler can't generate shared objects - if test -z "$GCC" -a "x$ac_cv_prog_cc_c89" = "xno"; then - with_noexec=no - fi + if test -z "$GCC"; then + AC_CACHE_CHECK([for HP bundled C compiler], + [sudo_cv_var_hpccbundled], + [if test "x$ac_cv_prog_cc_c89" = "xno"; then + sudo_cv_var_hpccbundled=yes + elif $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then + sudo_cv_var_hpccbundled=yes + else + sudo_cv_var_hpccbundled=no + fi] + ) + # The HP bundled compiler can't generate shared objects + if test "$sudo_cv_var_hpccbundled" = "yes"; then + with_noexec=no + fi + fi # Build PA-RISC1.1 objects for better portability case "$host_cpu" in