Install msysDTK-1.0.1
[msysgit.git] / share / autogen / conftest.tpl
blob5fda9dacbd45e241a9e2ba6e576b7a4616ddf52c
1 [= AutoGen5 template -*- Mode: M4 -*-
3 null
5 #  Maintainer:        Bruce Korb <bkorb@gnu.org>
6 #  Created:           Tue Nov 24 01:07:30 1998
7 #  Last Modified:     $Date: 2002/08/24 03:14:49 $
8 #             by: bkorb
10 # This template uses the following definitions:
12 # 1.  group  - defines a prefix for the names.  The default is "ac".
13 # 2.  test   - an autoconf test to perform:
14 # 2.a  name  - name of the test
15 # 2.b  type  - "run", "link" or "compile"
16 # 2.c  check - short display name for user entertainment
17 # 2.d  code  - the test code to compile, link and/or run.
18 # 2.e  doc   - useful explanitory text
19 # 2.f  require - if there are conftest prerequisites
20 # 2.g  author  - [optional] name of test's author
22 (setenv "SHELL" "/bin/sh")
24 =][=
26 INCLUDE "confmacs.tpl"  =][=
28 (if (exist? "output-file")
29     (begin
30       (define ofile (get "output-file"))
31       (define separate-macros #f)
32       (shellf "echo sending output to %s >&2" ofile)
33     )
35     (begin
36       (define ofile
37          (string-append (string-downcase! (get "group")) "_macros.m4") )
38       (define separate-macros #t)
39 )   )
40 (out-switch ofile)
41 (define ofile-list ofile)
42 (define do-all-name (string-append
43         "INVOKE_" (string-upcase! (get "group")) "_MACROS" ))
44 (dne "dnl " "dnl ")     =]
45 dnl
46 dnl @synopsis  [=(. do-all-name)=]
47 dnl
48 dnl  This macro will invoke the AutoConf macros specified in [=(def-file)=]
49 dnl  that have not been disabled with "omit-invocation".
50 dnl[=
52 (if (not separate-macros) (out-push-new)) =]
53 AC_DEFUN([[=(. do-all-name)=]],[[=
55 FOR test        =][=
56   preamble      =][=
57   (if separate-macros
58      (begin
59         (set! ofile (string-append (string-downcase mac-name) ".m4" ))
60         (out-push-new ofile)
61         (set! ofile-list (string-append ofile-list "\n" ofile))
62      )
63      (out-suspend "main-macro")
64   )             =][=
66   emit-macro    =]
67 [=(if separate-macros (out-pop) (out-resume "main-macro"))    =][=
69   IF (not (exist? "omit-invocation")) =]
70   # Check to see if [=check=].
71   [=(. mac-name)=]
72 [=ENDIF         =][=
73 ENDFOR test     =][=
74 (if (not separate-macros)
75     (out-pop #t)) =][=
76 (prefix "  " (join "\n" (stack "do-always")))
78 ]) # end AC_DEFUN of [=(. do-all-name)=][=
80 # end conftest.tpl     =]