death-to-more-dux-20060802
[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*)
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                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
647                 FSINCLUDES="-I/usr/include/sys/fs"
648                 LEX="lex"
649                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
650                 MT_LIBS="-lpthread"
651                 TXLIBS="-lcurses"
652                 XCFLAGS64="-64 -mips3"
653                 XCFLAGS="-o32"
654                 XLDFLAGS64="-64"
655                 XLDFLAGS="-o32"
656                 SHLIB_LINKER="${CC} -shared"
657                 ;;
658
659         sgi_63)
660                 AFSD_LIBS="/usr/lib/libdwarf.a /usr/lib/libelf.a"
661                 FSINCLUDES="-I/usr/include/sys/fs"
662                 LEX="lex"
663                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
664                 MT_LIBS="-lpthread"
665                 TXLIBS="-lcurses"
666                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
667                 XCFLAGS="-D_OLD_TERMIOS -D_BSD_COMPAT -o32"
668                 XLDFLAGS64="-64"
669                 XLDFLAGS="-o32"
670                 SHLIB_LINKER="${CC} -shared"
671                 ;;
672
673         sgi_64)
674                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
675                 FSINCLUDES="-I/usr/include/sys/fs"
676                 LEX="lex"
677                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
678                 MT_LIBS="-lpthread"
679                 TXLIBS="-lcurses"
680                 XCFLAGS64="-D_BSD_COMPAT -64 -mips3"
681                 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"
682                 XLDFLAGS64="-64"
683                 XLDFLAGS="-n32"
684                 SHLIB_LINKER="${CC} -shared"
685                 ;;
686
687         sgi_65)
688                 AFSD_LIBS="/usr/lib32/libdwarf.a /usr/lib32/libelf.a"
689                 CC="/usr/bin/cc"
690                 CCOBJ="/usr/bin/cc"
691                 FSINCLUDES="-I/usr/include/sys/fs"
692                 LD="/usr/bin/ld"
693                 LEX="lex"
694                 MT_CC="/usr/bin/cc"
695                 MT_CFLAGS='-D_SGI_MP_SOURCE -DAFS_PTHREAD_ENV ${XCFLAGS}'
696                 MT_LIBS="-lpthread"
697                 TXLIBS="-lcurses"
698                 XCFLAGS64="-64 -mips3"
699                 XCFLAGS="-n32 -mips3 -woff 1009,1110,1116,1164,1171,1177,1183,1185,1204,1233,1515,1516,1548,1169,1174,1177,1196,1498,1506,1552"
700                 XLDFLAGS64="-64 -mips3"
701                 XLDFLAGS="-n32 -mips3"
702                 SHLIB_LINKER="${CC} -shared"
703                 ;;
704
705         sparc*_linux*)
706                 KERN_OPTMZ=-O2
707                 LEX="flex -l"
708                 MT_CFLAGS='-DAFS_PTHREAD_ENV -pthread -D_REENTRANT ${XCFLAGS}'
709                 MT_LIBS="-lpthread"
710                 PAM_OPTMZ=-O2
711                 PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
712                 SHLIB_CFLAGS="-fPIC"
713                 SHLIB_LDFLAGS="-shared -Xlinker -x"
714                 TXLIBS="-lncurses"
715                 XCFLAGS="-D_LARGEFILE64_SOURCE"
716                 XCFLAGS64="-D_LARGEFILE64_SOURCE -m64"
717                 XLDFLAGS64="-m64"
718                 YACC="bison -y"
719                 SHLIB_LINKER="${MT_CC} -shared"
720                 ;;
721
722         sun4_413)
723                 CCXPG2="/usr/xpg2bin/cc"
724                 CC="gcc"
725                 CCOBJ="gcc"
726                 LEX="lex"
727                 SHLIB_CFLAGS="-PIC"
728                 TXLIBS="-lcurses -ltermcap"
729                 XCFLAGS=""
730                 XLIBELFA="-lelf"
731                 XLIBKVM="-lkvm"
732                 XLIBS="${LIB_AFSDB}"
733                 LD="ld"
734                 ;;
735
736         sun4x_55)
737                 CC="/opt/SUNWspro/bin/cc"
738                 CCOBJ="/opt/SUNWspro/bin/cc"
739                 LEX="lex"
740                 MT_CC="/opt/SUNWspro/bin/cc"
741                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
742                 MT_LIBS="-lpthread -lsocket"
743                 SHLIB_CFLAGS="-KPIC"
744                 TXLIBS="-lcurses"
745                 XCFLAGS="-dy -Bdynamic"
746                 XLIBELFA="-lelf"
747                 XLIBKVM="-lkvm"
748                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
749                 LD="/usr/ccs/bin/ld"
750                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
751                 LWP_OPTMZ="-g"
752                 ;;
753
754         sun4x_56)
755                 CC="/opt/SUNWspro/bin/cc"
756                 CCOBJ="/opt/SUNWspro/bin/cc"
757                 LEX="lex"
758                 MT_CC="/opt/SUNWspro/bin/cc"
759                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
760                 MT_LIBS="-lpthread -lsocket"
761                 PAM_CFLAGS="-KPIC"
762                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
763                 SHLIB_CFLAGS="-KPIC"
764                 SHLIB_LDFLAGS="-G -Bsymbolic"
765                 TXLIBS="-L/usr/ccs/lib -lcurses"
766                 XCFLAGS="-dy -Bdynamic"
767                 XLIBELFA="-lelf"
768                 LD="/usr/ccs/bin/ld"
769                 XLIBKVM="-lkvm"
770                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
771                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
772                 LWP_OPTMZ="-g"
773                 ;;
774
775         sun4x_57)
776                 CC="/opt/SUNWspro/bin/cc"
777                 CCOBJ="/opt/SUNWspro/bin/cc"
778                 LEX="lex"
779                 LD="/usr/ccs/bin/ld"
780                 MT_CC="/opt/SUNWspro/bin/cc"
781                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
782                 MT_LIBS="-lpthread -lsocket"
783                 PAM_CFLAGS="-KPIC"
784                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
785                 SHLIB_CFLAGS="-KPIC"
786                 SHLIB_LDFLAGS="-G -Bsymbolic"
787                 TXLIBS="-lcurses"
788                 XCFLAGS64='${XCFLAGS} -xarch=v9'
789                 XCFLAGS="-dy -Bdynamic"
790                 XLIBELFA="-lelf"
791                 XLIBKVM="-lkvm"
792                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
793                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
794                 LWP_OPTMZ="-g"
795                 ;;
796
797         sun4x_58)
798                 CC="/opt/SUNWspro/bin/cc"
799                 CCOBJ="/opt/SUNWspro/bin/cc"
800                 LEX="lex"
801                 LD="/usr/ccs/bin/ld"
802                 MT_CC="/opt/SUNWspro/bin/cc"
803                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
804                 MT_LIBS="-lpthread -lsocket"
805                 PAM_CFLAGS="-KPIC"
806                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
807                 SHLIB_CFLAGS="-KPIC"
808                 SHLIB_LDFLAGS="-G -Bsymbolic"
809                 TXLIBS="-lcurses"
810                 XCFLAGS64='${XCFLAGS} -xarch=v9'
811                 XCFLAGS="-dy -Bdynamic"
812                 XLIBELFA="-lelf"
813                 XLIBKVM="-lkvm"
814                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
815                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
816                 LWP_OPTMZ="-g"
817                 ;;
818
819         sun4x_59)
820                 CC="/opt/SUNWspro/bin/cc"
821                 CCOBJ="/opt/SUNWspro/bin/cc"
822                 LEX="lex"
823                 LD="/usr/ccs/bin/ld"
824                 MT_CC="/opt/SUNWspro/bin/cc"
825                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
826                 MT_LIBS="-lpthread -lsocket"
827                 PAM_CFLAGS="-KPIC"
828                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
829                 SHLIB_CFLAGS="-KPIC"
830                 SHLIB_LDFLAGS="-G -Bsymbolic"
831                 TXLIBS="-lcurses"
832                 XCFLAGS64='${XCFLAGS} -xarch=v9'
833                 XCFLAGS="-dy -Bdynamic"
834                 XLIBELFA="-lelf"
835                 XLIBKVM="-lkvm"
836                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
837                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
838                 LWP_OPTMZ="-g"
839                 ;;
840
841         sun4x_510)
842                 CC="/opt/SUNWspro/bin/cc"
843                 CCOBJ="/opt/SUNWspro/bin/cc"
844                 LEX="lex"
845                 LD="/usr/ccs/bin/ld"
846                 MT_CC="/opt/SUNWspro/bin/cc"
847                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
848                 MT_LIBS="-lpthread -lsocket"
849                 PAM_CFLAGS="-KPIC"
850                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
851                 SHLIB_CFLAGS="-KPIC"
852                 SHLIB_LDFLAGS="-G -Bsymbolic"
853                 TXLIBS="-lcurses"
854                 XCFLAGS64='${XCFLAGS} -xarch=v9'
855                 XCFLAGS="-dy -Bdynamic"
856                 XLIBELFA="-lelf"
857                 XLIBKVM="-lkvm"
858                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
859                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
860                 LWP_OPTMZ="-g"
861                 ;;
862
863         sunx86_57)
864                 CC="/opt/SUNWspro/bin/cc"
865                 CCOBJ="/opt/SUNWspro/bin/cc"
866                 LEX="lex"
867                 LD="/usr/ccs/bin/ld"
868                 MT_CC="/opt/SUNWspro/bin/cc"
869                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
870                 MT_LIBS="-lpthread -lsocket"
871                 PAM_CFLAGS="-KPIC"
872                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
873                 SHLIB_CFLAGS="-KPIC"
874                 SHLIB_LDFLAGS="-G -Bsymbolic"
875                 TXLIBS="-lcurses"
876                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
877                 XCFLAGS="-dy -Bdynamic"
878                 XLIBELFA="-lelf"
879                 XLIBKVM="-lkvm"
880                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
881                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
882                 ;;
883
884         sunx86_58)
885                 CC="/opt/SUNWspro/bin/cc"
886                 CCOBJ="/opt/SUNWspro/bin/cc"
887                 LEX="lex"
888                 LD="/usr/ccs/bin/ld"
889                 MT_CC="/opt/SUNWspro/bin/cc"
890                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
891                 MT_LIBS="-lpthread -lsocket"
892                 PAM_CFLAGS="-KPIC"
893                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
894                 SHLIB_CFLAGS="-KPIC"
895                 SHLIB_LDFLAGS="-G -Bsymbolic"
896                 TXLIBS="-lcurses"
897                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
898                 XCFLAGS="-dy -Bdynamic"
899                 XLIBELFA="-lelf"
900                 XLIBKVM="-lkvm"
901                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
902                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
903                 ;;
904
905         sunx86_59)
906                 CC="/opt/SUNWspro/bin/cc"
907                 CCOBJ="/opt/SUNWspro/bin/cc"
908                 LEX="lex"
909                 LD="/usr/ccs/bin/ld"
910                 MT_CC="/opt/SUNWspro/bin/cc"
911                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
912                 MT_LIBS="-lpthread -lsocket"
913                 PAM_CFLAGS="-KPIC"
914                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
915                 SHLIB_CFLAGS="-KPIC"
916                 SHLIB_LDFLAGS="-G -Bsymbolic"
917                 TXLIBS="-lcurses"
918                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
919                 XCFLAGS="-dy -Bdynamic"
920                 XLIBELFA="-lelf"
921                 XLIBKVM="-lkvm"
922                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
923                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
924                 ;;
925
926         sunx86_510)
927                 CC="/opt/SUNWspro/bin/cc"
928                 CCOBJ="/opt/SUNWspro/bin/cc"
929                 LEX="lex"
930                 LD="/usr/ccs/bin/ld"
931                 MT_CC="/opt/SUNWspro/bin/cc"
932                 MT_CFLAGS='-mt -DAFS_PTHREAD_ENV ${XCFLAGS}'
933                 MT_LIBS="-lpthread -lsocket"
934                 PAM_CFLAGS="-KPIC"
935                 PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
936                 SHLIB_CFLAGS="-KPIC"
937                 SHLIB_LDFLAGS="-G -Bsymbolic"
938                 TXLIBS="-lcurses"
939                 XCFLAGS64='${XCFLAGS} -xarch=amd64'
940                 XCFLAGS="-dy -Bdynamic"
941                 XLIBELFA="-lelf"
942                 XLIBKVM="-lkvm"
943                 XLIBS="${LIB_AFSDB} -lsocket -lnsl -lintl -ldl"
944                 SHLIB_LINKER="${CC} -G -dy -Wl,-M\$(srcdir)/mapfile -Bsymbolic -z text"
945                 ;;
946 esac
947
948 #
949 # Special build targets
950 #
951 case $AFS_SYSNAME in
952         sgi_6*)
953                 IRIX_SYS_SYSTM_H_HAS_MEM_FUNCS
954                 XFS_SIZE_CHECK="xfs_size_check"
955                 install_XFS_SIZE_CHECK='$(DESTDIR)${afssrvsbindir}/xfs_size_check'
956                 dest_XFS_SIZE_CHECK='$(DEST)/root.server/usr/afs/bin/xfs_size_check'
957         
958                 AC_SUBST(XFS_SIZE_CHECK)
959                 AC_SUBST(install_XFS_SIZE_CHECK)
960                 AC_SUBST(dest_XFS_SIZE_CHECK)
961         ;;
962 esac
963
964
965
966 dnl pthreads fixes
967 case $AFS_SYSNAME in
968 dnl we'll go ahead and turn on XOPEN2K and ISO_C99
969 dnl if this causes problems, we should scale back to _XOPEN_SOURCE=500
970         *linux*)
971                 MT_CFLAGS="${MT_CFLAGS} -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
972         ;;
973 esac
974
975
976 dnl Disable the default for debugging/optimization if not enabled
977 if test "x$enable_debug_kernel" = "xno"; then
978   KERN_DBG=
979 fi
980
981 if test "x$enable_optimize_kernel" = "xno"; then
982   KERN_OPTMZ=
983 fi
984
985 if test "x$enable_debug" = "xno"; then
986   DBG=
987 fi
988
989 if test "x$enable_optimize" = "xno"; then
990   OPTMZ=
991 fi
992
993 if test "x$enable_debug_lwp" = "xno"; then
994   LWP_DBG=
995 fi
996
997 if test "x$enable_optimize_lwp" = "xno"; then
998   LWP_OPTMZ=
999 fi
1000
1001 AC_SUBST(CCXPG2)
1002 AC_SUBST(CCOBJ)
1003 AC_SUBST(AFSD_LIBS)
1004 AC_SUBST(AFSD_LDFLAGS)
1005 AC_SUBST(AIX64)
1006 AC_SUBST(AR)
1007 AC_SUBST(AS)
1008 AC_SUBST(CP)
1009 AC_SUBST(DBG)
1010 AC_SUBST(FSINCLUDES)
1011 AC_SUBST(KERN_DBG)
1012 AC_SUBST(KERN_OPTMZ)
1013 AC_SUBST(LD)
1014 AC_SUBST(LEX)
1015 AC_SUBST(LWP_DBG)
1016 AC_SUBST(LWP_OPTMZ)
1017 AC_SUBST(MT_CC)
1018 AC_SUBST(MT_CFLAGS)
1019 AC_SUBST(MT_LIBS)
1020 AC_SUBST(MV)
1021 AC_SUBST(OPTMZ)
1022 AC_SUBST(PAM_CFLAGS)
1023 AC_SUBST(PAM_LIBS)
1024 AC_SUBST(PAM_DBG)
1025 AC_SUBST(PAM_OPTMZ)
1026 AC_SUBST(RANLIB)
1027 AC_SUBST(REGEX_OBJ)
1028 AC_SUBST(RM)
1029 AC_SUBST(SHLIB_CFLAGS)
1030 AC_SUBST(SHLIB_LDFLAGS)
1031 AC_SUBST(SHLIB_LINKER)
1032 AC_SUBST(SHLIB_SUFFIX)
1033 AC_SUBST(TXLIBS)
1034 AC_SUBST(VFSCK_CFLAGS)
1035 AC_SUBST(XCFLAGS)
1036 AC_SUBST(XCFLAGS64)
1037 AC_SUBST(XLDFLAGS)
1038 AC_SUBST(XLDFLAGS64)
1039 AC_SUBST(XLIBELFA)
1040 AC_SUBST(XLIBKVM)
1041 AC_SUBST(XLIBS)
1042 AC_SUBST(YACC)
1043
1044
1045 ])