From 5e55ee79883e833ccc7d841c81d5081ef7339920 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Thu, 25 Dec 2025 11:53:51 +0900
Subject: Move config.h.in to main folder, similar to other TDE applications

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 admin/Makefile.in         |   2 +-
 admin/libtool/Makefile.in |   2 +-
 config.h.in               | 269 ++++++++++++++++++++++++++++++++++++++++++++++
 configure.in              |   2 +-
 src/Makefile.am           |   4 +-
 src/config.h.in           | 269 ----------------------------------------------
 6 files changed, 274 insertions(+), 274 deletions(-)
 create mode 100644 config.h.in
 delete mode 100644 src/config.h.in

diff --git a/admin/Makefile.in b/admin/Makefile.in
index 5c1511dd..d4837315 100644
--- a/admin/Makefile.in
+++ b/admin/Makefile.in
@@ -43,7 +43,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
 CONFIG_CLEAN_VPATH_FILES =
 SOURCES =
diff --git a/admin/libtool/Makefile.in b/admin/libtool/Makefile.in
index 3f6fc930..0b256e75 100644
--- a/admin/libtool/Makefile.in
+++ b/admin/libtool/Makefile.in
@@ -43,7 +43,7 @@ am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
 	$(ACLOCAL_M4)
 mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
 CONFIG_CLEAN_VPATH_FILES =
 SOURCES =
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 00000000..47fc9acb
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,269 @@
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* define this to the number of average channel users */
+#undef AVERAGE_CHANNEL_USERS
+
+/* define this if you are on a big endian machine */
+#undef BIG_ENDIAN_MACHINE_BYTE_ORDER
+
+/* these are the build flags */
+#undef BUILD_FLAGS
+
+/* define if you want to enable the Arts daemon support */
+#undef COMPILE_ARTS_SUPPORT
+
+/* define if you want to enable the Audiofile library support */
+#undef COMPILE_AUDIOFILE_SUPPORT
+
+/* define if you want to compile the crypt support */
+#undef COMPILE_CRYPT_SUPPORT
+
+/* define if you want to disable DCC VOICE sound support */
+#undef COMPILE_DISABLE_DCC_VOICE
+
+/* define if you want to enable the Esound daemon support */
+#undef COMPILE_ESD_SUPPORT
+
+/* define if you have the SIOCGIFADDR ioctl and the related headers */
+#undef COMPILE_GET_INTERFACE_ADDRESS
+
+/* define this if you want to ignore the SIGALARM signal */
+#undef COMPILE_IGNORE_SIGALARM
+
+/* define if you want the info tips to be compiled in */
+#undef COMPILE_INFO_TIPS
+
+/* define if you want the IpV6 support */
+#undef COMPILE_IPV6_SUPPORT
+
+/* define if you want to compile the TDE support */
+#undef COMPILE_TDE_SUPPORT
+
+/* define if you want the memory checks */
+#undef COMPILE_MEMORY_CHECKS
+
+/* define if you want the gcc memory profile */
+#undef COMPILE_MEMORY_PROFILE
+
+/* 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
+   */
+#undef COMPILE_NO_IPC
+
+/* define if you want to ignore X Windows completely */
+#undef COMPILE_NO_X
+
+/* 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
+
+/* define if you have perl and want the perl scripting support in kvirc */
+#undef COMPILE_PERL_SUPPORT
+
+/* define if you have the KDE support and want the pseudo transparency */
+#undef COMPILE_PSEUDO_TRANSPARENCY
+
+/* define if you have openssl and want the ssl support in kvirc */
+#undef COMPILE_SSL_SUPPORT
+
+/* define if you want to use the pthreads library */
+#undef COMPILE_THREADS_USE_POSIX
+
+/* define if you want to use the solaris libthread */
+#undef COMPILE_THREADS_USE_SOLARIS_LIBTHREAD
+
+/* define if your compiler supports gotos do dynamic labels */
+#undef COMPILE_USE_DYNAMIC_LABELS
+
+/* define if you have libgsm and want the GSM code to be compiled */
+#undef COMPILE_USE_GSM
+
+/* define if you trust your memmove() function */
+#undef COMPILE_WITH_SYSTEM_MEMMOVE
+
+/* define if you want to enable the ZLib library support */
+#undef COMPILE_XSS_SUPPORT
+
+/* define if you want to enable the ZLib library support */
+#undef COMPILE_ZLIB_SUPPORT
+
+/* define if you want the i386 asm code */
+#undef COMPILE_ix86_ASM
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the `getenv' function. */
+#undef HAVE_GETENV
+
+/* 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
+
+/* Define to 1 if you have the `setenv' function. */
+#undef HAVE_SETENV
+
+/* 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
+
+/* The size of `long int', as computed by sizeof. */
+#undef SIZEOF_LONG_INT
+
+/* The size of `long long int', as computed by sizeof. */
+#undef SIZEOF_LONG_LONG_INT
+
+/* 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 threading extensions on Solaris.  */
+#ifndef _POSIX_PTHREAD_SEMANTICS
+# undef _POSIX_PTHREAD_SEMANTICS
+#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
+
+/* MAJOR.MINOR part of version */
+#undef VERSION_BRANCH
+
+/* 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
+
+/* TDE Library directory */
+#undef TDE_LIBDIR
diff --git a/configure.in b/configure.in
index e6c8e0f0..d623a4a6 100644
--- a/configure.in
+++ b/configure.in
@@ -20,7 +20,7 @@ AM_INIT_AUTOMAKE(kvirc,3.4.0)
 AM_MAINTAINER_MODE
 
 AC_PREFIX_DEFAULT(/usr/local)
