version 1.1, 2009/12/29 03:42:25 |
version 1.2, 2010/09/03 11:06:21 |
|
|
$OpenBSD$ |
$OpenBSD$ |
--- src/common/common.h.orig Fri Apr 25 19:15:29 2008 |
--- src/common/common.h.orig Fri Jun 18 11:07:59 2010 |
+++ src/common/common.h Tue Nov 4 13:00:17 2008 |
+++ src/common/common.h Fri Jun 18 11:10:44 2010 |
@@ -74,11 +74,49 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
@@ -48,8 +48,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, |
# define CPUSTRING "Unknown" |
# define SHARED_EXT "so" |
# endif |
# endif |
|
|
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) |
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) |
+#elif defined(__FreeBSD__) |
+#elif defined(__FreeBSD__) |
# ifdef DEBUG |
# define BUILDSTRING_OS "FreeBSD" |
# define BUILDSTRING "FreeBSD DEBUG" |
|
# else |
|
# define BUILDSTRING "FreeBSD RELEASE" |
|
+# endif |
|
+# ifndef SHARED_EXT |
+# ifndef SHARED_EXT |
+# define SHARED_EXT "so" |
+# define SHARED_EXT "so" |
+# endif |
+# endif |
+# if defined __i386__ |
|
+# define CPUSTRING "i386" |
|
+# elif defined __x86_64__ |
|
+# define CPUSTRING "x86_64" |
|
+# elif defined __alpha__ |
|
+# define CPUSTRING "axp" |
|
+# else |
|
+# define CPUSTRING "Unknown" |
|
+# endif |
|
+ |
+ |
+#elif defined(__NetBSD__) |
+#elif defined(__NetBSD__) |
+# ifdef DEBUG |
+# define BUILDSTRING_OS "NetBSD" |
+# define BUILDSTRING "NetBSD DEBUG" |
|
+# else |
|
+# define BUILDSTRING "NetBSD RELEASE" |
|
+# endif |
|
+# ifndef SHARED_EXT |
+# ifndef SHARED_EXT |
+# define SHARED_EXT "so" |
+# define SHARED_EXT "so" |
+# endif |
+# endif |
+# if defined __i386__ |
|
+# define CPUSTRING "i386" |
|
+# elif defined __x86_64__ |
|
+# define CPUSTRING "x86_64" |
|
+# elif defined __alpha__ |
|
+# define CPUSTRING "axp" |
|
+# else |
|
+# define CPUSTRING "Unknown" |
|
+# endif |
|
+ |
+ |
+#elif defined(__OpenBSD__) |
+#elif defined(__OpenBSD__) |
+# ifdef DEBUG |
+# define BUILDSTRING_OS "OpenBSD" |
+# define BUILDSTRING "OpenBSD DEBUG" |
|
+# else |
|
+# define BUILDSTRING "OpenBSD RELEASE" |
|
# endif |
|
# ifndef SHARED_EXT |
# ifndef SHARED_EXT |
# define SHARED_EXT "so" |
# define SHARED_EXT "so" |
|
# endif |