freebsd-initial-46-support-20020630
[openafs.git] / src / cf / osconf.m4
1
2 AC_DEFUN(OPENAFS_OSCONF, [
3
4 dnl defaults, override in case below as needed
5 DBG="-g"
6 OPTMZ="-O2"
7 XCFLAGS="-O2"
8 SHLIB_SUFFIX="so"
9 CC="cc"
10 MT_CC="cc"
11 XLIBS="${LIB_AFSDB}"
12
13 dnl standard programs
14 AC_PROG_RANLIB
15 AC_CHECK_PROGS(AS, as, [${am_missing_run}as])
16 AC_CHECK_PROGS(AR, ar, [${am_missing_run}ar])
17 AC_CHECK_PROGS(MV, mv, [${am_missing_run}mv])
18 AC_CHECK_PROGS(RM, rm, [${am_missing_run}rm])
19 AC_CHECK_PROGS(LD, ld, [${am_missing_run}ld])
20 AC_CHECK_PROGS(CP, cp, [${am_missing_run}cp])
21 AC_CHECK_PROGS(STRIP, strip, [${am_missing_run}strip])
22 AC_CHECK_PROGS(LORDER, lorder, [${am_missing_run}lorder])
23
24 case $AFS_SYSNAME in
25         alpha_dux40)
26                 CSTATIC="-non_shared"
27                 DBG="-g3"
28                 LWP_OPTMZ="-O2"
29                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
30                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
31                 TXLIBS="-lcurses"
32                 XCFLAGS="-D_NO_PROTO -DOSF"
33                 ;;
34
35         alpha_dux50)
36                 LEX="flex -l"
37                 DBG="-g3"
38                 CSTATIC="-non_shared"
39                 LWP_OPTMZ="-O2"
40                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
41                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
42                 TXLIBS="-lcurses"
43                 XCFLAGS="-D_NO_PROTO -DOSF"
44                 ;;
45
46         alpha_linux_22)
47                 LEX="flex -l"
48                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
49                 MT_LIBS="-lpthread"
50                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
51                 SHLIB_LDFLAGS="-shared -Xlinker -x"
52                 TXLIBS="/usr/lib/libncurses.so"
53                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
54                 YACC="bison -y"
55                 ;;
56
57         alpha_linux_24)
58                 LEX="flex -l"
59                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
60                 MT_LIBS="-lpthread"
61                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
62                 SHLIB_LDFLAGS="-shared -Xlinker -x"
63                 TXLIBS="/usr/lib/libncurses.so"
64                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
65                 YACC="bison -y"
66                 ;;
67
68         hp_ux102)
69                 AS="/usr/ccs/bin/as"
70                 CC="/opt/ansic/bin/cc -Ae"
71                 DBM="/lib/libndbm.a"
72                 LD="/bin/ld"
73                 LEX="/opt/langtools/bin/lex"
74                 LWP_OPTMZ="-O"
75                 MT_CC="/opt/ansic/bin/cc -Ae"
76                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
77                 MT_LIBS="-L/opt/dce/lib -ldce"
78                 MV="/bin/mv"
79                 OPTMZ="-O"
80                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
81                 PAM_LIBS="/usr/lib/libpam.1"
82                 RANLIB="/usr/bin/ranlib"
83                 RM="/bin/rm"
84                 SHLIB_LDFLAGS="-b -Bsymbolic"
85                 SHLIB_SUFFIX="sl"
86                 TXLIBS="/usr/lib/libHcurses.a"
87                 VFSCK_CFLAGS="-D_FILE64"
88                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
89                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
90                 XCFLAGS="${XCFLAGS0} +DA1.0"
91                 YACC="/opt/langtools/bin/yacc"
92                 ;;
93
94         hp_ux110)
95                 AR="/usr/bin/ar"
96                 AS="/usr/ccs/bin/as"
97                 CC="/opt/ansic/bin/cc"
98                 DBM="/lib/libndbm.a"
99                 LD="/bin/ld   "
100                 LEX="/opt/langtools/bin/lex"
101                 LWP_OPTMZ="-O"
102                 MT_CC="$CC"
103                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
104                 MT_LIBS="-lpthread"
105                 MV="/bin/mv"
106                 OPTMZ="-O"
107                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
108                 PAM_LIBS="/usr/lib/libpam.1"
109                 RANLIB="/usr/bin/ranlib"
110                 RM="/bin/rm"
111                 SHLIB_LDFLAGS="-b -Bsymbolic"
112                 SHLIB_SUFFIX="sl"
113                 TXLIBS="/usr/lib/libHcurses.a"
114                 VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
115                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
116                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
117                 XCFLAGS="${XCFLAGS0} +DA1.0"
118                 XLIBELFA="-lelf"
119                 XLIBS="${LIB_AFSDB} -lnsl"
120                 YACC="/opt/langtools/bin/yacc"
121                 ;;
122
123         i386_fbsd_4*)
124                 LEX="flex -l"
125                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
126                 MT_LIBS="-pthread"
127                 #MT_CFLAGS='-DAFS_PTHREAD_ENV -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads ${XCFLAGS}'
128                 #MT_LIBS="-L/usr/local/lib -llthread -llgcc_r"
129                 PAM_CFLAGS="-O2 -pipe -fPIC"
130                 SHLIB_LDFLAGS="-shared -Xlinker -x"
131                 TXLIBS="/usr/lib/libncurses.so"
132                 XCFLAGS="-O2 -pipe"
133                 XLIBS="${LIB_AFSDB} -lcompat"
134                 YACC="byacc"
135                 ;;
136
137         *nbsd15)
138                 LEX="flex -l"
139                 MT_CFLAGS='${XCFLAGS}'
140                 MT_LIBS=""
141                 PAM_CFLAGS="-O2 -pipe -fPIC"
142                 SHLIB_LDFLAGS="-shared -Xlinker -x"
143                 TXLIBS="/usr/lib/libcurses.so"
144                 XCFLAGS="-O2 -pipe"
145                 XLIBS="${LIB_AFSDB} -lcompat"
146                 YACC="bison -y"
147                 ;;
148
149         ia64_linux24)
150                 LEX="flex -l"
151                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
152                 MT_LIBS="-lpthread"
153                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
154                 SHLIB_LDFLAGS="-shared -Xlinker -x"
155                 TXLIBS="/usr/lib/libncurses.so"
156                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE -G0"
157                 ;;
158
159         i386_linux22)
160                 LEX="flex -l"
161                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
162                 MT_LIBS="-lpthread"
163                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
164                 SHLIB_LDFLAGS="-shared -Xlinker -x"
165                 TXLIBS="/usr/lib/libncurses.so"
166                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
167                 YACC="bison -y"
168                 ;;
169
170         i386_linux24)
171                 LEX="flex -l"
172                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
173                 MT_LIBS="-lpthread"
174                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
175                 SHLIB_LDFLAGS="-shared -Xlinker -x"
176                 TXLIBS="/usr/lib/libncurses.so"
177                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
178                 ;;
179         
180         i386_obsd29)
181                 LEX="flex -l"
182                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
183                 MT_LIBS="-pthread"
184                 PAM_CFLAGS="-O2 -pipe -fpic"
185                 SHLIB_CFLAGS="-fpic"
186                 SHLIB_LDFLAGS="-shared -Xlinker -x"
187                 TXLIBS="/usr/lib/libcurses.a"
188                 XCFLAGS="-O2"
189                 XLIBS="${LIB_AFSDB} -lcompat"
190                 YACC="yacc"
191                 ;;
192
193         parisc_linux24)
194                 LEX="flex -l"
195                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
196                 MT_LIBS="-lpthread"
197                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
198                 SHLIB_LDFLAGS="-shared -Xlinker -x"
199                 TXLIBS="/usr/lib/libncurses.so"
200                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
201                 YACC="bison -y"
202                 ;;
203
204         ppc_darwin_12)
205                 LEX="lex -l"
206                 LWP_OPTMZ="-g"
207                 OPTMZ="-g"
208                 REGEX_OBJ="regex.o"
209                 XCFLAGS="-traditional-cpp"
210                 ;;
211
212         ppc_darwin_13)
213                 LEX="lex -l"
214                 LWP_OPTMZ="-O2"
215                 REGEX_OBJ="regex.o"
216                 XCFLAGS="-no-cpp-precomp"
217                 ;;
218
219         ppc_darwin_14)
220                 LEX="lex -l"
221                 LWP_OPTMZ="-O2"
222                 REGEX_OBJ="regex.o"
223                 XCFLAGS="-no-cpp-precomp"
224                 ;;
225
226         ppc_linux22)
227                 INSTALL="install"
228                 LEX="flex -l"
229                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
230                 MT_LIBS="-lpthread"
231                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
232                 SHLIB_LDFLAGS="-shared -Xlinker -x"
233                 TXLIBS="/usr/lib/libncurses.so"
234                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
235                 YACC="bison -y"
236                 ;;
237
238         ppc_linux24)
239                 LEX="flex -l"
240                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
241                 MT_LIBS="-lpthread"
242                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
243                 SHLIB_LDFLAGS="-shared -Xlinker -x"
244                 TXLIBS="/usr/lib/libncurses.so"
245                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
246                 YACC="bison -y"
247                 ;;
248
249         rs_aix42)
250                 DBG=""
251                 LEX="lex"
252                 LIBSYS_AIX_EXP="afsl.exp"
253                 LWP_OPTMZ="-O"
254                 MT_CC="xlc_r"
255                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
256                 MT_LIBS="-lpthreads"
257                 OPTMZ="-O"
258                 SHLIB_SUFFIX="o"
259                 TXLIBS="-lcurses"
260                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
261                 XLIBS="${LIB_AFSDB} -ldl"
262                 ;;
263
264         s390_linux22)
265                 CC="gcc"
266                 LD="gcc"
267                 LEX="flex -l"
268                 MT_CC="$CC"
269                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
270                 MT_LIBS="-lpthread"
271                 OPTMZ="-O"
272                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
273                 SHLIB_LDFLAGS="-shared -Xlinker -x"
274                 TXLIBS="/usr/lib/libncurses.so"
275                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
276                 YACC="bison -y"
277                 ;;
278
279         s390_linux24)
280                 CC="gcc"
281                 LD="gcc"
282                 LEX="flex -l"
283                 MT_CC="$CC"
284                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
285                 MT_LIBS="-lpthread"
286                 OPTMZ="-O"
287                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
288                 SHLIB_LDFLAGS="-shared -Xlinker -x"
289                 TXLIBS="/usr/lib/libncurses.so"
290                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
291                 YACC="bison -y"
292                 ;;
293
294         sgi_62)
295                 FSINCLUDES="-I/usr/include/sys/fs"
296                 LEX="lex"
297                 LWP_OPTMZ="-O"
298                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
299                 MT_LIBS="-lpthread"
300                 OPTMZ="-O"
301                 TXLIBS="-lcurses"
302                 XCFLAGS64="-64 -mips3"
303                 XCFLAGS="-o32"
304                 XLDFLAGS64="-64"
305                 XLDFLAGS="-o32"
306                 ;;
307
308         sgi_63)
309                 FSINCLUDES="-I/usr/include/sys/fs"
310                 LEX="lex"
311                 LWP_OPTMZ="-O"
312                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
313                 MT_LIBS="-lpthread"
314                 OPTMZ="-O"
315                 TXLIBS="-lcurses"
316                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
317                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32"
318                 XLDFLAGS64="-64"
319                 XLDFLAGS="-o32"
320                 ;;
321
322         sgi_64)
323                 FSINCLUDES="-I/usr/include/sys/fs"
324                 LEX="lex"
325                 LWP_OPTMZ="-O"
326                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
327                 MT_LIBS="-lpthread"
328                 OPTMZ="-O"
329                 TXLIBS="-lcurses"
330                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
331                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -n32 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
332                 XLDFLAGS64="-64"
333                 XLDFLAGS="-n32"
334                 ;;
335
336         sgi_65)
337                 CC="/usr/bin/cc"
338                 FSINCLUDES="-I/usr/include/sys/fs"
339                 LD="/usr/bin/ld"
340                 LEX="lex"
341                 MT_CC="/usr/bin/cc"
342                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
343                 MT_LIBS="-lpthread"
344                 OPTMZ="-O"
345                 TXLIBS="-lcurses"
346                 XCFLAGS64="-64 -mips3"
347                 XCFLAGS="-n32 -mips3 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
348                 XLDFLAGS64="-64 -mips3"
349                 XLDFLAGS="-n32 -mips3"
350                 ;;
351
352         sparc64_linux22)
353                 LEX="flex -l"
354                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
355                 MT_LIBS="-lpthread"
356                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
357                 SHLIB_LDFLAGS="-shared -Xlinker -x"
358                 TXLIBS="/usr/lib/libncurses.so"
359                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
360                 YACC="bison -y"
361                 ;;
362
363         sparc64_linux24)
364                 LEX="flex -l"
365                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
366                 MT_LIBS="-lpthread"
367                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
368                 SHLIB_LDFLAGS="-shared -Xlinker -x"
369                 TXLIBS="/usr/lib/libncurses.so"
370                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
371                 YACC="bison -y"
372                 ;;
373
374         sparc_linux22)
375                 LEX="flex -l"
376                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
377                 MT_LIBS="-lpthread"
378                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
379                 SHLIB_LDFLAGS="-shared -Xlinker -x"
380                 TXLIBS="/usr/lib/libncurses.so"
381                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
382                 YACC="bison -y"
383                 ;;
384
385         sun4x_55)
386                 CC="/opt/SUNWspro/bin/cc"
387                 LEX="lex"
388                 LWP_OPTMZ="-g"
389                 MT_CC="/opt/SUNWspro/bin/cc"
390                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
391                 MT_LIBS="-lpthread -lsocket"
392                 OPTMZ="-O"
393                 SHLIB_CFLAGS="-KPIC"
394                 TXLIBS="-lcurses"
395                 XCFLAGS="-dy -Bdynamic"
396                 XLIBELFA="-lelf"
397                 XLIBKVM="-lkvm"
398                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
399                 LD="/usr/ccs/bin/ld"
400                 ;;
401
402         sun4x_56)
403                 CC="/opt/SUNWspro/bin/cc"
404                 LEX="lex"
405                 LWP_OPTMZ="-g"
406                 MT_CC="/opt/SUNWspro/bin/cc"
407                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
408                 MT_LIBS="-lpthread -lsocket"
409                 OPTMZ="-O"
410                 PAM_CFLAGS="-KPIC"
411                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
412                 SHLIB_CFLAGS="-KPIC"
413                 SHLIB_LDFLAGS="-G -Bsymbolic"
414                 TXLIBS="-L/usr/ccs/lib -lcurses"
415                 XCFLAGS="-dy -Bdynamic"
416                 XLIBELFA="-lelf"
417                 LD="/usr/ccs/bin/ld"
418                 XLIBKVM="-lkvm"
419                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
420                 ;;
421
422         sun4x_57)
423                 CC="/opt/SUNWspro/bin/cc"
424                 LEX="lex"
425                 LD="/usr/ccs/bin/ld"
426                 LWP_OPTMZ="-g"
427                 MT_CC="/opt/SUNWspro/bin/cc"
428                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
429                 MT_LIBS="-lpthread -lsocket"
430                 OPTMZ="-O"
431                 PAM_CFLAGS="-KPIC"
432                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
433                 SHLIB_CFLAGS="-KPIC"
434                 SHLIB_LDFLAGS="-G -Bsymbolic"
435                 TXLIBS="-lcurses"
436                 XCFLAGS64='${XCFLAGS} -xarch=v9'
437                 XCFLAGS="-dy -Bdynamic"
438                 XLIBELFA="-lelf"
439                 XLIBKVM="-lkvm"
440                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
441                 ;;
442
443         sun4x_58)
444                 CC="/opt/SUNWspro/bin/cc"
445                 LEX="lex"
446                 LD="/usr/ccs/bin/ld"
447                 LWP_OPTMZ="-g"
448                 MT_CC="/opt/SUNWspro/bin/cc"
449                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
450                 MT_LIBS="-lpthread -lsocket"
451                 OPTMZ="-O"
452                 PAM_CFLAGS="-KPIC"
453                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
454                 SHLIB_CFLAGS="-KPIC"
455                 SHLIB_LDFLAGS="-G -Bsymbolic"
456                 TXLIBS="-lcurses"
457                 XCFLAGS64='${XCFLAGS} -xarch=v9'
458                 XCFLAGS="-dy -Bdynamic"
459                 XLIBELFA="-lelf"
460                 XLIBKVM="-lkvm"
461                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
462                 ;;
463
464         sun4x_59)
465                 CC="/opt/SUNWspro/bin/cc"
466                 LEX="lex"
467                 LWP_OPTMZ="-g"
468                 LD="/usr/ccs/bin/ld"
469                 MT_CC="/opt/SUNWspro/bin/cc"
470                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
471                 MT_LIBS="-lpthread -lsocket"
472                 OPTMZ="-O"
473                 PAM_CFLAGS="-KPIC"
474                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
475                 SHLIB_CFLAGS="-KPIC"
476                 SHLIB_LDFLAGS="-G -Bsymbolic"
477                 TXLIBS="-lcurses"
478                 XCFLAGS64='${XCFLAGS} -xarch=v9'
479                 XCFLAGS="-dy -Bdynamic"
480                 XLIBELFA="-lelf"
481                 XLIBKVM="-lkvm"
482                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
483                 ;;
484
485         sunx86_58)
486                 CC="/opt/SUNWspro/bin/cc"
487                 LEX="lex"
488                 LWP_OPTMZ="-g"
489                 LD="/usr/ccs/bin/ld"
490                 MT_CC="/opt/SUNWspro/bin/cc"
491                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
492                 MT_LIBS="-lpthread -lsocket"
493                 OPTMZ="-O"
494                 PAM_CFLAGS="-KPIC"
495                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
496                 SHLIB_CFLAGS="-KPIC"
497                 SHLIB_LDFLAGS="-G -Bsymbolic"
498                 TXLIBS="-lcurses"
499                 XCFLAGS64='${XCFLAGS} -xarch=v9'
500                 XCFLAGS="-dy -Bdynamic"
501                 XLIBELFA="-lelf"
502                 XLIBKVM="-lkvm"
503                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
504                 ;;
505
506
507 esac
508
509 #
510 # Special build targets
511 #
512 case $AFS_SYSNAME in
513         sgi_6*)
514                 XFS_SIZE_CHECK="xfs_size_check"
515                 install_XFS_SIZE_CHECK='$(DESTDIR)${afssrvsbindir}/xfs_size_check'
516                 dest_XFS_SIZE_CHECK='$(DEST)/root.server/usr/afs/bin/xfs_size_check'
517         
518                 AC_SUBST(XFS_SIZE_CHECK)
519                 AC_SUBST(install_XFS_SIZE_CHECK)
520                 AC_SUBST(dest_XFS_SIZE_CHECK)
521         ;;
522         
523         sun4x_*|sunx86_*)
524                 FS_CONV_SOL26="fs_conv_sol26"
525                 install_FS_CONV_SOL26='$(DESTDIR)${afssrvsbindir}/fs_conv_sol26'
526                 dest_FS_CONV_SOL26='$(DEST)/root.server/usr/afs/bin/fs_conv_sol26'
527
528                 AC_SUBST(FS_CONV_SOL26)
529                 AC_SUBST(install_FS_CONV_SOL26)
530                 AC_SUBST(dest_FS_CONV_SOL26)
531         ;;
532
533         alpha_dux*)
534                 FS_CONV_OSF40D="fs_conv_dux40D"
535                 install_FS_CONV_OSF40D='$(DESTDIR)${afssrvsbindir}/fs_conv_dux40D'
536                 dest_FS_CONV_OSF40D='$(DEST)/root.server/usr/afs/bin/fs_conv_dux40D'
537
538                 AC_SUBST(FS_CONV_OSF40D)
539                 AC_SUBST(install_FS_CONV_OSF40D)
540                 AC_SUBST(dest_FS_CONV_OSF40D)
541         ;;
542 esac
543
544
545 AC_SUBST(AR)
546 AC_SUBST(AS)
547 AC_SUBST(CP)
548 AC_SUBST(DBG)
549 AC_SUBST(FSINCLUDES)
550 AC_SUBST(LD)
551 AC_SUBST(LEX)
552 AC_SUBST(LWP_OPTMZ)
553 AC_SUBST(MT_CC)
554 AC_SUBST(MT_CFLAGS)
555 AC_SUBST(MT_LIBS)
556 AC_SUBST(MV)
557 AC_SUBST(OPTMZ)
558 AC_SUBST(PAM_CFLAGS)
559 AC_SUBST(PAM_LIBS)
560 AC_SUBST(RANLIB)
561 AC_SUBST(REGEX_OBJ)
562 AC_SUBST(RM)
563 AC_SUBST(SHLIB_CFLAGS)
564 AC_SUBST(SHLIB_LDFLAGS)
565 AC_SUBST(SHLIB_SUFFIX)
566 AC_SUBST(TXLIBS)
567 AC_SUBST(VFSCK_CFLAGS)
568 AC_SUBST(XCFLAGS)
569 AC_SUBST(XCFLAGS64)
570 AC_SUBST(XLDFLAGS)
571 AC_SUBST(XLDFLAGS64)
572 AC_SUBST(XLIBELFA)
573 AC_SUBST(XLIBKVM)
574 AC_SUBST(XLIBS)
575 AC_SUBST(YACC)
576
577
578 ])