mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Add check for HP bundled C Compiler (which cannot create shared libs)
This commit is contained in:
parent
645b5c1c7e
commit
e2aef4f526
23
configure
vendored
23
configure
vendored
@ -2845,7 +2845,6 @@ $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
@ -2912,7 +2911,6 @@ AUTH_EXCL=
|
||||
AUTH_EXCL_DEF=
|
||||
AUTH_DEF=passwd
|
||||
LINGUAS=
|
||||
ECHO_N="${as_echo_n}"
|
||||
|
||||
CHECKSHADOW=true
|
||||
shadow_defs=
|
||||
@ -13109,6 +13107,27 @@ done
|
||||
: ${mansectsu='1m'}
|
||||
: ${mansectform='4'}
|
||||
|
||||
# The HP bundled compiler cannot generate shared libs
|
||||
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 test "${sudo_cv_var_hpccbundled+set}" = set; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
if $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; }
|
||||
if test "$sudo_cv_var_hpccbundled" = "yes"; then
|
||||
as_fn_error "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
|
||||
fi
|
||||
fi
|
||||
|
||||
# Build PA-RISC1.1 objects for better portability
|
||||
case "$host_cpu" in
|
||||
hppa2-9*)
|
||||
|
15
configure.in
15
configure.in
@ -1527,6 +1527,21 @@ case "$host" in
|
||||
: ${mansectsu='1m'}
|
||||
: ${mansectform='4'}
|
||||
|
||||
# The HP bundled compiler cannot generate shared libs
|
||||
if test -z "$GCC"; then
|
||||
AC_CACHE_CHECK([for HP bundled C compiler],
|
||||
[sudo_cv_var_hpccbundled],
|
||||
[if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
|
||||
sudo_cv_var_hpccbundled=yes
|
||||
else
|
||||
sudo_cv_var_hpccbundled=no
|
||||
fi]
|
||||
)
|
||||
if test "$sudo_cv_var_hpccbundled" = "yes"; then
|
||||
AC_MSG_ERROR([The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead.])
|
||||
fi
|
||||
fi
|
||||
|
||||
# Build PA-RISC1.1 objects for better portability
|
||||
case "$host_cpu" in
|
||||
hppa[2-9]*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user