]> sjero.net Git - wget/blobdiff - src/config.h.in
[svn] Commit various hash table changes:
[wget] / src / config.h.in
index ed200e3259529fb37619c261d01dcd46198b44c0..33e8aa538101c9f7a4aa309feb528022381d7b14 100644 (file)
@@ -50,6 +50,9 @@ char *alloca ();
 /* Define to empty if the keyword does not work.  */
 #undef const
 
+/* Define to empty or __inline__ or __inline.  */
+#undef inline
+
 /* Define to `unsigned' if <sys/types.h> doesn't define.  */
 #undef size_t
 
@@ -197,25 +200,46 @@ char *alloca ();
 /* Define to 1 if ANSI function prototypes are usable.  */
 #undef PROTOTYPES
 
-/* Debian says:
+/* Define if all libs needed for ssl support are existing */
+#undef HAVE_SSL
 
-   to get prototype for strptime, we need this  (taken from lftp)
-   #ifdef __linux__
-   #define __USE_XOPEN 1
-   #endif
+/* First a gambit to see whether we're on Solaris.  We'll
+   need it below.  */
+#ifdef __sun
+# ifdef __SVR4
+#  define solaris
+# endif
+#endif
 
-   But I don't think that's right.  The __USE_XOPEN thing is an
-   internal glibc2 thing that gets defined in features.h.  From
-   reading that file carefully, I think we need something like this
-   incantation to get the kind of features we use.
+/* The following several lines can be very dangerous; they can cripple
+   the header files and break compilation in _verY_ non-obvious ways.
+   Because of that, we define them only on architectures we know
+   about.  */
 
-   However, testing Wget under Solaris showed that compilation of
-   connect.c chokes because of the _XOPEN_SOURCE definition.  So I'm
-   disabling it.  If anyone understands this maze, please help!  */
+#undef NAMESPACE_TWEAKS
+
+#ifdef solaris
+# define NAMESPACE_TWEAKS
+#endif
 
 #ifdef __linux__
-# define _XOPEN_SOURCE 500
-# define _SVID_SOURCE
+# define NAMESPACE_TWEAKS
 #endif
 
+#ifdef NAMESPACE_TWEAKS
+
+/* Request the "Unix 98 compilation environment". */
+#define _XOPEN_SOURCE 500
+
+/* For Solaris: request everything else that is available and doesn't
+   conflict with the above.  */
+#define __EXTENSIONS__
+
+/* For Linux: request features of 4.3BSD and SVID (System V Interface
+   Definition). */
+#define _SVID_SOURCE
+#define _BSD_SOURCE
+
+#endif /* NAMESPACE_TWEAKS */
+
 #endif /* CONFIG_H */