Parcourir la 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 il y a 7 mois
Parent
révision
a87764b88f
Signé par: Michele Calgaro <michele.calgaro@yahoo.it> ID de la clé GPG: 2A75B7CA8ADED5CF
2 fichiers modifiés avec 4 ajouts et 60 suppressions
  1. 2
    30
      acinclude.m4
  2. 2
    30
      aclocal.m4

+ 2
- 30
acinclude.m4 Voir le fichier

@@ -2807,34 +2807,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2807 2807
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2808 2808
 ])
2809 2809
 
2810
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2811
-[
2812
-AC_MSG_CHECKING(if you need GNU extensions)
2813
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2814
-[
2815
-cat > conftest.c << EOF
2816
-#include <features.h>
2817
-
2818
-#ifdef __GNU_LIBRARY__
2819
-yes
2820
-#endif
2821
-EOF
2822
-
2823
-if (eval "$ac_cpp conftest.c") 2>&5 |
2824
-  egrep "yes" >/dev/null 2>&1; then
2825
-  rm -rf conftest*
2826
-  ac_cv_gnu_extensions=yes
2827
-else
2828
-  ac_cv_gnu_extensions=no
2829
-fi
2830
-])
2831
-
2832
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2833
-if test "$ac_cv_gnu_extensions" = "yes"; then
2834
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2835
-fi
2836
-])
2837
-
2838 2810
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2839 2811
 [
2840 2812
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3060,8 +3032,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3060 3032
         CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
3061 3033
         case $host in
3062 3034
           *-*-linux-gnu)	
3063
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3064
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3035
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3036
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3065 3037
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3066 3038
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3067 3039
           ;;

+ 2
- 30
aclocal.m4 Voir le fichier

@@ -2819,34 +2819,6 @@ AC_DEFUN([AC_CHECK_BOOL],
2819 2819
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2820 2820
 ])
2821 2821
 
2822
-AC_DEFUN([AC_CHECK_GNU_EXTENSIONS],
2823
-[
2824
-AC_MSG_CHECKING(if you need GNU extensions)
2825
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2826
-[
2827
-cat > conftest.c << EOF
2828
-#include <features.h>
2829
-
2830
-#ifdef __GNU_LIBRARY__
2831
-yes
2832
-#endif
2833
-EOF
2834
-
2835
-if (eval "$ac_cpp conftest.c") 2>&5 |
2836
-  egrep "yes" >/dev/null 2>&1; then
2837
-  rm -rf conftest*
2838
-  ac_cv_gnu_extensions=yes
2839
-else
2840
-  ac_cv_gnu_extensions=no
2841
-fi
2842
-])
2843
-
2844
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2845
-if test "$ac_cv_gnu_extensions" = "yes"; then
2846
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2847
-fi
2848
-])
2849
-
2850 2822
 AC_DEFUN([KDE_CHECK_COMPILER_FLAG],
2851 2823
 [
2852 2824
 AC_MSG_CHECKING([whether $CXX supports -$1])
@@ -3072,8 +3044,8 @@ AC_DEFUN([AC_CHECK_COMPILERS],
3072 3044
         CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
3073 3045
         case $host in
3074 3046
           *-*-linux-gnu)	
3075
-            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3076
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3047
+            CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
3048
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3077 3049
             KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3078 3050
             KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
3079 3051
           ;;

Chargement…
Annuler
Enregistrer