996
|
1 # Process this file with autoconf to produce a configure script.
|
|
2 AC_INIT([Sample module], [1.0], [xemacs-beta@xemacs.org])
|
|
3 AC_PREREQ(2.53)
|
|
4 AC_REVISION($Revision: 1.1 $)
|
|
5 AC_COPYRIGHT([Configuration script for the sample module.
|
|
6 Copyright (C) 2002 Jerry James.
|
|
7
|
|
8 This file is not part of XEmacs.])
|
|
9
|
|
10 AC_CONFIG_SRCDIR([sample.c])
|
|
11 AC_PROG_CC
|
|
12 AC_PROG_INSTALL
|
|
13 AC_SUBST(CFLAGS)
|
|
14 AC_SUBST(LDFLAGS)
|
|
15
|
|
16 # Find ELLCC
|
|
17 AC_ARG_VAR([ELLCC], [The path to the ellcc module compiler])
|
|
18 AC_PATH_PROG([ELLCC], [ellcc], ["FAIL"])
|
|
19 AS_IF([test "$ELLCC" = "FAIL"], [AS_ERROR([Cannot find ellcc])])
|
|
20 AC_SUBST(ELLCC)
|
|
21
|
|
22 # Insert autoconf macros here to find the headers, libraries, other
|
|
23 # programs, etc. needed by your module.
|
|
24
|
|
25 AC_CONFIG_FILES([Makefile.in Makefile])
|
|
26 AC_OUTPUT
|