diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-29 20:07:38 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-29 20:07:38 +0000 |
| commit | d6bb55476c9aa4771e2b7f24cee05325a1df4117 (patch) | |
| tree | ed830d3c2c748f4c1ed6de25922461d701a805de /include | |
| parent | 0bb13ddf57c968db37a997851650d768641b3528 (diff) | |
Revived Autotools from the grave, although it'll need some tweaking to work alongside CMake now. (In other words, don't use this commit, I committed this so I don't have to re-add these files again if I screw something up.)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1876 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
| -rw-r--r-- | include/Makefile | 20 | ||||
| -rw-r--r-- | include/makefile.win32 | 25 | ||||
| -rw-r--r-- | include/sysconf.h.in | 171 | ||||
| -rw-r--r-- | include/sysconf.h.win32 | 44 |
4 files changed, 260 insertions, 0 deletions
diff --git a/include/Makefile b/include/Makefile new file mode 100644 index 000000000..b5641c71b --- /dev/null +++ b/include/Makefile @@ -0,0 +1,20 @@ + +all: services.h extern.h pseudo.h version.h + +version.h: Makefile version.sh services.h pseudo.h messages.h $(SRCS) + sh version.sh + +services.h: sysconf.h config.h extern.h + touch $@ + +extern.h: slist.h + touch $@ + +pseudo.h: commands.h timeout.h encrypt.h datafiles.h slist.h + touch $@ + +clean: + (rm -f language.h) + +distclean: clean + (rm -f sysconf.h version.h) diff --git a/include/makefile.win32 b/include/makefile.win32 new file mode 100644 index 000000000..f66dd48b6 --- /dev/null +++ b/include/makefile.win32 @@ -0,0 +1,25 @@ +# Make file for Win32 +# +# (C) 2003-2008 Anope Team +# Contact us at info@anope.org +# +# Please read COPYING and README for further details. +# +# Based on the original code of Epona by Lara. +# Based on the original code of Services by Andy Church. +# +# $Id:$ +# + +########################################################################### + +clean: + -@erase language.h + +spotless: clean + -@erase sysconf.h version.h + +distclean: spotless + + +FRC: diff --git a/include/sysconf.h.in b/include/sysconf.h.in new file mode 100644 index 000000000..f7de31677 --- /dev/null +++ b/include/sysconf.h.in @@ -0,0 +1,171 @@ +/* include/sysconf.h.in. Generated from configure.in by autoheader. */ + +/* "Default umask Permissions" */ +#undef DEFUMASK + +/* "No prefix needed for dlopen" */ +#undef DL_PREFIX + +/* "Has sys/types.h" */ +#undef HAS_SYS_TYPES_H + +/* "" */ +#undef HAVE_BACKTRACE + +/* Define to 1 if you have the `fork' function. */ +#undef HAVE_FORK + +/* Define to 1 if you have the `gethostbyname' function. */ +#undef HAVE_GETHOSTBYNAME + +/* Define to 1 if you have the `gethostbyname_r' function. */ +#undef HAVE_GETHOSTBYNAME_R + +/* Define to 1 if you have the `gettimeofday' function. */ +#undef HAVE_GETTIMEOFDAY + +/* Define to 1 if you have the <inttypes.h> header file. */ +#undef HAVE_INTTYPES_H + +/* Define to 1 if you have the <memory.h> header file. */ +#undef HAVE_MEMORY_H + +/* Define to 1 if you have the `setgrent' function. */ +#undef HAVE_SETGRENT + +/* Define to 1 if you have the <stdint.h> header file. */ +#undef HAVE_STDINT_H + +/* Define to 1 if you have the <stdlib.h> header file. */ +#undef HAVE_STDLIB_H + +/* Define to 1 if you have the `strcasecmp' function. */ +#undef HAVE_STRCASECMP + +/* Define to 1 if you have the `stricmp' function. */ +#undef HAVE_STRICMP + +/* "" */ +#undef HAVE_STRINGS_H + +/* Define to 1 if you have the <string.h> header file. */ +#undef HAVE_STRING_H + +/* Define to 1 if you have the `strlcat' function. */ +#undef HAVE_STRLCAT + +/* Define to 1 if you have the `strlcpy' function. */ +#undef HAVE_STRLCPY + +/* "" */ +#undef HAVE_SYS_SELECT_H + +/* Define to 1 if you have the <sys/stat.h> header file. */ +#undef HAVE_SYS_STAT_H + +/* Define to 1 if you have the <sys/types.h> header file. */ +#undef HAVE_SYS_TYPES_H + +/* Define to 1 if you have the `umask' function. */ +#undef HAVE_UMASK + +/* Define to 1 if you have the <unistd.h> header file. */ +#undef HAVE_UNISTD_H + +/* va_list as array */ +#undef HAVE_VA_LIST_AS_ARRAY + +/* "Module dir" */ +#undef MODULE_PATH + +/* "Has mysql/mysql.h" */ +#undef MYSQL_HEADER_PREFIX + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* "Run group" */ +#undef RUNGROUP + +/* "Binary Dir" */ +#undef SERVICES_BIN + +/* "services bin dir" */ +#undef SERVICES_DIR + +/* The size of a `int', as computed by sizeof. */ +#undef SIZEOF_INT + +/* The size of a `long', as computed by sizeof. */ +#undef SIZEOF_LONG + +/* The size of a `short', as computed by sizeof. */ +#undef SIZEOF_SHORT + +/* "modules not available" */ +#undef STATIC_LINKING + +/* Define to 1 if you have the ANSI C header files. */ +#undef STDC_HEADERS + +/* Define to `short' if <sys/types.h> does not define. */ +#undef int16_t + +/* Define to `long' if <sys/types.h> does not define. */ +#undef int32_t + +/* Define to `unsigned short' if <sys/types.h> does not define. */ +#undef u_int16_t + +/* Define to `unsigned long' if <sys/types.h> does not define. */ +#undef u_int32_t + +/* Static config, copy from here to below before running autoheader! */ + +#ifndef BIG_ENDIAN + +/* Big Endian system */ +#undef BIG_ENDIAN + +#endif + +#ifndef LITTLE_ENDIAN + +/* Little Endian system */ +#undef LITTLE_ENDIAN + +#endif + +/** + * NOTE: BIG_ENDIAN and LITTLE_ENDIAN defines should not be left in + * by autoheader as they may be defined or may not be, as such we check + * if there defined before messing with them! + **/ + +#ifdef HAS_SYS_TYPES_H +#include <sys/types.h> +#endif + +#ifdef __STRICT_ANSI__ +#include <stdarg.h> +#include <stdio.h> +#endif + + +typedef int16_t int16; +typedef u_int16_t uint16; +typedef int32_t int32; +typedef u_int32_t uint32; + diff --git a/include/sysconf.h.win32 b/include/sysconf.h.win32 new file mode 100644 index 000000000..5b33a3608 --- /dev/null +++ b/include/sysconf.h.win32 @@ -0,0 +1,44 @@ +
+#define SERVICES_DIR "data"
+#define SERVICES_BIN "anope.exe"
+
+typedef signed __int16 int16;
+typedef signed __int16 int16_t;
+typedef unsigned __int16 uint16;
+typedef unsigned __int16 u_int16_t;
+typedef signed __int32 int32;
+typedef signed __int32 int32_t;
+typedef unsigned __int32 uint32;
+typedef unsigned __int32 u_int32_t;
+typedef unsigned __int8 u_int8_t;
+
+#define HAVE_STRINGS_H 0
+#define HAVE_SYS_SELECT_H 0
+#define HAVE_SYS_SYSPROTO_H 0
+
+#define HAVE_STRICMP 1
+#define HAVE_STRCASECMP 0
+#define HAVE_STRSIGNAL 0
+#define HAVE_GETTIMEOFDAY 0
+#define HAVE_SETGRENT 0
+#define HAVE_UMASK 0
+#define HAVE_FORK 0
+#define HAVE_GETHOSTBYNAME 1
+#define HAVE_BACKTRACE 0
+
+/* Enable Module support */
+#define USE_MODULES
+#define MODULE_PATH ".\\modules\\"
+
+/* Windows/MSVC likes to name things differently */
+#define snprintf _snprintf
+#define popen _popen
+#define pclose _pclose
+#define ftruncate _chsize
+#define PATH_MAX MAX_PATH
+#define MAXPATHLEN MAX_PATH
+#define bzero(buf, size) memset(buf, 0, size)
+#define strcasecmp stricmp
+#define sleep(x) Sleep(x*1000)
+
+
|
