1 --- 1/gdb/config.in 2012-03-09 18:40:28.001871023 +0100
2 +++ ./gdb/config.in 2012-03-09 18:41:46.552621113 +0100
4 /* Define if librpm library is being used. */
7 +/* Define to 1 if you have the `selinux' library (-lselinux). */
8 +#undef HAVE_LIBSELINUX
10 /* Define if libunwind library is being used. */
14 /* Define to 1 if you have the `sbrk' function. */
17 +/* Define to 1 if you have the <selinux/selinux.h> header file. */
18 +#undef HAVE_SELINUX_SELINUX_H
20 /* Define to 1 if you have the `setlocale' function. */
23 --- 1/gdb/configure 2012-03-09 18:40:28.183870443 +0100
24 +++ ./gdb/configure 2012-03-09 18:41:45.783623559 +0100
25 @@ -15557,6 +15557,64 @@ $as_echo "#define HAVE_PERSONALITY 1" >>
29 +for ac_header in selinux/selinux.h
31 + ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
32 +if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
33 + cat >>confdefs.h <<_ACEOF
34 +#define HAVE_SELINUX_SELINUX_H 1
41 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_get_boolean_active in -lselinux" >&5
42 +$as_echo_n "checking for security_get_boolean_active in -lselinux... " >&6; }
43 +if test "${ac_cv_lib_selinux_security_get_boolean_active+set}" = set; then :
44 + $as_echo_n "(cached) " >&6
46 + ac_check_lib_save_LIBS=$LIBS
47 +LIBS="-lselinux $LIBS"
48 +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49 +/* end confdefs.h. */
51 +/* Override any GCC internal prototype to avoid an error.
52 + Use char because int might match the return type of a GCC
53 + builtin and then its argument prototype would still apply. */
57 +char security_get_boolean_active ();
61 +return security_get_boolean_active ();
66 +if ac_fn_c_try_link "$LINENO"; then :
67 + ac_cv_lib_selinux_security_get_boolean_active=yes
69 + ac_cv_lib_selinux_security_get_boolean_active=no
71 +rm -f core conftest.err conftest.$ac_objext \
72 + conftest$ac_exeext conftest.$ac_ext
73 +LIBS=$ac_check_lib_save_LIBS
75 +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_get_boolean_active" >&5
76 +$as_echo "$ac_cv_lib_selinux_security_get_boolean_active" >&6; }
77 +if test "x$ac_cv_lib_selinux_security_get_boolean_active" = x""yes; then :
78 + cat >>confdefs.h <<_ACEOF
79 +#define HAVE_LIBSELINUX 1
82 + LIBS="-lselinux $LIBS"
88 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
89 # except that the argument to --with-sysroot is optional.