Change the system name from 'FreeBSD' to 'DragonFly'. Additional commits
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 19 Nov 2003 00:54:23 +0000 (00:54 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 19 Nov 2003 00:54:23 +0000 (00:54 +0000)
to deal with gnuisms.

crypto/heimdal/config.guess
crypto/openssh/config.guess

index ed2e03b..d66a7b2 100755 (executable)
@@ -2,6 +2,7 @@
 # Attempt to guess a canonical system name.
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 #   2000, 2001, 2002 Free Software Foundation, Inc.
+# $DragonFly: src/crypto/heimdal/Attic/config.guess,v 1.2 2003/11/19 00:54:22 dillon Exp $
 
 timestamp='2002-03-20'
 
@@ -723,6 +724,9 @@ EOF
     *:FreeBSD:*:*)
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
        exit 0 ;;
+    *:DragonFly:*:*)
+       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+       exit 0 ;;
     i*:CYGWIN*:*)
        echo ${UNAME_MACHINE}-pc-cygwin
        exit 0 ;;
index fd30ab0..1a849fd 100755 (executable)
@@ -2,6 +2,7 @@
 # Attempt to guess a canonical system name.
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 #   2000, 2001, 2002 Free Software Foundation, Inc.
+# $DragonFly: src/crypto/openssh/Attic/config.guess,v 1.2 2003/11/19 00:54:23 dillon Exp $
 
 timestamp='2002-07-23'
 
@@ -756,6 +757,21 @@ EOF
        rm -f $dummy.c && rmdir $tmpdir
        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
        exit 0 ;;
+    *:DragonFly:*:*)
+       # Determine whether the default compiler uses glibc.
+       eval $set_cc_for_build
+       sed 's/^        //' << EOF >$dummy.c
+       #include <features.h>
+       #if __GLIBC__ >= 2
+       LIBC=gnu
+       #else
+       LIBC=
+       #endif
+EOF
+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+       rm -f $dummy.c && rmdir $tmpdir
+       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
+       exit 0 ;;
     i*:CYGWIN*:*)
        echo ${UNAME_MACHINE}-pc-cygwin
        exit 0 ;;