DEVEL15-linux-configure-vfs-update-20070612
[openafs.git] / src / cf / osconf.m4
1
2 AC_DEFUN([OPENAFS_OSCONF], [
3
4 dnl defaults, override in case below as needed
5 CFLAGS=
6 XCFLAGS='${DBG} ${OPTMZ}'
7 SHLIB_SUFFIX="so"
8 CC="cc"
9 CCOBJ="cc"
10 MT_CC="cc"
11 XLIBS="${LIB_AFSDB}"
12
13 dnl debugging and optimization flag defaults
14 dnl Note, these are all the defaults for if debug/optimize turned on, and
15 dnl the arch cases below do override as needed
16 KERN_DBG=-g
17 KERN_OPTMZ=-O
18 DBG=-g
19 OPTMZ=-O
20 LWP_DBG=-g
21 LWP_OPTMZ=-O
22 PAM_DBG=-g
23 PAM_OPTMZ=
24
25 dnl standard programs
26 AC_PROG_RANLIB
27 AC_CHECK_PROGS(AS, as, [${am_missing_run}as])
28 AC_CHECK_PROGS(AR, ar, [${am_missing_run}ar])
29 AC_CHECK_PROGS(MV, mv, [${am_missing_run}mv])
30 AC_CHECK_PROGS(RM, rm, [${am_missing_run}rm])
31 AC_CHECK_PROGS(LD, ld, [${am_missing_run}ld])
32 AC_CHECK_PROGS(CP, cp, [${am_missing_run}cp])
33 AC_CHECK_PROGS(STRIP, strip, [${am_missing_run}strip])
34 AC_CHECK_PROGS(LORDER, lorder, [${am_missing_run}lorder])
35
36 dnl TODO - need to disable STRIP if we are doing debugging in any user space code
37
38 case $AFS_SYSNAME in
39         alpha_dux40)
40                 LEX="lex"
41                 CSTATIC="-non_shared"
42                 DBG="-g3"
43                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
44                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
45                 TXLIBS="-lcurses"
46                 XCFLAGS="-D_NO_PROTO -DOSF"
47                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
48                 ;;
49
50         alpha_dux50)
51                 LEX="flex -l"
52                 DBG="-g3"
53                 CSTATIC="-non_shared"
54                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
55                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
56                 TXLIBS="-lcurses"
57                 XCFLAGS="-D_NO_PROTO -DOSF"
58                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
59                 ;;
60
61         alpha_dux51)
62                 LEX="flex -l"
63                 DBG="-g3"
64                 CSTATIC="-non_shared"
65                 LWP_OPTMZ="-O2"
66                 MT_CFLAGS='-D_REENTRANT=1 -pthread -DAFS_PTHREAD_ENV ${XCFLAGS}'
67                 MT_LIBS="-pthread -lpthread -lmach -lexc -lc"
68                 TXLIBS="-lcurses"
69                 XCFLAGS="-D_NO_PROTO -DOSF"
70                 SHLIB_LINKER="${CC} -all -shared -expect_unresolved \"*\""
71                 ;;
72
73         alpha_linux_22)
74                 KERN_OPTMZ=-O2
75                 LEX="flex -l"
76                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
77                 MT_LIBS="-lpthread"
78                 PAM_OPTMZ=-O2
79                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
80                 SHLIB_CFLAGS="-fPIC"
81                 SHLIB_LDFLAGS="-shared -Xlinker -x"
82                 TXLIBS="-lncurses"
83                 XCFLAGS="-D_LARGEFILE64_SOURCE"
84                 YACC="bison -y"
85                 SHLIB_LINKER="${MT_CC} -shared"
86                 ;;
87
88         alpha_linux_24)
89                 CCOBJ="${CC} -fPIC"
90                 KERN_OPTMZ=-O2
91                 LEX="flex -l"
92                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
93                 MT_LIBS="-lpthread"
94                 PAM_OPTMZ=-O2
95                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
96                 SHLIB_CFLAGS="-fPIC"
97                 SHLIB_LDFLAGS="-shared -Xlinker -x"
98                 TXLIBS="-lncurses"
99                 XCFLAGS="-D_LARGEFILE64_SOURCE"
100                 YACC="bison -y"
101                 SHLIB_LINKER="${MT_CC} -shared"
102                 ;;
103
104         alpha_linux_26)
105                 CCOBJ="${CC} -fPIC"
106                 KERN_OPTMZ=-O2
107                 LEX="flex -l"
108                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
109                 MT_LIBS="-lpthread"
110                 PAM_OPTMZ=-O2
111                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
112                 SHLIB_CFLAGS="-fPIC"
113                 SHLIB_LDFLAGS="-shared -Xlinker -x"
114                 TXLIBS="-lncurses"
115                 XCFLAGS="-D_LARGEFILE64_SOURCE"
116                 YACC="bison -y"
117                 SHLIB_LINKER="${MT_CC} -shared"
118                 ;;
119
120         hp_ux102)
121                 AS="/usr/ccs/bin/as"
122                 CC="/opt/ansic/bin/cc -Ae"
123                 DBM="/lib/libndbm.a"
124                 LD="/bin/ld"
125                 LEX="/opt/langtools/bin/lex"
126                 LWP_OPTMZ="-O"
127                 MT_CC="/opt/ansic/bin/cc -Ae"
128                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
129                 MT_LIBS="-L/opt/dce/lib -ldce"
130                 MV="/bin/mv"
131                 OPTMZ="-O"
132                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
133                 PAM_LIBS="/usr/lib/libpam.1"
134                 RANLIB="/usr/bin/ranlib"
135                 RM="/bin/rm"
136                 SHLIB_LDFLAGS="-b -Bsymbolic"
137                 SHLIB_SUFFIX="sl"
138                 TXLIBS="/usr/lib/libHcurses.a"
139                 VFSCK_CFLAGS="-D_FILE64"
140                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
141                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
142                 XCFLAGS="${XCFLAGS0} +DA1.0"
143                 YACC="/opt/langtools/bin/yacc"
144                 SHLIB_LINKER="ld -b"
145                 ;;
146
147         hp_ux11*)
148                 AR="/usr/bin/ar"
149                 AS="/usr/ccs/bin/as"
150                 CC="/opt/ansic/bin/cc"
151                 CCOBJ="/opt/ansic/bin/cc"
152                 DBM="/lib/libndbm.a"
153                 LD="/bin/ld   "
154                 LEX="/opt/langtools/bin/lex"
155                 LWP_OPTMZ="-O"
156                 MT_CC="$CC"
157                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
158                 MT_LIBS="-lpthread"
159                 MV="/bin/mv"
160                 OPTMZ="-O"
161                 PAM_CFLAGS="+DA1.0 +z -Wl,+k"
162                 PAM_LIBS="/usr/lib/libpam.1"
163                 RANLIB="/usr/bin/ranlib"
164                 RM="/bin/rm"
165                 SHLIB_LDFLAGS="-b -Bsymbolic"
166                 SHLIB_SUFFIX="sl"
167                 TXLIBS="/usr/lib/libHcurses.a"
168                 VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
169                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
170                 XCFLAGS64="${XCFLAGS0} +DA2.0W"
171                 XCFLAGS="${XCFLAGS0} +DA1.0"
172                 XLIBELFA="-lelf"
173                 #XLIBS="${LIB_AFSDB} -lnsl"
174                 XLIBS="${LIB_AFSDB}"
175                 YACC="/opt/langtools/bin/yacc"
176                 SHLIB_LINKER="ld -b"
177                 ;;
178
179         ia64_hpux*)
180                 AR="/usr/bin/ar"
181                 AS="/usr/ccs/bin/as"
182                 CC="/opt/ansic/bin/cc"
183                 CCOBJ="/opt/ansic/bin/cc"
184                 DBM="/lib/hpux32/libndbm.so"
185                 LD="/bin/ld   "
186                 LEX="/opt/langtools/bin/lex"
187                 LWP_OPTMZ=""
188                 MT_CC="$CC"
189                 MT_CFLAGS='-D_POSIX_C_SOURCE=199506L -DAFS_PTHREAD_ENV ${XCFLAGS}'
190                 MT_LIBS="-lpthread"
191                 MV="/bin/mv"
192                 OPTMZ="-O"
193                 PAM_CFLAGS="-b +z -Wl,+k"
194                 PAM_LIBS="/usr/lib/hpux32/libpam.so"
195                 RANLIB="/usr/bin/ranlib"
196                 RM="/bin/rm"
197                 SHLIB_LDFLAGS="-b -Bsymbolic"
198                 SHLIB_SUFFIX="sl"
199                 TXLIBS="/usr/lib/hpux32/libcurses.so"
200                 VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
201                 XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive_shared -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
202                 XCFLAGS64="${XCFLAGS0} +DD64"
203                 XCFLAGS="${XCFLAGS0}"
204                 XLIBELFA="-lelf"
205                 #XLIBS="${LIB_AFSDB} -lnsl"
206                 XLIBS="${LIB_AFSDB}"
207                 YACC="/opt/langtools/bin/yacc"
208                 SHLIB_LINKER="ld -b"
209                 ;;
210
211         *fbsd_*)
212                 LEX="flex -l"
213                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
214                 MT_LIBS="-pthread"
215                 PAM_OPTMZ=-O2
216                 PAM_CFLAGS="-pipe -fPIC"
217                 SHLIB_LDFLAGS="-shared -Xlinker -x"
218                 SHLIB_LINKER="${MT_CC} -shared"
219                 TXLIBS="-lncurses"
220                 XCFLAGS="-pipe"
221                 YACC="byacc"
222                 ;;
223
224         *nbsd2*|*nbsd3*|*nbsd4*)
225                 LEX="flex -l"
226                 MT_CFLAGS='${XCFLAGS} -DAFS_PTHREAD_ENV -D_REENTRANT '
227                 MT_LIBS="-lpthread" # XXX -pthread soon
228                 PAM_OPTMZ=-O2
229                 PAM_CFLAGS="-pipe -fPIC"
230                 SHLIB_LDFLAGS="-shared -Xlinker -x"
231                 SHLIB_LINKER="${MT_CC} -shared"
232                 TXLIBS="/usr/lib/libcurses.so"
233                 XCFLAGS="-pipe"
234                 YACC="yacc"
235                 ;;
236
237         *nbsd15|*nbsd16)
238                 LEX="flex -l"
239                 MT_CFLAGS='${XCFLAGS}'
240                 MT_LIBS=""
241                 PAM_OPTMZ=-O2
242                 PAM_CFLAGS="-pipe -fPIC"
243                 SHLIB_LDFLAGS="-shared -Xlinker -x"
244                 SHLIB_LINKER="${MT_CC} -shared"
245                 TXLIBS="/usr/lib/libcurses.so"
246                 XCFLAGS="-pipe"
247                 YACC="bison -y"
248                 ;;
249
250         ia64_linux24|ia64_linux26)
251                 KERN_OPTMZ=-O2
252                 LEX="flex -l"
253                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
254                 MT_LIBS="-lpthread"
255                 PAM_OPTMZ=-O2
256                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
257                 SHLIB_CFLAGS="-fPIC"
258                 SHLIB_LDFLAGS="-shared -Xlinker -x"
259                 TXLIBS="-lncurses"
260                 XCFLAGS="-D_LARGEFILE64_SOURCE -G0"
261                 SHLIB_LINKER="${MT_CC} -shared"
262                 ;;
263
264         amd64_linux*)
265                 CCOBJ="${CC} -fPIC"
266                 KERN_OPTMZ=-O2
267                 LEX="flex -l"
268                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
269                 MT_LIBS="-lpthread"
270                 PAM_OPTMZ=-O2
271                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
272                 SHLIB_CFLAGS="-fPIC"
273                 SHLIB_LDFLAGS="-shared -Xlinker -x"
274                 TXLIBS="-lncurses"
275                 XCFLAGS="-D_LARGEFILE64_SOURCE"
276                 SHLIB_LINKER="${MT_CC} -shared"
277                 ;;
278
279         ppc64_linux24)
280                 KERN_OPTMZ=-O2
281                 LEX="flex -l"
282                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
283                 MT_LIBS="-lpthread"
284                 PAM_OPTMZ=-O2
285                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
286                 SHLIB_LDFLAGS="-shared -Xlinker -x"
287                 SHLIB_CFLAGS="-fPIC"
288                 TXLIBS="/usr/lib64/libncurses.so"
289                 XCFLAGS="-D_LARGEFILE64_SOURCE"
290                 SHLIB_LINKER="${MT_CC} -shared"
291                 ;;
292
293         ppc64_linux26)
294                 KERN_OPTMZ=-O2
295                 LEX="flex -l"
296                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
297                 MT_LIBS="-lpthread"
298                 PAM_OPTMZ=-O2
299                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
300                 SHLIB_LDFLAGS="-shared -Xlinker -x"
301                 SHLIB_CFLAGS="-fPIC"
302                 TXLIBS="-lncurses"
303                 XCFLAGS="-D_LARGEFILE64_SOURCE -fPIC"
304                 YACC="bison -y"
305                 SHLIB_LINKER="${MT_CC} -shared"
306                 ;;
307
308         i386_umlinux22)
309                 CC="gcc -pipe"
310                 CCOBJ="gcc -pipe"
311                 MT_CC="gcc -pipe"
312                 KERN_OPTMZ=-O2
313                 LEX="flex -l"
314                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
315                 MT_LIBS="-lpthread"
316                 PAM_OPTMZ=-O2
317                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
318                 SHLIB_CFLAGS="-fPIC"
319                 SHLIB_LDFLAGS="-shared -Xlinker -x"
320                 TXLIBS="-lncurses"
321                 XCFLAGS="-D_LARGEFILE64_SOURCE"
322                 YACC="bison -y"
323                 SHLIB_LINKER="${MT_CC} -shared"
324                 ;;
325
326         i386_linux*)
327                 CC="gcc -pipe"
328                 CCOBJ="gcc -pipe"
329                 MT_CC="gcc -pipe"
330                 KERN_OPTMZ=-O2
331                 LEX="flex -l"
332                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
333                 MT_LIBS="-lpthread"
334                 DBG=-g
335                 KERN_DBG=-g
336                 LWP_DBG=-g
337                 LWP_OPTMZ=-O2
338                 OPTMZ=-O2
339                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
340                 SHLIB_CFLAGS="-fPIC"
341                 SHLIB_LDFLAGS="-shared -Xlinker -x"
342                 TXLIBS="-lncurses"
343                 XCFLAGS="-D_LARGEFILE64_SOURCE"
344                 SHLIB_LINKER="${MT_CC} -shared"
345                 ;;
346
347         i386_umlinux24)
348                 CC="gcc -pipe"
349                 CCOBJ="gcc -pipe"
350                 MT_CC="gcc -pipe"
351                 KERN_OPTMZ=-O2
352                 LEX="flex -l"
353                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
354                 MT_LIBS="-lpthread"
355                 DBG=-g
356                 KERN_DBG=-g
357                 LWP_DBG=-g
358                 LWP_OPTMZ=-O2
359                 OPTMZ=-O2
360                 PAM_OPTMZ=-O2
361                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
362                 SHLIB_CFLAGS="-fPIC"
363                 SHLIB_LDFLAGS="-shared -Xlinker -x"
364                 TXLIBS="-lncurses"
365                 XCFLAGS="-D_LARGEFILE64_SOURCE"
366                 SHLIB_LINKER="${MT_CC} -shared"
367                 ;;
368
369         i386_umlinux26)
370                 CC="gcc -pipe"
371                 CCOBJ="gcc -pipe"
372                 MT_CC="gcc -pipe"
373                 KERN_OPTMZ=-O2
374                 LEX="flex -l"
375                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
376                 MT_LIBS="-lpthread"
377                 DBG=-g
378                 KERN_DBG=-g
379                 LWP_DBG=-g
380                 LWP_OPTMZ=-O2
381                 OPTMZ=-O2
382                 PAM_OPTMZ=-O2
383                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
384                 SHLIB_CFLAGS="-fPIC"
385                 SHLIB_LDFLAGS="-shared -Xlinker -x"
386                 TXLIBS="-lncurses"
387                 XCFLAGS="-D_LARGEFILE64_SOURCE"
388                 SHLIB_LINKER="${MT_CC} -shared"
389                 ;;
390
391         *_obsd*)
392                 KRB5CFLAGS="-I/usr/include/kerberosV"
393                 KRB5LIBS="-lkrb5 -lcrypto"
394                 LEX="flex -l"
395                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
396                 MT_LIBS="-pthread"
397                 PAM_OPTMZ=-O2
398                 PAM_CFLAGS="-pipe -fpic"
399                 SHLIB_CFLAGS="-fpic"
400                 SHLIB_LDFLAGS="-shared -Xlinker -x"
401                 SHLIB_LINKER="${MT_CC} -shared"
402                 TXLIBS="/usr/lib/libcurses.a"
403                 XCFLAGS=
404                 YACC="yacc"
405                 ;;
406
407         parisc_linux24)
408                 KERN_OPTMZ=-O2
409                 LEX="flex -l"
410                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
411                 MT_LIBS="-lpthread"
412                 PAM_OPTMZ=-O2
413                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
414                 SHLIB_CFLAGS="-fPIC"
415                 SHLIB_LDFLAGS="-shared -Xlinker -x"
416                 TXLIBS="-lncurses"
417                 XCFLAGS="-D_LARGEFILE64_SOURCE"
418                 YACC="bison -y"
419                 SHLIB_LINKER="${MT_CC} -shared"
420                 ;;
421
422         ppc_darwin_12)
423                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
424                 LEX="lex -l"
425                 REGEX_OBJ="regex.o"
426                 XCFLAGS="-traditional-cpp"
427                 SHLIB_LINKER="${MT_CC} -dynamiclib"
428                 SHLIB_SUFFIX="dylib"
429                 ;;
430
431         ppc_darwin_13)
432                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
433                 LEX="lex -l"
434                 LWP_OPTMZ="-O2"
435                 REGEX_OBJ="regex.o"
436                 XCFLAGS="-no-cpp-precomp"
437                 SHLIB_LINKER="${MT_CC} -dynamiclib"
438                 SHLIB_SUFFIX="dylib"
439                 ;;
440
441         ppc_darwin_14)
442                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
443                 LEX="lex -l"
444                 LWP_OPTMZ="-O2"
445                 REGEX_OBJ="regex.o"
446                 XCFLAGS="-no-cpp-precomp"
447                 SHLIB_LINKER="${MT_CC} -dynamiclib"
448                 SHLIB_SUFFIX="dylib"
449                 ;;
450
451         ppc_darwin_60)
452                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
453                 LEX="lex -l"
454                 LWP_OPTMZ="-O2"
455                 REGEX_OBJ="regex.o"
456                 XCFLAGS="-no-cpp-precomp"
457                 TXLIBS="-lncurses"
458                 SHLIB_LINKER="${MT_CC} -dynamiclib"
459                 SHLIB_SUFFIX="dylib"
460                 ;;
461
462         ppc_darwin_70)
463                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
464                 LEX="lex -l"
465                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS}'
466                 KROOT=
467                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
468                 LWP_OPTMZ="-O2"
469                 REGEX_OBJ="regex.o"
470                 XCFLAGS="-no-cpp-precomp"
471                 TXLIBS="-lncurses"
472                 EXTRA_VLIBOBJS="fstab.o"
473                 SHLIB_LINKER="${MT_CC} -dynamiclib"
474                 SHLIB_SUFFIX="dylib"
475                 ;;
476
477         *_darwin_80)
478                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
479                 LEX="lex -l"
480                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} ${ARCHFLAGS}'
481                 KROOT=
482                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
483                 KERN_OPTMZ="-Os"
484                 LWP_OPTMZ="-Os"
485                 OPTMZ="-Os"
486                 REGEX_OBJ="regex.o"
487                 TXLIBS="-lncurses"
488                 EXTRA_VLIBOBJS="fstab.o"
489                 SHLIB_LINKER="${MT_CC} -dynamiclib"
490                 SHLIB_SUFFIX="dylib"
491                 ;;
492
493         *_darwin_90)
494                 AFSD_LDFLAGS="-F/System/Library/PrivateFrameworks -framework DiskArbitration"
495                 LEX="lex -l"
496                 MT_CFLAGS='-DAFS_PTHREAD_ENV -D_REENTRANT ${XCFLAGS} ${ARCHFLAGS}'
497                 KROOT=
498                 KINCLUDES='-I$(KROOT)/System/Library/Frameworks/Kernel.framework/Headers'
499                 LD="cc"
500                 KERN_OPTMZ="-Os"
501                 LWP_OPTMZ="-Os"
502                 OPTMZ="-Os"
503                 REGEX_OBJ="regex.o"
504                 TXLIBS="-lncurses"
505                 EXTRA_VLIBOBJS="fstab.o"
506                 SHLIB_LINKER="${MT_CC} -dynamiclib"
507                 SHLIB_SUFFIX="dylib"
508                 ;;
509
510         ppc_linux*)
511                 KERN_OPTMZ=-O2
512                 LEX="flex -l"
513                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
514                 MT_LIBS="-lpthread"
515                 PAM_OPTMZ=-O2
516                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
517                 SHLIB_CFLAGS="-fPIC"
518                 SHLIB_LDFLAGS="-shared -Xlinker -x"
519                 TXLIBS="-lncurses"
520                 XCFLAGS="-D_LARGEFILE64_SOURCE"
521                 YACC="bison -y"
522                 SHLIB_LINKER="${MT_CC} -shared"
523                 ;;
524
525         rs_aix42)
526                 DBG=""
527                 LEX="lex"
528                 LIBSYS_AIX_EXP="afsl.exp"
529                 MT_CC="xlc_r"
530                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
531                 MT_LIBS="-lpthreads"
532                 SHLIB_SUFFIX="o"
533                 TXLIBS="-lcurses"
534                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
535                 XLIBS="${LIB_AFSDB} -ldl"
536                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
537                 AIX64="#"
538                 ;;
539
540
541         rs_aix51)
542                 DBG=""
543                 LEX="lex"
544                 LIBSYS_AIX_EXP="afsl.exp"
545                 MT_CC="xlc_r"
546                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
547                 MT_LIBS="-lpthreads"
548                 SHLIB_SUFFIX="o"
549                 TXLIBS="-lcurses"
550                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
551                 XLIBS="${LIB_AFSDB} -ldl"
552                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
553                 AIX64=""
554                 ;;
555
556         rs_aix52)       
557                 DBG=""
558                 LEX="lex"
559                 LIBSYS_AIX_EXP="afsl.exp"
560                 MT_CC="xlc_r"
561                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
562                 MT_LIBS="-lpthreads"
563                 SHLIB_SUFFIX="o"
564                 TXLIBS="-lcurses"
565                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
566                 XLIBS="${LIB_AFSDB} -ldl"
567                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
568                 AIX64=""
569                 ;;
570
571         rs_aix53)       
572                 DBG="-g"
573                 LEX="lex"
574                 LIBSYS_AIX_EXP="afsl.exp"
575                 MT_CC="xlc_r"
576                 MT_CFLAGS='-DAFS_PTHREAD_ENV ${XCFLAGS}'
577                 MT_LIBS="-lpthreads"
578                 SHLIB_SUFFIX="o"
579                 TXLIBS="-lcurses"
580                 XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
581                 XLIBS="${LIB_AFSDB} -ldl"
582                 SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
583                 AIX64=""
584                 ;;
585
586         s390_linux22)
587                 CC="gcc"
588                 CCOBJ="gcc"
589                 LD="ld"
590                 KERN_OPTMZ=-O2
591                 LEX="flex -l"
592                 MT_CC="$CC"
593                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
594                 MT_LIBS="-lpthread"
595                 PAM_OPTMZ=-O
596                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
597                 SHLIB_CFLAGS="-fPIC"
598                 SHLIB_LDFLAGS="-shared -Xlinker -x"
599                 TXLIBS="-lncurses"
600                 OPTMZ=-O
601                 XCFLAGS="-D_LARGEFILE64_SOURCE"
602                 YACC="bison -y"
603                 SHLIB_LINKER="${MT_CC} -shared"
604                 ;;
605
606         s390_linux24|s390_linux26)
607                 CC="gcc"
608                 CCOBJ="gcc"
609                 LD="ld"
610                 KERN_OPTMZ=-O2
611                 LEX="flex -l"
612                 MT_CC="$CC"
613                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
614                 MT_LIBS="-lpthread"
615                 PAM_OPTMZ=-O2
616                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
617                 SHLIB_CFLAGS="-fPIC"
618                 SHLIB_LDFLAGS="-shared -Xlinker -x"
619                 TXLIBS="-lncurses"
620                 XCFLAGS="-D_LARGEFILE64_SOURCE"
621                 YACC="bison -y"
622                 SHLIB_LINKER="${MT_CC} -shared"
623                 ;;
624
625         s390x_linux24|s390x_linux26)
626                 CC="gcc"
627                 CCOBJ="gcc -fPIC"
628                 LD="ld"
629                 KERN_OPTMZ=-O2
630                 LEX="flex -l"
631                 MT_CC="$CC"
632                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
633                 MT_LIBS="-lpthread"
634                 PAM_OPTMZ=-O
635                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
636                 SHLIB_CFLAGS="-fPIC"
637                 SHLIB_LDFLAGS="-shared -Xlinker -x -Xlinker -Bsymbolic"
638                 TXLIBS="-lncurses"
639                 OPTMZ=-O
640                 XCFLAGS="-D_LARGEFILE64_SOURCE -D__s390x__"
641                 YACC="bison -y"
642                 SHLIB_LINKER="${MT_CC} -shared"
643                 ;;
644
645         sgi_62)
646                 PINSTALL_LIBS=-lmld
647                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
648                 FSINCLUDES="-I/usr/include/sys/fs"
649                 LEX="lex"
650                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
651                 MT_LIBS="-lpthread"
652                 TXLIBS="-lcurses"
653                 XCFLAGS64="-64 -mips3"
654                 XCFLAGS="-o32"
655                 XLDFLAGS64="-64"
656                 XLDFLAGS="-o32"
657                 SHLIB_LINKER="${CC} -shared"
658                 ;;
659
660         sgi_63)
661                 PINSTALL_LIBS=-lmld
662                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
663                 FSINCLUDES="-I/usr/include/sys/fs"
664                 LEX="lex"
665                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
666                 MT_LIBS="-lpthread"
667                 TXLIBS="-lcurses"
668                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
669                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32"
670                 XLDFLAGS64="-64"
671                 XLDFLAGS="-o32"
672                 SHLIB_LINKER="${CC} -shared"
673                 ;;
674
675         sgi_64)
676                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
677                 FSINCLUDES="-I/usr/include/sys/fs"
678                 LEX="lex"
679                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
680                 MT_LIBS="-lpthread"
681                 TXLIBS="-lcurses"
682                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
683                 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"
684                 XLDFLAGS64="-64"
685                 XLDFLAGS="-n32"
686                 SHLIB_LINKER="${CC} -shared"
687                 ;;
688
689         sgi_65)
690                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
691                 CC="/usr/bin/cc"
692                 CCOBJ="/usr/bin/cc"
693                 FSINCLUDES="-I/usr/include/sys/fs"
694                 LD="/usr/bin/ld"
695                 LEX="lex"
696                 MT_CC="/usr/bin/cc"
697                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
698                 MT_LIBS="-lpthread"
699                 TXLIBS="-lcurses"
700                 XCFLAGS64="-64 -mips3"
701                 XCFLAGS="-n32 -mips3 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
702                 XLDFLAGS64="-64 -mips3"
703                 XLDFLAGS="-n32 -mips3"
704                 SHLIB_LINKER="${CC} -shared"
705                 ;;
706
707         sparc*_linux*)
708                 KERN_OPTMZ=-O2
709                 LEX="flex -l"
710                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
711                 MT_LIBS="-lpthread"
712                 PAM_OPTMZ=-O2
713                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
714                 SHLIB_CFLAGS="-fPIC"
715                 SHLIB_LDFLAGS="-shared -Xlinker -x"
716                 TXLIBS="-lncurses"
717                 XCFLAGS="-D_LARGEFILE64_SOURCE"
718                 XCFLAGS64="-D_LARGEFILE64_SOURCE -m64"
719                 XLDFLAGS64="-m64"
720                 YACC="bison -y"
721                 SHLIB_LINKER="${MT_CC} -shared"
722                 ;;
723
724         sun4_413)
725                 CCXPG2="/usr/xpg2bin/cc"
726                 CC="gcc"
727                 CCOBJ="gcc"
728                 LEX="lex"
729                 SHLIB_CFLAGS="-PIC"
730                 TXLIBS="-lcurses -ltermcap"
731                 XCFLAGS=""
732                 XLIBELFA="-lelf"
733                 XLIBKVM="-lkvm"
734                 XLIBS="${LIB_AFSDB}"
735                 LD="ld"
736                 ;;
737
738         sun4x_55)
739                 CC="/opt/SUNWspro/bin/cc"
740                 CCOBJ="/opt/SUNWspro/bin/cc"
741                 LEX="lex"
742                 MT_CC="/opt/SUNWspro/bin/cc"
743                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
744                 MT_LIBS="-lpthread -lsocket"
745                 SHLIB_CFLAGS="-KPIC"
746                 TXLIBS="-lcurses"
747                 XCFLAGS="-dy -Bdynamic"
748                 XLIBELFA="-lelf"
749                 XLIBKVM="-lkvm"
750                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
751                 LD="/usr/ccs/bin/ld"
752                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
753                 LWP_OPTMZ="-g"
754                 ;;
755
756         sun4x_56)
757                 CC="/opt/SUNWspro/bin/cc"
758                 CCOBJ="/opt/SUNWspro/bin/cc"
759                 LEX="lex"
760                 MT_CC="/opt/SUNWspro/bin/cc"
761                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
762                 MT_LIBS="-lpthread -lsocket"
763                 PAM_CFLAGS="-KPIC"
764                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
765                 SHLIB_CFLAGS="-KPIC"
766                 SHLIB_LDFLAGS="-G -Bsymbolic"
767                 TXLIBS="-L/usr/ccs/lib -lcurses"
768                 XCFLAGS="-dy -Bdynamic"
769                 XLIBELFA="-lelf"
770                 LD="/usr/ccs/bin/ld"
771                 XLIBKVM="-lkvm"
772                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
773                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
774                 LWP_OPTMZ="-g"
775                 ;;
776
777         sun4x_57)
778                 CC="/opt/SUNWspro/bin/cc"
779                 CCOBJ="/opt/SUNWspro/bin/cc"
780                 LEX="lex"
781                 LD="/usr/ccs/bin/ld"
782                 MT_CC="/opt/SUNWspro/bin/cc"
783                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
784                 MT_LIBS="-lpthread -lsocket"
785                 PAM_CFLAGS="-KPIC"
786                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
787                 SHLIB_CFLAGS="-KPIC"
788                 SHLIB_LDFLAGS="-G -Bsymbolic"
789                 TXLIBS="-lcurses"
790                 XCFLAGS64='${XCFLAGS} -xarch=v9'
791                 XCFLAGS="-dy -Bdynamic"
792                 XLIBELFA="-lelf"
793                 XLIBKVM="-lkvm"
794                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
795                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
796                 LWP_OPTMZ="-g"
797                 ;;
798
799         sun4x_58)
800                 CC="/opt/SUNWspro/bin/cc"
801                 CCOBJ="/opt/SUNWspro/bin/cc"
802                 LEX="lex"
803                 LD="/usr/ccs/bin/ld"
804                 MT_CC="/opt/SUNWspro/bin/cc"
805                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
806                 MT_LIBS="-lpthread -lsocket"
807                 PAM_CFLAGS="-KPIC"
808                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
809                 SHLIB_CFLAGS="-KPIC"
810                 SHLIB_LDFLAGS="-G -Bsymbolic"
811                 TXLIBS="-lcurses"
812                 XCFLAGS64='${XCFLAGS} -xarch=v9'
813                 XCFLAGS="-dy -Bdynamic"
814                 XLIBELFA="-lelf"
815                 XLIBKVM="-lkvm"
816                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
817                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
818                 LWP_OPTMZ="-g"
819                 ;;
820
821         sun4x_59)
822                 CC="/opt/SUNWspro/bin/cc"
823                 CCOBJ="/opt/SUNWspro/bin/cc"
824                 LEX="lex"
825                 LD="/usr/ccs/bin/ld"
826                 MT_CC="/opt/SUNWspro/bin/cc"
827                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
828                 MT_LIBS="-lpthread -lsocket"
829                 PAM_CFLAGS="-KPIC"
830                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
831                 SHLIB_CFLAGS="-KPIC"
832                 SHLIB_LDFLAGS="-G -Bsymbolic"
833                 TXLIBS="-lcurses"
834                 XCFLAGS64='${XCFLAGS} -xarch=v9'
835                 XCFLAGS="-dy -Bdynamic"
836                 XLIBELFA="-lelf"
837                 XLIBKVM="-lkvm"
838                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
839                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
840                 LWP_OPTMZ="-g"
841                 ;;
842
843         sun4x_510)
844                 CC="/opt/SUNWspro/bin/cc"
845                 CCOBJ="/opt/SUNWspro/bin/cc"
846                 LEX="lex"
847                 LD="/usr/ccs/bin/ld"
848                 MT_CC="/opt/SUNWspro/bin/cc"
849                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
850                 MT_LIBS="-lpthread -lsocket"
851                 PAM_CFLAGS="-KPIC"
852                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
853                 SHLIB_CFLAGS="-KPIC"
854                 SHLIB_LDFLAGS="-G -Bsymbolic"
855                 TXLIBS="-lcurses"
856                 XCFLAGS64='${XCFLAGS} -xarch=v9'
857                 XCFLAGS="-dy -Bdynamic"
858                 XLIBELFA="-lelf"
859                 XLIBKVM="-lkvm"
860                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
861                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
862                 LWP_OPTMZ="-g"
863                 ;;
864
865         sun4x_511)
866                 CC="/opt/SUNWspro/bin/cc"
867                 CCOBJ="/opt/SUNWspro/bin/cc"
868                 LEX="lex"
869                 LD="/usr/ccs/bin/ld"
870                 MT_CC="/opt/SUNWspro/bin/cc"
871                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
872                 MT_LIBS="-lpthread -lsocket"
873                 PAM_CFLAGS="-KPIC"
874                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
875                 SHLIB_CFLAGS="-KPIC"
876                 SHLIB_LDFLAGS="-G -Bsymbolic"
877                 TXLIBS="-lcurses"
878                 XCFLAGS64='${XCFLAGS} -xarch=v9'
879                 XCFLAGS="-dy -Bdynamic"
880                 XLIBELFA="-lelf"
881                 XLIBKVM="-lkvm"
882                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
883                 SHLIB_LINKER="${CC} -G -dy -Bsymbolic -z text"
884                 LWP_OPTMZ="-g"
885                 ;;
886
887         sunx86_57)
888                 CC="/opt/SUNWspro/bin/cc"
889                 CCOBJ="/opt/SUNWspro/bin/cc"
890                 LEX="lex"
891                 LD="/usr/ccs/bin/ld"
892                 MT_CC="/opt/SUNWspro/bin/cc"
893                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
894                 MT_LIBS="-lpthread -lsocket"
895                 PAM_CFLAGS="-KPIC"
896                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
897                 SHLIB_CFLAGS="-KPIC"
898                 SHLIB_LDFLAGS="-G -Bsymbolic"
899                 TXLIBS="-lcurses"
900                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
901                 XCFLAGS="-dy -Bdynamic"
902                 XLIBELFA="-lelf"
903                 XLIBKVM="-lkvm"
904                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
905                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
906                 ;;
907
908         sunx86_58)
909                 CC="/opt/SUNWspro/bin/cc"
910                 CCOBJ="/opt/SUNWspro/bin/cc"
911                 LEX="lex"
912                 LD="/usr/ccs/bin/ld"
913                 MT_CC="/opt/SUNWspro/bin/cc"
914                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
915                 MT_LIBS="-lpthread -lsocket"
916                 PAM_CFLAGS="-KPIC"
917                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
918                 SHLIB_CFLAGS="-KPIC"
919                 SHLIB_LDFLAGS="-G -Bsymbolic"
920                 TXLIBS="-lcurses"
921                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
922                 XCFLAGS="-dy -Bdynamic"
923                 XLIBELFA="-lelf"
924                 XLIBKVM="-lkvm"
925                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
926                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
927                 ;;
928
929         sunx86_59)
930                 CC="/opt/SUNWspro/bin/cc"
931                 CCOBJ="/opt/SUNWspro/bin/cc"
932                 LEX="lex"
933                 LD="/usr/ccs/bin/ld"
934                 MT_CC="/opt/SUNWspro/bin/cc"
935                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
936                 MT_LIBS="-lpthread -lsocket"
937                 PAM_CFLAGS="-KPIC"
938                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
939                 SHLIB_CFLAGS="-KPIC"
940                 SHLIB_LDFLAGS="-G -Bsymbolic"
941                 TXLIBS="-lcurses"
942                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
943                 XCFLAGS="-dy -Bdynamic"
944                 XLIBELFA="-lelf"
945                 XLIBKVM="-lkvm"
946                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
947                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
948                 ;;
949
950         sunx86_510)
951                 CC="/opt/SUNWspro/bin/cc"
952                 CCOBJ="/opt/SUNWspro/bin/cc"
953                 LEX="lex"
954                 LD="/usr/ccs/bin/ld"
955                 MT_CC="/opt/SUNWspro/bin/cc"
956                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
957                 MT_LIBS="-lpthread -lsocket"
958                 PAM_CFLAGS="-KPIC"
959                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
960                 SHLIB_CFLAGS="-KPIC"
961                 SHLIB_LDFLAGS="-G -Bsymbolic"
962                 TXLIBS="-lcurses"
963                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
964                 XCFLAGS="-dy -Bdynamic"
965                 XLIBELFA="-lelf"
966                 XLIBKVM="-lkvm"
967                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
968                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
969                 ;;
970
971         sunx86_511)
972                 CC="/opt/SUNWspro/bin/cc"
973                 CCOBJ="/opt/SUNWspro/bin/cc"
974                 LEX="lex"
975                 LD="/usr/ccs/bin/ld"
976                 MT_CC="/opt/SUNWspro/bin/cc"
977                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
978                 MT_LIBS="-lpthread -lsocket"
979                 PAM_CFLAGS="-KPIC"
980                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
981                 SHLIB_CFLAGS="-KPIC"
982                 SHLIB_LDFLAGS="-G -Bsymbolic"
983                 TXLIBS="-lcurses"
984                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
985                 XCFLAGS="-dy -Bdynamic"
986                 XLIBELFA="-lelf"
987                 XLIBKVM="-lkvm"
988                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
989                 SHLIB_LINKER="${CC} -G -dy -Bsymbolic -z text"
990                 ;;
991 esac
992
993 #
994 # Special build targets
995 #
996 case $AFS_SYSNAME in
997         sgi_6*)
998                 IRIX_SYS_SYSTM_H_HAS_MEM_FUNCS
999                 XFS_SIZE_CHECK="xfs_size_check"
1000                 install_XFS_SIZE_CHECK='$(DESTDIR)${afssrvsbindir}/xfs_size_check'
1001                 dest_XFS_SIZE_CHECK='$(DEST)/root.server/usr/afs/bin/xfs_size_check'
1002         
1003                 AC_SUBST(XFS_SIZE_CHECK)
1004                 AC_SUBST(install_XFS_SIZE_CHECK)
1005                 AC_SUBST(dest_XFS_SIZE_CHECK)
1006         ;;
1007         
1008         sun4x_*|sunx86_*)
1009                 FS_CONV_SOL26="fs_conv_sol26"
1010                 install_FS_CONV_SOL26='$(DESTDIR)${afssrvsbindir}/fs_conv_sol26'
1011                 dest_FS_CONV_SOL26='$(DEST)/root.server/usr/afs/bin/fs_conv_sol26'
1012
1013                 AC_SUBST(FS_CONV_SOL26)
1014                 AC_SUBST(install_FS_CONV_SOL26)
1015                 AC_SUBST(dest_FS_CONV_SOL26)
1016         ;;
1017
1018         alpha_dux*)
1019                 FS_CONV_OSF40D="fs_conv_dux40D"
1020                 install_FS_CONV_OSF40D='$(DESTDIR)${afssrvsbindir}/fs_conv_dux40D'
1021                 dest_FS_CONV_OSF40D='$(DEST)/root.server/usr/afs/bin/fs_conv_dux40D'
1022
1023                 AC_SUBST(FS_CONV_OSF40D)
1024                 AC_SUBST(install_FS_CONV_OSF40D)
1025                 AC_SUBST(dest_FS_CONV_OSF40D)
1026         ;;
1027 esac
1028
1029
1030
1031 dnl pthreads fixes
1032 case $AFS_SYSNAME in
1033 dnl we'll go ahead and turn on XOPEN2K and ISO_C99
1034 dnl if this causes problems, we should scale back to _XOPEN_SOURCE=500
1035         *linux*)
1036                 MT_CFLAGS="${MT_CFLAGS} -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
1037         ;;
1038 esac
1039
1040
1041 dnl Disable the default for debugging/optimization if not enabled
1042 if test "x$enable_debug_kernel" = "xno"; then
1043   KERN_DBG=
1044 fi
1045
1046 if test "x$enable_optimize_kernel" = "xno"; then
1047   KERN_OPTMZ=
1048 fi
1049
1050 if test "x$enable_debug" = "xno"; then
1051   DBG=
1052 fi
1053
1054 if test "x$enable_optimize" = "xno"; then
1055   OPTMZ=
1056 fi
1057
1058 if test "x$enable_debug_lwp" = "xno"; then
1059   LWP_DBG=
1060 fi
1061
1062 if test "x$enable_optimize_lwp" = "xno"; then
1063   LWP_OPTMZ=
1064 fi
1065
1066 AC_SUBST(CCXPG2)
1067 AC_SUBST(CCOBJ)
1068 AC_SUBST(AFSD_LIBS)
1069 AC_SUBST(AFSD_LDFLAGS)
1070 AC_SUBST(AIX64)
1071 AC_SUBST(AR)
1072 AC_SUBST(AS)
1073 AC_SUBST(CP)
1074 AC_SUBST(DBG)
1075 AC_SUBST(FSINCLUDES)
1076 AC_SUBST(KERN_DBG)
1077 AC_SUBST(KERN_OPTMZ)
1078 AC_SUBST(LD)
1079 AC_SUBST(LEX)
1080 AC_SUBST(LWP_DBG)
1081 AC_SUBST(LWP_OPTMZ)
1082 AC_SUBST(MT_CC)
1083 AC_SUBST(MT_CFLAGS)
1084 AC_SUBST(MT_LIBS)
1085 AC_SUBST(MV)
1086 AC_SUBST(OPTMZ)
1087 AC_SUBST(PAM_CFLAGS)
1088 AC_SUBST(PAM_LIBS)
1089 AC_SUBST(PAM_DBG)
1090 AC_SUBST(PAM_OPTMZ)
1091 AC_SUBST(PINSTALL_LIBS)
1092 AC_SUBST(RANLIB)
1093 AC_SUBST(REGEX_OBJ)
1094 AC_SUBST(RM)
1095 AC_SUBST(SHLIB_CFLAGS)
1096 AC_SUBST(SHLIB_LDFLAGS)
1097 AC_SUBST(SHLIB_LINKER)
1098 AC_SUBST(SHLIB_SUFFIX)
1099 AC_SUBST(TXLIBS)
1100 AC_SUBST(VFSCK_CFLAGS)
1101 AC_SUBST(XCFLAGS)
1102 AC_SUBST(XCFLAGS64)
1103 AC_SUBST(XLDFLAGS)
1104 AC_SUBST(XLDFLAGS64)
1105 AC_SUBST(XLIBELFA)
1106 AC_SUBST(XLIBKVM)
1107 AC_SUBST(XLIBS)
1108 AC_SUBST(YACC)
1109
1110
1111 ])