source: trunk/drmaa_utils/project/project.tmpl @ 1

Revision 1, 2.7 KB checked in by mmamonski, 13 years ago (diff)

Torque/PBS DRMAA initial commit

Line 
1## $Id$
2#encoding utf-8
3#extends project_template.templates.Autotools
4
5#def generated_files
6#return (Autotools.generated_files(self)
7  | set([
8                "m4/ac_c_bigendian_cross.m4",
9                "m4/acx_pthread.m4",
10                "m4/ax_docutils.m4",
11                "m4/ax_func_gettid.m4",
12                "m4/ax_func_va_copy.m4",
13                "m4/ax_gperf.m4",
14                "m4/bison_ylwrap.sh",
15                "Makefile.am",
16                ]))
17#end def
18
19#block ac_arguments
20${Autotools.ac_arguments(self)}
21AC_ARG_WITH(drmaa-utils, AC_HELP_STRING([--with-drmaa-utils=...],
22                [used only to detect that drmaa utils is sub packaged]))
23AM_CONDITIONAL([DRMAA_UTILS_STANDALONE],
24                [test x\$with_drmaa_utils = x])
25#end block ac_arguments
26
27#block ac_programs
28${Autotools.ac_programs(self)}
29
30#raw
31\# code generation tools:
32AC_PROG_YACC
33AX_GPERF
34AC_CHECK_PROGS([RAGEL], [ragel], [sh m4/missing-dev-prog.sh ragel])
35
36\# reStructuredText processing:
37AX_DOCUTILS
38\# documentation generation:
39AC_CHECK_PROGS([DOT], [dot])
40if test x$DOT != x; then
41        HAVE_DOT=yes
42else
43        HAVE_DOT=no
44fi
45AC_SUBST([HAVE_DOT])
46#end raw
47#end block ac_programs
48
49#block ac_system
50${Autotools.ac_system(self)}
51
52AC_C_BIGENDIAN_CROSS
53#end block ac_system
54
55
56#block ac_libraries
57#raw
58ACX_PTHREAD([CFLAGS="$CFLAGS $PTHREAD_CFLAGS" LIBS="$PTHREAD_LIBS $LIBS"],
59                [AC_MSG_ERROR([POSIX threads library is required by DRMAA.])])
60#end raw
61#end block ac_libraries
62
63#block ac_headers
64AC_CHECK_HEADERS([execinfo.h fcntl.h inttypes.h libintl.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])
65AC_HEADER_STDBOOL
66AC_HEADER_TIME
67#end block ac_headers
68
69#block ac_types
70AC_TYPE_PID_T
71AC_TYPE_SIZE_T
72AC_TYPE_SSIZE_T
73AC_TYPE_MODE_T
74AC_TYPE_UINT16_T
75AC_TYPE_UINT32_T
76AC_TYPE_UINT8_T
77#end block ac_types
78
79#block ac_structures
80AC_STRUCT_TM
81#end block ac_structures
82
83#block ac_functions
84AC_FUNC_ALLOCA
85AC_FUNC_MALLOC
86AC_FUNC_REALLOC
87AC_FUNC_STRERROR_R
88AC_FUNC_STRFTIME
89AC_CHECK_FUNCS([ \
90        asprintf \
91        fstat \
92        getcwd \
93        gettimeofday \
94        localtime_r \
95        memset \
96        mkstemp \
97        strchr \
98        strdup \
99        strerror \
100        strlcpy \
101        strndup \
102        strstr \
103        vasprintf])
104AX_FUNC_GETTID
105AX_FUNC_VA_COPY
106AC_SEARCH_LIBS([backtrace], [execinfo])
107#end block ac_functions
108
109#block ac_config_files
110AC_CONFIG_FILES([
111        Makefile
112        drmaa_utils/Makefile
113        test/Makefile
114        Doxyfile
115])
116AC_CONFIG_HEADERS([config.h])
117#end block ac_config_files
118
119## #block ac_success_message
120## ${Autotools.ac_success_message(self)}
121## #end block ac_success_message
122
123
124#block top_makefile_am
125${makefile_am_header}
126${top_makefile_am_specific}
127SUBDIRS = drmaa_utils test
128#end block top_makefile_am
129
130#block boring_project_specific
131^drmaa_utils/conf_tab.c$
132^drmaa_utils/conf_tab.h$
133^drmaa_utils/datetime_tab.c$
134^drmaa_utils/datetime_tab.h$
135^drmaa_utils/drmaa_attrib.c$
136^test/test_exception$
137#end block boring_project_specific
Note: See TracBrowser for help on using the repository browser.