forked from SchedMD/slurm
-
Notifications
You must be signed in to change notification settings - Fork 7
/
configure.ac
605 lines (525 loc) · 16.4 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
# This file is to be processed with autoconf to generate a configure script
dnl Prologue
dnl
AC_INIT(slurm, m4_esyscmd([perl -ne 'print,exit if s/^\s*VERSION:\s*(\d*.\d*).\S*/\1/i' ./META | sed 's/^v//' | tr '-' '_' | tr -d '\n']), [], [], [https://slurm.schedmd.com])
AC_PREREQ(2.59)
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([auxdir])
AC_CONFIG_MACRO_DIR([auxdir])
AC_CANONICAL_TARGET([])
dnl the is a generic flag to avoid building things
AM_CONDITIONAL(DONT_BUILD, test "1" = "0")
# Determine project/version from META file.
# Sets PACKAGE, VERSION, SLURM_VERSION
X_AC_SLURM_VERSION
dnl Initialize Automake
dnl
dnl If you ever change to use AM_INIT_AUTOMAKE(subdir-objects) edit
dnl auxdir/slurm.m4 to not define VERSION
dnl
AM_INIT_AUTOMAKE(no-define)
AM_MAINTAINER_MODE
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_HEADERS([slurm/slurm.h])
X_AC_RPATH
dnl This sets the first compiler to be C instead of C++.
X_AC_DATABASES
dnl Check to see if this architecture should use slurm_* prefix function
dnl aliases for plugins.
dnl
case "$host" in
*darwin*) AC_DEFINE(USE_ALIAS, 0,
[Define slurm_ prefix function aliases for plugins]) ;;
*) AC_DEFINE(USE_ALIAS, 1,
[Define slurm_ prefix function aliases for plugins]) ;;
esac
dnl Checks for programs.
dnl
AC_PROG_CC
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG([0.9.0])
dnl Silence warning: ar: 'u' modifier ignored since 'D' is the default
dnl
AC_SUBST(AR_FLAGS, [cr])
AM_CONDITIONAL(WITH_CXX, test -n "$ac_ct_CXX")
AM_CONDITIONAL(WITH_GNU_LD, test "$with_gnu_ld" = "yes")
AC_PATH_PROG([SLEEP_CMD], [sleep], [/bin/sleep])
AC_DEFINE_UNQUOTED([SLEEP_CMD], ["$SLEEP_CMD"], [Define path to sleep command])
AC_PATH_PROG([SUCMD], [su], [/bin/su])
AC_DEFINE_UNQUOTED([SUCMD], ["$SUCMD"], [Define path to su command])
dnl Checks for libraries
dnl
AC_SEARCH_LIBS([socket], [socket])
AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_SEARCH_LIBS([hstrerror], [resolv])
AC_SEARCH_LIBS([kstat_open], [kstat])
dnl Checks for header files.
dnl
AC_CHECK_HEADERS(mcheck.h values.h socket.h sys/socket.h \
stdbool.h sys/ipc.h sys/shm.h sys/sem.h errno.h \
stdlib.h dirent.h pthread.h sys/prctl.h \
sysint.h inttypes.h termcap.h netdb.h sys/socket.h \
sys/systemcfg.h ncurses.h curses.h sys/dr.h sys/vfs.h \
pam/pam_appl.h security/pam_appl.h sys/sysctl.h \
pty.h utmp.h \
sys/syslog.h linux/sched.h \
kstat.h paths.h limits.h sys/statfs.h sys/ptrace.h \
float.h sys/statvfs.h
)
AC_HEADER_SYS_WAIT
AC_HEADER_TIME
AC_HEADER_STDC
# Workaround for transition of autoconf/glibc issues in deprecation of the
# definitions major, minor, makedev by sys/types.h vs sys/sysmacros.h
old_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror"
AC_HEADER_MAJOR
CFLAGS=$old_CFLAGS
dnl Checks for structures.
dnl
X_AC__SYSTEM_CONFIGURATION
dnl Check for dlfcn
dnl
X_AC_DLFCN
dnl check to see if glibc's program_invocation_name is available:
dnl
X_AC_SLURM_PROGRAM_INVOCATION_NAME
dnl Check if ptrace takes four or five arguments
dnl
X_AC_PTRACE
dnl Check of sched_getaffinity exists and it's argument count
dnl
X_AC_AFFINITY
dnl
dnl Check for PAM module support
X_AC_PAM
dnl
dnl Check to see how we link to libslurm
X_AC_LIBSLURM
dnl
dnl Check for ISO compliance
X_AC_ISO
dnl
dnl Check if we want to load .login with sbatch --get-user-env option
X_AC_ENV_LOGIC
dnl Checks for types.
dnl
X_AC_SLURM_BIGENDIAN
dnl Check for C99 compatibility
dnl
X_AC_C99
dnl check for presumed size of uid_t and gid_t
X_AC_UID_GID_SIZE_CHECK
dnl Check for JSON parser
X_AC_JSON
dnl Checks for compiler characteristics.
dnl
AC_PROG_GCC_TRADITIONAL([])
AX_GCC_BUILTIN(__builtin_clzll)
AX_GCC_BUILTIN(__builtin_ctzll)
AX_GCC_BUILTIN(__builtin_popcountll)
dnl checks for library functions.
dnl
AC_FUNC_STRERROR_R
AC_CHECK_FUNCS( \
fdatasync \
hstrerror \
strerror \
mtrace \
strndup \
strlcpy \
strsignal \
inet_aton \
inet_ntop \
inet_pton \
setproctitle \
sysctlbyname \
cfmakeraw \
setresuid \
get_current_dir_name \
faccessat \
eaccess \
statvfs \
statfs \
)
AC_CHECK_DECLS([hstrerror, strsignal, sys_siglist])
dnl Skip pthread checks on macOS as support is always enabled,
dnl and ACX_PTHREAD will inject flags that will throw spurious warnings.
case "$host" in
*-darwin*)
;;
*)
ACX_PTHREAD([], AC_MSG_ERROR([Error: Cannot figure out how to use pthreads!]))
;;
esac
LDFLAGS="$LDFLAGS "
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
LIBS="$PTHREAD_LIBS $LIBS"
X_AC_DIMENSIONS
X_AC_OFED
AX_LIB_HDF5()
AM_CONDITIONAL(BUILD_HDF5, test "$with_hdf5" = "yes")
# Some older systems (Debian/Ubuntu/...) configure HDF5 with
# --with-default-api-version=v16 which creates problems for slurm
# because slurm uses the 1.8 API. By defining this CPP macro we get
# the 1.8 API.
AC_DEFINE([H5_NO_DEPRECATED_SYMBOLS], [1], [Make sure we get the 1.8 HDF5 API])
AX_CHECK_ZLIB([], [])
X_AC_LZ4
X_AC_HWLOC
X_AC_NVML
X_AC_PMIX
X_AC_FREEIPMI
X_AC_RRDTOOL
X_AC_UCX
X_AC_X11
X_AC_NCURSES
AM_CONDITIONAL(HAVE_SOME_CURSES, test "x$ac_have_some_curses" = "xyes")
AC_SUBST(HAVE_SOME_CURSES)
X_AC_CGROUP
#
# Tests for Check
#
PKG_CHECK_MODULES([CHECK], [check >= 0.9.8], [ac_have_check="yes"], [ac_have_check="no"])
AM_CONDITIONAL(HAVE_CHECK, test "x$ac_have_check" = "xyes")
#
# Tests for GTK+
#
# use the correct libs if running on 64bit
if test -d "/usr/lib64/pkgconfig"; then
PKG_CONFIG_PATH="/usr/lib64/pkgconfig/:$PKG_CONFIG_PATH"
fi
if test -d "/opt/gnome/lib64/pkgconfig"; then
PKG_CONFIG_PATH="/opt/gnome/lib64/pkgconfig/:$PKG_CONFIG_PATH"
fi
AM_PATH_GLIB_2_0([2.7.1], [ac_glib_test="yes"], [ac_glib_test="no"], [gthread])
if test ${glib_config_minor_version=0} -ge 32 ; then
AC_DEFINE([GLIB_NEW_THREADS], 1, [Define to 1 if using glib-2.32.0 or higher])
fi
AM_PATH_GTK_2_0([2.7.1], [ac_gtk_test="yes"], [ac_gtk_test="no"], [gthread])
if test ${gtk_config_minor_version=0} -ge 10 ; then
AC_DEFINE([GTK2_USE_RADIO_SET], 1, [Define to 1 if using gtk+-2.10.0 or higher])
fi
if test ${gtk_config_minor_version=0} -ge 12 ; then
AC_DEFINE([GTK2_USE_TOOLTIP], 1, [Define to 1 if using gtk+-2.12.0 or higher])
fi
if test ${gtk_config_minor_version=0} -ge 14 ; then
AC_DEFINE([GTK2_USE_GET_FOCUS], 1, [Define to 1 if using gtk+-2.14.0 or higher])
fi
if test "x$ac_glib_test" != "xyes" -o "x$ac_gtk_test" != "xyes"; then
AC_MSG_WARN([cannot build sview without gtk library]);
fi
AM_CONDITIONAL(BUILD_SVIEW, [test "x$ac_glib_test" = "xyes"] && [test "x$ac_gtk_test" = "xyes"])
X_AC_CRAY
dnl checks for system services.
dnl
dnl checks for system-specific stuff.
dnl
dnl check for how to emulate setproctitle
dnl
X_AC_SETPROCTITLE
dnl check for debug compilation, must follow X_AC_CRAY
dnl
X_AC_DEBUG
dnl check for slurmctld, slurmd and slurmdbd default ports,
dnl and default number of slurmctld ports
dnl
X_AC_SLURM_PORTS([6817], [6818], [6819], [1])
dnl add SLURM_PREFIX to config.h
dnl
if test "x$prefix" = "xNONE" ; then
AC_DEFINE_UNQUOTED(SLURM_PREFIX, "/usr/local", [Define Slurm installation prefix])
else
AC_DEFINE_UNQUOTED(SLURM_PREFIX, "$prefix", [Define Slurm installation prefix])
fi
AC_SUBST(SLURM_PREFIX)
dnl check for netloc library
dnl
X_AC_NETLOC
dnl check for lua library
dnl
X_AC_LUA
dnl check for presence of the man2html command
dnl
X_AC_MAN2HTML
AM_CONDITIONAL(HAVE_MAN2HTML, test "x$ac_have_man2html" = "xyes")
AC_SUBST(HAVE_MAN2HTML)
dnl check if we can use standard printf functions
dnl
X_AC_PRINTF_NULL
dnl Check for whether to include readline support
dnl
X_AC_READLINE
dnl
dnl Check for systemd presence, version and system unit dir
dnl
X_AC_SYSTEMD
dnl
dnl Check for compilation of Slurm auth modules:
dnl
X_AC_MUNGE
dnl
dnl Check if multiple-slurmd support is requested and define MULTIPLE_SLURMD
dnl if it is.
dnl
AC_MSG_CHECKING(whether to enable multiple-slurmd support)
AC_ARG_ENABLE([multiple-slurmd],
AS_HELP_STRING(--enable-multiple-slurmd,enable multiple-slurmd support),
[ case "$enableval" in
yes) multiple_slurmd=yes ;;
no) multiple_slurmd=no ;;
*) AC_MSG_ERROR([bad value "$enableval" for --enable-multiple-slurmd]);;
esac ]
)
if test "x$multiple_slurmd" = "xyes"; then
AC_DEFINE([MULTIPLE_SLURMD], [1], [Enable multiple slurmd on one node])
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
fi
savedLIBS="$LIBS"
LIBS="-lutil $LIBS"
AC_CHECK_LIB(util, openpty, [UTIL_LIBS="-lutil"], [])
AC_SUBST(UTIL_LIBS)
LIBS="$savedLIBS"
dnl
dnl Check for compilation of Slurm with CURL support:
dnl
LIBCURL_CHECK_CONFIG
dnl
dnl Set some configuration based upon multiple configuration parameters
dnl
ac_build_smap="no"
if test "x$ac_have_some_curses" = "xyes" ; then
ac_build_smap="yes"
fi
AM_CONDITIONAL(BUILD_SMAP, test "x$ac_build_smap" = "xyes")
dnl Check word size so we can deprecate 32-bit systems
AC_CHECK_SIZEOF([void *], 8)
dnl This needs to come last so it can detect deprecated options in use.
X_AC_DEPRECATED
dnl All slurm Makefiles:
AC_CONFIG_FILES([Makefile
auxdir/Makefile
contribs/Makefile
contribs/cray/Makefile
contribs/cray/csm/Makefile
contribs/cray/slurmsmwd/Makefile
contribs/lua/Makefile
contribs/mic/Makefile
contribs/nss_slurm/Makefile
contribs/pam/Makefile
contribs/pam_slurm_adopt/Makefile
contribs/perlapi/Makefile
contribs/perlapi/libslurm/Makefile
contribs/perlapi/libslurm/perl/Makefile.PL
contribs/perlapi/libslurmdb/Makefile
contribs/perlapi/libslurmdb/perl/Makefile.PL
contribs/seff/Makefile
contribs/torque/Makefile
contribs/openlava/Makefile
contribs/sgather/Makefile
contribs/sgi/Makefile
contribs/simulator/Makefile
contribs/sjobexit/Makefile
contribs/pmi/Makefile
contribs/pmi2/Makefile
doc/Makefile
doc/man/Makefile
doc/man/man1/Makefile
doc/man/man3/Makefile
doc/man/man5/Makefile
doc/man/man8/Makefile
doc/html/Makefile
doc/html/configurator.html
doc/html/configurator.easy.html
etc/Makefile
src/Makefile
src/api/Makefile
src/bcast/Makefile
src/common/Makefile
src/layouts/Makefile
src/layouts/power/Makefile
src/layouts/unit/Makefile
src/database/Makefile
src/sacct/Makefile
src/sacctmgr/Makefile
src/sreport/Makefile
src/salloc/Makefile
src/sbatch/Makefile
src/sbcast/Makefile
src/sattach/Makefile
src/scancel/Makefile
src/scontrol/Makefile
src/sdiag/Makefile
src/sinfo/Makefile
src/slurmctld/Makefile
src/slurmd/Makefile
src/slurmd/common/Makefile
src/slurmd/slurmd/Makefile
src/slurmd/slurmstepd/Makefile
src/slurmdbd/Makefile
src/smap/Makefile
src/sprio/Makefile
src/squeue/Makefile
src/srun/Makefile
src/srun/libsrun/Makefile
src/sshare/Makefile
src/sstat/Makefile
src/strigger/Makefile
src/sview/Makefile
src/plugins/Makefile
src/plugins/accounting_storage/Makefile
src/plugins/accounting_storage/common/Makefile
src/plugins/accounting_storage/filetxt/Makefile
src/plugins/accounting_storage/mysql/Makefile
src/plugins/accounting_storage/none/Makefile
src/plugins/accounting_storage/slurmdbd/Makefile
src/plugins/acct_gather_energy/Makefile
src/plugins/acct_gather_energy/cray_aries/Makefile
src/plugins/acct_gather_energy/rapl/Makefile
src/plugins/acct_gather_energy/ibmaem/Makefile
src/plugins/acct_gather_energy/ipmi/Makefile
src/plugins/acct_gather_energy/none/Makefile
src/plugins/acct_gather_energy/xcc/Makefile
src/plugins/acct_gather_interconnect/Makefile
src/plugins/acct_gather_interconnect/ofed/Makefile
src/plugins/acct_gather_interconnect/none/Makefile
src/plugins/acct_gather_filesystem/Makefile
src/plugins/acct_gather_filesystem/lustre/Makefile
src/plugins/acct_gather_filesystem/none/Makefile
src/plugins/acct_gather_profile/Makefile
src/plugins/acct_gather_profile/hdf5/Makefile
src/plugins/acct_gather_profile/hdf5/sh5util/Makefile
src/plugins/acct_gather_profile/influxdb/Makefile
src/plugins/acct_gather_profile/none/Makefile
src/plugins/auth/Makefile
src/plugins/auth/munge/Makefile
src/plugins/auth/none/Makefile
src/plugins/burst_buffer/Makefile
src/plugins/burst_buffer/common/Makefile
src/plugins/burst_buffer/datawarp/Makefile
src/plugins/burst_buffer/generic/Makefile
src/plugins/checkpoint/Makefile
src/plugins/checkpoint/none/Makefile
src/plugins/checkpoint/ompi/Makefile
src/plugins/cli_filter/Makefile
src/plugins/cli_filter/none/Makefile
src/plugins/core_spec/Makefile
src/plugins/core_spec/cray_aries/Makefile
src/plugins/core_spec/none/Makefile
src/plugins/cred/Makefile
src/plugins/cred/munge/Makefile
src/plugins/cred/none/Makefile
src/plugins/ext_sensors/Makefile
src/plugins/ext_sensors/rrd/Makefile
src/plugins/ext_sensors/none/Makefile
src/plugins/gpu/Makefile
src/plugins/gpu/generic/Makefile
src/plugins/gpu/nvml/Makefile
src/plugins/gres/Makefile
src/plugins/gres/common/Makefile
src/plugins/gres/gpu/Makefile
src/plugins/gres/nic/Makefile
src/plugins/gres/mic/Makefile
src/plugins/gres/mps/Makefile
src/plugins/jobacct_gather/Makefile
src/plugins/jobacct_gather/common/Makefile
src/plugins/jobacct_gather/linux/Makefile
src/plugins/jobacct_gather/cgroup/Makefile
src/plugins/jobacct_gather/none/Makefile
src/plugins/jobcomp/Makefile
src/plugins/jobcomp/elasticsearch/Makefile
src/plugins/jobcomp/filetxt/Makefile
src/plugins/jobcomp/none/Makefile
src/plugins/jobcomp/script/Makefile
src/plugins/jobcomp/mysql/Makefile
src/plugins/job_container/Makefile
src/plugins/job_container/cncu/Makefile
src/plugins/job_container/none/Makefile
src/plugins/job_submit/Makefile
src/plugins/job_submit/all_partitions/Makefile
src/plugins/job_submit/cray_aries/Makefile
src/plugins/job_submit/defaults/Makefile
src/plugins/job_submit/logging/Makefile
src/plugins/job_submit/lua/Makefile
src/plugins/job_submit/partition/Makefile
src/plugins/job_submit/pbs/Makefile
src/plugins/job_submit/require_timelimit/Makefile
src/plugins/job_submit/throttle/Makefile
src/plugins/launch/Makefile
src/plugins/launch/slurm/Makefile
src/plugins/mcs/Makefile
src/plugins/mcs/account/Makefile
src/plugins/mcs/group/Makefile
src/plugins/mcs/none/Makefile
src/plugins/mcs/user/Makefile
src/plugins/node_features/Makefile
src/plugins/node_features/knl_cray/Makefile
src/plugins/node_features/knl_generic/Makefile
src/plugins/power/Makefile
src/plugins/power/common/Makefile
src/plugins/power/cray_aries/Makefile
src/plugins/power/none/Makefile
src/plugins/preempt/Makefile
src/plugins/preempt/none/Makefile
src/plugins/preempt/partition_prio/Makefile
src/plugins/preempt/qos/Makefile
src/plugins/priority/Makefile
src/plugins/priority/basic/Makefile
src/plugins/priority/multifactor/Makefile
src/plugins/proctrack/Makefile
src/plugins/proctrack/cray_aries/Makefile
src/plugins/proctrack/cgroup/Makefile
src/plugins/proctrack/pgid/Makefile
src/plugins/proctrack/linuxproc/Makefile
src/plugins/route/Makefile
src/plugins/route/default/Makefile
src/plugins/route/topology/Makefile
src/plugins/sched/Makefile
src/plugins/sched/backfill/Makefile
src/plugins/sched/builtin/Makefile
src/plugins/sched/hold/Makefile
src/plugins/select/Makefile
src/plugins/select/cons_res/Makefile
src/plugins/select/cons_tres/Makefile
src/plugins/select/cray_aries/Makefile
src/plugins/select/linear/Makefile
src/plugins/select/other/Makefile
src/plugins/site_factor/Makefile
src/plugins/site_factor/none/Makefile
src/plugins/slurmctld/Makefile
src/plugins/slurmctld/nonstop/Makefile
src/plugins/switch/Makefile
src/plugins/switch/cray_aries/Makefile
src/plugins/switch/generic/Makefile
src/plugins/switch/none/Makefile
src/plugins/mpi/Makefile
src/plugins/mpi/none/Makefile
src/plugins/mpi/openmpi/Makefile
src/plugins/mpi/pmi2/Makefile
src/plugins/mpi/pmix/Makefile
src/plugins/task/Makefile
src/plugins/task/affinity/Makefile
src/plugins/task/cgroup/Makefile
src/plugins/task/cray_aries/Makefile
src/plugins/task/none/Makefile
src/plugins/topology/Makefile
src/plugins/topology/3d_torus/Makefile
src/plugins/topology/hypercube/Makefile
src/plugins/topology/node_rank/Makefile
src/plugins/topology/none/Makefile
src/plugins/topology/tree/Makefile
testsuite/Makefile
testsuite/expect/Makefile
testsuite/slurm_unit/Makefile
testsuite/slurm_unit/api/Makefile
testsuite/slurm_unit/api/manual/Makefile
testsuite/slurm_unit/common/Makefile
testsuite/slurm_unit/common/slurm_protocol_pack/Makefile
testsuite/slurm_unit/common/slurmdb_pack/Makefile
]
)
AC_OUTPUT