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