4a3a795d2214fb87eac79583e605c7bf5cc14a49
[openafs.git] / configure.ac
1 AC_PREREQ([2.64])
2 AC_INIT([OpenAFS],[m4_esyscmd(build-tools/git-version .)],[openafs-bugs@openafs.org],[],[http://www.openafs.org/])
3 AC_CONFIG_AUX_DIR([build-tools])
4 AC_CONFIG_MACRO_DIR([src/cf])
5 AC_CONFIG_SRCDIR([src/config/stds.h])
6
7 AC_CONFIG_HEADER([src/config/afsconfig.h])
8 MACOS_VERSION=1.9.1
9
10 AC_SUBST([MACOS_VERSION])
11
12 dnl If the user hasn't specified CFLAGS don't let configure pick -g -O2
13 AS_IF([test -z "$CFLAGS"], [CFLAGS=" "])
14
15 AC_USE_SYSTEM_EXTENSIONS
16
17 AC_PROG_CC
18
19 AC_PATH_PROGS([PATH_CPP], [cpp], [${CC-cc} -E], [$PATH:/lib:/usr/ccs/lib])
20 AC_SUBST([PATH_CPP])
21 OPENAFS_CONFIGURE_COMMON
22 OPENAFS_KRB5
23 OPENAFS_GSS
24
25 dnl Checks for summary
26 OPENAFS_SUMMARY_CHECK_NAMEI
27
28 AS_IF([test -d 'doc/man-pages'],
29     [MAN_MAKEFILE="doc/man-pages/Makefile doc/man-pages/install-man"],
30     [MAN_MAKEFILE=])
31 AS_IF([test -f 'doc/xml/AdminGuide/Makefile.in'],
32     [ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"],
33     [ADMINGUIDE_MAKEFILE=])
34 AS_IF([test -f 'doc/xml/QuickStartUnix/Makefile.in'],
35     [QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"],
36     [QSUNIX_MAKEFILE=])
37 AS_IF([test -f 'doc/xml/UserGuide/Makefile.in'],
38     [USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"],
39     [USERGUIDE_MAKEFILE=])
40 AS_IF([test -f 'doc/xml/AdminRef/Makefile.in'],
41     [ADMINREF_MAKEFILE="doc/xml/AdminRef/Makefile"],
42     [ADMINREF_MAKEFILE=])
43 AS_IF([test -f 'doc/xml/mobi-fixup.xsl.in'],
44     [MOBI_FIXUP_XSL="doc/xml/mobi-fixup.xsl"],
45     [MOBI_FIXUP_XSL=])
46 AS_IF([test -f 'doc/doxygen/Doxyfile.in'],
47     [DOXYFILE="doc/doxygen/Doxyfile"],
48     [DOXYFILE=])
49
50 AC_CONFIG_FILES([
51     Makefile
52     ${MAN_MAKEFILE}
53     ${ADMINGUIDE_MAKEFILE}
54     ${QSUNIX_MAKEFILE}
55     ${USERGUIDE_MAKEFILE}
56     ${ADMINREF_MAKEFILE}
57     ${MOBI_FIXUP_XSL}
58     ${DOXYFILE}
59     src/afs/Makefile
60     src/afsd/Makefile
61     src/afsmonitor/Makefile
62     src/afsweb/Makefile
63     src/aklog/Makefile
64     src/audit/Makefile
65     src/auth/Makefile
66     src/auth/test/Makefile
67     src/bozo/Makefile
68     src/bozo/test/Makefile
69     src/bu_utils/Makefile
70     src/bubasics/Makefile
71     src/bucoord/Makefile
72     src/budb/Makefile
73     src/tbudb/Makefile
74     src/butc/Makefile
75     src/butm/Makefile
76     src/cmd/Makefile
77     src/cmd/test/Makefile
78     src/comerr/Makefile
79     src/comerr/test/Makefile
80     src/config/Makefile
81     src/config/Makefile.config
82     src/config/Makefile.libtool
83     src/config/Makefile.lwp
84     src/config/Makefile.lwptool
85     src/config/Makefile.pthread
86     src/config/Makefile.version-CML
87     src/config/Makefile.version-NOCML
88     src/config/cc-wrapper
89     src/config/shlib-build
90     src/config/shlib-install
91     src/crypto/hcrypto/Makefile
92     src/crypto/rfc3961/Makefile
93     src/dir/Makefile
94     src/dir/test/Makefile
95     src/dviced/Makefile
96     src/dvolser/Makefile
97     src/export/Makefile
98     src/finale/Makefile
99     src/fsint/Makefile
100     src/fsprobe/Makefile
101     src/gtx/Makefile
102     src/JAVA/libjafs/Makefile
103     src/kauth/Makefile
104     src/kauth/test/Makefile
105     src/kopenafs/Makefile
106     src/libacl/Makefile
107     src/libacl/test/Makefile
108     src/libadmin/Makefile
109     src/libadmin/adminutil/Makefile
110     src/libadmin/bos/Makefile
111     src/libadmin/cfg/Makefile
112     src/libadmin/cfg/test/Makefile
113     src/libadmin/client/Makefile
114     src/libadmin/kas/Makefile
115     src/libadmin/pts/Makefile
116     src/libadmin/samples/Makefile
117     src/libadmin/test/Makefile
118     src/libadmin/vos/Makefile
119     src/libafs/Makefile.common
120     src/libafs/MakefileProto.${MKAFS_OSTYPE}
121     ${DARWIN_PLIST}
122     src/libafsauthent/Makefile
123     src/libafsrpc/Makefile
124     src/libuafs/Makefile.common
125     src/libuafs/MakefileProto.${MKAFS_OSTYPE}
126     src/log/Makefile
127     src/log/test/Makefile
128     src/lwp/Makefile
129     src/lwp/test/Makefile
130     src/opr/Makefile
131     src/packaging/MacOS/OpenAFS-debug.Description.plist
132     src/packaging/MacOS/OpenAFS-debug.Info.plist
133     src/packaging/MacOS/OpenAFS.Description.plist
134     src/packaging/MacOS/OpenAFS.Info.plist
135     src/packaging/MacOS/OpenAFS.info
136     src/packaging/MacOS/buildpkg.sh
137     src/packaging/MacOS/pkgbuild.sh
138     src/pam/Makefile
139     src/platform/Makefile
140     src/platform/${MKAFS_OSTYPE}/Makefile
141     src/platform/DARWIN/growlagent/Makefile
142     src/procmgmt/Makefile
143     src/procmgmt/test/Makefile
144     src/ptserver/Makefile
145     src/tptserver/Makefile
146     src/roken/Makefile
147     src/rx/Makefile
148     src/rx/bulk.example/Makefile
149     src/rx/bulktest/Makefile
150     src/rx/multi.example/Makefile
151     src/rx/simple.example/Makefile
152     src/rx/test/Makefile
153     src/rxdebug/Makefile
154     src/rxgen/Makefile
155     src/rxgk/Makefile
156     src/rxkad/Makefile
157     src/rxkad/test/Makefile
158     src/rxosd/Makefile
159     src/rxstat/Makefile
160     src/scout/Makefile
161     src/sys/Makefile
162     src/tbutc/Makefile
163     src/tests/Makefile
164     src/tests/run-tests
165     src/tools/Makefile
166     src/tools/dumpscan/Makefile
167     src/tools/rxperf/Makefile
168     src/tsalvaged/Makefile
169     src/tsm41/Makefile
170     src/tvolser/Makefile
171     src/ubik/Makefile
172     src/tubik/Makefile
173     src/update/Makefile
174     src/usd/Makefile
175     src/usd/test/Makefile
176     src/uss/Makefile
177     src/util/Makefile
178     src/util/test/Makefile
179     src/libafscp/Makefile
180     src/venus/Makefile
181     src/venus/test/Makefile
182     src/vfsck/Makefile
183     src/viced/Makefile
184     src/vlserver/Makefile
185     src/tvlserver/Makefile
186     src/vol/Makefile
187     src/volser/Makefile
188     src/xstat/Makefile
189     src/helper-splint.sh
190     tests/Makefile
191     tests/auth/Makefile
192     tests/cmd/Makefile
193     tests/common/Makefile
194     tests/opr/Makefile
195     tests/rpctestlib/Makefile
196     tests/rx/Makefile
197     tests/tap/Makefile
198     tests/util/Makefile
199     tests/volser/Makefile])
200 AC_CONFIG_COMMANDS([default],[chmod a+x src/config/shlib-build
201  chmod a+x src/config/shlib-install
202  chmod a+x src/config/cc-wrapper],[])
203 AC_OUTPUT
204
205 # print a final summary
206 OPENAFS_SUMMARY