summaryrefslogtreecommitdiffstats
path: root/sysutils/cluster-glue/files/patch-configure.ac
blob: 72c459ea25951cee03bf7bdd9ea6583520af3de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
--- configure.ac.orig	2014-10-16 17:24:17 UTC
+++ configure.ac
@@ -320,6 +320,12 @@ REBOOT_OPTIONS="-f"
 POWEROFF_OPTIONS="-f"
 
 case "$host_os" in
+*freebsd*|*dragonfly*)
+		POWEROFF_CMD=/sbin/shutdown
+		POWEROFF_OPTIONS="-p now"
+		REBOOT=/sbin/shutdown
+		REBOOT_OPTIONS="-r now"
+		;;
 *bsd*)		LIBS="-L/usr/local/lib"
 		CPPFLAGS="$CPPFLAGS -I/usr/local/include"
 		INIT_EXT=".sh"
@@ -497,7 +503,7 @@ export PATH
 
 dnl Replacing AC_PROG_LIBTOOL with AC_CHECK_PROG because LIBTOOL
 dnl was NOT being expanded all the time thus causing things to fail.
-AC_CHECK_PROGS(LIBTOOL, glibtool libtool libtool15 libtool13)
+dnl AC_CHECK_PROGS(LIBTOOL, glibtool libtool libtool15 libtool13)
 
 AM_PATH_PYTHON
 AC_CHECK_PROGS(MAKE, gmake make)
@@ -1230,7 +1236,6 @@ else
 
 	# We had to eliminate -Wnested-externs because of libtool changes
         EXTRA_FLAGS="-fgnu89-inline
-		-fstack-protector-all
 		-Wall
 		-Waggregate-return
 		-Wbad-function-cast 
@@ -1267,11 +1272,6 @@ else
 	  fi
 	done
 
-dnl In lib/ais/Makefile.am there's a gcc option available as of v4.x
-
-	GCC_MAJOR=`gcc -v 2>&1 | awk 'END{print $3}' | sed 's/[.].*//'`
-	AM_CONDITIONAL(GCC_4, test "${GCC_MAJOR}" = 4)
-
 dnl System specific options
 
 	case "$host_os" in
@@ -1345,8 +1345,6 @@ AC_MSG_RESULT(Supress make details: ${en
 AC_MSG_RESULT(Pretty print compiler output: ${enable_pretty})
 
 dnl Put the above variables to use
-LIBTOOL="${LIBTOOL} --tag=CC \$(QUIET_LIBTOOL_OPTS)"
-MAKE="${MAKE} \$(QUIET_MAKE_OPTS)"
 
 AC_SUBST(CC)
 AC_SUBST(MAKE)
OpenPOWER on IntegriCloud