forked from fumiyas/smbldap-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
166 lines (123 loc) · 3.52 KB
/
configure.in
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
## smbldap-tools configure.in
## ======================================================================
AC_PREREQ(2.50)
AC_INIT(smbldap-tools, 0.9.11)
AC_PREFIX_DEFAULT(/usr/local)
#AC_PROG_INSTALL
package_subdir="$PACKAGE_NAME"
PERL_VERSION=5.008001
SAMBA_SYSCONFDIR="/etc/samba"
SAMBA_BINDIR="/usr/bin"
AC_CONFIG_FILES(
Makefile
build/Makefile.common
build/Makefile.package
build/Makefile.top
build/subst.pl
build/subst.vars
)
## Installation directories
## ======================================================================
AC_SUBST(package_subdir)
AC_ARG_WITH(
subdir,
[AC_HELP_STRING(--with-subdir=DIR,
[change default subdirectory used for installs])],
[package_subdir="$withval"],
)
case "$package_subdir" in
yes|no|"")
package_subdir=""
;;
*)
AC_MSG_RESULT([using $package_subdir for install subdir])
package_subdir="/$package_subdir"
;;
esac
## Perl
## ======================================================================
AC_SUBST(PERL_COMMAND)
AC_ARG_WITH(
perl,
[AC_HELP_STRING(--with-perl=PATH, [Use specific perl command])],
[PERL_COMMAND="$withval"],
)
case "$PERL_COMMAND" in
/*)
;;
*)
AC_PATH_PROG(PERL_COMMAND, perl)
;;
esac
AC_MSG_RESULT([using $PERL_COMMAND for perl command])
## ----------------------------------------------------------------------
AC_MSG_CHECKING(for Perl version)
if test x`"$PERL_COMMAND" -e "use $PERL_VERSION; print 'ok'"` = x"ok"; then
AC_MSG_RESULT($PERL_VERSION or later)
else
AC_MSG_ERROR(Perl $PERL_VERSION or later required.)
fi
## ----------------------------------------------------------------------
AC_MSG_CHECKING(for Perl Digest::SHA1 or Digest::SHA)
AC_SUBST(PERL_DIGEST_SHA)
if test x`"$PERL_COMMAND" -e "use 5.010000; print 'ok'" 2>/dev/null` = x"ok"; then
PERL_DIGEST_SHA="Digest::SHA"
else
PERL_DIGEST_SHA="Digest::SHA1"
fi
AC_MSG_RESULT([$PERL_DIGEST_SHA])
## ----------------------------------------------------------------------
AC_SUBST(PERL_LIBDIR)
AC_ARG_WITH(
perl-libdir,
[AC_HELP_STRING(--with-perl-libdir=PATH,[*.pm install directory])],
[PERL_LIBDIR="$withval"],
)
case "$PERL_LIBDIR" in
/*)
;;
sitelib)
PERL_LIBDIR=`$PERL_COMMAND -MConfig -e 'print $Config{installsitelib}'`
;;
*)
PERL_LIBDIR=`$PERL_COMMAND -MConfig -e 'print $Config{installvendorlib}'`
;;
esac
AC_MSG_RESULT([using $PERL_LIBDIR for *.pm install directory])
## ----------------------------------------------------------------------
AC_SUBST(POD2MAN_COMMAND)
AC_ARG_WITH(
pod2man,
[AC_HELP_STRING(--with-pod2man=PATH, [Use specific pod2man command])],
[POD2MAN_COMMAND="$withval"],
)
case "$POD2MAN_COMMAND" in
/*)
;;
*)
AC_PATH_PROG(POD2MAN_COMMAND, pod2man)
;;
esac
AC_MSG_RESULT([using $POD2MAN_COMMAND for pod2man command])
## Samba
## ======================================================================
AC_SUBST(SAMBA_SYSCONFDIR)
AC_ARG_WITH(
samba-sysconfdir,
[AC_HELP_STRING(--with-samba-sysconfdir=DIR,
[Path for Samba sysconf directory])],
[SAMBA_SYSCONFDIR="$withval"],
)
AC_MSG_RESULT([using $SAMBA_SYSCONFDIR for Samba sysconf directory])
## ----------------------------------------------------------------------
AC_SUBST(SAMBA_BINDIR)
AC_ARG_WITH(
samba_bindir,
[AC_HELP_STRING([--with-samba-bindir=DIR],
[Path for Samba bin directory])],
[SAMBA_BINDIR="$withval"],
)
AC_MSG_RESULT([using $SAMBA_BINDIR for Samba bin directory])
## Output
## ======================================================================
AC_OUTPUT