From dfa529ac35a8f8f23f135a83683e4dd228c79f05 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 27 Jul 2010 14:26:43 -0400 Subject: [PATCH] Use the HP ANSI C compiler on HP-UX if possible --HG-- branch : 1.7 --- configure | 18 +++++++++--------- configure.in | 2 +- mkpkg | 13 +++++++++++++ 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/configure b/configure index 81700e53c..61d149944 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.65 for sudo 1.7.4. +# Generated by GNU Autoconf 2.65 for sudo 1.7.4rc1. # # Report bugs to . # @@ -701,8 +701,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='sudo' PACKAGE_TARNAME='sudo' -PACKAGE_VERSION='1.7.4' -PACKAGE_STRING='sudo 1.7.4' +PACKAGE_VERSION='1.7.4rc1' +PACKAGE_STRING='sudo 1.7.4rc1' PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/' PACKAGE_URL='' @@ -1551,7 +1551,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sudo 1.7.4 to adapt to many kinds of systems. +\`configure' configures sudo 1.7.4rc1 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1616,7 +1616,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sudo 1.7.4:";; + short | recursive ) echo "Configuration of sudo 1.7.4rc1:";; esac cat <<\_ACEOF @@ -1826,7 +1826,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sudo configure 1.7.4 +sudo configure 1.7.4rc1 generated by GNU Autoconf 2.65 Copyright (C) 2009 Free Software Foundation, Inc. @@ -2347,7 +2347,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sudo $as_me 1.7.4, which was +It was created by sudo $as_me 1.7.4rc1, which was generated by GNU Autoconf 2.65. Invocation command line was $ $0 $@ @@ -18727,7 +18727,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sudo $as_me 1.7.4, which was +This file was extended by sudo $as_me 1.7.4rc1, which was generated by GNU Autoconf 2.65. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -18793,7 +18793,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sudo config.status 1.7.4 +sudo config.status 1.7.4rc1 configured by $0, generated by GNU Autoconf 2.65, with options \\"\$ac_cs_config\\" diff --git a/configure.in b/configure.in index 958273f92..04ee9b2d4 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ dnl Process this file with GNU autoconf to produce a configure script. dnl dnl Copyright (c) 1994-1996,1998-2010 Todd C. Miller dnl -AC_INIT([sudo], [1.7.4], [http://www.sudo.ws/bugs/], [sudo]) +AC_INIT([sudo], [1.7.4rc1], [http://www.sudo.ws/bugs/], [sudo]) AC_CONFIG_HEADER(config.h pathnames.h) dnl dnl This won't work before AC_INIT diff --git a/mkpkg b/mkpkg index 8a11fcd58..47f877dbf 100755 --- a/mkpkg +++ b/mkpkg @@ -65,6 +65,19 @@ case "$platform" in ;; esac +# Choose compiler options by platform. +case "$platform" in + hpux*) + # Use the HP ANSI C compiler on HP-UX if possible + if [ -z "$CC" -a -x /opt/ansic/bin/cc ]; then + CC=/opt/ansic/bin/cc; export CC + if [ -z "$CFLAGS" ]; then + CFLAGS=-O; export CFLAGS + fi + fi + ;; +esac + # Choose configure options by platform. # We use the same configure options as vendor packages when possible. case "$platform" in -- 2.40.0