source: trunk/athena/lib/athdir/configure.ac @ 25918

Revision 25918, 1.5 KB checked in by achernya, 11 years ago (diff)
In athdir: * Reduce autoconf dependency to 2.65 for lucid compatibility.
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.65])
5AC_INIT([libathdir], [10.1], [debathena@mit.edu])
6AM_INIT_AUTOMAKE([foreign -Wall])
7AM_MAINTAINER_MODE([enable])
8m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9AC_CONFIG_MACRO_DIR([m4])
10AC_CONFIG_SRCDIR([src/athdir.c])
11AC_CONFIG_HEADERS([config.h])
12
13# Checks for programs.
14AC_PROG_CC
15# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
16m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
17LT_INIT
18
19# Checks for libraries.
20
21# Checks for header files.
22AC_CHECK_HEADERS([stdlib.h string.h sys/param.h])
23
24# Checks for typedefs, structures, and compiler characteristics.
25
26# Checks for library functions.
27AC_FUNC_MALLOC
28AC_FUNC_REALLOC
29AC_CHECK_FUNCS([strchr])
30
31# More stuff
32AS_IF([test x"$ATHENA_SYS" = x], [AC_MSG_ERROR([ATHENA_SYS must be set])])
33AC_DEFINE_UNQUOTED([ATHSYS], ["$ATHENA_SYS"], [Define the Athena System Version])
34
35AC_ARG_WITH([hosttype],
36    [AS_HELP_STRING([--with-hosttype],
37                    [machtype for compatibility])],
38    [
39        case $withval in
40             linux)     withval='"linux"';;
41             sun4)      withval='"sun4"';;
42             inbsd)     withval='"inbsd"';;
43             yes)       withval='"linux"';;
44             no)        withval=NULL;;
45             *)         AC_MSG_ERROR([invalid hosttype specified]);;
46        esac
47        hosttype=$withval
48    ],
49    [hosttype='"linux"'])
50AC_DEFINE_UNQUOTED([HOSTTYPE], [$hosttype], [Define the type of the Athena System])
51
52
53AC_CONFIG_FILES([Makefile
54                 src/Makefile
55                 src/athdir.pc
56])
57AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.