Browse Source

Replaced _BSD_SOURCE, _SVID_SOURCE with _DEFAULT_SOURCE. Removed AC_CHECK_GNU_EXTENSIONS.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Michele Calgaro 6 months ago
parent
commit
0169bc457e
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
3 changed files with 6 additions and 62 deletions
  1. 2
    30
      acinclude.m4
  2. 2
    30
      aclocal.m4
  3. 2
    2
      ksystemlog/po/Makefile

+ 2
- 30
acinclude.m4 View File

@@ -2708,34 +2708,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2708 2708
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2709 2709
 ])
2710 2710
 
2711
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2712
-[
2713
-AC_MSG_CHECKING(if you need GNU extensions)
2714
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2715
-[
2716
-cat > conftest.c << EOF
2717
-#include <features.h>
2718
-
2719
-#ifdef __GNU_LIBRARY__
2720
-yes
2721
-#endif
2722
-EOF
2723
-
2724
-if (eval "$ac_cpp conftest.c") 2>&5 |
2725
-  egrep "yes" >/dev/null 2>&1; then
2726
-  rm -rf conftest*
2727
-  ac_cv_gnu_extensions=yes
2728
-else
2729
-  ac_cv_gnu_extensions=no
2730
-fi
2731
-])
2732
-
2733
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2734
-if test "$ac_cv_gnu_extensions" = "yes"; then
2735
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2736
-fi
2737
-])
2738
-
2739 2711
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2740 2712
 [
2741 2713
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -2934,8 +2906,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
2934 2906
       if test "$GCC" = "yes"; then
2935 2907
         case $host in
2936 2908
           *-*-linux-gnu)	
2937
-            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
2938
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2909
+            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
2910
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2939 2911
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"; CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
2940 2912
           ;;
2941 2913
         esac

+ 2
- 30
aclocal.m4 View File

@@ -2720,34 +2720,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2720 2720
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2721 2721
 ])
2722 2722
 
2723
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2724
-[
2725
-AC_MSG_CHECKING(if you need GNU extensions)
2726
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2727
-[
2728
-cat > conftest.c << EOF
2729
-#include <features.h>
2730
-
2731
-#ifdef __GNU_LIBRARY__
2732
-yes
2733
-#endif
2734
-EOF
2735
-
2736
-if (eval "$ac_cpp conftest.c") 2>&5 |
2737
-  egrep "yes" >/dev/null 2>&1; then
2738
-  rm -rf conftest*
2739
-  ac_cv_gnu_extensions=yes
2740
-else
2741
-  ac_cv_gnu_extensions=no
2742
-fi
2743
-])
2744
-
2745
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2746
-if test "$ac_cv_gnu_extensions" = "yes"; then
2747
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2748
-fi
2749
-])
2750
-
2751 2723
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2752 2724
 [
2753 2725
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -2946,8 +2918,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
2946 2918
       if test "$GCC" = "yes"; then
2947 2919
         case $host in
2948 2920
           *-*-linux-gnu)	
2949
-            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
2950
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2921
+            CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
2922
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
2951 2923
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"; CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
2952 2924
           ;;
2953 2925
         esac

+ 2
- 2
ksystemlog/po/Makefile View File

@@ -52,14 +52,14 @@ AUTOMAKE = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run automa
52 52
 AWK = gawk
53 53
 CC = gcc
54 54
 CCDEPMODE = depmode=gcc3
55
-CFLAGS = -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2   -Wformat-security -Wmissing-format-attribute
55
+CFLAGS = -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -O2   -Wformat-security -Wmissing-format-attribute
56 56
 CONF_FILES =  $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in
57 57
 CPP = gcc -E
58 58
 CPPFLAGS =  -DTQT_THREAD_SUPPORT  -D_REENTRANT
59 59
 CXX = g++
60 60
 CXXCPP = g++ -E
61 61
 CXXDEPMODE = depmode=gcc3
62
-CXXFLAGS = -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
62
+CXXFLAGS = -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
63 63
 CYGPATH_W = echo
64 64
 DCOPIDL = ${prefix}/bin/dcopidl
65 65
 DCOPIDL2CPP = ${prefix}/bin/dcopidl2cpp

Loading…
Cancel
Save