36 lines
868 B
Text
36 lines
868 B
Text
--- configure.orig 2013-10-06 16:11:43 UTC
|
|
+++ configure
|
|
@@ -4850,6 +4850,7 @@ fi
|
|
for ac_func in swapoff
|
|
do :
|
|
ac_fn_c_check_func "$LINENO" "swapoff" "ac_cv_func_swapoff"
|
|
+ac_cv_func_swapoff=no
|
|
if test "x$ac_cv_func_swapoff" = xyes; then :
|
|
cat >>confdefs.h <<_ACEOF
|
|
#define HAVE_SWAPOFF 1
|
|
@@ -4861,6 +4862,7 @@ done
|
|
|
|
|
|
ac_fn_c_check_func "$LINENO" "swapon" "ac_cv_func_swapon"
|
|
+ac_cv_func_swapon=no
|
|
if test "x$ac_cv_func_swapon" = xyes; then :
|
|
|
|
|
|
@@ -5114,6 +5116,17 @@ $as_echo "#define SWAPD_SWAP_PERMS 01600
|
|
$as_echo "#define SWAPD_SWAPOFF_CMDLINE \"/sbin/swapctl -d \\\"%s\\\"\"" >>confdefs.h
|
|
|
|
;;
|
|
+ freebsd*)
|
|
+
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
+#define SWAPD_SWAPON_CMDLINE "/usr/local/sbin/swapd_swapon \"%s\""
|
|
+_ACEOF
|
|
+
|
|
+cat >>confdefs.h <<\_ACEOF
|
|
+#define SWAPD_SWAPOFF_CMDLINE "/usr/local/sbin/swapd_swapoff \"%s\""
|
|
+_ACEOF
|
|
+
|
|
+ ;;
|
|
esac
|
|
|
|
|