Browse Source

Replaced _BSD_SOURCE, _SVID_SOURCE with _DEFAULT_SOURCE. Removed AC_CHECK_GNU_EXTENSIONS.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 7 months ago
parent
commit
89b5680894
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
2 changed files with 4 additions and 60 deletions
  1. 2
    30
      acinclude.m4
  2. 2
    30
      aclocal.m4

+ 2
- 30
acinclude.m4 View File

@@ -2802,34 +2802,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2802 2802
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2803 2803
 ])
2804 2804
 
2805
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2806
-[
2807
-AC_MSG_CHECKING(if you need GNU extensions)
2808
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2809
-[
2810
-cat > conftest.c << EOF
2811
-#include <features.h>
2812
-
2813
-#ifdef __GNU_LIBRARY__
2814
-yes
2815
-#endif
2816
-EOF
2817
-
2818
-if (eval "$ac_cpp conftest.c") 2>&5 |
2819
-  egrep "yes" >/dev/null 2>&1; then
2820
-  rm -rf conftest*
2821
-  ac_cv_gnu_extensions=yes
2822
-else
2823
-  ac_cv_gnu_extensions=no
2824
-fi
2825
-])
2826
-
2827
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2828
-if test "$ac_cv_gnu_extensions" = "yes"; then
2829
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2830
-fi
2831
-])
2832
-
2833 2805
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2834 2806
 [
2835 2807
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3099,8 +3071,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3099 3071
         CXXFLAGS="-Wall -W -Wpointer-arith -Wno-non-virtual-dtor $CXXFLAGS"
3100 3072
         case $host in
3101 3073
           *-*-linux-gnu)	
3102
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3103
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3074
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3075
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3104 3076
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3105 3077
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3106 3078
           ;;

+ 2
- 30
aclocal.m4 View File

@@ -2814,34 +2814,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2814 2814
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2815 2815
 ])
2816 2816
 
2817
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2818
-[
2819
-AC_MSG_CHECKING(if you need GNU extensions)
2820
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2821
-[
2822
-cat > conftest.c << EOF
2823
-#include <features.h>
2824
-
2825
-#ifdef __GNU_LIBRARY__
2826
-yes
2827
-#endif
2828
-EOF
2829
-
2830
-if (eval "$ac_cpp conftest.c") 2>&5 |
2831
-  egrep "yes" >/dev/null 2>&1; then
2832
-  rm -rf conftest*
2833
-  ac_cv_gnu_extensions=yes
2834
-else
2835
-  ac_cv_gnu_extensions=no
2836
-fi
2837
-])
2838
-
2839
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2840
-if test "$ac_cv_gnu_extensions" = "yes"; then
2841
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2842
-fi
2843
-])
2844
-
2845 2817
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2846 2818
 [
2847 2819
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3111,8 +3083,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3111 3083
         CXXFLAGS="-Wall -W -Wpointer-arith -Wno-non-virtual-dtor $CXXFLAGS"
3112 3084
         case $host in
3113 3085
           *-*-linux-gnu)	
3114
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3115
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3086
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3087
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3116 3088
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3117 3089
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3118 3090
           ;;

Loading…
Cancel
Save