~ubuntu-branches/ubuntu/vivid/monit/vivid-proposed

« back to all changes in this revision

Viewing changes to libmonit/config/config.guess

  • Committer: Package Import Robot
  • Author(s): Sergey B Kirpichev
  • Date: 2014-12-28 17:32:53 UTC
  • mfrom: (1.1.25)
  • Revision ID: package-import@ubuntu.com-20141228173253-mxmq0pc92jzcyjv2
Tags: 1:5.11-1
* Imported Upstream version 5.11
* Refresh patches
* Comment for rsyslog plugin (Closes: #771322).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Attempt to guess a canonical system name.
3
3
#   Copyright 1992-2013 Free Software Foundation, Inc.
4
4
 
5
 
timestamp='2013-06-10'
 
5
timestamp='2013-11-29'
6
6
 
7
7
# This file is free software; you can redistribute it and/or modify it
8
8
# under the terms of the GNU General Public License as published by
1260
1260
        if test "$UNAME_PROCESSOR" = unknown ; then
1261
1261
            UNAME_PROCESSOR=powerpc
1262
1262
        fi
1263
 
        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1264
 
            if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265
 
                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1266
 
                grep IS_64BIT_ARCH >/dev/null
1267
 
            then
1268
 
                case $UNAME_PROCESSOR in
1269
 
                    i386) UNAME_PROCESSOR=x86_64 ;;
1270
 
                    powerpc) UNAME_PROCESSOR=powerpc64 ;;
1271
 
                esac
 
1263
        if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
 
1264
            if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
 
1265
                if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
 
1266
                    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
 
1267
                    grep IS_64BIT_ARCH >/dev/null
 
1268
                then
 
1269
                    case $UNAME_PROCESSOR in
 
1270
                        i386) UNAME_PROCESSOR=x86_64 ;;
 
1271
                        powerpc) UNAME_PROCESSOR=powerpc64 ;;
 
1272
                    esac
 
1273
                fi
1272
1274
            fi
 
1275
        elif test "$UNAME_PROCESSOR" = i386 ; then
 
1276
            # Avoid executing cc on OS X 10.9, as it ships with a stub
 
1277
            # that puts up a graphical alert prompting to install
 
1278
            # developer tools.  Any system running Mac OS X 10.7 or
 
1279
            # later (Darwin 11 and later) is required to have a 64-bit
 
1280
            # processor. This is not true of the ARM version of Darwin
 
1281
            # that Apple uses in portable devices.
 
1282
            UNAME_PROCESSOR=x86_64
1273
1283
        fi
1274
1284
        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1275
1285
        exit ;;