- Removed AC_HEADER_STDC configure test
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 29 Dec 2014 19:38:22 +0000 (19:38 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Mon, 29 Dec 2014 19:38:22 +0000 (19:38 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5207 82007160-df01-0410-b94d-b575c5fd34c7

18 files changed:
configure
configure.ac
src/compat.c
src/dnsbl.c
src/irc.c
src/libopm/configure
src/libopm/configure.ac
src/libopm/src/compat.c
src/libopm/src/config.c
src/libopm/src/inet.c
src/libopm/src/proxy.c
src/log.c
src/main.c
src/misc.c
src/negcache.c
src/opercmd.c
src/scan.c
src/stats.c

index cf7deb6357057b3cd49c09342dbb4a9a6f2789ec..8090e2b9f96188c76f26c4ec8f7eab453408a127 100755 (executable)
--- a/configure
+++ b/configure
@@ -12088,119 +12088,6 @@ CC=$lt_save_CC
 
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if ${ac_cv_header_stdc+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_stdc=yes
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-  if test "$cross_compiling" = yes; then :
-  :
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-                  (('a' <= (c) && (c) <= 'i') \
-                    || ('j' <= (c) && (c) <= 'r') \
-                    || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
-  int i;
-  for (i = 0; i < 256; i++)
-    if (XOR (islower (i), ISLOWER (i))
-       || toupper (i) != TOUPPER (i))
-      return 2;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
-
-fi
-
-
 for ac_header in sys/poll.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
index 8c6ecb547725e16e67d60a652fc83c8dae4518fd..5f33b9df8496588ee84a5098825536004fe0c072 100644 (file)
@@ -34,8 +34,6 @@ AC_PROG_LIBTOOL
 dnl Checks for libraries.
 
 dnl Checks for header files.
-AC_HEADER_STDC
-
 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
 
 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h)
index c2bc98c831268a94b80d39a2845bbc8567ba6029..a6153c28c29e36809e8442d421af6810897994bc 100644 (file)
@@ -22,10 +22,7 @@ along with this program; if not, write to the
 #include "setup.h"
 
 #include <stdio.h>
-
-#ifdef STDC_HEADERS
-# include <string.h>
-#endif
+#include <string.h>
 
 #include "compat.h"
 
index 75278a0e79dd300a1fd02af5e75402c65f610d91..324b0c2b2a8877b2f17e4162829421fbcdfbc593 100644 (file)
@@ -23,11 +23,7 @@ along with this program; if not, write to the Free Software
 #include "setup.h"
 
 #include <stdio.h>
-
-#ifdef STDC_HEADERS
 #include <stdlib.h>
-#endif
-
 #include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>
index 9cf64fd4b28a2b42f346405ca8ca03687279929b..5588924bd9786e37894ea7e333067b116e6b6517 100644 (file)
--- a/src/irc.c
+++ b/src/irc.c
 
 #include <stdio.h>
 #include <unistd.h>
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
 
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
index 646af32f7f3056a2bd715e13cd6df73addcd85d1..a3e5bbf071aba8857820dbd3437898bd64f7a026 100755 (executable)
@@ -12072,119 +12072,6 @@ CC=$lt_save_CC
 
 
 
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
-$as_echo_n "checking for ANSI C header files... " >&6; }
-if ${ac_cv_header_stdc+:} false; then :
-  $as_echo_n "(cached) " >&6
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-  ac_cv_header_stdc=yes
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f conftest*
-
-fi
-
-if test $ac_cv_header_stdc = yes; then
-  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
-  if test "$cross_compiling" = yes; then :
-  :
-else
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-                  (('a' <= (c) && (c) <= 'i') \
-                    || ('j' <= (c) && (c) <= 'r') \
-                    || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
-int
-main ()
-{
-  int i;
-  for (i = 0; i < 256; i++)
-    if (XOR (islower (i), ISLOWER (i))
-       || toupper (i) != TOUPPER (i))
-      return 2;
-  return 0;
-}
-_ACEOF
-if ac_fn_c_try_run "$LINENO"; then :
-
-else
-  ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
-fi
-
-fi
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
-$as_echo "$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
-
-fi
-
-
 for ac_header in sys/poll.h
 do :
   ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
index 380d226b571ab41fbf1ca88ac0dd7a08feeca6ad..7e2752a2fdbb96ab6d255c8f17137d8dbe09901a 100644 (file)
@@ -23,8 +23,6 @@ AC_PROG_LIBTOOL
 AC_SUBST(LIBTOOL_DEPS)
 
 dnl Checks for header files.
-AC_HEADER_STDC
-
 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
 
 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h)
index a4333698b502621f3be1b2c7c94088da1a02fa76..fac535b29deeff006a4f52d8ae054d58d9ec6cc0 100644 (file)
 #include "setup.h"
 
 #include <stdio.h>
-
-#ifdef STDC_HEADERS
-# include <string.h>
-#endif
+#include <string.h>
 
 #include "compat.h"
 #include "opm.h"
index 12f3fa88a113aab9357a476b4f21f994f4439719..a32b9802dba44800905c4ef0f81da8aea240ff93 100644 (file)
@@ -31,9 +31,7 @@
 #include "opm_common.h"
 #include "list.h"
 
-#ifdef STDC_HEADERS
-# include <string.h>
-#endif
+#include <string.h>
 
 
 static OPM_CONFIG_HASH_T HASH[] = {
index 8c590f8596ae4c85e0e48372b63ee40d7dd045dd..62add4dca56a7ab55c30862fd871670a5356f723 100644 (file)
@@ -30,10 +30,8 @@ along with this program; if not, write to
 #include <errno.h>
 #include <stdio.h>
 #include <assert.h>
-#if STDC_HEADERS
-# include <string.h>
-# include <stdlib.h>
-#endif
+#include <string.h>
+#include <stdlib.h>
 #ifdef HAVE_STRINGS_H
 # include <strings.h>
 #endif
index 0d3464503298741d5fd57bbf71cbe83253cd36ff..5997e0acbc964824d39adfa383bcf942ca2cf74d 100644 (file)
 #include "setup.h"
 
 #include <stdio.h>
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
 
 #include "inet.h"
 #include "compat.h"
index 40962e7dee51f8546ba8b47ac6e2827cedb42c49..64b653693002a78665777c658b08f65986a92366 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -24,19 +24,15 @@ along with this program; if not, write to
 
 #include <stdio.h>
 #include <errno.h>
-
-#ifdef STDC_HEADERS
 #include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
-#endif
-
 #include <time.h>
 
 #include "compat.h"
 #include "config.h"
-#include "extern.h"
 #include "log.h"
+#include "main.h"
 
 
 FILE *logfile;
index d09c33b72768b4b05c7cf40728af2eb529043974..66260a097674b272fb1dc2a2b529575f6166920d 100644 (file)
@@ -33,11 +33,8 @@ along with this program; if not, write to the Free Software
 #include <errno.h>
 #include <sys/resource.h> /* getrlimit */
 #include <fcntl.h>
-
-#ifdef STDC_HEADERS
 #include <stdlib.h>
 #include <string.h>
-#endif
 
 #include "compat.h"
 #include "config.h"
index 940688980b5c9707bb1a1c612d2157d8c2b314a3..7a3dc160aafe9e1ae546f50006fc620dc4cfb8fe 100644 (file)
@@ -24,10 +24,7 @@ along with this program; if not, write to the Free Software
 
 #include <stdio.h>
 #include <time.h>
-
-#ifdef STDC_HEADERS
-# include <string.h>
-#endif
+#include <string.h>
 
 #include "compat.h"
 #include "config.h"
index 355e4f0ee1443cb1c5fae35b9c08131c2bfba17d..f14cabc7bb151299a50fc9a19607ee2f3ba998ab 100644 (file)
@@ -41,10 +41,7 @@ along with this program; if not, write to:
 #include "setup.h"
 
 #include <stdio.h>
-
-#ifdef STDC_HEADERS
 #include <stdlib.h>
-#endif
 
 #ifdef TIME_WITH_SYS_TIME
 #include <sys/time.h>
index 17e85277950edad92b9f67ee7d948fcf4996c59e..e33a2985caae37754b0c49cda2a3bc77a216635a 100644 (file)
@@ -22,11 +22,8 @@ along with this program; if not, write to the Free Software
 
 #include "setup.h"
 
-#ifdef STDC_HEADERS
-# include <string.h>
-# include <stdlib.h>
-#endif
-
+#include <string.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <netinet/in.h>
 #include <time.h>
index a4fc18418b2868c8cd332b66be5ea74b19d32072..50c02f767b87c8d700f3775c95bab81cb7665766 100644 (file)
 #include <stdio.h>
 #include <unistd.h>
 #include <assert.h>
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <string.h>
-#endif
+#include <stdlib.h>
+#include <string.h>
 
 #ifdef TIME_WITH_SYS_TIME
 # include <sys/time.h>
index 818ae97d21dd8d04c4e82e0d050966d68b5979a0..7dcbaa7d4bd294e592b21c1b263bfdcac6ecc984 100644 (file)
@@ -24,10 +24,7 @@ along with this program; if not, write to the Free Software
 
 #include <stdio.h>
 #include <unistd.h>
-
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
 
 #ifdef HAVE_STRINGS_H
 # include <strings.h>