[1] | 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)} |
---|
| 21 | AC_ARG_WITH(drmaa-utils, AC_HELP_STRING([--with-drmaa-utils=...], |
---|
| 22 | [used only to detect that drmaa utils is sub packaged])) |
---|
| 23 | AM_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: |
---|
| 32 | AC_PROG_YACC |
---|
| 33 | AX_GPERF |
---|
| 34 | AC_CHECK_PROGS([RAGEL], [ragel], [sh m4/missing-dev-prog.sh ragel]) |
---|
| 35 | |
---|
| 36 | \# reStructuredText processing: |
---|
| 37 | AX_DOCUTILS |
---|
| 38 | \# documentation generation: |
---|
| 39 | AC_CHECK_PROGS([DOT], [dot]) |
---|
| 40 | if test x$DOT != x; then |
---|
| 41 | HAVE_DOT=yes |
---|
| 42 | else |
---|
| 43 | HAVE_DOT=no |
---|
| 44 | fi |
---|
| 45 | AC_SUBST([HAVE_DOT]) |
---|
| 46 | #end raw |
---|
| 47 | #end block ac_programs |
---|
| 48 | |
---|
| 49 | #block ac_system |
---|
| 50 | ${Autotools.ac_system(self)} |
---|
| 51 | |
---|
| 52 | AC_C_BIGENDIAN_CROSS |
---|
| 53 | #end block ac_system |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | #block ac_libraries |
---|
| 57 | #raw |
---|
| 58 | ACX_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 |
---|
| 64 | AC_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]) |
---|
| 65 | AC_HEADER_STDBOOL |
---|
| 66 | AC_HEADER_TIME |
---|
| 67 | #end block ac_headers |
---|
| 68 | |
---|
| 69 | #block ac_types |
---|
| 70 | AC_TYPE_PID_T |
---|
| 71 | AC_TYPE_SIZE_T |
---|
| 72 | AC_TYPE_SSIZE_T |
---|
| 73 | AC_TYPE_MODE_T |
---|
| 74 | AC_TYPE_UINT16_T |
---|
| 75 | AC_TYPE_UINT32_T |
---|
| 76 | AC_TYPE_UINT8_T |
---|
| 77 | #end block ac_types |
---|
| 78 | |
---|
| 79 | #block ac_structures |
---|
| 80 | AC_STRUCT_TM |
---|
| 81 | #end block ac_structures |
---|
| 82 | |
---|
| 83 | #block ac_functions |
---|
| 84 | AC_FUNC_ALLOCA |
---|
| 85 | AC_FUNC_MALLOC |
---|
| 86 | AC_FUNC_REALLOC |
---|
| 87 | AC_FUNC_STRERROR_R |
---|
| 88 | AC_FUNC_STRFTIME |
---|
| 89 | AC_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]) |
---|
| 104 | AX_FUNC_GETTID |
---|
| 105 | AX_FUNC_VA_COPY |
---|
| 106 | AC_SEARCH_LIBS([backtrace], [execinfo]) |
---|
| 107 | #end block ac_functions |
---|
| 108 | |
---|
| 109 | #block ac_config_files |
---|
| 110 | AC_CONFIG_FILES([ |
---|
| 111 | Makefile |
---|
| 112 | drmaa_utils/Makefile |
---|
| 113 | test/Makefile |
---|
| 114 | Doxyfile |
---|
| 115 | ]) |
---|
| 116 | AC_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} |
---|
| 127 | SUBDIRS = 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 |
---|