1b62413b3d92e56c31b99919dc1005db4ec52d2b
[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_42)
124                 LEX="flex -l"
125                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
126                 MT_LIBS="-pthread"
127                 PAM_CFLAGS="-O2 -pipe -fPIC"
128                 SHLIB_LDFLAGS="-shared -Xlinker -x"
129                 TXLIBS="/usr/lib/libncurses.so"
130                 XCFLAGS="-O2 -pipe"
131                 XLIBS="${LIB_AFSDB} -lcompat"
132                 YACC="byacc"
133                 ;;
134
135         i386_fbsd_43)
136                 LEX="flex -l"
137                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
138                 MT_LIBS="-pthread"
139                 PAM_CFLAGS="-O2 -pipe -fPIC"
140                 SHLIB_LDFLAGS="-shared -Xlinker -x"
141                 TXLIBS="/usr/lib/libncurses.so"
142                 XCFLAGS="-O2 -pipe"
143                 XLIBS="${LIB_AFSDB} -lcompat"
144                 YACC="byacc"
145                 ;;
146
147         i386_fbsd_44)
148                 LEX="flex -l"
149                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
150                 MT_LIBS="-pthread"
151                 #MT_CFLAGS='-DAFS_PTHREAD_ENV -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads ${XCFLAGS}'
152                 #MT_LIBS="-L/usr/local/lib -llthread -llgcc_r"
153                 PAM_CFLAGS="-O2 -pipe -fPIC"
154                 SHLIB_LDFLAGS="-shared -Xlinker -x"
155                 TXLIBS="/usr/lib/libncurses.so"
156                 XCFLAGS="-O2 -pipe"
157                 XLIBS="${LIB_AFSDB} -lcompat"
158                 YACC="byacc"
159                 ;;
160
161         i386_fbsd_45)
162                 LEX="flex -l"
163                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
164                 MT_LIBS="-pthread"
165                 #MT_CFLAGS='-DAFS_PTHREAD_ENV -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads ${XCFLAGS}'
166                 #MT_LIBS="-L/usr/local/lib -llthread -llgcc_r"
167                 PAM_CFLAGS="-O2 -pipe -fPIC"
168                 SHLIB_LDFLAGS="-shared -Xlinker -x"
169                 TXLIBS="/usr/lib/libncurses.so"
170                 XCFLAGS="-O2 -pipe"
171                 XLIBS="${LIB_AFSDB} -lcompat"
172                 YACC="byacc"
173                 ;;
174
175         *nbsd15)
176                 LEX="flex -l"
177                 MT_CFLAGS='${XCFLAGS}'
178                 MT_LIBS=""
179                 PAM_CFLAGS="-O2 -pipe -fPIC"
180                 SHLIB_LDFLAGS="-shared -Xlinker -x"
181                 TXLIBS="/usr/lib/libcurses.so"
182                 XCFLAGS="-O2 -pipe"
183                 XLIBS="${LIB_AFSDB} -lcompat"
184                 YACC="bison -y"
185                 ;;
186
187         ia64_linux24)
188                 LEX="flex -l"
189                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
190                 MT_LIBS="-lpthread"
191                 PAM_CFLAGS="-g -O2 -Dlinux -DLINUX_PAM -fPIC"
192                 SHLIB_LDFLAGS="-shared -Xlinker -x"
193                 TXLIBS="/usr/lib/libncurses.so"
194                 XCFLAGS="-g -O2 -D_LARGEFILE64_SOURCE -G0"
195                 ;;
196
197         i386_linux22)
198                 LEX="flex -l"
199                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
200                 MT_LIBS="-lpthread"
201                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
202                 SHLIB_LDFLAGS="-shared -Xlinker -x"
203                 TXLIBS="/usr/lib/libncurses.so"
204                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
205                 YACC="bison -y"
206                 ;;
207
208         i386_linux24)
209                 LEX="flex -l"
210                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
211                 MT_LIBS="-lpthread"
212                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
213                 SHLIB_LDFLAGS="-shared -Xlinker -x"
214                 TXLIBS="/usr/lib/libncurses.so"
215                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
216                 ;;
217         
218         i386_obsd29)
219                 LEX="flex -l"
220                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
221                 MT_LIBS="-pthread"
222                 PAM_CFLAGS="-O2 -pipe -fpic"
223                 SHLIB_CFLAGS="-fpic"
224                 SHLIB_LDFLAGS="-shared -Xlinker -x"
225                 TXLIBS="/usr/lib/libcurses.a"
226                 XCFLAGS="-O2"
227                 XLIBS="${LIB_AFSDB} -lcompat"
228                 YACC="yacc"
229                 ;;
230
231         parisc_linux24)
232                 LEX="flex -l"
233                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
234                 MT_LIBS="-lpthread"
235                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
236                 SHLIB_LDFLAGS="-shared -Xlinker -x"
237                 TXLIBS="/usr/lib/libncurses.so"
238                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
239                 YACC="bison -y"
240                 ;;
241
242         ppc_darwin_12)
243                 LEX="lex -l"
244                 LWP_OPTMZ="-g"
245                 OPTMZ="-g"
246                 REGEX_OBJ="regex.o"
247                 XCFLAGS="-traditional-cpp"
248                 ;;
249
250         ppc_darwin_13)
251                 LEX="lex -l"
252                 LWP_OPTMZ="-O2"
253                 REGEX_OBJ="regex.o"
254                 XCFLAGS="-no-cpp-precomp"
255                 ;;
256
257         ppc_darwin_14)
258                 LEX="lex -l"
259                 LWP_OPTMZ="-O2"
260                 REGEX_OBJ="regex.o"
261                 XCFLAGS="-no-cpp-precomp"
262                 ;;
263
264         ppc_linux22)
265                 INSTALL="install"
266                 LEX="flex -l"
267                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
268                 MT_LIBS="-lpthread"
269                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
270                 SHLIB_LDFLAGS="-shared -Xlinker -x"
271                 TXLIBS="/usr/lib/libncurses.so"
272                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
273                 YACC="bison -y"
274                 ;;
275
276         ppc_linux24)
277                 LEX="flex -l"
278                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
279                 MT_LIBS="-lpthread"
280                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
281                 SHLIB_LDFLAGS="-shared -Xlinker -x"
282                 TXLIBS="/usr/lib/libncurses.so"
283                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
284                 YACC="bison -y"
285                 ;;
286
287         rs_aix42)
288                 DBG=""
289                 LEX="lex"
290                 LIBSYS_AIX_EXP="afsl.exp"
291                 LWP_OPTMZ="-O"
292                 MT_CC="xlc_r"
293                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
294                 MT_LIBS="-lpthreads"
295                 OPTMZ="-O"
296                 SHLIB_SUFFIX="o"
297                 TXLIBS="-lcurses"
298                 XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
299                 XLIBS="${LIB_AFSDB} -ldl"
300                 ;;
301
302         s390_linux22)
303                 CC="gcc"
304                 LD="gcc"
305                 LEX="flex -l"
306                 MT_CC="$CC"
307                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
308                 MT_LIBS="-lpthread"
309                 OPTMZ="-O"
310                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
311                 SHLIB_LDFLAGS="-shared -Xlinker -x"
312                 TXLIBS="/usr/lib/libncurses.so"
313                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
314                 YACC="bison -y"
315                 ;;
316
317         s390_linux24)
318                 CC="gcc"
319                 LD="gcc"
320                 LEX="flex -l"
321                 MT_CC="$CC"
322                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
323                 MT_LIBS="-lpthread"
324                 OPTMZ="-O"
325                 PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
326                 SHLIB_LDFLAGS="-shared -Xlinker -x"
327                 TXLIBS="/usr/lib/libncurses.so"
328                 XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
329                 YACC="bison -y"
330                 ;;
331
332         sgi_62)
333                 FSINCLUDES="-I/usr/include/sys/fs"
334                 LEX="lex"
335                 LWP_OPTMZ="-O"
336                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
337                 MT_LIBS="-lpthread"
338                 OPTMZ="-O"
339                 TXLIBS="-lcurses"
340                 XCFLAGS64="-64 -mips3"
341                 XCFLAGS="-o32"
342                 XLDFLAGS64="-64"
343                 XLDFLAGS="-o32"
344                 ;;
345
346         sgi_63)
347                 FSINCLUDES="-I/usr/include/sys/fs"
348                 LEX="lex"
349                 LWP_OPTMZ="-O"
350                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
351                 MT_LIBS="-lpthread"
352                 OPTMZ="-O"
353                 TXLIBS="-lcurses"
354                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
355                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32"
356                 XLDFLAGS64="-64"
357                 XLDFLAGS="-o32"
358                 ;;
359
360         sgi_64)
361                 FSINCLUDES="-I/usr/include/sys/fs"
362                 LEX="lex"
363                 LWP_OPTMZ="-O"
364                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
365                 MT_LIBS="-lpthread"
366                 OPTMZ="-O"
367                 TXLIBS="-lcurses"
368                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
369                 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"
370                 XLDFLAGS64="-64"
371                 XLDFLAGS="-n32"
372                 ;;
373
374         sgi_65)
375                 CC="/usr/bin/cc"
376                 FSINCLUDES="-I/usr/include/sys/fs"
377                 LD="/usr/bin/ld"
378                 LEX="lex"
379                 MT_CC="/usr/bin/cc"
380                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
381                 MT_LIBS="-lpthread"
382                 OPTMZ="-O"
383                 TXLIBS="-lcurses"
384                 XCFLAGS64="-64 -mips3"
385                 XCFLAGS="-n32 -mips3 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
386                 XLDFLAGS64="-64 -mips3"
387                 XLDFLAGS="-n32 -mips3"
388                 ;;
389
390         sparc64_linux22)
391                 LEX="flex -l"
392                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
393                 MT_LIBS="-lpthread"
394                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
395                 SHLIB_LDFLAGS="-shared -Xlinker -x"
396                 TXLIBS="/usr/lib/libncurses.so"
397                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
398                 YACC="bison -y"
399                 ;;
400
401         sparc64_linux24)
402                 LEX="flex -l"
403                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
404                 MT_LIBS="-lpthread"
405                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
406                 SHLIB_LDFLAGS="-shared -Xlinker -x"
407                 TXLIBS="/usr/lib/libncurses.so"
408                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
409                 YACC="bison -y"
410                 ;;
411
412         sparc_linux22)
413                 LEX="flex -l"
414                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
415                 MT_LIBS="-lpthread"
416                 PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
417                 SHLIB_LDFLAGS="-shared -Xlinker -x"
418                 TXLIBS="/usr/lib/libncurses.so"
419                 XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
420                 YACC="bison -y"
421                 ;;
422
423         sun4x_55)
424                 CC="/opt/SUNWspro/bin/cc"
425                 LEX="lex"
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                 SHLIB_CFLAGS="-KPIC"
432                 TXLIBS="-lcurses"
433                 XCFLAGS="-dy -Bdynamic"
434                 XLIBELFA="-lelf"
435                 XLIBKVM="-lkvm"
436                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
437                 LD="/usr/ccs/bin/ld"
438                 ;;
439
440         sun4x_56)
441                 CC="/opt/SUNWspro/bin/cc"
442                 LEX="lex"
443                 LWP_OPTMZ="-g"
444                 MT_CC="/opt/SUNWspro/bin/cc"
445                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
446                 MT_LIBS="-lpthread -lsocket"
447                 OPTMZ="-O"
448                 PAM_CFLAGS="-KPIC"
449                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
450                 SHLIB_CFLAGS="-KPIC"
451                 SHLIB_LDFLAGS="-G -Bsymbolic"
452                 TXLIBS="-L/usr/ccs/lib -lcurses"
453                 XCFLAGS="-dy -Bdynamic"
454                 XLIBELFA="-lelf"
455                 LD="/usr/ccs/bin/ld"
456                 XLIBKVM="-lkvm"
457                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
458                 ;;
459
460         sun4x_57)
461                 CC="/opt/SUNWspro/bin/cc"
462                 LEX="lex"
463                 LD="/usr/ccs/bin/ld"
464                 LWP_OPTMZ="-g"
465                 MT_CC="/opt/SUNWspro/bin/cc"
466                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
467                 MT_LIBS="-lpthread -lsocket"
468                 OPTMZ="-O"
469                 PAM_CFLAGS="-KPIC"
470                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
471                 SHLIB_CFLAGS="-KPIC"
472                 SHLIB_LDFLAGS="-G -Bsymbolic"
473                 TXLIBS="-lcurses"
474                 XCFLAGS64='${XCFLAGS} -xarch=v9'
475                 XCFLAGS="-dy -Bdynamic"
476                 XLIBELFA="-lelf"
477                 XLIBKVM="-lkvm"
478                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
479                 ;;
480
481         sun4x_58)
482                 CC="/opt/SUNWspro/bin/cc"
483                 LEX="lex"
484                 LD="/usr/ccs/bin/ld"
485                 LWP_OPTMZ="-g"
486                 MT_CC="/opt/SUNWspro/bin/cc"
487                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
488                 MT_LIBS="-lpthread -lsocket"
489                 OPTMZ="-O"
490                 PAM_CFLAGS="-KPIC"
491                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
492                 SHLIB_CFLAGS="-KPIC"
493                 SHLIB_LDFLAGS="-G -Bsymbolic"
494                 TXLIBS="-lcurses"
495                 XCFLAGS64='${XCFLAGS} -xarch=v9'
496                 XCFLAGS="-dy -Bdynamic"
497                 XLIBELFA="-lelf"
498                 XLIBKVM="-lkvm"
499                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
500                 ;;
501
502         sun4x_59)
503                 CC="/opt/SUNWspro/bin/cc"
504                 LEX="lex"
505                 LWP_OPTMZ="-g"
506                 LD="/usr/ccs/bin/ld"
507                 MT_CC="/opt/SUNWspro/bin/cc"
508                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
509                 MT_LIBS="-lpthread -lsocket"
510                 OPTMZ="-O"
511                 PAM_CFLAGS="-KPIC"
512                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
513                 SHLIB_CFLAGS="-KPIC"
514                 SHLIB_LDFLAGS="-G -Bsymbolic"
515                 TXLIBS="-lcurses"
516                 XCFLAGS64='${XCFLAGS} -xarch=v9'
517                 XCFLAGS="-dy -Bdynamic"
518                 XLIBELFA="-lelf"
519                 XLIBKVM="-lkvm"
520                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
521                 ;;
522
523         sunx86_58)
524                 CC="/opt/SUNWspro/bin/cc"
525                 LEX="lex"
526                 LWP_OPTMZ="-g"
527                 LD="/usr/ccs/bin/ld"
528                 MT_CC="/opt/SUNWspro/bin/cc"
529                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
530                 MT_LIBS="-lpthread -lsocket"
531                 OPTMZ="-O"
532                 PAM_CFLAGS="-KPIC"
533                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
534                 SHLIB_CFLAGS="-KPIC"
535                 SHLIB_LDFLAGS="-G -Bsymbolic"
536                 TXLIBS="-lcurses"
537                 XCFLAGS64='${XCFLAGS} -xarch=v9'
538                 XCFLAGS="-dy -Bdynamic"
539                 XLIBELFA="-lelf"
540                 XLIBKVM="-lkvm"
541                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
542                 ;;
543
544
545 esac
546
547 #
548 # Special build targets
549 #
550 case $AFS_SYSNAME in
551         sgi_6*)
552                 XFS_SIZE_CHECK="xfs_size_check"
553                 install_XFS_SIZE_CHECK='$(DESTDIR)${afssrvsbindir}/xfs_size_check'
554                 dest_XFS_SIZE_CHECK='$(DEST)/root.server/usr/afs/bin/xfs_size_check'
555         
556                 AC_SUBST(XFS_SIZE_CHECK)
557                 AC_SUBST(install_XFS_SIZE_CHECK)
558                 AC_SUBST(dest_XFS_SIZE_CHECK)
559         ;;
560         
561         sun4x_*|sunx86_*)
562                 FS_CONV_SOL26="fs_conv_sol26"
563                 install_FS_CONV_SOL26='$(DESTDIR)${afssrvsbindir}/fs_conv_sol26'
564                 dest_FS_CONV_SOL26='$(DEST)/root.server/usr/afs/bin/fs_conv_sol26'
565
566                 AC_SUBST(FS_CONV_SOL26)
567                 AC_SUBST(install_FS_CONV_SOL26)
568                 AC_SUBST(dest_FS_CONV_SOL26)
569         ;;
570
571         alpha_dux*)
572                 FS_CONV_OSF40D="fs_conv_dux40D"
573                 install_FS_CONV_OSF40D='$(DESTDIR)${afssrvsbindir}/fs_conv_dux40D'
574                 dest_FS_CONV_OSF40D='$(DEST)/root.server/usr/afs/bin/fs_conv_dux40D'
575
576                 AC_SUBST(FS_CONV_OSF40D)
577                 AC_SUBST(install_FS_CONV_OSF40D)
578                 AC_SUBST(dest_FS_CONV_OSF40D)
579         ;;
580 esac
581
582
583 AC_SUBST(AR)
584 AC_SUBST(AS)
585 AC_SUBST(CP)
586 AC_SUBST(DBG)
587 AC_SUBST(FSINCLUDES)
588 AC_SUBST(LD)
589 AC_SUBST(LEX)
590 AC_SUBST(LWP_OPTMZ)
591 AC_SUBST(MT_CC)
592 AC_SUBST(MT_CFLAGS)
593 AC_SUBST(MT_LIBS)
594 AC_SUBST(MV)
595 AC_SUBST(OPTMZ)
596 AC_SUBST(PAM_CFLAGS)
597 AC_SUBST(PAM_LIBS)
598 AC_SUBST(RANLIB)
599 AC_SUBST(REGEX_OBJ)
600 AC_SUBST(RM)
601 AC_SUBST(SHLIB_CFLAGS)
602 AC_SUBST(SHLIB_LDFLAGS)
603 AC_SUBST(SHLIB_SUFFIX)
604 AC_SUBST(TXLIBS)
605 AC_SUBST(VFSCK_CFLAGS)
606 AC_SUBST(XCFLAGS)
607 AC_SUBST(XCFLAGS64)
608 AC_SUBST(XLDFLAGS)
609 AC_SUBST(XLDFLAGS64)
610 AC_SUBST(XLIBELFA)
611 AC_SUBST(XLIBKVM)
612 AC_SUBST(XLIBS)
613 AC_SUBST(YACC)
614
615
616 ])