-AC_CONFIG_HEADER(src/config.h)
+AC_CONFIG_HEADER(config.h)
 
 #------------------------------------------------------------------
 # HERE starts your real configure script
diff --git a/src/Makefile.am b/src/Makefile.am
index 6cbcb8f2..c1ba059d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,5 +6,5 @@ SUBDIRS          = kvilib kvirc modules tdeconf_update
 
 headers_HEADERS=kvi_configstatus.h
 
-kvi_configstatus.h: config.h
-	cp -f config.h kvi_configstatus.h
+kvi_configstatus.h: $(top_builddir)/config.h
+	cp -f $(top_builddir)/config.h kvi_configstatus.h
diff --git a/src/config.h.in b/src/config.h.in
deleted file mode 100644
index a339fad5..00000000
--- a/src/config.h.in
+++ /dev/null
@@ -1,269 +0,0 @@
-/* src/config.h.in.  Generated from configure.in by autoheader.  */
-
-/* define this to the number of average channel users */
-#undef AVERAGE_CHANNEL_USERS
-
-/* define this if you are on a big endian machine */
-#undef BIG_ENDIAN_MACHINE_BYTE_ORDER
-
-/* these are the build flags */
-#undef BUILD_FLAGS
-
-/* define if you want to enable the Arts daemon support */
-#undef COMPILE_ARTS_SUPPORT
-
-/* define if you want to enable the Audiofile library support */
-#undef COMPILE_AUDIOFILE_SUPPORT
-
-/* define if you want to compile the crypt support */
-#undef COMPILE_CRYPT_SUPPORT
-
-/* define if you want to disable DCC VOICE sound support */
-#undef COMPILE_DISABLE_DCC_VOICE
-
-/* define if you want to enable the Esound daemon support */
-#undef COMPILE_ESD_SUPPORT
-
-/* define if you have the SIOCGIFADDR ioctl and the related headers */
-#undef COMPILE_GET_INTERFACE_ADDRESS
-
-/* define this if you want to ignore the SIGALARM signal */
-#undef COMPILE_IGNORE_SIGALARM
-
-/* define if you want the info tips to be compiled in */
-#undef COMPILE_INFO_TIPS
-
-/* define if you want the IpV6 support */
-#undef COMPILE_IPV6_SUPPORT
-
-/* define if you want to compile the TDE support */
-#undef COMPILE_TDE_SUPPORT
-
-/* define if you want the memory checks */
-#undef COMPILE_MEMORY_CHECKS
-
-/* define if you want the gcc memory profile */
-#undef COMPILE_MEMORY_PROFILE
-
-/* 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
-   */
-#undef COMPILE_NO_IPC
-
-/* define if you want to ignore X Windows completely */
-#undef COMPILE_NO_X
-
-/* 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
-
-/* define if you have perl and want the perl scripting support in kvirc */
-#undef COMPILE_PERL_SUPPORT
-
-/* define if you have the KDE support and want the pseudo transparency */
-#undef COMPILE_PSEUDO_TRANSPARENCY
-
-/* define if you have openssl and want the ssl support in kvirc */
-#undef COMPILE_SSL_SUPPORT
-
-/* define if you want to use the pthreads library */
-#undef COMPILE_THREADS_USE_POSIX
-
-/* define if you want to use the solaris libthread */
-#undef COMPILE_THREADS_USE_SOLARIS_LIBTHREAD
-
-/* define if your compiler supports gotos do dynamic labels */
-#undef COMPILE_USE_DYNAMIC_LABELS
-
-/* define if you have libgsm and want the GSM code to be compiled */
-#undef COMPILE_USE_GSM
-
-/* define if you trust your memmove() function */
-#undef COMPILE_WITH_SYSTEM_MEMMOVE
-
-/* define if you want to enable the ZLib library support */
-#undef COMPILE_XSS_SUPPORT
-
-/* define if you want to enable the ZLib library support */
-#undef COMPILE_ZLIB_SUPPORT
-
-/* define if you want the i386 asm code */
-#undef COMPILE_ix86_ASM
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Define to 1 if you have the `getenv' function. */
-#undef HAVE_GETENV
-
-/* 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
-
-/* Define to 1 if you have the `setenv' function. */
-#undef HAVE_SETENV
-
-/* 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
-
-/* The size of `long int', as computed by sizeof. */
-#undef SIZEOF_LONG_INT
-
-/* The size of `long long int', as computed by sizeof. */
-#undef SIZEOF_LONG_LONG_INT
-
-/* 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 threading extensions on Solaris.  */
-#ifndef _POSIX_PTHREAD_SEMANTICS
-# undef _POSIX_PTHREAD_SEMANTICS
-#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
-
-/* MAJOR.MINOR part of version */
-#undef VERSION_BRANCH
-
-/* 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
-
-/* TDE Library directory */
-#undef TDE_LIBDIR
-- 
cgit v1.2.3

