Browse Source

Replaced _BSD_SOURCE, _SVID_SOURCE with _DEFAULT_SOURCE. Removed AC_CHECK_GNU_EXTENSIONS.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 8 months ago
parent
commit
a91ee92ef6
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

+ 2
- 30
acinclude.m4 View File

@@ -2897,34 +2897,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2897 2897
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2898 2898
 ])
2899 2899
 
2900
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2901
-[
2902
-AC_MSG_CHECKING(if you need GNU extensions)
2903
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2904
-[
2905
-cat > conftest.c << EOF
2906
-#include <features.h>
2907
-
2908
-#ifdef __GNU_LIBRARY__
2909
-yes
2910
-#endif
2911
-EOF
2912
-
2913
-if (eval "$ac_cpp conftest.c") 2>&5 |
2914
-  egrep "yes" >/dev/null 2>&1; then
2915
-  rm -rf conftest*
2916
-  ac_cv_gnu_extensions=yes
2917
-else
2918
-  ac_cv_gnu_extensions=no
2919
-fi
2920
-])
2921
-
2922
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2923
-if test "$ac_cv_gnu_extensions" = "yes"; then
2924
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2925
-fi
2926
-])
2927
-
2928 2900
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2929 2901
 [
2930 2902
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3222,8 +3194,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3222 3194
         CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
3223 3195
         case $host in
3224 3196
           *-*-linux-gnu)	
3225
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3226
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3197
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3198
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3227 3199
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3228 3200
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3229 3201
           ;;

Loading…
Cancel
Save