Browse Source

Replaced _BSD_SOURCE, _SVID_SOURCE, _GNU_SOURCE with _DEFAULT_SOURCE.

Removed _XOPEN_SOURCE.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Michele Calgaro 4 months ago
parent
commit
83f68e199a
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF
1 changed files with 2 additions and 30 deletions
  1. 2
    30
      acinclude.m4.in

+ 2
- 30
acinclude.m4.in View File

@@ -2826,34 +2826,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2826 2826
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2827 2827
 ])
2828 2828
 
2829
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2830
-[
2831
-AC_MSG_CHECKING(if you need GNU extensions)
2832
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2833
-[
2834
-cat > conftest.c << EOF
2835
-#include <features.h>
2836
-
2837
-#ifdef __GNU_LIBRARY__
2838
-yes
2839
-#endif
2840
-EOF
2841
-
2842
-if (eval "$ac_cpp conftest.c") 2>&5 |
2843
-  egrep "yes" >/dev/null 2>&1; then
2844
-  rm -rf conftest*
2845
-  ac_cv_gnu_extensions=yes
2846
-else
2847
-  ac_cv_gnu_extensions=no
2848
-fi
2849
-])
2850
-
2851
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2852
-if test "$ac_cv_gnu_extensions" = "yes"; then
2853
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2854
-fi
2855
-])
2856
-
2857 2829
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2858 2830
 [
2859 2831
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3153,8 +3125,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3153 3125
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3154 3126
         case $host in
3155 3127
           *-*-linux-gnu)	
3156
-            CFLAGS="-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3157
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3128
+            CFLAGS="-W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_DEFAULT_SOURCE $CFLAGS"
3129
+            CXXFLAGS="-ansi -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3158 3130
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3159 3131
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3160 3132
           ;;

Loading…
Cancel
Save