From ec97d6d21f20f55719075277e5267c17910049c1 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Mon, 19 Jan 2026 15:13:10 +0900
Subject: Remove unused config defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 admin/acinclude.m4.in          |   1 -
 config.h.in                    | 104 +----------------------------------------
 src/kvilib/config/kvi_wincfg.h |  29 ------------
 src/kvilib/core/kvi_string.h   |   7 ---
 4 files changed, 1 insertion(+), 140 deletions(-)

diff --git a/admin/acinclude.m4.in b/admin/acinclude.m4.in
index 83823b5e..e40883a0 100644
--- a/admin/acinclude.m4.in
+++ b/admin/acinclude.m4.in
@@ -564,7 +564,6 @@ AC_DEFUN([AC_SS_MISC_OPTIONS],
 	fi
 
 	AC_DEFINE([COMPILE_NEW_KVS], 1, [define if you want to enable the new KVS parser])
-	AC_DEFINE([COMPILE_ONLY_NEW_KVS], 1, [define if you want to use only the new KVS parser])
 
 	AC_MSG_CHECKING([if you want to link to the embedded version of tqt])
 	AC_ARG_WITH(tqt-embedded,[  --with-tqt-embedded      Link to tqt-embedded (see INSTALL)],SS_QT3_EMBEDDED="true")
diff --git a/config.h.in b/config.h.in
index c5eae5ae..f6f379d2 100644
--- a/config.h.in
+++ b/config.h.in
@@ -45,8 +45,7 @@
 /* define if you want to enable the new KVS parser */
 #undef COMPILE_NEW_KVS
 
-/* define this if you want to disable the inter-process communication support
-   */
+/* define this if you want to disable the inter-process communication support */
 #undef COMPILE_NO_IPC
 
 /* define if you want to ignore X Windows completely */
@@ -55,9 +54,6 @@
 /* define if you want to disable the X bell support */
 #undef COMPILE_NO_X_BELL
 
-/* define if you want to use only the new KVS parser */
-#undef COMPILE_ONLY_NEW_KVS
-
 /* define if you want to enable OSS sound support */
 #undef COMPILE_OSS_SUPPORT
 
@@ -97,27 +93,15 @@
 /* Define to 1 if you have the `getnameinfo' function. */
 #undef HAVE_GETNAMEINFO
 
-/* Define to 1 if you have the `gmtime_r' function. */
-#undef HAVE_GMTIME_R
-
 /* Define to 1 if you have the `inet_aton' function. */
 #undef HAVE_INET_ATON
 
 /* Define to 1 if you have the `inet_ntoa' function. */
 #undef HAVE_INET_NTOA
 
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
 /* Define to 1 if you have the <linux/soundcard.h> header file. */
 #undef HAVE_LINUX_SOUNDCARD_H
 
-/* Define to 1 if you have the `localtime_r' function. */
-#undef HAVE_LOCALTIME_R
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
 /* Define to 1 if you have the `putenv' function. */
 #undef HAVE_PUTENV
 
@@ -127,61 +111,15 @@
 /* Define to 1 if you have the <soundcard.h> header file. */
 #undef HAVE_SOUNDCARD_H
 
-/* 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 `strerror' function. */
 #undef HAVE_STRERROR
 
-/* Define to 1 if you have the <strings.h> header file. */
-#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 <sys/soundcard.h> header file. */
 #undef HAVE_SYS_SOUNDCARD_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 <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
 /* Define to 1 if you have the `unsetenv' function. */
 #undef HAVE_UNSETENV
 
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
-#undef LT_OBJDIR
-
-/* Name of package */
-#undef PACKAGE
-
-/* 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 home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
 /* The size of `int', as computed by sizeof. */
 #undef SIZEOF_INT
 
@@ -194,58 +132,18 @@
 /* The size of `short int', as computed by sizeof. */
 #undef SIZEOF_SHORT_INT
 
-/* The size of `unsigned int', as computed by sizeof. */
-#undef SIZEOF_UNSIGNED_INT
-
-/* The size of `unsigned long int', as computed by sizeof. */
-#undef SIZEOF_UNSIGNED_LONG_INT
-
-/* The size of `unsigned long long int', as computed by sizeof. */
-#undef SIZEOF_UNSIGNED_LONG_LONG_INT
-
-/* The size of `unsigned short int', as computed by sizeof. */
-#undef SIZEOF_UNSIGNED_SHORT_INT
-
-/* The size of `void *', as computed by sizeof. */
-#undef SIZEOF_VOID_P
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Enable extensions on AIX 3, Interix.  */
-#ifndef _ALL_SOURCE
-# undef _ALL_SOURCE
-#endif
 /* Enable GNU extensions on systems that have them.  */
 #ifndef _GNU_SOURCE
 # undef _GNU_SOURCE
 #endif
-/* Enable extensions on HP NonStop.  */
-#ifndef _TANDEM_SOURCE
-# undef _TANDEM_SOURCE
-#endif
 /* Enable general extensions on Solaris.  */
 #ifndef __EXTENSIONS__
 # undef __EXTENSIONS__
 #endif
 
-
 /* Version number of package */
 #undef VERSION
 
-/* Define to 1 if the X Window System is missing or not being used. */
-#undef X_DISPLAY_MISSING
-
-/* Define to 1 if on MINIX. */
-#undef _MINIX
-
-/* Define to 2 if the system does not provide POSIX.1 features except with
-   this defined. */
-#undef _POSIX_1_SOURCE
-
-/* Define to 1 if you need to in order for `stat' and other things to work. */
-#undef _POSIX_SOURCE
-
 /* TDE directory */
 #undef TDE_DIR
 
diff --git a/src/kvilib/config/kvi_wincfg.h b/src/kvilib/config/kvi_wincfg.h
index 6f33293e..0e634dd9 100644
--- a/src/kvilib/config/kvi_wincfg.h
+++ b/src/kvilib/config/kvi_wincfg.h
@@ -32,9 +32,6 @@
 /* define if you want to compile with new parser */
 #define COMPILE_NEW_KVS 1
 
-/* define if you want to use only the new KVS parser */
-#define COMPILE_ONLY_NEW_KVS 1
-
 /* define if you want to disable DCC VOICE sound support */
 /* #undef COMPILE_WITH_NO_SOUND */
 
@@ -79,9 +76,6 @@
 /* define if you have the SIOCGIFADDR ioctl and the related headers */
 /* #undef COMPILE_GET_INTERFACE_ADDRESS */
 
-/* define if you have strings.h */
-/* #undef HAVE_STRINGS_H */
-
 /* define if you have the getenv function */
 /* #undef HAVE_GETENV */
 
@@ -133,20 +127,9 @@
 /* Define if you have the <sys/soundcard.h> header file. */
 /* #undef HAVE_SYS_SOUNDCARD_H */
 
-/* Name of package */
-#define PACKAGE "kvirc"
-
 /* Version number of package */
 #define VERSION "3.4.0"
 
-
-/* Define if the system does not provide POSIX.1 features except with this
-   defined. */
-/* #undef _POSIX_1_SOURCE */
-
-/* Define if you need to in order for `stat' and other things to work. */
-/* #undef _POSIX_SOURCE */
-
 // for now we need this....dcc voice is not ported yet
 #define COMPILE_WITH_NO_SOUND
 
@@ -176,16 +159,4 @@
 /* The size of a `short int', as computed by sizeof. */
 #define SIZEOF_SHORT_INT 2
 
-/* The size of a `unsigned int', as computed by sizeof. */
-#define SIZEOF_UNSIGNED_INT 4
-
-/* The size of a `unsigned long int', as computed by sizeof. */
-#define SIZEOF_UNSIGNED_LONG_INT 4
-
-/* The size of a `unsigned long long int', as computed by sizeof. */
-#define SIZEOF_UNSIGNED_LONG_LONG_INT 8
-
-/* The size of a `unsigned short int', as computed by sizeof. */
-#define SIZEOF_UNSIGNED_SHORT_INT 2
-
 #endif //_KVI_WINCFG_H_
diff --git a/src/kvilib/core/kvi_string.h b/src/kvilib/core/kvi_string.h
index 4b7e09a3..b9ebc1f8 100644
--- a/src/kvilib/core/kvi_string.h
+++ b/src/kvilib/core/kvi_string.h
@@ -30,21 +30,14 @@
 #include <string.h>
 #include <ctype.h>
 
-#ifdef HAVE_STRINGS_H
-	#include <strings.h> // useless ?
-#endif
-
 #include <tqglobal.h>
 #include <tqstring.h>
 
-
 #include "kvi_qcstring.h"
 #include "kvi_inttypes.h"
 #include "kvi_heapobject.h"
 #include "kvi_stdarg.h"
 
-
-
 //
 //  sigh...
 //  IRC is not UNICODE ...(yet) :(
-- 
cgit v1.2.3

