Autogenerate a Debian changelog for correct package versioning
[openafs.git] / configure.in
1 AC_INIT(src/config/stds.h)
2 AM_INIT_AUTOMAKE(openafs,1.5.73.3)
3 AC_CONFIG_HEADER(src/config/afsconfig.h)
4 MACOS_VERSION=1.5.73f3
5 LINUX_PKGVER=1.5.73.3
6 #LINUX_PKGREL=0.pre3
7 LINUX_PKGREL=1.1
8
9 dnl Debian wants the release candidate version in the main upstream version,
10 dnl and wants ~ before it.
11 if echo "$LINUX_PKGREL" | grep pre >/dev/null 2>/dev/null ; then
12     DEB_PKGVER="$LINUX_PKGVER"`echo "$LINUX_PKGREL" | sed 's/0.pre/~rc/'`
13 else
14     DEB_PKGVER="$LINUX_PKGVER"
15 fi
16
17 AC_SUBST(MACOS_VERSION)
18 AC_SUBST(LINUX_PKGVER)
19 AC_SUBST(LINUX_PKGREL)
20 AC_SUBST(DEB_PKGVER)
21
22 AC_USE_SYSTEM_EXTENSIONS
23 AC_PROG_CC
24 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
25 AC_SUBST([PATH_CPP])
26 OPENAFS_CONFIGURE_COMMON
27
28 if test -d 'doc/man-pages' ; then
29     MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"
30 else
31     MAN_MAKEFILE=
32 fi
33 if test -f 'doc/xml/AdminGuide/Makefile.in' ; then
34    ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"
35 else
36    ADMINGUIDE_MAKEFILE=
37 fi
38 if test -f 'doc/xml/QuickStartUnix/Makefile.in' ; then
39    QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"
40 else
41    QSUNIX_MAKEFILE=
42 fi
43 if test -f 'doc/xml/UserGuide/Makefile.in' ; then
44    USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"
45 else
46    USERGUIDE_MAKEFILE=
47 fi
48
49 AC_OUTPUT(             \
50 Makefile               \
51 ${MAN_MAKEFILE} \
52 ${ADMINGUIDE_MAKEFILE} \
53 ${QSUNIX_MAKEFILE} \
54 ${USERGUIDE_MAKEFILE} \
55 src/afs/Makefile \
56 src/afsd/Makefile \
57 src/afsmonitor/Makefile \
58 src/afsweb/Makefile \
59 src/aklog/Makefile \
60 src/audit/Makefile \
61 src/auth/Makefile \
62 src/auth/test/Makefile \
63 src/bozo/Makefile \
64 src/bozo/test/Makefile \
65 src/bu_utils/Makefile \
66 src/bubasics/Makefile \
67 src/bucoord/Makefile \
68 src/budb/Makefile \
69 src/tbudb/Makefile \
70 src/butc/Makefile \
71 src/butm/Makefile \
72 src/cmd/Makefile \
73 src/cmd/test/Makefile \
74 src/comerr/Makefile \
75 src/comerr/test/Makefile \
76 src/config/Makefile \
77 src/config/Makefile.config \
78 src/config/Makefile.version-CML \
79 src/config/Makefile.version-NOCML \
80 src/config/shlib-build \
81 src/config/shlib-install \
82 src/des/Makefile \
83 src/des/test/Makefile \
84 src/dir/Makefile \
85 src/dir/test/Makefile \
86 src/export/Makefile \
87 src/finale/Makefile \
88 src/fsint/Makefile \
89 src/fsprobe/Makefile \
90 src/gtx/Makefile \
91 src/JAVA/libjafs/Makefile \
92 src/kauth/Makefile \
93 src/kauth/test/Makefile \
94 src/kopenafs/Makefile \
95 src/libacl/Makefile \
96 src/libacl/test/Makefile \
97 src/libadmin/Makefile \
98 src/libadmin/adminutil/Makefile \
99 src/libadmin/bos/Makefile \
100 src/libadmin/cfg/Makefile \
101 src/libadmin/cfg/test/Makefile \
102 src/libadmin/client/Makefile \
103 src/libadmin/kas/Makefile \
104 src/libadmin/pts/Makefile \
105 src/libadmin/samples/Makefile \
106 src/libadmin/test/Makefile \
107 src/libadmin/vos/Makefile \
108 src/libafs/Makefile.common \
109 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
110 ${DARWIN_PLIST} \
111 src/libafsauthent/Makefile \
112 src/libafsrpc/Makefile \
113 src/libuafs/Makefile.common \
114 src/libuafs/MakefileProto.${MKAFS_OSTYPE} \
115 src/log/Makefile \
116 src/log/test/Makefile \
117 src/lwp/Makefile \
118 src/lwp/test/Makefile \
119 src/packaging/Debian/changelog \
120 src/packaging/MacOS/OpenAFS-debug.Description.plist \
121 src/packaging/MacOS/OpenAFS-debug.Info.plist \
122 src/packaging/MacOS/OpenAFS.Description.plist \
123 src/packaging/MacOS/OpenAFS.Info.plist \
124 src/packaging/MacOS/OpenAFS.info \
125 src/packaging/MacOS/buildpkg.sh \
126 src/packaging/RedHat/openafs.spec \
127 src/pam/Makefile \
128 src/platform/Makefile \
129 src/platform/${MKAFS_OSTYPE}/Makefile \
130 src/platform/DARWIN/growlagent/Makefile \
131 src/procmgmt/Makefile \
132 src/procmgmt/test/Makefile \
133 src/ptserver/Makefile \
134 src/tptserver/Makefile \
135 src/rx/Makefile \
136 src/rx/bulk.example/Makefile \
137 src/rx/bulktest/Makefile \
138 src/rx/multi.example/Makefile \
139 src/rx/simple.example/Makefile \
140 src/rx/test/Makefile \
141 src/rxdebug/Makefile \
142 src/rxgen/Makefile \
143 src/rxkad/Makefile \
144 src/rxkad/test/Makefile \
145 src/rxstat/Makefile \
146 src/scout/Makefile \
147 src/sgistuff/Makefile \
148 src/shlibafsauthent/Makefile \
149 src/shlibafsrpc/Makefile \
150 src/sys/Makefile \
151 src/tbutc/Makefile \
152 src/tests/Makefile \
153 src/tests/run-tests \
154 src/tsalvaged/Makefile \
155 src/tsm41/Makefile \
156 src/tviced/Makefile \
157 src/tvolser/Makefile \
158 src/ubik/Makefile \
159 src/tubik/Makefile \
160 src/update/Makefile \
161 src/usd/Makefile \
162 src/usd/test/Makefile \
163 src/uss/Makefile \
164 src/util/Makefile \
165 src/util/test/Makefile \
166 src/venus/Makefile \
167 src/venus/test/Makefile \
168 src/vfsck/Makefile \
169 src/viced/Makefile \
170 src/vlserver/Makefile \
171 src/tvlserver/Makefile \
172 src/vol/Makefile \
173 src/vol/test/Makefile \
174 src/volser/Makefile \
175 src/xstat/Makefile \
176 src/helper-splint.sh,
177
178 [chmod a+x src/config/shlib-build
179  chmod a+x src/config/shlib-install])