9389
9389
# for contrib/sepgsql
9390
9390
if test "$with_selinux" = yes; then
9391
9391
9392
- { $as_echo "$as_me:$LINENO: checking for getpeercon_raw in -lselinux" >&5
9393
- $as_echo_n "checking for getpeercon_raw in -lselinux... " >&6; }
9394
- if test "${ac_cv_lib_selinux_getpeercon_raw +set}" = set; then
9392
+ { $as_echo "$as_me:$LINENO: checking for selinux_sepgsql_context_path in -lselinux" >&5
9393
+ $as_echo_n "checking for selinux_sepgsql_context_path in -lselinux... " >&6; }
9394
+ if test "${ac_cv_lib_selinux_selinux_sepgsql_context_path +set}" = set; then
9395
9395
$as_echo_n "(cached) " >&6
9396
9396
else
9397
9397
ac_check_lib_save_LIBS=$LIBS
@@ -9409,11 +9409,11 @@ cat >>conftest.$ac_ext <<_ACEOF
9409
9409
#ifdef __cplusplus
9410
9410
extern "C"
9411
9411
#endif
9412
- char getpeercon_raw ();
9412
+ char selinux_sepgsql_context_path ();
9413
9413
int
9414
9414
main ()
9415
9415
{
9416
- return getpeercon_raw ();
9416
+ return selinux_sepgsql_context_path ();
9417
9417
;
9418
9418
return 0;
9419
9419
}
@@ -9439,31 +9439,31 @@ $as_echo "$ac_try_echo") >&5
9439
9439
test "$cross_compiling" = yes ||
9440
9440
$as_test_x conftest$ac_exeext
9441
9441
}; then
9442
- ac_cv_lib_selinux_getpeercon_raw =yes
9442
+ ac_cv_lib_selinux_selinux_sepgsql_context_path =yes
9443
9443
else
9444
9444
$as_echo "$as_me: failed program was:" >&5
9445
9445
sed 's/^/| /' conftest.$ac_ext >&5
9446
9446
9447
- ac_cv_lib_selinux_getpeercon_raw =no
9447
+ ac_cv_lib_selinux_selinux_sepgsql_context_path =no
9448
9448
fi
9449
9449
9450
9450
rm -rf conftest.dSYM
9451
9451
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9452
9452
conftest$ac_exeext conftest.$ac_ext
9453
9453
LIBS=$ac_check_lib_save_LIBS
9454
9454
fi
9455
- { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getpeercon_raw " >&5
9456
- $as_echo "$ac_cv_lib_selinux_getpeercon_raw " >&6; }
9457
- if test "x$ac_cv_lib_selinux_getpeercon_raw " = x""yes; then
9455
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_selinux_sepgsql_context_path " >&5
9456
+ $as_echo "$ac_cv_lib_selinux_selinux_sepgsql_context_path " >&6; }
9457
+ if test "x$ac_cv_lib_selinux_selinux_sepgsql_context_path " = x""yes; then
9458
9458
cat >>confdefs.h <<_ACEOF
9459
9459
#define HAVE_LIBSELINUX 1
9460
9460
_ACEOF
9461
9461
9462
9462
LIBS="-lselinux $LIBS"
9463
9463
9464
9464
else
9465
- { { $as_echo "$as_me:$LINENO: error: library 'libselinux' is required for SELinux support" >&5
9466
- $as_echo "$as_me: error: library 'libselinux' is required for SELinux support" >&2;}
9465
+ { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&5
9466
+ $as_echo "$as_me: error: library 'libselinux', version 2.0.93 or newer, is required for SELinux support" >&2;}
9467
9467
{ (exit 1); exit 1; }; }
9468
9468
fi
9469
9469
0 commit comments