X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=config;h=e8cde735ddc6343d6dea32abfcb7909ebec44dc4;hp=2d9da43ec3c5456cbb526010d85ce3a8ec53a568;hb=bd3576d2ddedb0492f5bd3c1e47c15778e4fbe3c;hpb=462ba4f6b60853223003951211e207c71cdb73c1 diff --git a/config b/config index 2d9da43ec3..e8cde735dd 100755 --- a/config +++ b/config @@ -82,8 +82,11 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in HP-UX:*) HPUXVER=`echo ${RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "$HPUXVER" in + 11.*) + echo "${MACHINE}-hp-hpux11"; exit 0 + ;; 10.*) - echo "${MACHINE}-hp-hpux10."; exit 0 + echo "${MACHINE}-hp-hpux10"; exit 0 ;; *) echo "${MACHINE}-hp-hpux"; exit 0 @@ -240,7 +243,7 @@ esac # At this point we gone through all the one's # we know of: Punt -echo "${MACHINE}-whatever-${SYSTEM}|${RELEASE}|${VERSION}" +echo "${MACHINE}-whatever-${SYSTEM}" exit 0 ) 2>/dev/null | ( @@ -250,7 +253,6 @@ exit 0 PREFIX="" SUFFIX="" -VERBOSE="false" TEST="false" # pick up any command line args to config @@ -258,12 +260,10 @@ for i do case "$i" in -d*) PREFIX="debug-";; --v*) VERBOSE="true";; -t*) TEST="true";; -h*) TEST="true"; cat <&1` in + *4*) CC=sc4;; + *5*) CC=sc5;; + *) CC=cc;; + esac + fi fi # read the output of the embedded GuessOS read GUESSOS -if [ "$VERBOSE" = "true" ]; then - echo GUESSOS $GUESSOS -fi +echo Operating system: $GUESSOS # now map the output into SSLeay terms ... really should hack into the # script above so we end up with values in vars but that would take @@ -300,6 +306,7 @@ case "$GUESSOS" in ppc-*-linux2) OUT="linux-ppc" ;; *-*-linux2) OUT="linux-elf" ;; *-*-linux1) OUT="linux-aout" ;; + sun4u-sun-solaris2) OUT="solaris-usparc-$CC" ;; sun4*-sun-solaris2) OUT="solaris-sparc-$CC" ;; *86*-sun-solaris2) OUT="solaris-x86-$CC" ;; *-*-sunos4) OUT="sunos-$CC" ;; @@ -315,8 +322,8 @@ case "$GUESSOS" in *-*-osf) OUT="alpha-cc" ;; *-*-unixware*) OUT="unixware-2.0" ;; *-sni-sysv4) OUT="SINIX" ;; - *-hpux*) OUT="hpux-$CC" ;; # these are all covered by the catchall below + # *-hpux*) OUT="hpux-$CC" ;; # *-aix) OUT="aix-$CC" ;; # *-dgux) OUT="dgux" ;; *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;; @@ -366,16 +373,16 @@ fi OUT="$PREFIX$OUT" -# at this point we have the answer ... which we could check again -# and then fallback to a vanilla SSLeay build but then this script -# wouldn't get updated -echo Configuring for $OUT +$PERL ./Configure 2>&1 | grep "$OUT" > /dev/null +if [ $? = "0" ]; then + echo Configuring for $OUT -if [ "$TEST" = "true" ]; then - echo $PERL ./Configure $OUT $options + if [ "$TEST" = "true" ]; then + echo $PERL ./Configure $OUT $options + else + $PERL ./Configure $OUT $options + fi else - $PERL ./Configure $OUT $options + echo "This system ($OUT) is not supported. See file INSTALL for details." fi - ) -