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/2/head
Michele Calgaro 8 months ago
parent
commit
259dc8ceee
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

@@ -2600,34 +2600,6 @@ AC_DEFUN(AC_CHECK_BOOL,
2600 2600
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2601 2601
 ])
2602 2602
 
2603
-AC_DEFUN(AC_CHECK_GNU_EXTENSIONS,
2604
-[
2605
-AC_MSG_CHECKING(if you need GNU extensions)
2606
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2607
-[
2608
-cat > conftest.c << EOF
2609
-#include <features.h>
2610
-
2611
-#ifdef __GNU_LIBRARY__
2612
-yes
2613
-#endif
2614
-EOF
2615
-
2616
-if (eval "$ac_cpp conftest.c") 2>&5 |
2617
-  egrep "yes" >/dev/null 2>&1; then
2618
-  rm -rf conftest*
2619
-  ac_cv_gnu_extensions=yes
2620
-else
2621
-  ac_cv_gnu_extensions=no
2622
-fi
2623
-])
2624
-
2625
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2626
-if test "$ac_cv_gnu_extensions" = "yes"; then
2627
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2628
-fi
2629
-])
2630
-
2631 2603
 AC_DEFUN(KDE_CHECK_COMPILER_FLAG,
2632 2604
 [
2633 2605
 AC_MSG_CHECKING(whether $CXX supports -$1)
@@ -2820,8 +2792,8 @@ AC_DEFUN(AC_CHECK_COMPILERS,
2820 2792
       if test "$GCC" = "yes"; then
2821 2793
         case $host in
2822 2794
           *-*-linux-gnu)	
2823
-            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
2824
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
2795
+            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
2796
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
2825 2797
           ;;
2826 2798
         esac
2827 2799
         CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"

+ 2
- 30
aclocal.m4 View File

@@ -2612,34 +2612,6 @@ AC_DEFUN(AC_CHECK_BOOL,
2612 2612
   AC_DEFINE_UNQUOTED(HAVE_BOOL, 1, [You _must_ have bool])
2613 2613
 ])
2614 2614
 
2615
-AC_DEFUN(AC_CHECK_GNU_EXTENSIONS,
2616
-[
2617
-AC_MSG_CHECKING(if you need GNU extensions)
2618
-AC_CACHE_VAL(ac_cv_gnu_extensions,
2619
-[
2620
-cat > conftest.c << EOF
2621
-#include <features.h>
2622
-
2623
-#ifdef __GNU_LIBRARY__
2624
-yes
2625
-#endif
2626
-EOF
2627
-
2628
-if (eval "$ac_cpp conftest.c") 2>&5 |
2629
-  egrep "yes" >/dev/null 2>&1; then
2630
-  rm -rf conftest*
2631
-  ac_cv_gnu_extensions=yes
2632
-else
2633
-  ac_cv_gnu_extensions=no
2634
-fi
2635
-])
2636
-
2637
-AC_MSG_RESULT($ac_cv_gnu_extensions)
2638
-if test "$ac_cv_gnu_extensions" = "yes"; then
2639
-  AC_DEFINE_UNQUOTED(_GNU_SOURCE, 1, [Define if you need to use the GNU extensions])
2640
-fi
2641
-])
2642
-
2643 2615
 AC_DEFUN(KDE_CHECK_COMPILER_FLAG,
2644 2616
 [
2645 2617
 AC_MSG_CHECKING(whether $CXX supports -$1)
@@ -2832,8 +2804,8 @@ AC_DEFUN(AC_CHECK_COMPILERS,
2832 2804
       if test "$GCC" = "yes"; then
2833 2805
         case $host in
2834 2806
           *-*-linux-gnu)	
2835
-            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
2836
-            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
2807
+            CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE $CFLAGS"
2808
+            CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE -Wcast-align -Wconversion $CXXFLAGS"
2837 2809
           ;;
2838 2810
         esac
2839 2811
         CXXFLAGS="-Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"

Loading…
Cancel
Save