-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
97 lines (81 loc) · 2.44 KB
/
configure.ac
File metadata and controls
97 lines (81 loc) · 2.44 KB
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
97
AC_INIT([glusterrest], m4_esyscmd([tr -d '\n' < VERSION]), [avishwan@redhat.com])
AC_PREFIX_DEFAULT(/usr/local)
AM_INIT_AUTOMAKE
#LT_INIT
case $host in
*linux*)
GLUSTERD_WORKDIR_TMP="${localstatedir}/lib/glusterd"
;;
solaris*)
GLUSTERD_WORKDIR_TMP="${localstatedir}/lib/glusterd"
;;
*netbsd*)
GLUSTERD_WORKDIR_TMP="${localstatedir}/db/glusterd"
;;
*freebsd*)
GLUSTERD_WORKDIR_TMP="${localstatedir}/db/glusterd"
;;
darwin*)
GLUSTERD_WORKDIR_TMP="${localstatedir}/db/glusterd"
;;
esac
VERSION=$(tr -d '\n' < VERSION)
AC_SUBST(VERSION)
dnl Fix this early so we can expand with eval later
test "${prefix}" = "NONE" && prefix="${ac_default_prefix}"
test "${exec_prefix}" = "NONE" && exec_prefix='${prefix}'
dnl Default value for sbindir
sbintemp="${sbindir}"
eval sbintemp=\"${sbintemp}\"
eval sbintemp=\"${sbintemp}\"
SBINDIR=${sbintemp}
AC_SUBST(SBINDIR)
sysconfdirtemp="${sysconfdir}"
eval sysconfdirtemp=\"${sysconfdirtemp}\"
SYSCONFDIR=${sysconfdirtemp}
AC_SUBST(SYSCONFDIR)
datadirtemp="${datadir}"
eval datadirtemp=\"${datadirtemp}\"
eval datadirtemp=\"${datadirtemp}\"
DATADIR=${datadirtemp}
AC_SUBST(DATADIR)
localstatedirtemp="${localstatedir}"
eval localstatedirtemp=\"${localstatedirtemp}\"
LOCALSTATEDIR=${localstatedirtemp}
AC_SUBST(LOCALSTATEDIR)
tmp_prefix="${prefix}"
prefix=""
eval GLUSTERD_WORKDIR_TMP=\"${GLUSTERD_WORKDIR_TMP}\"
GLUSTERD_WORKDIR=${GLUSTERD_WORKDIR_TMP}
prefix="${tmp_prefix}"
AC_SUBST(GLUSTERD_WORKDIR)
RESTAPI_GOPATH=$(dirname $(readlink -f $0))
RESTAPI_BUILD_ID=$(head -c20 /dev/urandom | od -An -tx1 | tr -d ' \n')
AC_SUBST(RESTAPI_GOPATH)
AC_SUBST(RESTAPI_BUILD_ID)
AC_ARG_WITH(systemddir,
[ --with-systemddir=DIR systemd service files in DIR @<:@/usr/lib/systemd/system@:>@],
[systemddir=$withval],
[systemddir='/usr/lib/systemd/system'])
AC_SUBST(systemddir)
AC_ARG_WITH(initdir,
[ --with-initdir=DIR init.d scripts in DIR @<:@/etc/init.d@:>@],
[initdir=$withval],
[initdir='/etc/init.d'])
AC_SUBST(initdir)
AC_CONFIG_FILES([doc/Makefile
extra/Makefile
extra/restconfig.json
extra/glusterrestd.service
Makefile
src/Makefile
src/gluster/Makefile
src/gluster/rest/Makefile
src/gluster/rest/vars.go
src/gluster/cli/Makefile
src/gluster/utils/Makefile
tools/Makefile
tools/gluster-rest.py
tools/peer_restcli.py
])
AC_OUTPUT