summaryrefslogtreecommitdiff
path: root/devel/libuuid/patches/patch-configure
blob: d024f401eb987f8429b6902fa06a9789372bc6aa (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
$NetBSD: patch-configure,v 1.8 2018/08/29 12:25:52 adam Exp $

Add --disable-uuidgen and --disable-mcookie.
Shell portability.

--- configure.orig	2017-10-19 11:10:01.000000000 +0000
+++ configure
@@ -1250,6 +1250,7 @@ enable_zramctl
 enable_fsck
 enable_partx
 enable_uuidd
+enable_uuidgen
 enable_mountpoint
 enable_fallocate
 enable_unshare
@@ -1269,6 +1270,7 @@ enable_lslogins
 enable_wdctl
 enable_cal
 enable_logger
+enable_mcookie
 enable_switch_root
 enable_pivot_root
 enable_lsmem
@@ -2024,6 +2026,7 @@ Optional Features:
   --disable-fsck          do not build fsck
   --disable-partx         do not build addpart, delpart, partx
   --disable-uuidd         do not build the uuid daemon
+  --disable-uuidgen       do not build uuidgen
   --disable-mountpoint    do not build mountpoint
   --disable-fallocate     do not build fallocate
   --disable-unshare       do not build unshare
@@ -2043,6 +2046,7 @@ Optional Features:
   --disable-wdctl         do not build wdctl
   --disable-cal           do not build cal
   --disable-logger        do not build logger
+  --disable-mcookie       do not build mcookie
   --disable-switch_root   do not build switch_root
   --disable-pivot_root    do not build pivot_root
   --disable-lsmem         do not build lsmem
@@ -23311,17 +23315,22 @@ fi
 
 
 
+# Check whether --enable-uuidgen was given.
+if test "${enable_uuidgen+set}" = set; then :
+  enableval=$enable_uuidgen;
+else
 
   if test "x$ul_default_estate" != x; then
   enable_uuidgen=$ul_default_estate
-  build_uuidgen=yes
-  if test "x$ul_default_estate" = xno; then
-    build_uuidgen=no
+  else
+  enable_uuidgen=check
   fi
-else
+fi
 
+if test "x$enable_uuidgen" = xno; then
+  build_uuidgen=no
+else
   build_uuidgen=yes
-  enable_uuidgen=check
 fi
 
 
@@ -25956,17 +25965,23 @@ fi
 
 
 
+# Check whether --enable-mcookie was given.
+if test "${enable_mcookie+set}" = set; then :
+  enableval=$enable_mcookie;
+else
 
   if test "x$ul_default_estate" != x; then
   enable_mcookie=$ul_default_estate
-  build_mcookie=yes
-  if test "x$ul_default_estate" = xno; then
-    build_mcookie=no
+  else
+    enable_mcookie=check
   fi
-else
 
+fi
+
+if test "x$enable_mcookie" = xno; then
+  build_mcookie=no
+else
   build_mcookie=yes
-  enable_mcookie=yes
 fi
 
  if test "x$build_mcookie" = xyes; then